You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/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>
6 years ago
..
backport-4.9 kernel: bump 4.9 to 4.9.108 6 years ago
backport-4.14 kernel: atm: pppoatm fix vc-mux connection failures 6 years ago
files kernel: rtl8366-smi: add Realtek switch management via mii-bus 6 years ago
hack-4.9 kernel: bump 4.9 to 4.9.108 6 years ago
hack-4.14 kernel: cleanup offload hooks on netdev unregister 6 years ago
image treewide: replace nbd@openwrt.org with nbd@nbd.name 8 years ago
other-files kernel: move initramfs's init script out of base-files 7 years ago
pending-3.18 Re-enable arbitrary IPv6 addresses as outer ip4-in-ip6 tunnel source address 6 years ago
pending-4.4 Re-enable arbitrary IPv6 addresses as outer ip4-in-ip6 tunnel source address 6 years ago
pending-4.9 Re-enable arbitrary IPv6 addresses as outer ip4-in-ip6 tunnel source address 6 years ago
pending-4.14 Re-enable arbitrary IPv6 addresses as outer ip4-in-ip6 tunnel source address 6 years ago
PATCHES kernel: update PATCHES with a stricter policy 11 years ago
config-3.18 kernel: Restrict dmesg output to root. 6 years ago
config-4.4 kernel: Restrict dmesg output to root. 6 years ago
config-4.9 kernel: bump 4.9 to 4.9.100 6 years ago
config-4.14 kernel: enable THIN_ARCHIVES by default 6 years ago