phy-rcar-usb-gen2: add device tree documentation
Subsystems (4)
PATCH 6/11 phy-rcar-usb-gen2: add device tree documentation
Documentation for phy-rcar-usb-gen2 device tree binding.
--
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
--- .../bindings/usb/renesas,rcar-gen2-usb-phy.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txt
Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txt new file +16 -0
@@ -0,0 +1,16 @@ +Renesas RCar gen2 USB PHY bindings + +Required properties: + - compatible: "renesas,usb-phy-r8a7790" for the R8A7790 SoC or + "renesas,rcar-gen2-usb-phy" for any generic comaptible device. + - reg : A single region to access device registers + - clocks : The reference to the clock to use for this block + - clock-names : The name for the clock at index 0 (must be "usbhs") + +Note, interrupt is currently not supported by the driver, but there should +be a node in the device tree for it. + +Optional properties: + + - renesas,usb0-hs: boolean, if present USB0 is connected to HS device. + - renesas,usb2-ss: boolean, if present USB2 is connected to XHCI controller.
Signature · 1 line
1.8.5.3
Hello.
Quoted 1 line · Ben Dooks
Documentation for phy-rcar-usb-gen2 device tree binding.
Only phy-rcar-gen2-usb.
Quoted 1 line
Signed-off-by Ben Dooks <[email protected]>
That's the latest posting of the binding document I've found. It wasn't
posted to linux-usb.
Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txt line 5
Quoted 11 lines
Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txt new file +5
-0@@ -0,0 +1,16 @@ +Renesas RCar gen2 USB PHY bindings + +Required properties: + - compatible: "renesas,usb-phy-r8a7790" for the R8A7790 SoC or + "renesas,rcar-gen2-usb-phy" for any generic comaptible device.
s/comaptible/compatible/. And the second value is seriously not needed.
If you can't test the patch with all SoCs, and are in doubt, just leave one SoC specific value, and let the others add other values after testing.
Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txt line 11
Quoted 6 lines
Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txt new file +6
-0+ - reg : A single region to access device registers + - clocks : The reference to the clock to use for this block + - clock-names : The name for the clock at index 0 (must be "usbhs") + +Note, interrupt is currently not supported by the driver, but there should +be a node in the device tree for it.
Hm, I thought USBHS PHY itself doesn't have any interrupts. Should check
the manuals on whether the USBHS interrupt has any PHY specific conditions...
Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txt line 15
Quoted 4 lines
Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txt new file +4
-0+ +Optional properties: + + - renesas,usb0-hs: boolean, if present USB0 is connected to HS device.
This description seems completely wrong. The property and bits it control
don't have to do with USB device connected to USB channel 0; they have to do with the host/function controller, and in this case both alternatives (EHCI and USBHS) support HS, so the property doesn't provide any real distinction.
Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txt line 16
Quoted 1 line
Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txt new file +1
-0+ - renesas,usb2-ss: boolean, if present USB2 is connected to XHCI controller.
It wouldn't hurt to describe what it is connected to USB2 if the property
is missing.
WBR, Sergei
Quoted 22 lines · Sergei Shtylyov
Hello.
Quoted 1 line · Ben Dooks
Documentation for phy-rcar-usb-gen2 device tree binding.
Only phy-rcar-gen2-usb.
Quoted 1 line
Signed-off-by Ben Dooks <[email protected]>That's the latest posting of the binding document I've found. It
wasn't posted to linux-usb.Quoted 9 lines
diff --git
a/Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txtb/Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txtnew file mode 100644
index 0000000..e1d2dd9Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txt new file +1
-0@@ -0,0 +1,16 @@ +Renesas RCar gen2 USB PHY bindings
Quoted 8 lines
Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txt line 5
Quoted 4 lines
Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txt new file +4
-0+ +Required properties: + - compatible: "renesas,usb-phy-r8a7790" for the R8A7790 SoC or + "renesas,rcar-gen2-usb-phy" for any generic comaptible device.s/comaptible/compatible/. And the second value is seriously not needed.
If you can't test the patch with all SoCs, and are in doubt, just leave one SoC specific value, and let the others add other values after testing.
Ok, will remove the generic one.
Quoted 11 lines
Quoted 7 lines
Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txt new file +5
-0+ - reg : A single region to access device registers + - clocks : The reference to the clock to use for this block + - clock-names : The name for the clock at index 0 (must be "usbhs") + +Note, interrupt is currently not supported by the driver, but thereshould
+be a node in the device tree for it.Hm, I thought USBHS PHY itself doesn't have any interrupts. Should
check the manuals on whether the USBHS interrupt has any PHY specific conditions...
I will check, there is mention of an OtG interrupt in the GIC irq map.
Quoted 11 lines
Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txt line 15
Quoted 4 lines
Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txt new file +4
-0+ +Optional properties: + + - renesas,usb0-hs: boolean, if present USB0 is connected to HS device.This description seems completely wrong. The property and bits it
control don't have to do with USB device connected to USB channel 0; they have to do with the host/function controller, and in this case both alternatives (EHCI and USBHS) support HS, so the property doesn't provide any real distinction.
Quoted 7 lines
Quoted 2 lines
+ - renesas,usb2-ss: boolean, if present USB2 is connected to XHCI controller.
It wouldn't hurt to describe what it is connected to USB2 if the
property is missing.WBR, Sergei
Thanks, I will look over these tomorrow.
Any chance of a patch to fix the issues found in the driver by then?
Signature · 2 lines
Ben Dooks http://www.codethink.co.uk/ Senior Engineer Codethink - Providing Genius
Hello.
Quoted 17 lines · Ben Dooks
Quoted 17 lines
Quoted 1 line
Documentation for phy-rcar-usb-gen2 device tree binding.
Only phy-rcar-gen2-usb.
Quoted 1 line
Signed-off-by Ben Dooks <[email protected]>That's the latest posting of the binding document I've found. It
wasn't posted to linux-usb.Quoted 8 lines
diff --git
a/Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txtb/Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txtnew file mode 100644
index 0000000..e1d2dd9Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txt new file +0
-0@@ -0,0 +1,16 @@
[...]
Quoted 12 lines
Quoted 11 lines
Quoted 7 lines
+ - reg : A single region to access device registers
+ - clocks : The reference to the clock to use for this block
+ - clock-names : The name for the clock at index 0 (must be "usbhs")Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txt new file +2
-0+ +Note, interrupt is currently not supported by the driver, but thereshould
+be a node in the device tree for it.Hm, I thought USBHS PHY itself doesn't have any interrupts. Should
check the manuals on whether the USBHS interrupt has any PHY specific conditions...
Quoted 1 line
I will check, there is mention of an OtG interrupt in the GIC irq map.
This PHY is not OTG, and neither USBHS itself. I'm not sure which IP that
interrupt belongs to though...
WBR, Sergei
Quoted 35 lines · Sergei Shtylyov
Hello.
Quoted 18 lines · Ben Dooks
Quoted 18 lines
Quoted 1 line
Documentation for phy-rcar-usb-gen2 device tree binding.
Only phy-rcar-gen2-usb.
Quoted 1 line
Signed-off-by Ben Dooks <[email protected]>That's the latest posting of the binding document I've found. It
wasn't posted to linux-usb.Quoted 9 lines
diff --git
a/Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txtb/Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txtnew file mode 100644
index 0000000..e1d2dd9
---/dev/null
+++b/Documentation/devicetree/bindings/usb/renesas,rcar-gen2-usb-phy.txt(quoted diff) +0
-0@@ -0,0 +1,16 @@[...]
Quoted 11 lines
Quoted 11 lines
Quoted 7 lines
+ - reg : A single region to access device registers
+ - clocks : The reference to the clock to use for this block
+ - clock-names : The name for the clock at index 0 (must be "usbhs")(quoted diff) +2
-0+ +Note, interrupt is currently not supported by the driver, but thereshould
+be a node in the device tree for it.Hm, I thought USBHS PHY itself doesn't have any interrupts. Should
check the manuals on whether the USBHS interrupt has any PHY specific conditions...
Quoted 4 lines
Quoted 1 line
I will check, there is mention of an OtG interrupt in the GIC irq map.
This PHY is not OTG, and neither USBHS itself. I'm not sure which IP
that interrupt belongs to though...
I though maybe it was one of the special-function pins for detecting a device, but there's no other documentation on the situation that I am considering just removing the interrupt from the documentation.
Signature · 2 lines
Ben Dooks http://www.codethink.co.uk/ Senior Engineer Codethink - Providing Genius