]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: renesas: cat875: Add ethernet support
authorBiju Das <biju.das@bp.renesas.com>
Wed, 16 Jan 2019 18:37:50 +0000 (18:37 +0000)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 23 Jan 2019 08:50:44 +0000 (09:50 +0100)
This patch adds ethernet support to the sub board.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Reviewed-by: Chris Paterson <Chris.Paterson2@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm64/boot/dts/renesas/cat875.dtsi

index a41d0d81f6491d36fb308cfcf1eaa171a8d7e106..805ffa7fb67bd1fac1001b9db5a2a7684e7b8d7f 100644 (file)
@@ -7,4 +7,34 @@
 
 / {
        model = "Silicon Linux sub board for CAT874 (CAT875)";
+
+       aliases {
+               ethernet0 = &avb;
+       };
+};
+
+&avb {
+       pinctrl-0 = <&avb_pins>;
+       pinctrl-names = "default";
+       renesas,no-ether-link;
+       phy-handle = <&phy0>;
+       phy-mode = "rgmii";
+       status = "okay";
+
+       phy0: ethernet-phy@0 {
+               rxc-skew-ps = <1500>;
+               reg = <0>;
+               interrupt-parent = <&gpio2>;
+               interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
+               reset-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
+       };
+};
+
+&pfc {
+       avb_pins: avb {
+               mux {
+                       groups = "avb_mii";
+                       function = "avb";
+               };
+       };
 };