Hi Arnold, On Thu, Jun 18, 2015 at 11:15 PM, Jonas Gorski <j...@openwrt.org> wrote: > There is no special chip, the RTL8367 provides several means of > accessing the chip registers; using MDIO registers is one of them. Jonas seems to be right! Out of interested I just checked the source code again and found more information in the u-boot source of the 904 xDSL: [0]
Make sure you check out "int rtl_sw_reset(u32 delay_msec)" (this seems to use GPIOs to reset the switch). Then there's "rtk_int32 smi_write(rtk_uint32 mAddrs, rtk_uint32 rData)" for writing data to the switch and "rtk_int32 smi_read(rtk_uint32 mAddrs, rtk_uint32 *rData)" for reading data. I also added Gabor Juhos to the CC list, maybe he can suggest how to proceed with the RTL8367B switch driver: 1. Rewrite the existing driver so it can also control the switch using MDIO 2. Write a separate rtl8367b_mdio driver (this could use e.g. ADM6996 as an example) Regards, Martin [0] https://github.com/uwehermann/easybox-904-xdsl-firmware/blob/master/package/infineon-utilities/feeds/ifx_feeds_uboot/open_uboot/src.904dsl/drivers/net/vr9_sw.c _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel