AnsweredAssumed Answered

Device tree linux imx6 for tja1100 driver

Question asked by MD Mosaddek Hossain on Feb 22, 2018
Latest reply on Feb 22, 2018 by MD Mosaddek Hossain


        pinctrl_enet: enetgrp { /* Ethernet MII -IMX6 pin mapping with tja1100*/
            fsl,pins = <
                MX6QDL_PAD_ENET_CRS_DV__ENET_RX_EN         0x000130B0
                MX6QDL_PAD_ENET_RX_ER__ENET_RX_ER          0x000130B0
                MX6QDL_PAD_KEY_COL0__ENET_RX_DATA3         0x000130B0
                MX6QDL_PAD_KEY_COL2__ENET_RX_DATA2         0x000130B0
                MX6QDL_PAD_ENET_RXD0__ENET_RX_DATA0        0x000130B0
                MX6QDL_PAD_ENET_RXD1__ENET_RX_DATA1        0x0001B0B0
                MX6QDL_PAD_ENET_MDC__ENET_MDC              0x000130B0
                MX6QDL_PAD_ENET_MDIO__ENET_MDIO            0x0001B0B0
                MX6QDL_PAD_ENET_TXD0__ENET_TX_DATA0        0x000130B0
                MX6QDL_PAD_ENET_TXD1__ENET_TX_DATA1        0x000130B0
                MX6QDL_PAD_ENET_TX_EN__ENET_TX_EN          0x000130B0
                MX6QDL_PAD_KEY_ROW0__ENET_TX_DATA3         0x000130B0
                MX6QDL_PAD_KEY_ROW2__ENET_TX_DATA2         0x000130B0
                MX6QDL_PAD_GPIO_18__ENET_RX_CLK            0x0001B0B0
                MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK       0x0001B0B0
                MX6QDL_PAD_KEY_COL4__GPIO4_IO14            0x000130B0
            >;
        };

 

 

/*Ethernet*/
&fec{
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_enet>;
    phy-mode = "mii";
    phy-handle = <&ethphy>;
    phy-reset-gpios = <&gpio4 14 1>;  //todo
    status = "okay";
    
    mdio {
        ethphy: ethernet-phy@06{
           compatible = "0x0180dc48";
            device_type = "ethernet-phy";
            reg = <3>;
        };
   };
};

 

Is my mdio configuration correct in my device tree? According to the specification of tja110x driver i got my compatible and reg value. (README - tja110x_linux_phydev - TJA110x Ethernet transceivers Linux Driver ) But it shows a link down and does not recognize any phy connection. When the I put reg value 0 it shows the eth0 but "

fec 2188000.ethernet eth0: MDIO read timeout

".

 

I am eagerly waiting for a solution for the device tree please help me out.

Outcomes