[OpenWrt-Devel] [PATCH 2/3] kernel: rtl8367b: add configuration for extended interface 2

2019-08-15 Thread Serge Vasilugin
mii-bus = <>; phy_id = <29>; }; This patch is independent of the rtl8366_smi patch (set switch phy address) and may be helpful for device with rtl8367rb connected through EXT2. Signed-off-by: Serge Vasilugin --- a/target/linux/generic/files/drivers/net/phy/rtl

[OpenWrt-Devel] [PATCH 3/3] kernel: rtl8367b: initial support for Realtek switch rtl8367s

2019-08-15 Thread Serge Vasilugin
device... Signed-off-by: Serge Vasilugin --- a/target/linux/generic/files/drivers/net/phy/rtl8367b.c +++ b/target/linux/generic/files/drivers/net/phy/rtl8367b.c @@ -588,6 +588,20 @@ {0x133E, 0x000E}, {0x133F, 0x0010}, }; +static const struct rtl8367b_initval rtl8367c_initvals0

[OpenWrt-Devel] [PATCH 0/3] kernel: add support for realtek rtl8367s

2019-08-15 Thread Serge Vasilugin
Adding support for tplink archer c5 v4 some problems arise: 1. Device use unsupported rtl8367s switch. 2. rtl8367s switch have non default 0 phy address at mii-bus (29). 3. rtl8367s switch is connected through unsupported extended interface 2. The patches resolve these problems. Many info and

[OpenWrt-Devel] [PATCH 1/3] kernel: rtl8366_smi: explicitly set phy addr for switch

2019-08-15 Thread Serge Vasilugin
ek,extif2 = <1 0 1 1 1 1 1 1 2>; mii-bus = <>; cpu-port = <7>; } Use default 0 address if not set. Backward compatibility tested on tplink archer c2 v1 (rtl8367rb switch) Signed-off-by: Serge Vasilugin --- a/target/linux/generic/files/d