Hello. We designed a board which connected LAN9221 (an ethernet chip) to i.MX 6ULL‘s weim bus. LAN9221 is the only device on weim bus. The following is the device tree.
&weim {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_weim>;
status = "okay";
#address-cells = <2>;
#size-cells = <1>;
ranges = <0 0 0x50000000 0x08000000>;
clocks = <&clks IMX6UL_CLK_EIM_SLOW_PODF>,
<&clks IMX6UL_CLK_IPG>;
fsl,weim-cs-gpr = <&gpr>;
lan9221@0,0 {
compatible = "smsc,lan9115";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lan9221>;
smsc,irq-push-pull;
reg = <0 0x0 0x1000>;
reg-shift = <1>;
reg-io-width = <2>;
fsl,weim-cs-timing = <0x30610001 0x00001002 0x1c324444 0x00000000 0x1c680924 0x00000000>;
interrupt-parent = <&gpio1>;
interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
phy-mode = "mii";
reset-pin = <&gpio2 16 GPIO_ACTIVE_LOW>;
};
};
LAN9221's driver tries to read regs during probe, but there is no CS output with oscilloscope watching.
I think the clock is down maybe, and try to read CCM_CCGR6 reg before accessing LAN9221, the reg is 0xFFFFFFFF.
Please help me find where the problem comes from. Thanks.
Hi @BH1SVR ,
I hope you are doing well.