Skip to content

Commit 361fefe

Browse files
yijiyangayaan-anwar
authored andcommitted
FROMLIST: arm64: dts: qcom: qcs615-ride: Enable ethernet node
Enable the ethernet node, add the phy node and pinctrl for ethernet. Link: https://lore.kernel.org/netdev/20250819-qcs615_eth-v4-4-5050ed3402cb@oss.qualcomm.com/ Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com> Signed-off-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
1 parent 773ee6e commit 361fefe

1 file changed

Lines changed: 102 additions & 0 deletions

File tree

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

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,59 @@
372372
};
373373
};
374374

375+
&ethernet {
376+
pinctrl-0 = <&ethernet_defaults>;
377+
pinctrl-names = "default";
378+
379+
phy-handle = <&rgmii_phy>;
380+
phy-mode = "rgmii-id";
381+
382+
snps,mtl-rx-config = <&mtl_rx_setup>;
383+
snps,mtl-tx-config = <&mtl_tx_setup>;
384+
385+
status = "okay";
386+
387+
mdio: mdio {
388+
compatible = "snps,dwmac-mdio";
389+
#address-cells = <1>;
390+
#size-cells = <0>;
391+
392+
rgmii_phy: phy@7 {
393+
compatible = "ethernet-phy-ieee802.3-c22";
394+
reg = <0x7>;
395+
396+
interrupts-extended = <&tlmm 121 IRQ_TYPE_EDGE_FALLING>;
397+
device_type = "ethernet-phy";
398+
reset-gpios = <&tlmm 104 GPIO_ACTIVE_LOW>;
399+
reset-assert-us = <11000>;
400+
reset-deassert-us = <70000>;
401+
};
402+
};
403+
404+
mtl_rx_setup: rx-queues-config {
405+
snps,rx-queues-to-use = <1>;
406+
snps,rx-sched-sp;
407+
408+
queue0 {
409+
snps,dcb-algorithm;
410+
snps,map-to-dma-channel = <0x0>;
411+
snps,route-up;
412+
snps,priority = <0x1>;
413+
};
414+
};
415+
416+
mtl_tx_setup: tx-queues-config {
417+
snps,tx-queues-to-use = <1>;
418+
snps,tx-sched-wrr;
419+
420+
queue0 {
421+
snps,weight = <0x10>;
422+
snps,dcb-algorithm;
423+
snps,priority = <0x0>;
424+
};
425+
};
426+
};
427+
375428
&gpu {
376429
status = "okay";
377430
};
@@ -552,6 +605,55 @@
552605
};
553606

554607
&tlmm {
608+
ethernet_defaults: ethernet-defaults-state {
609+
mdc-pins {
610+
pins = "gpio113";
611+
function = "rgmii";
612+
bias-pull-up;
613+
};
614+
615+
mdio-pins {
616+
pins = "gpio114";
617+
function = "rgmii";
618+
bias-pull-up;
619+
};
620+
621+
rgmii-rx-pins {
622+
pins = "gpio81", "gpio82", "gpio83", "gpio102", "gpio103", "gpio112";
623+
function = "rgmii";
624+
bias-disable;
625+
drive-strength = <2>;
626+
};
627+
628+
rgmii-tx-pins {
629+
pins = "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97";
630+
function = "rgmii";
631+
bias-pull-up;
632+
drive-strength = <16>;
633+
};
634+
635+
phy-intr-pins {
636+
pins = "gpio121";
637+
function = "gpio";
638+
bias-disable;
639+
drive-strength = <8>;
640+
};
641+
642+
pps-pins {
643+
pins = "gpio91";
644+
function = "rgmii";
645+
bias-disable;
646+
drive-strength = <8>;
647+
};
648+
649+
phy-reset-pins {
650+
pins = "gpio104";
651+
function = "gpio";
652+
bias-pull-up;
653+
drive-strength = <16>;
654+
};
655+
};
656+
555657
bt_en_state: bt-en-state {
556658
pins = "gpio85";
557659
function = "gpio";

0 commit comments

Comments
 (0)