1
1
This commit is contained in:
mooleshacat 2026-06-16 13:59:02 -04:00
parent b24d4f7e1e
commit bf63abe311
Signed by: mooleshacat
GPG Key ID: 6F42FE1A481818C2

View File

@ -102,11 +102,13 @@
* shared MDIO bus for management access only. * shared MDIO bus for management access only.
*/ */
qca8337: switch@10 { qca8337: switch@10 {
compatible = "qca,ipq4019-qca8337n"; compatible = "qca,qca8337";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
reg = <0x10>; reg = <0x10>;
dsa,member = <0 1>;
ports { ports {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
@ -116,11 +118,11 @@
* gmac1 is the SoC's second GMAC, independent of the ESS. * gmac1 is the SoC's second GMAC, independent of the ESS.
* 1000 Mbps full-duplex — no autoneg on a fixed MAC-to-switch link. * 1000 Mbps full-duplex — no autoneg on a fixed MAC-to-switch link.
*/ */
port@0 { extport0: port@0 {
reg = <0>; reg = <0>;
label = "cpu"; label = "cpu";
ethernet = <&swport5>;
phy-mode = "rgmii"; phy-mode = "rgmii";
ethernet = <&swport5>;
fixed-link { fixed-link {
speed = <1000>; speed = <1000>;
full-duplex; full-duplex;
@ -184,7 +186,9 @@
&switch { &switch {
status = "okay"; status = "okay";
dsa,member = <0 0>;
mdio-bus = <&mdio>; mdio-bus = <&mdio>;
//qca,mdio = <&mdio>; //alternative if above not work //qca,mdio = <&mdio>; //alternative if above not work
@ -233,10 +237,11 @@
swport5: port@5 { swport5: port@5 {
reg = <5>; reg = <5>;
label = "cpu"; label = "dsa";
phy-mode = "rgmii"; phy-mode = "rgmii";
status = "okay"; status = "okay";
/delete-property/ phy-handle; /* ethphy4 was deleted, kill the dangling ref */ /delete-property/ phy-handle;
fixed-link { fixed-link {
speed = <1000>; speed = <1000>;
full-duplex; full-duplex;
@ -245,7 +250,7 @@
/* /*
* NO port@6 — valid ESS indices are 0-5 only (num_ports=6). * NO port@6 — valid ESS indices are 0-5 only (num_ports=6).
* QCA8337 is NOT cascaded here. It lives on gmac1 independently. * QCA8337 is NOT cascaded here. (?It lives on gmac1 independently?)
*/ */
}; };
}; };