openwrtv3/target/linux/lantiq
Johann Neuhauser f2f7802148 lantiq: etop: pass devicetree node to phy driver
Use of_mdiobus_register() to pass the ethernet phy node to the phy
drivers. This is needed for the at8030 phy driver which needs to know
the GPIO which is connected to the ar8030 reset pin.

This driver expects a child in gsw/etop node named "mdio-bus", which has
the ethernet phys defined:

&gsw {
	phy-mode = "rmii";
	phy-handle = <&phy0>;
	mtd-mac-address = <&ath9k_cal 0xa91>;
	mtd-mac-address-increment = <(-2)>;

	mdio-bus {
		#address-cells = <1>;
		#size-cells = <0>;
		reg = <0>;

		phy0: ethernet-phy@0 {
			reg = <0>;
			reset-gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
		};
	};
};

Fallback to mdiobus_register() if no mdio-bus child node exists. This
way we don't need to touch all xway dts files, for which we don't know
the actual address on the mdio bus.

Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
2018-07-18 19:17:46 +02:00
..
ase lantiq: switch to kernel 4.14 2018-05-17 07:40:19 +02:00
base-files lantiq: fix arcadyan vg3503j switch port indexing 2018-06-21 22:00:03 +02:00
falcon lantiq: switch to kernel 4.14 2018-05-17 07:40:19 +02:00
files/firmware/lantiq lantiq: rename gphy firmware 2018-02-20 19:25:17 +01:00
files-4.14/arch/mips/boot/dts lantiq: enlarge AVM Fritz!Box 3370 flash 2018-07-04 01:20:02 +02:00
image lantiq: complete AVM FRITZ!Box 3370 support 2018-05-17 07:40:19 +02:00
patches-4.14 lantiq: etop: pass devicetree node to phy driver 2018-07-18 19:17:46 +02:00
xrx200 lantiq-vdsl-fw: update to provide recent vectoring firmware 2018-06-15 12:45:37 +02:00
xway lantiq: switch to kernel 4.14 2018-05-17 07:40:19 +02:00
xway_legacy lantiq: switch to kernel 4.14 2018-05-17 07:40:19 +02:00
config-4.14 kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
Makefile lantiq: switch to kernel 4.14 2018-05-17 07:40:19 +02:00
modules.mk fix i2c-lantiq module 2012-12-16 10:03:18 +00:00