p1020 with ar8033 phy dts

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

p1020 with ar8033 phy dts

849 Views
chenlin
Contributor I

hi, i'm using p1020 with 3 ar8033 phy, and i'm using p1020rdb-pd.dtsi for change

now , none of the 3 eth is work.  they can work under uboot

eg:the eth1 could ping self's ip, but could not ping other in the same ip section  

please check if my dts is wrong?  

CQND> mdio list
FSL_MDIO:
1 - Generic PHY <--> eTSEC1
2 - Generic PHY <--> eTSEC2
3 - Generic PHY <--> eTSEC3
CQND> mii
mii - MII utility commands

CQND> mii info
PHY 0x01: OUI = 0x1374, Model = 0x07, Rev = 0x04, 10baseT, HDX
PHY 0x02: OUI = 0x1374, Model = 0x07, Rev = 0x04, 100baseT, FDX
PHY 0x03: OUI = 0x1374, Model = 0x07, Rev = 0x04, 10baseT, HDX
PHY 0x1F: OUI = 0x0000, Model = 0x00, Rev = 0x00, 10baseT, HDX
CQND>

 //dts    p1020rdb-pd.dtsi

mdio@24000 {
phy0: ethernet-phy@0 {
interrupts = <3 1 0 0>;
reg = <0x1>;
};
phy1: ethernet-phy@1 {
interrupts = <2 1 0 0>;
reg = <0x2>;
};
};

mdio@25000 {
tbi1: tbi-phy@11 {
reg = <0x11>;
device_type = "tbi-phy";
};
};

mdio@26000 {
tbi2: tbi-phy@11 {
reg = <0x11>;
device_type = "tbi-phy";
};
};

ptp_clock@b0e00 {
compatible = "fsl,etsec-ptp";
reg = <0xb0e00 0xb0>;
interrupts = <68 2 0 0 69 2 0 0>;
fsl,tclk-period = <10>;
fsl,tmr-prsc = <2>;
fsl,tmr-add = <0x80000016>;
fsl,tmr-fiper1 = <0x3b9ac9f6>;
fsl,tmr-fiper2 = <0x00018696>;
fsl,max-adj = <199999999>;
};

enet0: ethernet@b0000 {
fixed-link = <1 1 1000 0 0>;
phy-connection-type = "rgmii-id";
};

enet1: ethernet@b1000 {
phy-handle = <&phy0>;
tbi-handle = <&tbi1>;
phy-connection-type = "sgmii";
};

enet2: ethernet@b2000 {
phy-handle = <&phy1>;
phy-connection-type = "rgmii-id";
};

Labels (1)
0 Kudos
1 Reply

511 Views
r8070z
NXP Employee
NXP Employee


Have a great day,

The P1023RDB-PD differs from your case. For example on the P1023RDB-PD TSEC1 is connected to the Ethernet switch only. The MDIO addresses and interrupt input also can be different. You can find related descriptions in kernel directory hierarchy:

Documentation/devicetree/bindings/net/fsl-tsec-phy.txt

Documentation/devicetree/bindings/net/ethernet.txt

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos