From 6eaf8b3d89571992a0aa7142cfab3f1dcef3c802 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Mon, 13 Nov 2017 22:39:01 +0100 Subject: lantiq: kernel 4.14: update dts files Updated the devicetree source files to make use of the following upstreamed drivers: - xrx200 ethernet phy - reset controller unit - dwc2 - fpi Use our custom xrx200 ethernet phy compatible to support boards, which have switched the vr9 revision during lifetime, with a single devicetree source file. By switching to the dwc2 driver + usb phy framework, we don't need to used our custom gpio power patch and can use a fixed regulator instead. Signed-off-by: Hauke Mehrtens Signed-off-by: Mathias Kresin --- .../files-4.14/arch/mips/boot/dts/BTHOMEHUBV5A.dts | 34 +++++++++++++++++----- 1 file changed, 26 insertions(+), 8 deletions(-) (limited to 'target/linux/lantiq/files-4.14/arch/mips/boot/dts/BTHOMEHUBV5A.dts') diff --git a/target/linux/lantiq/files-4.14/arch/mips/boot/dts/BTHOMEHUBV5A.dts b/target/linux/lantiq/files-4.14/arch/mips/boot/dts/BTHOMEHUBV5A.dts index feefc8519e..a3be0a5c9c 100644 --- a/target/linux/lantiq/files-4.14/arch/mips/boot/dts/BTHOMEHUBV5A.dts +++ b/target/linux/lantiq/files-4.14/arch/mips/boot/dts/BTHOMEHUBV5A.dts @@ -3,6 +3,7 @@ #include "vr9.dtsi" #include +#include / { compatible = "bt,homehub-v5a", "lantiq,xway", "lantiq,vr9"; @@ -25,13 +26,6 @@ reg = <0x0 0x8000000>; }; - gphy-xrx200 { - compatible = "lantiq,phy-xrx200"; - firmware1 = "lantiq/xrx200_phy11g_a14.bin"; /*VR9 1.1*/ - firmware2 = "lantiq/xrx200_phy11g_a22.bin"; /*VR9 1.2*/ - phys = [ 00 01 ]; - }; - gpio-keys-polled { compatible = "gpio-keys-polled"; #address-cells = <1>; @@ -108,6 +102,18 @@ gpios = <&gpio 19 GPIO_ACTIVE_HIGH>; }; }; + + usb_vbus: regulator-usb-vbus { + compatible = "regulator-fixed"; + + regulator-name = "USB_VBUS"; + + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + + gpio = <&gpio 33 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; }; ð0 { @@ -179,6 +185,14 @@ }; }; +&gphy0 { + lantiq,gphy-mode = ; +}; + +&gphy1 { + lantiq,gphy-mode = ; +}; + &gpio { pinctrl-names = "default"; pinctrl-0 = <&state_default>; @@ -275,7 +289,11 @@ }; }; +&usb_phy0 { + status = "okay"; + phy-supply = <&usb_vbus>; +}; + &usb0 { status = "okay"; - gpios = <&gpio 33 GPIO_ACTIVE_HIGH>; }; -- cgit v1.2.3