From eda27d755729b65e3620e60dc0340a39b0d9e0f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vianney=20le=20Cl=C3=A9ment=20de=20Saint-Marcq?= Date: Sat, 7 Apr 2018 14:02:25 +0200 Subject: ramips: fix usbphy DT nodes on linux 4.14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Ralink USB PHY driver merged into mainline has a slightly different device tree binding than the patch that was used with linux 4.9. The new driver requires a `ralink,sysctl` node pointing to the `syscon` node. This patch also sets `#phy-cells` to 0, as recommended by the mainline documentation [1]. [1] Documentation/devicetree/bindings/phy/ralink-usb-phy.txt Signed-off-by: Vianney le Clément de Saint-Marcq --- target/linux/ramips/dts/mt7620n.dtsi | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'target/linux/ramips/dts/mt7620n.dtsi') diff --git a/target/linux/ramips/dts/mt7620n.dtsi b/target/linux/ramips/dts/mt7620n.dtsi index ebaa094600..4eb1dde8a2 100644 --- a/target/linux/ramips/dts/mt7620n.dtsi +++ b/target/linux/ramips/dts/mt7620n.dtsi @@ -35,7 +35,7 @@ #size-cells = <1>; sysc: sysc@0 { - compatible = "ralink,mt7620a-sysc", "ralink,rt3050-sysc"; + compatible = "ralink,mt7620a-sysc", "ralink,rt3050-sysc", "syscon"; reg = <0x0 0x100>; }; @@ -269,8 +269,9 @@ usbphy: usbphy { compatible = "mediatek,mt7620-usbphy"; - #phy-cells = <1>; + #phy-cells = <0>; + ralink,sysctl = <&sysc>; resets = <&rstctrl 22 &rstctrl 25>; reset-names = "host", "device"; @@ -327,7 +328,7 @@ interrupt-parent = <&intc>; interrupts = <18>; - phys = <&usbphy 1>; + phys = <&usbphy>; phy-names = "usb"; status = "disabled"; @@ -337,7 +338,7 @@ compatible = "generic-ohci"; reg = <0x101c1000 0x1000>; - phys = <&usbphy 1>; + phys = <&usbphy>; phy-names = "usb"; interrupt-parent = <&intc>; -- cgit v1.2.3