boards: arm: add i3g4250d gyro to stm32f3_disco_E

The gyro i3g4250d is added to the device tree of stm32f3_disco rev. E
and a yaml file for this revision to use in twister is added.

Signed-off-by: Jonathan Hahn <Jonathan.Hahn@t-online.de>
This commit is contained in:
Jonathan Hahn 2021-07-16 08:51:32 +02:00 committed by Christopher Friedt
commit db2094eaae
2 changed files with 35 additions and 3 deletions

View file

@ -5,8 +5,8 @@
*/
&i2c1 {
/delete-node/ lsm303dlhc-magn@1e;
/delete-node/ lsm303dlhc-accel@19;
/delete-node/ lsm303dlhc-magn@1e;
/delete-node/ lsm303dlhc-accel@19;
lsm303agr-magn@1e {
compatible = "st,lis2mdl", "st,lsm303agr-magn";
@ -14,7 +14,7 @@
label = "LSM303AGR-MAGN";
};
lsm303agr-accel@19 {
lsm303agr-accel@19 {
compatible = "st,lis2dh", "st,lsm303agr-accel";
reg = <0x19>;
irq-gpios = <&gpioe 4 GPIO_ACTIVE_HIGH>,
@ -22,3 +22,13 @@
label = "LSM303AGR-ACCEL";
};
};
&spi1 {
cs-gpios = <&gpioe 3 GPIO_ACTIVE_LOW>;
i3g4250d@0 {
compatible = "st,i3g4250d";
reg = <0>;
spi-max-frequency = <1000000>;
label = "I3G4250D";
};
};

View file

@ -0,0 +1,22 @@
identifier: stm32f3_disco@E
name: ST STM32F3 Discovery rev E
type: mcu
arch: arm
toolchain:
- zephyr
- gnuarmemb
- xtools
ram: 40
supported:
- gpio
- i2c
- counter
- spi
- watchdog
- usb_device
- i3g4250d
- nvs
- can
- pwm
- adc
- dac