arm64: dts: h3ulcb: enable EthernetAVB
authorVladimir Barinov <vladimir.barinov@cogentembedded.com>
Wed, 31 Aug 2016 10:02:59 +0000 (13:02 +0300)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 6 Sep 2016 10:57:25 +0000 (12:57 +0200)
This supports Ethernet AVB on H3ULCB board

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm64/boot/dts/renesas/r8a7795-h3ulcb.dts

index 67ce368ff9ee0f7420372892a1df7c2ed2ced6be..fb694b8c6f59cef698c9e18df22e69e2032ccc43 100644 (file)
@@ -19,6 +19,7 @@
 
        aliases {
                serial0 = &scif2;
+               ethernet0 = &avb;
        };
 
        chosen {
                groups = "scif_clk_a";
                function = "scif_clk";
        };
+
+       avb_pins: avb {
+               groups = "avb_mdc";
+               function = "avb";
+       };
 };
 
 &scif2 {
        clock-frequency = <14745600>;
        status = "okay";
 };
+
+&avb {
+       pinctrl-0 = <&avb_pins>;
+       pinctrl-names = "default";
+       renesas,no-ether-link;
+       phy-handle = <&phy0>;
+       status = "okay";
+
+       phy0: ethernet-phy@0 {
+               rxc-skew-ps = <900>;
+               rxdv-skew-ps = <0>;
+               rxd0-skew-ps = <0>;
+               rxd1-skew-ps = <0>;
+               rxd2-skew-ps = <0>;
+               rxd3-skew-ps = <0>;
+               txc-skew-ps = <900>;
+               txen-skew-ps = <0>;
+               txd0-skew-ps = <0>;
+               txd1-skew-ps = <0>;
+               txd2-skew-ps = <0>;
+               txd3-skew-ps = <0>;
+               reg = <0>;
+               interrupt-parent = <&gpio2>;
+               interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+       };
+};