boards: b_u585i_iot02a: Enable i2c and hts221 mems sensors
Enable i2c1 and i2c2 nodes on b_u585i_iot02a. i2c1 is used as Arduino I2C i2c2 is used as bus for HTS221 MEMS device. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
d00597e1a4
commit
3366e34e31
4 changed files with 25 additions and 1 deletions
|
@ -36,3 +36,4 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
arduino_spi: &spi1 {};
|
arduino_spi: &spi1 {};
|
||||||
|
arduino_i2c: &i2c1 {};
|
||||||
|
|
|
@ -36,3 +36,21 @@
|
||||||
&spi1_miso_pe14 &spi1_mosi_pe15>;
|
&spi1_miso_pe14 &spi1_mosi_pe15>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&i2c1 {
|
||||||
|
pinctrl-0 = <&i2c1_scl_pb8 &i2c1_sda_pb9>;
|
||||||
|
status = "okay";
|
||||||
|
clock-frequency = <I2C_BITRATE_FAST>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&i2c2 {
|
||||||
|
pinctrl-0 = <&i2c2_scl_ph4 &i2c2_sda_ph5>;
|
||||||
|
status = "okay";
|
||||||
|
clock-frequency = <I2C_BITRATE_FAST>;
|
||||||
|
|
||||||
|
hts221@5f {
|
||||||
|
compatible = "st,hts221";
|
||||||
|
reg = <0x5f>;
|
||||||
|
label = "HTS221";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
|
@ -9,5 +9,7 @@ toolchain:
|
||||||
ram: 786
|
ram: 786
|
||||||
flash: 2048
|
flash: 2048
|
||||||
supported:
|
supported:
|
||||||
|
- arduino_i2c
|
||||||
- arduino_spi
|
- arduino_spi
|
||||||
|
- hts221
|
||||||
- spi
|
- spi
|
||||||
|
|
|
@ -175,10 +175,11 @@ The Zephyr b_u585i_iot02a board configuration supports the following hardware fe
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
| GPIO | on-chip | gpio |
|
| GPIO | on-chip | gpio |
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
|
| I2C | on-chip | i2c |
|
||||||
|
+-----------+------------+-------------------------------------+
|
||||||
| SPI | on-chip | spi |
|
| SPI | on-chip | spi |
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
|
|
||||||
|
|
||||||
The default configuration can be found in the defconfig file:
|
The default configuration can be found in the defconfig file:
|
||||||
|
|
||||||
``boards/arm/b_u585i_iot02a/b_u585i_iot02a_defconfig``
|
``boards/arm/b_u585i_iot02a/b_u585i_iot02a_defconfig``
|
||||||
|
@ -200,6 +201,8 @@ Default Zephyr Peripheral Mapping:
|
||||||
- LD2 : PH6
|
- LD2 : PH6
|
||||||
- user button : PC13
|
- user button : PC13
|
||||||
- SPI1 NSS/SCK/MISO/MOSI : PE12/P13/P14/P15 (Arduino SPI)
|
- SPI1 NSS/SCK/MISO/MOSI : PE12/P13/P14/P15 (Arduino SPI)
|
||||||
|
- I2C_1 SDA/SDL : PB9/PB8 (Arduino I2C)
|
||||||
|
- I2C_2 SDA/SDL : PH5/PH4
|
||||||
|
|
||||||
System Clock
|
System Clock
|
||||||
------------
|
------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue