sja1105 config

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

sja1105 config

1,084 Views
zhangmeng6
Contributor I

Hi nxp:

There some error when I config sja1105 switch port,my linux version is bsp35,sja1105 switch driver is linux dsa driver.The switch connection diagram is as follows:

sja1105port3<--------rgmii------->phy<-------->1000base-T1.

my devicetree config as follows:

gmac0_mdio_a_phy1:ethernet-phy@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
max-speed = <1000>;
};

port_3 {
label = "sw0-p3";
phy-mode = "rgmii-id";
phy-handle = <&gmac0_mdio_a_phy1>;
reg = <3>;
};

the error log as follows:

[ 0.763407] sja1105 spi1.0: Probed switch chip: SJA1105S
[ 1.179978] sja1105 spi1.0: Probed switch chip: SJA1105S
[ 1.565262] sja1105 spi1.0: Probed switch chip: SJA1105S
[ 1.565464] sja1105 spi1.0: Probed switch chip: SJA1105S
[ 2.004278] sja1105 spi1.0: Probed switch chip: SJA1105S
[ 2.035507] sja1105 spi1.0: Enabled switch tagging
[ 2.038072] sja1105 spi1.0: configuring for fixed/rgmii-id link mode
[ 2.038791] sja1105 spi1.0: Link is Up - 1Gbps/Full - flow control off
[ 2.072070] sja1105 spi1.0 sw0-p3 (uninitialized): validation of rgmii-id with support 0000000,00000000,000062c0 and advertisement 0000000,00000000,00000240 failed: -22
[ 2.072408] sja1105 spi1.0 sw0-p3 (uninitialized): failed to connect to PHY: -EINVAL
[ 2.072420] sja1105 spi1.0 sw0-p3 (uninitialized): error -22 setting up PHY for tree 0, switch 0, port 3
[ 2.116552] sja1105 spi1.0: configuring for fixed/sgmii link mode
[ 2.117551] sja1105 spi1.0: Link is Up - 1Gbps/Full - flow control off

Can you give me some suggestions?very thanks for you

 

 

0 Kudos
Reply
0 Replies