AnsweredAssumed Answered

Device Tree (.dts) configuration for eTSEC3 in SGMII

Question asked by gyosun shim on Sep 27, 2016
Latest reply on Sep 29, 2016 by Yiping Wang

Hi All,

 

I use the same phy eTSEC2 and the P2020 boards has been added to the eTSEC3.
Set as follows were not working.

I have set the wrong part?

 

ethernet@24000 {
#address-cells = <0x1>;
#size-cells = <0x1>;
cell-index = <0x0>;
device_type = "network";
model = "eTSEC";
compatible = "gianfar";
reg = <0x24000 0x1000>;
ranges = <0x0 0x24000 0x1000>;
local-mac-address = [00 00 00 00 00 00];
interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>;
interrupt-parent = <0x2>;
fixed-link = <0x1 0x1 0x3e8 0x0 0x0>;
phy-connection-type = "rgmii-id";
ptimer-handle = <0x3>;

mdio@520 {
#address-cells = <0x1>;
#size-cells = <0x0>;
compatible = "fsl,gianfar-mdio";
reg = <0x520 0x20>;

ethernet-phy@0 {
interrupt-parent = <0x2>;
interrupts = <0x3 0x1>;
reg = <0x0>;
linux,phandle = <0x5>;
};

ethernet-phy@1 {
interrupt-parent = <0x2>;
interrupts = <0x3 0x1>;
reg = <0x1>;
linux,phandle = <0x6>;
};
};
};

ethernet@25000 {
#address-cells = <0x1>;
#size-cells = <0x1>;
cell-index = <0x1>;
device_type = "network";
model = "eTSEC";
compatible = "gianfar";
reg = <0x25000 0x1000>;
ranges = <0x0 0x25000 0x1000>;
local-mac-address = [00 00 00 00 00 00];
interrupts = <0x23 0x2 0x24 0x2 0x28 0x2>;
interrupt-parent = <0x2>;
tbi-handle = <0x4>;
phy-handle = <0x5>;
phy-connection-type = "sgmii";
ptimer-handle = <0x3>;

mdio@520 {
#address-cells = <0x1>;
#size-cells = <0x0>;
compatible = "fsl,gianfar-tbi";
reg = <0x520 0x20>;

tbi-phy@11 {
reg = <0x11>;
device_type = "tbi-phy";
linux,phandle = <0x4>;
};
};
};

ethernet@26000 {
#address-cells = <0x1>;
#size-cells = <0x1>;
cell-index = <0x2>;
device_type = "network";
model = "eTSEC";
compatible = "gianfar";
reg = <0x26000 0x1000>;
ranges = <0x0 0x26000 0x1000>;
local-mac-address = [00 00 00 00 00 00];
interrupts = <0x1f 0x2 0x20 0x2 0x21 0x2>;
interrupt-parent = <0x2>;
tbi-handle = <0x7>;
phy-handle = <0x6>;
phy-connection-type = "sgmii";
ptimer-handle = <0x3>;

mdio@520 {
#address-cells = <0x1>;
#size-cells = <0x0>;
compatible = "fsl,gianfar-tbi";
reg = <0x520 0x20>;

tbi-phy@11 {
reg = <0x11>;
device_type = "tbi-phy";
linux,phandle = <0x7>;
};
};
};

 

Thank you.
Best regards,

gyosun.

Outcomes