aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7620a.dtsi
diff options
context:
space:
mode:
authorVianney le Clément de Saint-Marcq <code@quartic.eu>2018-04-07 14:02:25 +0200
committerFelix Fietkau <nbd@nbd.name>2018-04-07 17:53:34 +0200
commiteda27d755729b65e3620e60dc0340a39b0d9e0f1 (patch)
tree49bc7c80eeb0a33e395e10b9cdc915ec4a4827eb /target/linux/ramips/dts/mt7620a.dtsi
parent08ccfdea78b1171ccc5667e79de6610273069c8b (diff)
downloadupstream-eda27d755729b65e3620e60dc0340a39b0d9e0f1.tar.gz
upstream-eda27d755729b65e3620e60dc0340a39b0d9e0f1.tar.bz2
upstream-eda27d755729b65e3620e60dc0340a39b0d9e0f1.zip
ramips: fix usbphy DT nodes on linux 4.14
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 <code@quartic.eu>
Diffstat (limited to 'target/linux/ramips/dts/mt7620a.dtsi')
-rw-r--r--target/linux/ramips/dts/mt7620a.dtsi9
1 files changed, 5 insertions, 4 deletions
diff --git a/target/linux/ramips/dts/mt7620a.dtsi b/target/linux/ramips/dts/mt7620a.dtsi
index 882cf88104..83ff102745 100644
--- a/target/linux/ramips/dts/mt7620a.dtsi
+++ b/target/linux/ramips/dts/mt7620a.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>;
};
@@ -427,8 +427,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";
@@ -501,7 +502,7 @@
interrupt-parent = <&intc>;
interrupts = <18>;
- phys = <&usbphy 1>;
+ phys = <&usbphy>;
phy-names = "usb";
status = "disabled";
@@ -514,7 +515,7 @@
interrupt-parent = <&intc>;
interrupts = <18>;
- phys = <&usbphy 1>;
+ phys = <&usbphy>;
phy-names = "usb";
status = "disabled";