]> git.baikalelectronics.ru Git - uboot.git/commitdiff
ARM: dts: at91: sam9x60: add sdhci1 node and pinctrl
authorMihai Sain <mihai.sain@microchip.com>
Fri, 23 Dec 2022 06:47:17 +0000 (08:47 +0200)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 3 Jan 2023 08:58:15 +0000 (10:58 +0200)
Add node for sdhci1 controller and its pinctrl.

Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
arch/arm/dts/sam9x60.dtsi

index 17224ef771ea46ec6f61e2a033d88e5c107ed3cd..1998bb519519b59a961c62feb05133ffb6542a2f 100644 (file)
                        pinctrl-0 = <&pinctrl_sdhci0>;
                };
 
+               sdhci1: sdhci-host@90000000 {
+                       compatible = "microchip,sam9x60-sdhci";
+                       reg = <0x90000000 0x300>;
+                       clocks = <&pmc PMC_TYPE_PERIPHERAL 26>, <&pmc PMC_TYPE_GCK 26>;
+                       clock-names = "hclock", "multclk";
+                       assigned-clocks = <&pmc PMC_TYPE_GCK 26>;
+                       assigned-clock-rates = <100000000>;
+                       assigned-clock-parents = <&pmc PMC_TYPE_CORE 10>; /* ID_PLL_A_DIV */
+                       bus-width = <4>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&pinctrl_sdhci1>;
+               };
+
                apb {
                        compatible = "simple-bus";
                        #address-cells = <1>;
                                                         (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI | AT91_PINCTRL_SLEWRATE_ENA)>;  /* PA20 DAT3 periph A with pullup */
                                        };
                                };
+
+                               sdhci1 {
+                                       pinctrl_sdhci1: sdhci1 {
+                                               atmel,pins =
+                                                       <AT91_PIOA 13 AT91_PERIPH_B (AT91_PINCTRL_DRIVE_STRENGTH_HI)                            /* PA13 CK periph B */
+                                                        AT91_PIOA 12 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)     /* PA12 CMD periph B with pullup */
+                                                        AT91_PIOA 11 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)     /* PA11 DAT0 periph B with pullup */
+                                                        AT91_PIOA  2 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)     /* PA2 DAT1 periph B with pullup */
+                                                        AT91_PIOA  3 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)     /* PA3 DAT2 periph B with pullup */
+                                                        AT91_PIOA  4 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)>;   /* PA4 DAT3 periph B with pullup */
+                                       };
+                               };
                        };
 
                        pmecc: ecc-engine@ffffe000 {