arm64: dts: uniphier: add syscon-phy-mode property to each ethernet node
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Tue, 24 Apr 2018 04:47:03 +0000 (13:47 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 24 Apr 2018 15:21:14 +0000 (00:21 +0900)
Add syscon-phy-mode property specifying a phandle of system controller
to each ethernet node.

In addition, LD11 SoC has a built-in ethernet PHY. When we set "internal"
to phy-mode property, this built-in PHY is available.
This patch changes phy-mode property for LD11 to "internal", as default.

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi
arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi
arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi

index 540e012e16d76928f210ecfa533c26610cf1bd6d..cbc4f4b32b85cfd7b32579a49ac6542d4738a80a 100644 (file)
                        clocks = <&sys_clk 6>;
                        reset-names = "ether";
                        resets = <&sys_rst 6>;
-                       phy-mode = "rmii";
+                       phy-mode = "internal";
                        local-mac-address = [00 00 00 00 00 00];
+                       socionext,syscon-phy-mode = <&soc_glue 0>;
 
                        mdio: mdio {
                                #address-cells = <1>;
index 845b407b48da0418e7a9ff72cc4b748b91524a22..1721d4510ae4e4fbdbf1a580fdc3f48a79cfd06c 100644 (file)
                        resets = <&sys_rst 6>;
                        phy-mode = "rgmii";
                        local-mac-address = [00 00 00 00 00 00];
+                       socionext,syscon-phy-mode = <&soc_glue 0>;
 
                        mdio: mdio {
                                #address-cells = <1>;
index 4ff043eaece5ef631d2b49d49ab6ab5c3e708b45..c703842d1d80ec17f5875828e1b04d532fe7aaa4 100644 (file)
                        cdns,phy-dll-delay-sdclk-hsmmc = <21>;
                };
 
-               soc-glue@5f800000 {
+               soc_glue: soc-glue@5f800000 {
                        compatible = "socionext,uniphier-pxs3-soc-glue",
                                     "simple-mfd", "syscon";
                        reg = <0x5f800000 0x2000>;
                        resets = <&sys_rst 6>;
                        phy-mode = "rgmii";
                        local-mac-address = [00 00 00 00 00 00];
+                       socionext,syscon-phy-mode = <&soc_glue 0>;
 
                        mdio0: mdio {
                                #address-cells = <1>;
                        resets = <&sys_rst 7>;
                        phy-mode = "rgmii";
                        local-mac-address = [00 00 00 00 00 00];
+                       socionext,syscon-phy-mode = <&soc_glue 1>;
 
                        mdio1: mdio {
                                #address-cells = <1>;