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.
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
..
b53 kernel: b53: fix compilation on BCM47XX 6 years ago
adm6996.c generic: provide get_port_stats() on adm6996 switches 7 years ago
adm6996.h treewide: replace nbd@openwrt.org with nbd@nbd.name 8 years ago
ar8216.c ar8216: reduce latency by inserting scheduling points into code hogging the CPU 6 years ago
ar8216.h kernel: ar83xx: add support to configure per port VLAN priority 6 years ago
ar8327.c ar8216: reduce latency even further for ar8327 chips 6 years ago
ar8327.h kernel: ar83xx: add support to configure per port VLAN priority 6 years ago
ip17xx.c ip17xx: correct aneg_done return value 7 years ago
mvsw61xx.c mvsw61xx: add support for MV88E6352 8 years ago
mvsw61xx.h mvsw61xx: add support for MV88E6352 8 years ago
mvswitch.c mvswitch: fix autonegotiation issue 7 years ago
mvswitch.h treewide: replace nbd@openwrt.org with nbd@nbd.name 8 years ago
psb6970.c kernel: update phy drivers for 4.9 8 years ago
rtl8306.c kernel: generic: Add kernel 4.14 support 7 years ago
rtl8366_smi.c kernel: rtl8366-smi: add Realtek switch management via mii-bus 6 years ago
rtl8366_smi.h kernel: rtl8366-smi: add Realtek switch management via mii-bus 6 years ago
rtl8366rb.c generic: provide get_port_stats() on rtl836x switches 7 years ago
rtl8366s.c generic: provide get_port_stats() on rtl836x switches 7 years ago
rtl8367.c generic: provide get_port_stats() on rtl836x switches 7 years ago
rtl8367b.c kernel: rtl8367b: drop redundant compatible 6 years ago
swconfig.c swconfig: convert swdevs_lock from spinlock to mutex 6 years ago
swconfig_leds.c generic: swconfig: reduce lock duration on sysfs files 6 years ago