[ 9.925106] dp83812_read_straps: Strap is 0x20A [ 10.146313] ksz-switch spi1.1 lan1 (uninitialized): validation of sgmii with support 00000000,00000000,00006280 and advertisement 00000000,00000000,00006280 failed: -EINVAL [ 10.161820] ksz-switch spi1.1 lan1 (uninitialized): failed to connect to PHY: -EINVAL [ 10.169684] ksz-switch spi1.1 lan1 (uninitialized): error -22 setting up PHY for tree 0, switch 1, port 3
&fec1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_fec1>; phy-mode = "rgmii"; phy-handle = <ðphy0>; fsl,magic-packet; status = "okay"; phy-supply = <®_phy0_pwr>; phy-reset-gpios = <&lsio_gpio1 2 GPIO_ACTIVE_LOW>; phy-reset-on-resume; phy-reset-duration = <100>; phy-reset-post-delay = <100>; mdio { #address-cells = <1>; #size-cells = <0>; lan0phy: ethernet-phy@15 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <15>; reset-gpios = <&lsio_gpio3 17 GPIO_ACTIVE_LOW>; }; lan1phy: ethernet-phy@12 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <12>; reset-gpios = <&lsio_gpio3 23 GPIO_ACTIVE_LOW>; }; // other phys not shown... }; };
switch0: switch@0 { compatible = "microchip,lan9373"; reg = <0>; spi-max-frequency = <12000000>; dsa,member = <0 0>; status = "okay"; ports { port@3 { reg = <3>; phy-mode = "sgmii"; phy-handle = <&lan0phy>; label = "lan0"; }; // other ports not shown... }; }; switch1: switch@1 { compatible = "microchip,lan9373"; reg = <1>; spi-max-frequency = <12000000>; dsa,member = <0 1>; status = "okay"; ports { port@3 { reg = <3>; phy-mode = "sgmii"; phy-handle = <&lan1phy>; label = "lan1"; }; // other ports not shown... }; };