imx6ul双网口改单网口怎么配置设备树
我想保留网口1,去掉网口二,但是fec2disabled后第一个网口也不能用了,请问该怎么配置? 295 &fec1 { 296 pinctrl-names = "default";297 pinctrl-0 = <&pinctrl_enet1>;
298 phy-mode = "rmii";
299 phy-handle = <ðphy0>;
300 status = "okay";
301 };
302
303 &fec2 {
304 pinctrl-names = "default";
305 pinctrl-0 = <&pinctrl_enet2>;
306 phy-mode = "rmii";
307 phy-handle = <ðphy1>;
308 status = "disabled";
309
310 mdio {
311 #address-cells = <1>;
312 #size-cells = <0>;
313
314 ethphy0: ethernet-phy@2 {
315 compatible = "ethernet-phy-ieee802.3-c22";
316 reg = <2>;
317 };
318
319 ethphy1: ethernet-phy@1 {
320 compatible = "ethernet-phy-ieee802.3-c22";
321 reg = <1>;
322 };
323 };
324 };
848 pinctrl_enet1: enet1grp {
849 fsl,pins = <
850 MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN0x1b0b0
851 MX6UL_PAD_ENET1_RX_ER__ENET1_RX_ER0x1b0b0
852 MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b0
853 MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b0
854 MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN0x1b0b0
855 MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b0b0
856 MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b0b0
857 MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK10x4001b031
858 >;
859 };
875 pinctrl_enet2: enet2grp {
876 fsl,pins = <
877 MX6UL_PAD_GPIO1_IO07__ENET2_MDC 0x1b0b0
878 MX6UL_PAD_GPIO1_IO06__ENET2_MDIO 0x1b0b0
879 MX6UL_PAD_ENET2_RX_EN__ENET2_RX_EN0x1b0b0
880 MX6UL_PAD_ENET2_RX_ER__ENET2_RX_ER0x1b0b0
881 MX6UL_PAD_ENET2_RX_DATA0__ENET2_RDATA00 0x1b0b0
882 MX6UL_PAD_ENET2_RX_DATA1__ENET2_RDATA01 0x1b0b0
883 MX6UL_PAD_ENET2_TX_EN__ENET2_TX_EN0x1b0b0
884 MX6UL_PAD_ENET2_TX_DATA0__ENET2_TDATA00 0x1b0b0
885 MX6UL_PAD_ENET2_TX_DATA1__ENET2_TDATA01 0x1b0b0
886 MX6UL_PAD_ENET2_TX_CLK__ENET2_REF_CLK20x4001b031
887 MX6UL_PAD_SNVS_TAMPER0__GPIO5_IO000x80000000
888 >;
889 };
两个网口共用mdio,mdio在&fec2里,关掉就不能用了,需要改一下 zhichao 发表于 2019-12-19 17:36
两个网口共用mdio,mdio在&fec2里,关掉就不能用了,需要改一下
我把mdio移到fec1里面去后,还是不能用。 下边还有MDIO相关配置,也得修改,光改一处不行啊 本帖最后由 青晗 于 2020-3-8 20:44 编辑
问题解决了吗,我也遇到这个问题 您设置的reg = <2>;的值不对
页:
[1]