How to specify the MDIO Bus details in Device tree (DTS) for a imx28 Board?
I try to define a Device Tree for my MDIO Bus on a costum based imx28 Board The goal is to connect a DSA Marvel Switch 88E6071 via MDIO to my imx28 CPU. The MDIO Bus is accessable via phy1.
Somebody a clou how to handle this?
currently i'am stucked with this error on Linux Bootup:
[ 2.311696] libphy: Fixed MDIO Bus: probed
[ 2.484603] fsl-pq_mdio mdio.6: could not obtain address information
[ 2.491217] fsl-pq_mdio: probe of mdio.6 failed with error -22
mdio_bus: mdio {
#address-cells = <1>;
#size-cells = <0>;
device_type = "mdio";
compatible = "fsl,gianfar-mdio";
status = "okay";
ethphy0: ethernet-phy@0 {
reg = <0>;
};
ethphy1: ethernet-phy@1 {
reg = <1>;
};
};
}
dsa@0 {
compatible = "marvell,dsa";
#address-cells = <2>;
#size-cells = <0>;
interrupts = <10>;
dsa,ethernet = <&mac1>;
dsa,mii-bus = <ðphy1>;
switch@0 {
#address-cells = <1>;
#size-cells = <0>;
//reg = <16 0>; /* MDIO address 16, switch 0 in tree */
reg = <5 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";
};
port@3 {
reg = <3>;
label = "lan4";
};
port@4 {
reg = <4>;
label = "lan5";
};
port@5 {
reg = <5>;
label = "cpu";
};
};
};
};
|