arm64: dts: uniphier: add ethernet node for PXs3
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Tue, 27 Mar 2018 10:32:46 +0000 (19:32 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 27 Mar 2018 16:16:18 +0000 (01:16 +0900)
Add nodes of the AVE ethernet controller for PXs3 and the boards.
This SoC has two controllers.

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

index e62d068776d51acbe86a3e1bd15d24549a560709..c1bb607bd2115dc56267736f6f10707dc76dde16 100644 (file)
        status = "okay";
 };
 
+&eth0 {
+       status = "okay";
+       phy-handle = <&ethphy0>;
+};
+
+&mdio0 {
+       ethphy0: ethphy@0 {
+               reg = <0>;
+       };
+};
+
+&eth1 {
+       status = "okay";
+       phy-handle = <&ethphy1>;
+};
+
+&mdio1 {
+       ethphy1: ethphy@0 {
+               reg = <0>;
+       };
+};
+
 &nand {
        status = "okay";
 };
index b537a3c0071f7e834ef01dbdf2829337fcf44fd8..7c8f710d9bfa11fb3f9a3432c6e16cb4e18ef06c 100644 (file)
                        };
                };
 
+               eth0: ethernet@65000000 {
+                       compatible = "socionext,uniphier-pxs3-ave4";
+                       status = "disabled";
+                       reg = <0x65000000 0x8500>;
+                       interrupts = <0 66 4>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&pinctrl_ether_rgmii>;
+                       clocks = <&sys_clk 6>;
+                       resets = <&sys_rst 6>;
+                       phy-mode = "rgmii";
+                       local-mac-address = [00 00 00 00 00 00];
+
+                       mdio0: mdio {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
+               };
+
+               eth1: ethernet@65200000 {
+                       compatible = "socionext,uniphier-pxs3-ave4";
+                       status = "disabled";
+                       reg = <0x65200000 0x8500>;
+                       interrupts = <0 67 4>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&pinctrl_ether1_rgmii>;
+                       clocks = <&sys_clk 7>;
+                       resets = <&sys_rst 7>;
+                       phy-mode = "rgmii";
+                       local-mac-address = [00 00 00 00 00 00];
+
+                       mdio1: mdio {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
+               };
+
                nand: nand@68000000 {
                        compatible = "socionext,uniphier-denali-nand-v5b";
                        status = "disabled";