Skip to content

Commit 2c6262b

Browse files
yijiyangKomal-Bajaj
authored andcommitted
FROMLIST: arm64: dts: qcom: qcs615-ride: Enable ethernet node
Enable the ethernet node, add the phy node and pinctrl for ethernet. This change is necessary to support ethernet functionality on this board. Link: https://lore.kernel.org/r/20250121-dts_qcs615-v3-4-fa4496950d8a@quicinc.com Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
1 parent e8e2ade commit 2c6262b

File tree

1 file changed

+104
-0
lines changed

1 file changed

+104
-0
lines changed

arch/arm64/boot/dts/qcom/qcs615-ride.dts

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,59 @@
211211
};
212212
};
213213

214+
&ethernet {
215+
pinctrl-0 = <&ethernet_defaults>;
216+
pinctrl-names = "default";
217+
218+
phy-handle = <&rgmii_phy>;
219+
phy-mode = "rgmii-id";
220+
221+
snps,mtl-rx-config = <&mtl_rx_setup>;
222+
snps,mtl-tx-config = <&mtl_tx_setup>;
223+
224+
status = "okay";
225+
226+
mdio {
227+
compatible = "snps,dwmac-mdio";
228+
#address-cells = <1>;
229+
#size-cells = <0>;
230+
231+
rgmii_phy: phy@7 {
232+
compatible = "ethernet-phy-ieee802.3-c22";
233+
reg = <0x7>;
234+
235+
interrupts-extended = <&tlmm 121 IRQ_TYPE_EDGE_FALLING>;
236+
device_type = "ethernet-phy";
237+
reset-gpios = <&tlmm 104 GPIO_ACTIVE_LOW>;
238+
reset-assert-us = <11000>;
239+
reset-deassert-us = <70000>;
240+
};
241+
};
242+
243+
mtl_rx_setup: rx-queues-config {
244+
snps,rx-queues-to-use = <1>;
245+
snps,rx-sched-sp;
246+
247+
queue0 {
248+
snps,dcb-algorithm;
249+
snps,map-to-dma-channel = <0x0>;
250+
snps,route-up;
251+
snps,priority = <0x1>;
252+
};
253+
};
254+
255+
mtl_tx_setup: tx-queues-config {
256+
snps,tx-queues-to-use = <1>;
257+
snps,tx-sched-wrr;
258+
259+
queue0 {
260+
snps,weight = <0x10>;
261+
snps,dcb-algorithm;
262+
snps,priority = <0x0>;
263+
};
264+
};
265+
};
266+
214267
&gcc {
215268
clocks = <&rpmhcc RPMH_CXO_CLK>,
216269
<&rpmhcc RPMH_CXO_CLK_A>,
@@ -278,6 +331,57 @@
278331
status = "okay";
279332
};
280333

334+
&tlmm {
335+
ethernet_defaults: ethernet-defaults-state {
336+
mdc-pins {
337+
pins = "gpio113";
338+
function = "rgmii";
339+
bias-pull-up;
340+
};
341+
342+
mdio-pins {
343+
pins = "gpio114";
344+
function = "rgmii";
345+
bias-pull-up;
346+
};
347+
348+
rgmii-rx-pins {
349+
pins = "gpio81", "gpio82", "gpio83", "gpio102", "gpio103", "gpio112";
350+
function = "rgmii";
351+
bias-disable;
352+
drive-strength = <2>;
353+
};
354+
355+
rgmii-tx-pins {
356+
pins = "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97";
357+
function = "rgmii";
358+
bias-pull-up;
359+
drive-strength = <16>;
360+
};
361+
362+
phy-intr-pins {
363+
pins = "gpio121";
364+
function = "gpio";
365+
bias-disable;
366+
drive-strength = <8>;
367+
};
368+
369+
phy-reset-pins {
370+
pins = "gpio104";
371+
function = "gpio";
372+
bias-pull-up;
373+
drive-strength = <16>;
374+
};
375+
376+
pps-pins {
377+
pins = "gpio91";
378+
function = "rgmii";
379+
bias-disable;
380+
drive-strength = <8>;
381+
};
382+
};
383+
};
384+
281385
&uart0 {
282386
status = "okay";
283387
};

0 commit comments

Comments
 (0)