aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2016-12-15 11:24:04 -0500
committerSimon Horman <horms+renesas@verge.net.au>2017-01-03 04:41:42 -0500
commitdc36965a890515753671628cdf25365ee45e6206 (patch)
tree62ec752978e358df4fdd3c8f9162952d981e8ea5
parent8e8b9eaef8fb05d9707087ea82c1c928317ac9f8 (diff)
arm64: dts: r8a7796: salvator-x: Enable EthernetAVB
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> [geert: Add pinctrl] Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r--arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts32
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts
index 38bde9de3250..c7f40f8f3169 100644
--- a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts
+++ b/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts
@@ -18,6 +18,7 @@
18 18
19 aliases { 19 aliases {
20 serial0 = &scif2; 20 serial0 = &scif2;
21 ethernet0 = &avb;
21 }; 22 };
22 23
23 chosen { 24 chosen {
@@ -107,6 +108,11 @@
107 pinctrl-0 = <&scif_clk_pins>; 108 pinctrl-0 = <&scif_clk_pins>;
108 pinctrl-names = "default"; 109 pinctrl-names = "default";
109 110
111 avb_pins: avb {
112 groups = "avb_mdc";
113 function = "avb";
114 };
115
110 scif2_pins: scif2 { 116 scif2_pins: scif2 {
111 groups = "scif2_data_a"; 117 groups = "scif2_data_a";
112 function = "scif2"; 118 function = "scif2";
@@ -158,6 +164,32 @@
158 }; 164 };
159}; 165};
160 166
167&avb {
168 pinctrl-0 = <&avb_pins>;
169 pinctrl-names = "default";
170 renesas,no-ether-link;
171 phy-handle = <&phy0>;
172 status = "okay";
173
174 phy0: ethernet-phy@0 {
175 rxc-skew-ps = <900>;
176 rxdv-skew-ps = <0>;
177 rxd0-skew-ps = <0>;
178 rxd1-skew-ps = <0>;
179 rxd2-skew-ps = <0>;
180 rxd3-skew-ps = <0>;
181 txc-skew-ps = <900>;
182 txen-skew-ps = <0>;
183 txd0-skew-ps = <0>;
184 txd1-skew-ps = <0>;
185 txd2-skew-ps = <0>;
186 txd3-skew-ps = <0>;
187 reg = <0>;
188 interrupt-parent = <&gpio2>;
189 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
190 };
191};
192
161&extal_clk { 193&extal_clk {
162 clock-frequency = <16666666>; 194 clock-frequency = <16666666>;
163}; 195};