RE: [PATCH] phy: rcar-gen3-usb2: Add R-Car Gen3 USB2 PHY driver
From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Date: 2015-09-25 12:42:30
Also in:
linux-sh, lkml
Hi Rob, Thank you for your comment! And, I'm sorry for the delayed response.
Sent: Monday, September 21, 2015 11:01 PM On 09/18/2015 01:08 AM, Kishon Vijay Abraham I wrote:quoted
Hi, On Tuesday 25 August 2015 02:40 PM, Yoshihiro Shimoda wrote:quoted
This patch adds support for R-Car generation 3 USB2 PHY driver. This SoC has 3 EHCI/OHCI channels, and the channel 0 is shared with the HSUSB (USB2.0 peripheral) device.From the description it looks like it's a single PHY with multiple channels. In that case you should have a singe dt node for the PHY provider and each channel should be modelled as the child node of the PHY provider dt node.You only need sub-nodes if you need per channel properties. Otherwise, #phy-cells can be 1 and the cell value can be the channel number.
Thank you for the information. I got it. < snip >
quoted
quoted
diff --git a/Documentation/devicetree/bindings/phy/rcar-gen3-phy-usb2.txtb/Documentation/devicetree/bindings/phy/rcar-gen3-phy-usb2.txtquoted
quoted
new file mode 100644 index 0000000..1d57766--- /dev/null +++ b/Documentation/devicetree/bindings/phy/rcar-gen3-phy-usb2.txt@@ -0,0 +1,35 @@ +* Renesas R-Car generation 3 USB 2.0 PHY + +This file provides information on what the device node for the R-Car generation +3 USB 2.0 PHY contains. + +Required properties: +- compatible: "renesas,usb2-phy-r8a7795" if the device is a part of an R8A7795 + SoC. +- reg: offset and length of the USB2.0 host register block.host register block? You mean phy register block?
Oops, thank you for the point. I will fix it.
quoted
quoted
+- reg-names: must be "usb2". +- clocks: clock phandle and specifier pair(s). +- #phy-cells: see phy-bindings.txt in the same directory, must be <0>. + +Optional properties: +To use a USB channel where EHCI/OHCI and HSUSB are combined, the device tree +node should set HSUSB properties to reg and reg-names properties: +- reg: offset and length of the HSUSB register block. +- reg-names: must be "hsusb". + +Example (R-Car H3): + + usb-phy@ee080200 { + compatible = "renesas,usb2-phy-r8a7795"; + reg = <0 0xee080200 0 0x6ff>, <0 0xe6590100 0 0x100>; + reg-names = "usb2", "hsusb";hsusb is missing in Documentation.usb2 is the host controller? It is questionable that these should be combined. Does this appear under another node? If so, don't overlap resources in the DT.
Thank you for the point. I don't think that this appears under another node. However, to avoid such a situation, I should change the name somehow. Best regards, Yoshihiro Shimoda