[OpenWrt-Devel] Lantiq xrx200 - switch rtl8367rb controlled via builtin mdio (not gpio sck/sda!) in EasyBox 904xDSL

Martin Blumenstingl martin.blumenstingl at googlemail.com
Tue Jul 21 15:33:47 EDT 2015

Hi Arnold,

On Thu, Jun 18, 2015 at 11:15 PM, Jonas Gorski <jogo at 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)


[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 at lists.openwrt.org

More information about the openwrt-devel mailing list