The above does not work, however with moving the qca8k port to internal of the switch and without specifying a link between the two switches, there is error -EEXIST, so I assume that the probe has actually worked, now maybe this works:
&gswip_mdio {
phy5: ethernet-phy@5 {
reg = <0x05>;
};
phy6: ethernet-phy@6 {
reg = <0x06>;
reset-gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
};
phy9: ethernet-phy@9 {
reg = <0x09>;
};
switch@18 {
compatible = "qca,qca8337";
#address-cells = <1>;
#size-cells = <0>;
reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
reg = <0x18>;
dsa,member = <0 1>;
ports {
#address-cells = <1>;
#size-cells = <0>;
sw1port0: port@0 {
reg = <0>;
label = "cpu";
phy-mode = "rgmii";
link = <&sw0port1>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@2 {
reg = <2>;
label = "lan6";
phy-handle = <&phy1>;
};
port@3 {
reg = <3>;
label = "lan7";
phy-handle = <&phy2>;
};
};
mdio {
phy0: ethernet-phy@0 {
reg = <0x00>;
};
phy1: ethernet-phy@1 {
reg = <0x01>;
};
phy2: ethernet-phy@2 {
reg = <0x02>;
};
};
};
};