Hi All,
SDK version: PROCESSOR-SDK-LINUX-AM57X 06_03_00_106
Fixed link is working but otherwise its not working.
PHY_RSTs are at gpio7_5 and 7_6, jack leds both are off orange and yellow.
Can someone guide on dtsi changes and phy resets part in dtsi?
Part number:KSZ9031RN
Gigabit Ethernet PHY0 Address | PHYAD[2:0]=0x00 | |
Gigabit Ethernet PHY1 Address | PHYAD[2:0]=0x01 |
we have enabled phy reset gpios for both the phys.
miii tool output in uboot-
=> mii dump 0 0
Error reading from the PHY addr=00 reg=00
Phytool output for both the phys
root@am57xx-hs-evm:~# ethtool eth0
Settings for eth0:
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000000 (0)
Link detected: no
error logs
root@am57xx-hs-evm:~# dmesg | grep mdio
[ 1.486789] mdio_bus fixed-0: GPIO lookup for consumer reset
[ 1.486797] mdio_bus fixed-0: using lookup tables for GPIO lookup
[ 1.486805] mdio_bus fixed-0: No GPIO consumer reset found
[ 1.523209] mdio_bus 48485000.mdio: GPIO lookup for consumer reset
[ 1.523217] mdio_bus 48485000.mdio: using device tree for GPIO lookup
[ 1.523235] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp/ethernet@48484000/mdio@48485000[0]'
[ 1.523249] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp/ethernet@48484000/mdio@48485000[0]'
[ 1.523258] mdio_bus 48485000.mdio: using lookup tables for GPIO lookup
[ 1.523265] mdio_bus 48485000.mdio: No GPIO consumer reset found
[ 1.581456] davinci_mdio 48485000.mdio: davinci mdio revision 1.6, bus freq 1000000
[ 1.589153] libphy: 48485000.mdio: probed
[ 1.593861] mdio_bus 48485000.mdio: MDIO device at address 0 is missing.
[ 1.601683] mdio_bus 48485000.mdio: MDIO device at address 1 is missing.
[ 7.239541] libphy: PHY 48485000.mdio:00 not found
[ 7.302643] net eth0: phy "48485000.mdio:00" not found on slave 0, err -19
[ 7.514675] libphy: PHY 48485000.mdio:01 not found
[ 7.519501] net eth1: phy "48485000.mdio:01" not found on slave 1, err -19
root@am57xx-hs-evm:~# dmesg | grep phy
[ 0.000000] Booting Linux on physical CPU 0x0
[ 1.486828] libphy: Fixed MDIO Bus: probed
[ 1.589153] libphy: 48485000.mdio: probed
[ 7.239541] libphy: PHY 48485000.mdio:00 not found
[ 7.302643] net eth0: phy "48485000.mdio:00" not found on slave 0, err -19
[ 7.514675] libphy: PHY 48485000.mdio:01 not found
[ 7.519501] net eth1: phy "48485000.mdio:01" not found on slave 1, err -19
root@am57xx-hs-evm:~#
dtsi :
phy0_rst_gpios: phy0_rst_gpios {
pinctrl-single,pins = <
DRA7XX_CORE_IOPAD(0x3448, PIN_OUTPUT | MUX_MODE14) /* gpmc_a2,gpio7_5 */
>;
};
phy1_rst_gpios: phy1_rst_gpios {
pinctrl-single,pins = <
DRA7XX_CORE_IOPAD(0x344C, PIN_OUTPUT | MUX_MODE14) /* gpmc_a3,gpio7_6 */
>;
};
&mac {
status = "okay";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&cpsw_pins_default>;
//pinctrl-1 = <&cpsw_pins_sleep>;
dual_emac;
//rx_descs = <64>;
};
&davinci_mdio {
status = "okay";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&mdio_pins_default>;
//pinctrl-1 = <&mdio_pins_sleep>;
phy0: ethernet-phy@0 {
//compatible = "micrel,ksz9031";
//device_type = "ethernet-phy";
reg = <0>;
};
phy1: ethernet-phy@1 {
//compatible = "micrel,ksz9031";
//device_type = "ethernet-phy";
reg = <1>;
};
};
&cpsw_emac0 {
status = "okay";
reset-gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
reset-delay-us = <2>;
phy_id = <&davinci_mdio>, <0>;
phy-mode = "rgmii";
dual_emac_res_vlan = <1>;
pinctrl-names = "default";
pinctrl-0 = <&phy0_rst_gpios>;
/*fixed-link {
speed = <100>;
full-duplex;
};*/
};