Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: usb: Bring back phy-names

While the original bindings that were superseeded by the YAML schemas
didn't mention that phy-names was needed, it turns out that phy-names is
required if phys is set according to phy/phy-bindings.txt.

Let's add back those properties.

Fixes: 14ec072a19ad ("dt-bindings: usb: Convert USB HCD generic binding to YAML")
Fixes: c93bcace1098 ("dt-bindings: usb: Convert the generic OHCI binding to YAML")
Fixes: c3e2485d5f4f ("dt-bindings: usb: Convert the generic EHCI binding to YAML")
Reported-by: Emmanuel Vadot <manu@bidouilliste.com>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20191002112651.100504-2-mripard@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Maxime Ripard and committed by
Greg Kroah-Hartman
3aa3c66a e6064cf4

+17 -2
+6 -1
Documentation/devicetree/bindings/usb/generic-ehci.yaml
··· 63 63 description: 64 64 Set this flag to force EHCI reset after resume. 65 65 66 - phys: true 66 + phys: 67 + description: PHY specifier for the USB PHY 68 + 69 + phy-names: 70 + const: usb 67 71 68 72 required: 69 73 - compatible ··· 93 89 interrupts = <39>; 94 90 clocks = <&ahb_gates 1>; 95 91 phys = <&usbphy 1>; 92 + phy-names = "usb"; 96 93 }; 97 94 98 95 ...
+6 -1
Documentation/devicetree/bindings/usb/generic-ohci.yaml
··· 67 67 description: 68 68 Overrides the detected port count 69 69 70 - phys: true 70 + phys: 71 + description: PHY specifier for the USB PHY 72 + 73 + phy-names: 74 + const: usb 71 75 72 76 required: 73 77 - compatible ··· 88 84 interrupts = <64>; 89 85 clocks = <&usb_clk 6>, <&ahb_gates 2>; 90 86 phys = <&usbphy 1>; 87 + phy-names = "usb"; 91 88 }; 92 89 93 90 ...
+5
Documentation/devicetree/bindings/usb/usb-hcd.yaml
··· 18 18 description: 19 19 List of all the USB PHYs on this HCD 20 20 21 + phy-names: 22 + description: 23 + Name specifier for the USB PHY 24 + 21 25 examples: 22 26 - | 23 27 usb { 24 28 phys = <&usb2_phy1>, <&usb3_phy1>; 29 + phy-names = "usb"; 25 30 };