]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: ast2500: Add SDHCI nodes
authorEddie James <eajames@linux.ibm.com>
Thu, 15 Aug 2019 19:29:40 +0000 (14:29 -0500)
committerPeng Fan <peng.fan@nxp.com>
Thu, 5 Sep 2019 07:27:31 +0000 (15:27 +0800)
Add nodes for the Aspeed SD controllers with their necessary properties.

Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Eddie James <eajames@linux.ibm.com>
arch/arm/dts/ast2500-evb.dts
arch/arm/dts/ast2500-u-boot.dtsi

index ebf44fd707f9ad35c29d0053d4722927e8542d60..4796ed445f57484885b1f1718b661b430efcf17e 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_mac2link_default &pinctrl_mdio2_default>;
 };
+
+&sdhci0 {
+       status = "okay";
+
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_sd1_default>;
+};
+
+&sdhci1 {
+       status = "okay";
+
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_sd2_default>;
+};
index 7f80bad7d050dc42a42d341366deff33971b9733..8ac42157455703b922eb467486ebacc9350c7555 100644 (file)
 
                apb {
                        u-boot,dm-pre-reloc;
+
+                       sdhci0: sdhci@1e740100 {
+                               compatible = "aspeed,ast2500-sdhci";
+                               reg = <0x1e740100>;
+                               #reset-cells = <1>;
+                               clocks = <&scu BCLK_SDCLK>;
+                               resets = <&rst AST_RESET_SDIO>;
+                       };
+
+                       sdhci1: sdhci@1e740200 {
+                               compatible = "aspeed,ast2500-sdhci";
+                               reg = <0x1e740200>;
+                               #reset-cells = <1>;
+                               clocks = <&scu BCLK_SDCLK>;
+                               resets = <&rst AST_RESET_SDIO>;
+                       };
                };
 
        };