openwrtv4/target/linux/generic/files/drivers/net/phy
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
..
b53 kernel: b53: fix compilation on BCM47XX 2018-03-21 10:54:14 +01:00
adm6996.c generic: provide get_port_stats() on adm6996 switches 2017-09-01 09:30:35 +02:00
adm6996.h treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
ar8216.c ar8216: reduce latency by inserting scheduling points into code hogging the CPU 2018-04-08 09:14:23 +02:00
ar8216.h kernel: ar83xx: add support to configure per port VLAN priority 2018-02-20 10:33:34 +01:00
ar8327.c ar8216: reduce latency even further for ar8327 chips 2018-04-08 09:27:14 +02:00
ar8327.h kernel: ar83xx: add support to configure per port VLAN priority 2018-02-20 10:33:34 +01:00
ip17xx.c ip17xx: correct aneg_done return value 2017-06-07 11:06:29 +02:00
mvsw61xx.c mvsw61xx: add support for MV88E6352 2017-01-13 17:12:40 +01:00
mvsw61xx.h mvsw61xx: add support for MV88E6352 2017-01-13 17:12:40 +01:00
mvswitch.c mvswitch: fix autonegotiation issue 2017-06-07 11:06:12 +02:00
mvswitch.h treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
psb6970.c kernel: update phy drivers for 4.9 2017-02-03 12:35:44 +01:00
rtl8306.c kernel: generic: Add kernel 4.14 support 2017-12-16 22:11:19 +01:00
rtl8366_smi.c kernel: rtl8366-smi: add Realtek switch management via mii-bus 2018-06-25 20:52:18 +02:00
rtl8366_smi.h kernel: rtl8366-smi: add Realtek switch management via mii-bus 2018-06-25 20:52:18 +02:00
rtl8366rb.c generic: provide get_port_stats() on rtl836x switches 2017-09-01 09:30:35 +02:00
rtl8366s.c generic: provide get_port_stats() on rtl836x switches 2017-09-01 09:30:35 +02:00
rtl8367.c generic: provide get_port_stats() on rtl836x switches 2017-09-01 09:30:35 +02:00
rtl8367b.c kernel: rtl8367b: drop redundant compatible 2018-06-25 20:52:18 +02:00
swconfig.c swconfig: convert swdevs_lock from spinlock to mutex 2018-03-12 12:50:46 +01:00
swconfig_leds.c generic: swconfig: reduce lock duration on sysfs files 2018-02-14 07:54:24 +01:00