Skip to content

Commit dc36965

Browse files
Laurent Pincharthorms
authored andcommitted
arm64: dts: r8a7796: salvator-x: Enable EthernetAVB
Signed-off-by: Laurent Pinchart <[email protected]> [geert: Add pinctrl] Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Simon Horman <[email protected]>
1 parent 8e8b9ea commit dc36965

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
aliases {
2020
serial0 = &scif2;
21+
ethernet0 = &avb;
2122
};
2223

2324
chosen {
@@ -107,6 +108,11 @@
107108
pinctrl-0 = <&scif_clk_pins>;
108109
pinctrl-names = "default";
109110

111+
avb_pins: avb {
112+
groups = "avb_mdc";
113+
function = "avb";
114+
};
115+
110116
scif2_pins: scif2 {
111117
groups = "scif2_data_a";
112118
function = "scif2";
@@ -158,6 +164,32 @@
158164
};
159165
};
160166

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+
161193
&extal_clk {
162194
clock-frequency = <16666666>;
163195
};

0 commit comments

Comments
 (0)