Hi,
We have designed a new board based on iMX6ULL and use LAN8710 as PHY. The following is my .dts file. We will be using RMII mode here. We are using all the lines here, except one change. We are NOT using RX_ER line in the design. I see that this is not mandatory for RMII mode. Can some of the experts clarify this ?
Regards, Biju
/* DTS File */
&fec1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet1>;
phy-mode = "rmii";
phy-handle = <ðphy0>;
local-mac-address = [00 04 9F 01 1B B9];
phy-reset-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
phy-reset-duration = <1>;
status = "okay";
};
&fec2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet2>;
phy-mode = "rmii";
phy-handle = <ðphy1>;
status = "okay";
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy0: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
};
ethphy1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
};
};
&iomuxc {
imx6ul-ddr3-arm2 {
pinctrl_enet1: enet1grp {
fsl,pins = <
MX6UL_PAD_LCD_DATA14__GPIO3_IO19 0x1b0b0
MX6UL_PAD_GPIO1_IO07__ENET2_MDC 0x1b0b0
MX6UL_PAD_GPIO1_IO06__ENET2_MDIO 0x1b0b0
MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN 0x1b0b0
MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b0
MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b0
MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN 0x1b0b0
MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b0b0
MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b0b0
MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4001b031
>;
};
Hi Igor,
What is the relevance of the "reg" field in the device tree ? In the below example, it is set to "1". What exactly does this signify ?
ethphy1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
Regards, Biju
Hi
Do you solve this problem? i have same problem with dual lan8720a.
i add reset/interrupt pin and commit some conflicts with eternet pin.
sometime 2188000 can works sometimes 20b4000 works...but can not work at the same time
Do you know the 'reg' mean here? change it seem can get it works..
Hi Biju
RX_ER has some specifics in RMII which is described in RMII specifications:
https://en.wikipedia.org/wiki/Media-independent_interface
http://ebook.pldworld.com/_eBook/-Telecommunications,Networks-/TCPIP/RMII/rmii_rev12.pdf
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------