dts: arm: stm32l5: Add sdmmc1 node

Add SD/MMC slot devicetree configuration.

Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
This commit is contained in:
Gerson Fernando Budke 2022-04-21 21:02:35 -03:00 committed by Fabio Baltieri
commit 3fcf46b2ab
5 changed files with 27 additions and 0 deletions

View file

@ -174,6 +174,8 @@ hardware features:
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
| RNG | on-chip | entropy | | RNG | on-chip | entropy |
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
| SDMMC | on-chip | sd/mmc |
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi | | SPI | on-chip | spi |
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
| TrustZone | on-chip | Trusted Firmware-M | | TrustZone | on-chip | Trusted Firmware-M |

View file

@ -17,6 +17,7 @@ supported:
- dma - dma
- usart - usart
- arduino_spi - arduino_spi
- sdhc
- usb - usb
- nvs - nvs
ram: 192 ram: 192

View file

@ -214,3 +214,18 @@ zephyr_udc0: &usb {
pinctrl-names = "default"; pinctrl-names = "default";
status = "okay"; status = "okay";
}; };
&sdmmc1 {
status = "okay";
pinctrl-0 = <&sdmmc1_d0_pc8
&sdmmc1_d1_pc9
&sdmmc1_d2_pc10
&sdmmc1_d3_pc11
&sdmmc1_ck_pc12
&sdmmc1_cmd_pd2>;
pinctrl-names = "default";
cd-gpios = <&gpiof 2 GPIO_ACTIVE_LOW>;
};

View file

@ -12,5 +12,6 @@ supported:
- dac - dac
- spi - spi
- arduino_spi - arduino_spi
- sdhc
ram: 192 ram: 192
flash: 512 flash: 512

View file

@ -337,6 +337,14 @@
status = "disabled"; status = "disabled";
}; };
sdmmc1: sdmmc@420c8000 {
compatible = "st,stm32-sdmmc";
reg = <0x420c8000 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00400000>;
interrupts = <78 0>;
status = "disabled";
};
dac1: dac@40007400 { dac1: dac@40007400 {
compatible = "st,stm32-dac"; compatible = "st,stm32-dac";
reg = <0x40007400 0x400>; reg = <0x40007400 0x400>;