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/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>
6 years ago
..
ase lantiq: switch to kernel 4.14 6 years ago
base-files lantiq: fix arcadyan vg3503j switch port indexing 6 years ago
falcon lantiq: switch to kernel 4.14 6 years ago
files/firmware/lantiq lantiq: rename gphy firmware 6 years ago
files-4.14/arch/mips/boot/dts lantiq: enlarge AVM Fritz!Box 3370 flash 6 years ago
image lantiq: complete AVM FRITZ!Box 3370 support 6 years ago
patches-4.14 lantiq: etop: pass devicetree node to phy driver 6 years ago
xrx200 lantiq-vdsl-fw: update to provide recent vectoring firmware 6 years ago
xway lantiq: switch to kernel 4.14 6 years ago
xway_legacy lantiq: switch to kernel 4.14 6 years ago
Makefile lantiq: switch to kernel 4.14 6 years ago
config-4.14 kernel: only optimized for size if small_flash 6 years ago
modules.mk fix i2c-lantiq module 12 years ago