]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: stm32: add FMC support on STM32MP13x SoC family
authorChristophe Kerello <christophe.kerello@foss.st.com>
Thu, 30 Mar 2023 09:26:17 +0000 (11:26 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 19 Apr 2023 07:59:36 +0000 (09:59 +0200)
Add FMC support on STM32MP13x SoC family.

Signed-off-by: Christophe Kerello <christophe.kerello@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/dts/stm32mp131.dtsi

index 5a064d5566e479b87f5cb7a50af12e386860431e..6d82bf646d267d8e82dd734ff82febe89ec31c75 100644 (file)
                        dma-requests = <48>;
                };
 
+               fmc: memory-controller@58002000 {
+                       compatible = "st,stm32mp1-fmc2-ebi";
+                       reg = <0x58002000 0x1000>;
+                       ranges = <0 0 0x60000000 0x04000000>, /* EBI CS 1 */
+                                <1 0 0x64000000 0x04000000>, /* EBI CS 2 */
+                                <2 0 0x68000000 0x04000000>, /* EBI CS 3 */
+                                <3 0 0x6c000000 0x04000000>, /* EBI CS 4 */
+                                <4 0 0x80000000 0x10000000>; /* NAND */
+                       #address-cells = <2>;
+                       #size-cells = <1>;
+                       clocks = <&rcc FMC_K>;
+                       resets = <&rcc FMC_R>;
+                       status = "disabled";
+
+                       nand-controller@4,0 {
+                               compatible = "st,stm32mp1-fmc2-nfc";
+                               reg = <4 0x00000000 0x1000>,
+                                     <4 0x08010000 0x1000>,
+                                     <4 0x08020000 0x1000>,
+                                     <4 0x01000000 0x1000>,
+                                     <4 0x09010000 0x1000>,
+                                     <4 0x09020000 0x1000>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
+                               dmas = <&mdma 24 0x2 0x12000a02 0x0 0x0>,
+                                      <&mdma 24 0x2 0x12000a08 0x0 0x0>,
+                                      <&mdma 25 0x2 0x12000a0a 0x0 0x0>;
+                               dma-names = "tx", "rx", "ecc";
+                               status = "disabled";
+                       };
+               };
+
                qspi: spi@58003000 {
                        compatible = "st,stm32f469-qspi";
                        reg = <0x58003000 0x1000>, <0x70000000 0x10000000>;