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>
This commit is contained in:
committed by
Felix Fietkau
parent
08ccfdea78
commit
eda27d7557
@@ -35,7 +35,7 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
sysc: sysc@0 {
|
||||
compatible = "ralink,rt3352-sysc", "ralink,rt3050-sysc";
|
||||
compatible = "ralink,rt3352-sysc", "ralink,rt3050-sysc", "syscon";
|
||||
reg = <0x0 0x100>;
|
||||
};
|
||||
|
||||
@@ -334,8 +334,9 @@
|
||||
|
||||
usbphy: usbphy {
|
||||
compatible = "ralink,rt3352-usbphy";
|
||||
#phy-cells = <1>;
|
||||
#phy-cells = <0>;
|
||||
|
||||
ralink,sysctl = <&sysc>;
|
||||
resets = <&rstctrl 22 &rstctrl 25>;
|
||||
reset-names = "host", "device";
|
||||
clocks = <&clkctrl 18 &clkctrl 20>;
|
||||
@@ -356,7 +357,7 @@
|
||||
compatible = "generic-ehci";
|
||||
reg = <0x101c0000 0x1000>;
|
||||
|
||||
phys = <&usbphy 1>;
|
||||
phys = <&usbphy>;
|
||||
phy-names = "usb";
|
||||
|
||||
interrupt-parent = <&intc>;
|
||||
@@ -369,7 +370,7 @@
|
||||
compatible = "generic-ohci";
|
||||
reg = <0x101c1000 0x1000>;
|
||||
|
||||
phys = <&usbphy 1>;
|
||||
phys = <&usbphy>;
|
||||
phy-names = "usb";
|
||||
|
||||
interrupt-parent = <&intc>;
|
||||
|
||||
Reference in New Issue
Block a user