Other Parts Discussed in Thread: AM62A3
Tool/software:
Hello TI,
We are trying to configure 88E1512 with AM62a3. Bellow are my device tree configurations:
&cpsw3g { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&main_rgmii1_pins_default>; }; &cpsw_port1 { status = "okay"; phy-mode = "rgmii"; phy-handle = <&cpsw3g_phy0>; mac-address = [00 00 00 00 00 00]; // newly added phys = <&phy_gmii_sel 1>; // newly added }; &cpsw3g_mdio { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&main_mdio1_pins_default>; cpsw3g_phy0: ethernet-phy@0 { reg = <0>; ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; ti,min-output-impedance; }; }; &main_pmx0 { main_mdio1_pins_default: main-mdio1-pins-default { pinctrl-single,pins = < AM62AX_IOPAD(0x160, PIN_OUTPUT, 0) /* (V12) MDIO0_MDC */ AM62AX_IOPAD(0x15c, PIN_INPUT, 0) /* (V13) MDIO0_MDIO */ >; }; main_rgmii1_pins_default: main-rgmii1-pins-default { pinctrl-single,pins = < AM62AX_IOPAD(0x14c, PIN_INPUT, 0) /* (AB16) RGMII1_RD0 */ AM62AX_IOPAD(0x150, PIN_INPUT, 0) /* (V15) RGMII1_RD1 */ AM62AX_IOPAD(0x154, PIN_INPUT, 0) /* (W15) RGMII1_RD2 */ AM62AX_IOPAD(0x158, PIN_INPUT, 0) /* (V14) RGMII1_RD3 */ AM62AX_IOPAD(0x148, PIN_INPUT, 0) /* (AA16) RGMII1_RXC */ AM62AX_IOPAD(0x144, PIN_INPUT, 0) /* (AA15) RGMII1_RX_CTL */ AM62AX_IOPAD(0x134, PIN_INPUT, 0) /* (Y17) RGMII1_TD0 */ AM62AX_IOPAD(0x138, PIN_INPUT, 0) /* (V16) RGMII1_TD1 */ AM62AX_IOPAD(0x13c, PIN_INPUT, 0) /* (Y16) RGMII1_TD2 */ AM62AX_IOPAD(0x140, PIN_INPUT, 0) /* (AA17) RGMII1_TD3 */ AM62AX_IOPAD(0x130, PIN_INPUT, 0) /* (AB17) RGMII1_TXC */ AM62AX_IOPAD(0x12c, PIN_INPUT, 0) /* (W16) RGMII1_TX_CTL */ >; }; };
But unable to detect 88e1512, also not able to ping.
Bellow are the dmesg logs:
root@am62axx-evm:~# dmesg | grep mdio [ 0.317374] davinci_mdio 8000f00.mdio: davinci mdio revision 9.7, bus freq 1000000 [ 0.318710] davinci_mdio 8000f00.mdio: phy[0]: device 8000f00.mdio:00, driver unknown [ 11.235574] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [Generic PHY] (irq=POLL) root@am62axx-evm:~# dmesg | grep 88e root@am62axx-evm:~# dmesg | grep marvell root@am62axx-evm:~# dmesg | grep 88E root@am62axx-evm:~# dmesg | grep ETH0 root@am62axx-evm:~# dmesg | grep eth [ 0.000000] psci: probing for conduit method from DT. [ 0.178100] optee: probing for conduit method. [ 0.318786] am65-cpsw-nuss 8000000.ethernet: initializing am65 cpsw nuss version 0x6BA01103, cpsw version 0x6BA81103 Ports: 3 quirks:00000006 [ 0.319016] am65-cpsw-nuss 8000000.ethernet: initialized cpsw ale version 1.5 [ 0.319026] am65-cpsw-nuss 8000000.ethernet: ALE Table size 512 [ 0.319823] am65-cpsw-nuss 8000000.ethernet: CPTS ver 0x4e8a010c, freq:500000000, add_val:1 pps:0 [ 0.321726] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19 [ 2.237029] systemd[1]: /etc/systemd/system/sync-clocks.service:11: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether. [ 11.235574] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [Generic PHY] (irq=POLL) [ 11.235627] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode [ 14.626716] udc 31000000.usb: binding gadget driver [g_ether] [ 14.645279] using random self ethernet address [ 14.645311] using random host ethernet address [ 14.656405] using random self ethernet address [ 14.656417] using random host ethernet address [ 14.656464] g_ether gadget.0: adding config #2 'RNDIS'/00000000ed73a7a5 [ 14.656523] g_ether gadget.0: adding 'rndis'/0000000049e17a52 to config 'RNDIS'/00000000ed73a7a5 [ 14.656589] g_ether gadget.0: RNDIS: dual speed IN/ep1in OUT/ep1out NOTIFY/ep2in [ 14.656605] g_ether gadget.0: cfg 2/00000000ed73a7a5 speeds: high full [ 14.656620] g_ether gadget.0: interface 0 = rndis/0000000049e17a52 [ 14.656633] g_ether gadget.0: interface 1 = rndis/0000000049e17a52 [ 14.656653] g_ether gadget.0: adding config #1 'CDC Ethernet (ECM)'/00000000e9397a06 [ 14.656671] g_ether gadget.0: adding 'cdc_ethernet'/000000005a3fdf00 to config 'CDC Ethernet (ECM)'/00000000e9397a06 [ 14.656703] g_ether gadget.0: CDC Ethernet: dual speed IN/ep1in OUT/ep1out NOTIFY/ep2in [ 14.656717] g_ether gadget.0: cfg 1/00000000e9397a06 speeds: high full [ 14.656732] g_ether gadget.0: interface 0 = cdc_ethernet/000000005a3fdf00 [ 14.656745] g_ether gadget.0: interface 1 = cdc_ethernet/000000005a3fdf00 [ 14.656761] g_ether gadget.0: Ethernet Gadget, version: Memorial Day 2008 [ 14.656773] g_ether gadget.0: g_ether ready [ 14.882544] usb0: eth_open
Can you suggest the driver code and the device tree configurations for the same.