boards: st: nucleo_wb09ke: add SPI and I2C
Add I2C and SPI configuration to board DTS and mark as supported in YAML. Also add support for arduino_i2c and arduino_spi. Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
This commit is contained in:
parent
a6ffdd3e47
commit
7d3fb11989
3 changed files with 21 additions and 0 deletions
|
|
@ -25,4 +25,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
arduino_i2c: &i2c1 {};
|
||||
arduino_serial: &usart1 {};
|
||||
arduino_spi: &spi3 {};
|
||||
|
|
|
|||
|
|
@ -101,3 +101,18 @@
|
|||
current-speed = <115200>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c1 {
|
||||
pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>;
|
||||
pinctrl-names = "default";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi3 {
|
||||
pinctrl-0 = <&spi3_nss_pa9 &spi3_sck_pb3 &spi3_miso_pa8 &spi3_mosi_pa11>;
|
||||
pinctrl-names = "default";
|
||||
status = "okay";
|
||||
/* Select 64MHz clock for SPI3 */
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB1 (1 << 14)>,
|
||||
<&rcc STM32_SRC_SYSCLK SPI3_I2S3_SEL(3)>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -9,5 +9,9 @@ toolchain:
|
|||
ram: 64
|
||||
flash: 512
|
||||
supported:
|
||||
- arduino_i2c
|
||||
- arduino_spi
|
||||
- gpio
|
||||
- i2c
|
||||
- spi
|
||||
vendor: st
|
||||
|
|
|
|||
Loading…
Reference in a new issue