boards: stm32l562_dk: Add spi on arduino header
It adds Arduino SPI support Signed-off-by: Luc Viala <lviala@zaack.io>
This commit is contained in:
parent
a0b7f26814
commit
1bc36323e2
5 changed files with 13 additions and 0 deletions
|
@ -34,3 +34,5 @@
|
||||||
<21 0 &gpiob 6 0>; /* D15 */
|
<21 0 &gpiob 6 0>; /* D15 */
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
arduino_spi: &spi3 {};
|
||||||
|
|
|
@ -197,6 +197,7 @@ Default Zephyr Peripheral Mapping:
|
||||||
- USART_1 TX/RX : PA9/PA10
|
- USART_1 TX/RX : PA9/PA10
|
||||||
- I2C_1 SCL/SDA : PB6/PB7
|
- I2C_1 SCL/SDA : PB6/PB7
|
||||||
- SPI_1 SCK/MISO/MOSI : PG2/PG3/PG4 (BT SPI bus)
|
- SPI_1 SCK/MISO/MOSI : PG2/PG3/PG4 (BT SPI bus)
|
||||||
|
- SPI_3 NSS/SCK/MISO/MOSI : PE0/PG9/PB4/PB5 (Arduino SPI)
|
||||||
- USER_PB : PC13
|
- USER_PB : PC13
|
||||||
- LD10 : PG12
|
- LD10 : PG12
|
||||||
- PWM_2_CH1 : PA0
|
- PWM_2_CH1 : PA0
|
||||||
|
|
|
@ -14,5 +14,7 @@ supported:
|
||||||
- watchdog
|
- watchdog
|
||||||
- dac
|
- dac
|
||||||
- adc
|
- adc
|
||||||
|
- spi
|
||||||
|
- arduino_spi
|
||||||
ram: 192
|
ram: 192
|
||||||
flash: 512
|
flash: 512
|
||||||
|
|
|
@ -134,3 +134,9 @@
|
||||||
pinctrl-0 = <&adc1_in13_pc4>;
|
pinctrl-0 = <&adc1_in13_pc4>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&spi3 {
|
||||||
|
pinctrl-0 = <&spi3_sck_pg9 &spi3_mosi_pb5 &spi3_miso_pb4>;
|
||||||
|
cs-gpios = <&gpioe 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
|
@ -11,5 +11,7 @@ supported:
|
||||||
- lsm6dso
|
- lsm6dso
|
||||||
- lptim
|
- lptim
|
||||||
- dac
|
- dac
|
||||||
|
- spi
|
||||||
|
- arduino_spi
|
||||||
ram: 192
|
ram: 192
|
||||||
flash: 512
|
flash: 512
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue