openwrtv4/target/linux/generic
Franz Flasch d4ac26ec49 kernel: rtl8366-smi: add Realtek switch management via mii-bus
Current version of rtl8366-smi module only supports Realtek switch
managment via two gpio lines. This adds Realtek switch
management via mii_bus. Tested on a Tp-link Archer C2 v1 (Mediatek
SoC mt7620a based)

dts-file configuration should look like this:

rtl8367rb {
	compatible = "realtek,rtl8367b";
	realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
	mii-bus = <&mdio0>;
};

&ethernet {
	status = "okay";
	mtd-mac-address = <&rom 0xf100>;
	pinctrl-names = "default";
	pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;

	port@5 {
		status = "okay";
		mediatek,fixed-link = <1000 1 1 1>;
		phy-mode = "rgmii";
	};

	mdio0: mdio-bus {
		status = "okay";
	};
};

Signed-off-by: Serge Vasilugin <vasilugin@yandex.ru>
Signed-off-by: Franz Flasch <franz.flasch@gmx.at>
2018-06-25 20:52:18 +02:00
..
backport-4.9 kernel: bump 4.9 to 4.9.108 2018-06-18 07:10:19 +02:00
backport-4.14 kernel: atm: pppoatm fix vc-mux connection failures 2018-06-18 15:27:15 +02:00
files kernel: rtl8366-smi: add Realtek switch management via mii-bus 2018-06-25 20:52:18 +02:00
hack-4.9 kernel: bump 4.9 to 4.9.108 2018-06-18 07:10:19 +02:00
hack-4.14 kernel: cleanup offload hooks on netdev unregister 2018-06-22 11:01:42 +02:00
image treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
other-files kernel: move initramfs's init script out of base-files 2017-04-04 14:06:40 +02:00
pending-3.18 Re-enable arbitrary IPv6 addresses as outer ip4-in-ip6 tunnel source address 2018-06-23 09:47:05 +02:00
pending-4.4 Re-enable arbitrary IPv6 addresses as outer ip4-in-ip6 tunnel source address 2018-06-23 09:47:05 +02:00
pending-4.9 Re-enable arbitrary IPv6 addresses as outer ip4-in-ip6 tunnel source address 2018-06-23 09:47:05 +02:00
pending-4.14 Re-enable arbitrary IPv6 addresses as outer ip4-in-ip6 tunnel source address 2018-06-23 09:47:05 +02:00
config-3.18 kernel: Restrict dmesg output to root. 2018-04-30 09:01:33 +02:00
config-4.4 kernel: Restrict dmesg output to root. 2018-04-30 09:01:33 +02:00
config-4.9 kernel: bump 4.9 to 4.9.100 2018-05-18 09:10:21 +02:00
config-4.14 kernel: enable THIN_ARCHIVES by default 2018-05-22 07:55:20 +02:00
PATCHES