arm64: dts: uniphier: Add ahci controller nodes for PXs3
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Tue, 13 Sep 2022 04:23:17 +0000 (13:23 +0900)
committerArnd Bergmann <arnd@arndb.de>
Wed, 28 Sep 2022 20:41:47 +0000 (22:41 +0200)
Add ahci core controller and glue layer nodes including reset-controller
and sata-phy.

This supports for PXs3 and the boards.

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/20220913042321.4817-7-hayashi.kunihiko@socionext.com'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts
arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi

index 506c7b9..1ced619 100644 (file)
        };
 };
 
+&ahci0 {
+       status = "okay";
+};
+
+&ahci1 {
+       status = "okay";
+};
+
 &pinctrl_ether_rgmii {
        tx {
                pins = "RGMII0_TXCLK", "RGMII0_TXD0", "RGMII0_TXD1",
index bd5c1e3..c93b380 100644 (file)
                        };
                };
 
+               ahci0: sata@65600000 {
+                       compatible = "socionext,uniphier-pxs3-ahci",
+                                    "generic-ahci";
+                       status = "disabled";
+                       reg = <0x65600000 0x10000>;
+                       interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&sys_clk 28>;
+                       resets = <&sys_rst 28>, <&ahci0_rst 0>;
+                       ports-implemented = <1>;
+                       phys = <&ahci0_phy>;
+               };
+
+               sata-controller@65700000 {
+                       compatible = "socionext,uniphier-pxs3-ahci-glue",
+                                    "simple-mfd";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       ranges = <0 0x65700000 0x100>;
+
+                       ahci0_rst: reset-controller@0 {
+                               compatible = "socionext,uniphier-pxs3-ahci-reset";
+                               reg = <0x0 0x4>;
+                               clock-names = "link";
+                               clocks = <&sys_clk 28>;
+                               reset-names = "link";
+                               resets = <&sys_rst 28>;
+                               #reset-cells = <1>;
+                       };
+
+                       ahci0_phy: sata-phy@10 {
+                               compatible = "socionext,uniphier-pxs3-ahci-phy";
+                               reg = <0x10 0x10>;
+                               clock-names = "link", "phy";
+                               clocks = <&sys_clk 28>, <&sys_clk 30>;
+                               reset-names = "link", "phy";
+                               resets = <&sys_rst 28>, <&sys_rst 30>;
+                               #phy-cells = <0>;
+                       };
+               };
+
+               ahci1: sata@65800000 {
+                       compatible = "socionext,uniphier-pxs3-ahci",
+                                    "generic-ahci";
+                       status = "disabled";
+                       reg = <0x65800000 0x10000>;
+                       interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&sys_clk 29>;
+                       resets = <&sys_rst 29>, <&ahci1_rst 0>;
+                       ports-implemented = <1>;
+                       phys = <&ahci1_phy>;
+               };
+
+               sata-controller@65900000 {
+                       compatible = "socionext,uniphier-pxs3-ahci-glue",
+                                    "simple-mfd";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       ranges = <0 0x65900000 0x100>;
+
+                       ahci1_rst: reset-controller@0 {
+                               compatible = "socionext,uniphier-pxs3-ahci-reset";
+                               reg = <0x0 0x4>;
+                               clock-names = "link";
+                               clocks = <&sys_clk 29>;
+                               reset-names = "link";
+                               resets = <&sys_rst 29>;
+                               #reset-cells = <1>;
+                       };
+
+                       ahci1_phy: sata-phy@10 {
+                               compatible = "socionext,uniphier-pxs3-ahci-phy";
+                               reg = <0x10 0x10>;
+                               clock-names = "link", "phy";
+                               clocks = <&sys_clk 29>, <&sys_clk 30>;
+                               reset-names = "link", "phy";
+                               resets = <&sys_rst 29>, <&sys_rst 30>;
+                               #phy-cells = <0>;
+                       };
+               };
+
                usb0: usb@65a00000 {
                        compatible = "socionext,uniphier-dwc3", "snps,dwc3";
                        status = "disabled";