]> git.baikalelectronics.ru Git - uboot.git/commitdiff
ARM: dts: ast2500: Update SDHCI nodes
authorJoel Stanley <joel@jms.id.au>
Thu, 23 Jun 2022 09:05:29 +0000 (18:35 +0930)
committerTom Rini <trini@konsulko.com>
Wed, 6 Jul 2022 18:31:29 +0000 (14:31 -0400)
Match the description used by the Linux kernel, except use scu instead
of syscon as the phandle.

Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/dts/ast2500-evb.dts
arch/arm/dts/ast2500-u-boot.dtsi
arch/arm/dts/ast2500.dtsi

index 874e042bc4cb4b2d63994a70266e3ba4dfbc87eb..cc577761fa678d0ea7ab0b2c25d98e4fc0e1ea53 100644 (file)
        pinctrl-0 = <&pinctrl_mac2link_default &pinctrl_mdio2_default>;
 };
 
+&sdmmc {
+       status = "okay";
+};
+
 &sdhci0 {
        status = "okay";
 
index ea60e4c8db92e93ad9fda01d674e4cde0a9ccb81..057390fe707e6d575549ab38999bcc4642bd755a 100644 (file)
                clocks = <&scu ASPEED_CLK_MPLL>;
                resets = <&rst ASPEED_RESET_SDRAM>;
        };
-
-       ahb {
-               u-boot,dm-pre-reloc;
-
-               apb {
-                       u-boot,dm-pre-reloc;
-
-                       sdhci0: sdhci@1e740100 {
-                               compatible = "aspeed,ast2500-sdhci";
-                               reg = <0x1e740100>;
-                               #reset-cells = <1>;
-                               clocks = <&scu ASPEED_CLK_SDIO>;
-                               resets = <&rst ASPEED_RESET_SDIO>;
-                       };
-
-                       sdhci1: sdhci@1e740200 {
-                               compatible = "aspeed,ast2500-sdhci";
-                               reg = <0x1e740200>;
-                               #reset-cells = <1>;
-                               clocks = <&scu ASPEED_CLK_SDIO>;
-                               resets = <&rst ASPEED_RESET_SDIO>;
-                       };
-               };
-
-       };
 };
 
 &uart1 {
index ee66ef67042b1814dca8591019f074c5987773ca..cea08e6f08dfe8626c53198801f451ad5818d942 100644 (file)
                                reg = <0x1e720000 0x9000>;      // 36K
                        };
 
+                       sdmmc: sd-controller@1e740000 {
+                               compatible = "aspeed,ast2500-sd-controller";
+                               reg = <0x1e740000 0x100>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                               ranges = <0 0x1e740000 0x10000>;
+                               clocks = <&scu ASPEED_CLK_GATE_SDCLK>;
+                               status = "disabled";
+
+                               sdhci0: sdhci@100 {
+                                       compatible = "aspeed,ast2500-sdhci";
+                                       reg = <0x100 0x100>;
+                                       interrupts = <26>;
+                                       sdhci,auto-cmd12;
+                                       clocks = <&scu ASPEED_CLK_SDIO>;
+                                       status = "disabled";
+                               };
+
+                               sdhci1: sdhci@200 {
+                                       compatible = "aspeed,ast2500-sdhci";
+                                       reg = <0x200 0x100>;
+                                       interrupts = <26>;
+                                       sdhci,auto-cmd12;
+                                       clocks = <&scu ASPEED_CLK_SDIO>;
+                                       status = "disabled";
+                               };
+                       };
+
                        gpio: gpio@1e780000 {
                                #gpio-cells = <2>;
                                gpio-controller;