Hello Jags,
unfortunately we still do not get it running. We are using the attached Device Tree Snippet and modified the mv88e6060 driver to a mv88e6071 driver (i can't publish the driver changes yet, some register setitings where different).
The Error on Kernel bootup is this one:
[ 19.800094] Distributed Switch Architecture driver version 0.1
[ 19.874578] dsa: probe of dsa.5 failed with error -22
It looks as if something with the MDIO connection to the DSA Driver is not working correclty. I'am not sure if the probing is on the "right" mdiobus on the right way I'am also not sure if we have to use the gianfar driver, the fsl-fec-mdio or the fsl,pq1-fec-mdio driver.
If you go further please tell me...
/*
* Marvell Distributed Switch Architecture Device Tree Bindings
*
* A DSA node can contain multiple switch chips which are therefore child nodes of
* the parent DSA node. The maximum number of allowed child nodes is 4
*/
dsa@0 {
compatible = "marvell,dsa";
#address-cells = <2>;
#size-cells = <0>;
interrupts = <10>;
//dsa,ethernet = <ðphy1>;
//dsa,ethernet = <ð1>;
dsa,ethernet = <&mac1>;
//dsa,ethernet = <&mac0>;
dsa,mii-bus = <&mdio_bus>;
switch@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x10 0>; /* MDIO address 16, switch 0 in tree */
//reg = <0x05 0>; /* MDIO address 16, switch 0 in tree */
port@0 {
reg = <0>;
label = "lan1";
phy-handle = <ðphy1>;
};
port@1 {
reg = <1>;
label = "lan2";
};
port@2 {
reg = <2>;
label = "lan3";
};
mdio_bus: mdio@800f0040 {
#address-cells = <1>;
#size-cells = <0>;
device_type = "mdio";
//reg = <24520 20>;
//reg = <0xd0072004 0x4>;
//compatible = "fsl,gianfar-mdio";
//compatible = "fsl-fec-mdio";
compatible = "fsl,mpc875-fec-mdio", "fsl,pq1-fec-mdio";
//reg = <0xe00 0x188>;
reg = <0x800f0040 0x188>;
status = "okay";
ethphy0: ethernet-phy@0 {
//compatible = "fsl,gianfar-mdio";
//compatible = "fsl-fec-mdio";
compatible = "fsl,mpc875-fec-mdio", "fsl,pq1-fec-mdio";
device_type = "network";
model = "FEC";
reg = <0>;
};
ethphy1: ethernet-phy@1 {
//compatible = "fsl,gianfar-mdio";
//compatible = "fsl-fec-mdio";
compatible = "fsl,mpc875-fec-mdio", "fsl,pq1-fec-mdio";
device_type = "network";
model = "FEC";
reg = <1>;
};
//reg = <0xff>; */ /* No PHY attached */
//speed = <1000>;
//duple = <1>;
};
port@3 {
reg = <3>;
label = "lan4";
};
port@4 {
reg = <4>;
label = "lan5";
};
port@5 {
reg = <5>;
label = "cpu";
};
};
};