Currently we have configured DP83640 with linux kernel 3.12 and it is working. I am getting ping response. But in case of TI kernel 4.1.141 we have connected same way but we are not getting any ping response.
Also I have done configuration in the menuconfig also.
I have also done DTS configuration. Below is the DTS Configuration
Linux Kernel 3.12
/* Ethernet */
&am33xx_pinmux {
ethernet1_pins: pinmux_ethernet1 {
pinctrl-single,pins = <
0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* gpmc_a4.rgmii2_td1 */
0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* gpmc_a5.rgmii2_td0 */
0x68 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* gpmc_a10.rgmii2_rd1 */
0x6c (PIN_INPUT_PULLDOWN | MUX_MODE3) /* gpmc_a11.rgmii2_rd0 */
0x88 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* (T17) gpmc_wait0.rmii2_crs_dv */
0x74 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* (U17) gpmc_wpn.rmii2_rxer */
0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* (R13) gpmc_a0.rmii2_txen */
0x108 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* (H16) gmii1_col.rmii2_refclk */
>;
};
mdio_pins: pinmux_mdio {
pinctrl-single,pins = <
/* MDIO */
0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
>;
};
};
&cpsw_emac1 {
phy_id = <&davinci_mdio>, <1>;
phy-mode = "rmii";
dual_emac_res_vlan = <2>;
/* Register 260 (104h) – RGMII Clock and Control Pad Skew */
/* rxc-skew-ps = <1400>;
rxdv-skew-ps = <0>;
txc-skew-ps = <1400>;
txen-skew-ps = <0>;
/* Register 261 (105h) – RGMII RX Data Pad Skew */
/* rxd3-skew-ps = <0>;
rxd2-skew-ps = <0>;
rxd1-skew-ps = <0>;
rxd0-skew-ps = <0>;
/* Register 262 (106h) – RGMII TX Data Pad Skew */
/* txd3-skew-ps = <0>;
txd2-skew-ps = <0>;
txd1-skew-ps = <0>;
txd0-skew-ps = <0>;*/
status = "enabled";
};
&mac {
slaves = <2>;
pinctrl-names = "default";
pinctrl-0 = <ðernet0_pins ðernet1_pins>;
dual_emac;
status = "okay";
};
Linux Kernel 4.1.141
/* Ethernet */
&am33xx_pinmux {
ethernet1_pins: pinmux_ethernet1 {
pinctrl-single,pins = <
0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* gpmc_a4.rgmii2_td1 */
0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* gpmc_a5.rgmii2_td0 */
0x68 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* gpmc_a10.rgmii2_rd1 */
0x6c (PIN_INPUT_PULLDOWN | MUX_MODE3) /* gpmc_a11.rgmii2_rd0 */
0x88 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* (T17) gpmc_wait0.rmii2_crs_dv */
0x74 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* (U17) gpmc_wpn.rmii2_rxer */
0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* (R13) gpmc_a0.rmii2_txen */
0x108 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* (H16) gmii1_col.rmii2_refclk */
>;
};
};
&cpsw_emac1 {
phy_id = <&davinci_mdio>, <1>;
phy-mode = "rmii";
dual_emac_res_vlan = <2>;
status = "enabled";
};
&mac {
slaves = <2>;
pinctrl-names = "default";
pinctrl-0 = <ðernet0_pins ðernet1_pins>;
dual_emac;
};
Please look in to this. Do i have to make some modification in the same. Please let me know.