Openwrt/target/linux/lantiq/patches-4.14
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
..
0001-MIPS-lantiq-add-pcie-driver.patch
0002-gpio-stp-xway-Implement-get-callback.patch
0004-MIPS-lantiq-add-atm-hack.patch
0008-MIPS-lantiq-backport-old-timer-code.patch
0018-MTD-nand-lots-of-xrx200-fixes.patch
0020-MTD-lantiq-handle-NO_XIP-on-cfi0001-flash.patch
0022-MTD-m25p80-allow-loading-mtd-name-from-OF.patch
0023-NET-PHY-add-led-support-for-intel-xway.patch
0024-MIPS-lantiq-autoselect-soc-rev-matching-fw.patch
0025-NET-MIPS-lantiq-adds-xrx200-net.patch
0027-01-net-phy-intel-xway-add-VR9-version-number.patch
0027-02-net-phy-intel-xway-add-VR9-v1.1-phy-ids.patch
0028-NET-lantiq-various-etop-fixes.patch
0030-GPIO-add-named-gpio-exports.patch
0031-I2C-MIPS-lantiq-add-FALC-ON-i2c-bus-master.patch
0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch
0042-arch-mips-increase-io_space_limit.patch
0050-USB-DWC2-make-the-lantiq-settings-match-vendor-drive.patch
0051-MIPS-lantiq-improve-USB-initialization.patch
0101-find_active_root.patch
0151-lantiq-ifxmips_pcie-use-of.patch
0152-lantiq-VPE.patch
0154-lantiq-pci-bar11mask-fix.patch
0155-lantiq-VPE-nosmp.patch
0160-owrt-lantiq-multiple-flash.patch
0300-MTD-cfi-cmdset-0001-disable-buffered-writes.patch
0301-xrx200-add-gphy-clk-src-device-tree-binding.patch
0400-Revert-MIPS-smp-mt-Use-CPU-interrupt-controller-IPI-.patch
0701-NET-lantiq-etop-of-mido.patch