dt/bindings: Add binding for the DA8xx MUSB driver
Subsystems (2)
PATCH v7 1/5 dt/bindings: Add binding for the DA8xx MUSB driver
DT binding for the TI DA8xx/OMAP-L1x/AM17xx/AM18xx MUSB driver.
---
v1: <initial>
v2:
- using standard properties "dr_mode", "mentor,power", "mentor,num-eps", "mentor,multipoint", "mentor,ram-bits"
- using "ti," prefix instead of "da8xx," for specific property names
- no wildcards in compatibility string
v3:
- added "reg", "interrupts" and "interrupt-names" properties
- wildcards in compatibility string
v4:
- compatibility string set to "ti,da830-musb"
- "mentor,num-eps", "mentor,multipoint", "mentor,ram-bits" properties removed and hardcoded
- "ti,phy20-clkmux-cfg" renamed to "ti,phy20-clkmux-pll" and changed to boolean
- removed "ti,hwmods"
v5:
- "ti,phy20-refclock-frequency" property made mandatory
v6:
- using "ti,usb2-phy-" prefix instead of "ti,phy20-" for the specific properties
v7:
- removed the "mentor,power" property; hard coded to 500mA in the code
.../devicetree/bindings/usb/da8xx-usb.txt | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/da8xx-usb.txt
Documentation/devicetree/bindings/usb/da8xx-usb.txt new file +43 -0
@@ -0,0 +1,43 @@ +TI DA8xx MUSB +~~~~~~~~~~~~~ +For DA8xx/OMAP-L1x/AM17xx/AM18xx platforms. + +Required properties: +~~~~~~~~~~~~~~~~~~~~ + - compatible : Should be set to "ti,da830-musb". + + - reg: Offset and length of the USB controller register set. + + - interrupts: The USB interrupt number. + + - interrupt-names: Should be set to "mc". + + - dr_mode: The USB operation mode. Should be one of "host", "peripheral" or "otg". + + - ti,usb2-phy-refclock-frequency : Integer. Defines the USB 2.0 PHY reference clock input + frequency in Hz in case the clock is generated by the internal PLL. + Supported values are 12MHz, 13MHz, 19.2MHz, 20MHz, 24MHz, 26MHz, 38.4MHz, 40MHz, 48MHz + + +Optional properties: +~~~~~~~~~~~~~~~~~~~~ + - ti,usb2-phy-clkmux-pll: Boolean. Defines the USB 2.0 PHY reference clock source. + If present the internal PLL is used as a clock source, otherwise the external + USB_REFCLKIN pin is used. + +Example: + + usb20: usb@1e00000 { + compatible = "ti,da830-musb"; + reg = <0x00200000 0x10000>; + interrupt-parent = <&intc>; + interrupts = <58>; + interrupt-names = "mc"; + + dr_mode = "host"; + + ti,usb2-phy-clkmux-pll; + ti,usb2-phy-refclock-frequency = <24000000>; + + status = "okay"; + };
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1456327573-16421-1-git-send-email-petr-Qh/[email protected]
Hi,
Quoted 3 lines · Petr Kulhavy
DT binding for the TI DA8xx/OMAP-L1x/AM17xx/AM18xx MUSB driver.
Signed-off-by Petr Kulhavy <petr-Qh/[email protected]>
Bin, another one to take a look.
Quoted 87 lines
---
v1: <initial>v2:
- using standard properties "dr_mode", "mentor,power", "mentor,num-eps", "mentor,multipoint", "mentor,ram-bits"
- using "ti," prefix instead of "da8xx," for specific property names
- no wildcards in compatibility stringv3:
- added "reg", "interrupts" and "interrupt-names" properties
- wildcards in compatibility stringv4:
- compatibility string set to "ti,da830-musb"
- "mentor,num-eps", "mentor,multipoint", "mentor,ram-bits" properties removed and hardcoded
- "ti,phy20-clkmux-cfg" renamed to "ti,phy20-clkmux-pll" and changed to boolean
- removed "ti,hwmods"v5:
- "ti,phy20-refclock-frequency" property made mandatoryv6:
- using "ti,usb2-phy-" prefix instead of "ti,phy20-" for the specific propertiesv7:
- removed the "mentor,power" property; hard coded to 500mA in the code.../devicetree/bindings/usb/da8xx-usb.txt | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/da8xx-usb.txtDocumentation/devicetree/bindings/usb/da8xx-usb.txt new file +43
-1@@ -0,0 +1,43 @@ +TI DA8xx MUSB +~~~~~~~~~~~~~ +For DA8xx/OMAP-L1x/AM17xx/AM18xx platforms. + +Required properties: +~~~~~~~~~~~~~~~~~~~~ + - compatible : Should be set to "ti,da830-musb". + + - reg: Offset and length of the USB controller register set. + + - interrupts: The USB interrupt number. + + - interrupt-names: Should be set to "mc". + + - dr_mode: The USB operation mode. Should be one of "host", "peripheral" or "otg". + + - ti,usb2-phy-refclock-frequency : Integer. Defines the USB 2.0 PHY reference clock input + frequency in Hz in case the clock is generated by the internal PLL. + Supported values are 12MHz, 13MHz, 19.2MHz, 20MHz, 24MHz, 26MHz, 38.4MHz, 40MHz, 48MHz + + +Optional properties: +~~~~~~~~~~~~~~~~~~~~ + - ti,usb2-phy-clkmux-pll: Boolean. Defines the USB 2.0 PHY reference clock source. + If present the internal PLL is used as a clock source, otherwise the external + USB_REFCLKIN pin is used. + +Example: + + usb20: usb@1e00000 { + compatible = "ti,da830-musb"; + reg = <0x00200000 0x10000>; + interrupt-parent = <&intc>; + interrupts = <58>; + interrupt-names = "mc"; + + dr_mode = "host"; + + ti,usb2-phy-clkmux-pll; + ti,usb2-phy-refclock-frequency = <24000000>; + + status = "okay"; + }; --1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 1 line
balbi
Quoted 48 lines · Petr Kulhavy
DT binding for the TI DA8xx/OMAP-L1x/AM17xx/AM18xx MUSB driver.
Signed-off-by Petr Kulhavy <petr-Qh/[email protected]>---
v1: <initial>v2:
- using standard properties "dr_mode", "mentor,power", "mentor,num-eps", "mentor,multipoint", "mentor,ram-bits"
- using "ti," prefix instead of "da8xx," for specific property names
- no wildcards in compatibility stringv3:
- added "reg", "interrupts" and "interrupt-names" properties
- wildcards in compatibility stringv4:
- compatibility string set to "ti,da830-musb"
- "mentor,num-eps", "mentor,multipoint", "mentor,ram-bits" properties removed and hardcoded
- "ti,phy20-clkmux-cfg" renamed to "ti,phy20-clkmux-pll" and changed to boolean
- removed "ti,hwmods"v5:
- "ti,phy20-refclock-frequency" property made mandatoryv6:
- using "ti,usb2-phy-" prefix instead of "ti,phy20-" for the specific propertiesv7:
- removed the "mentor,power" property; hard coded to 500mA in the code.../devicetree/bindings/usb/da8xx-usb.txt | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+)create mode 100644
Documentation/devicetree/bindings/usb/da8xx-usb.txtDocumentation/devicetree/bindings/usb/da8xx-usb.txt new file +8
-0@@ -0,0 +1,43 @@ +TI DA8xx MUSB +~~~~~~~~~~~~~ +For DA8xx/OMAP-L1x/AM17xx/AM18xx platforms. + +Required properties: +~~~~~~~~~~~~~~~~~~~~ + - compatible : Should be set to "ti,da830-musb". +
Documentation/devicetree/bindings/usb/da8xx-usb.txt line 18
Quoted 10 lines
Documentation/devicetree/bindings/usb/da8xx-usb.txt new file +10
-0+ - reg: Offset and length of the USB controller register set. + + - interrupts: The USB interrupt number. + + - interrupt-names: Should be set to "mc". + + - dr_mode: The USB operation mode. Should be one of "host", "peripheral" or "otg". + + - ti,usb2-phy-refclock-frequency : Integer. Defines the USB 2.0 PHY reference clock input + frequency in Hz in case the clock is generated by the internal PLL.
Didn't you say it's needed in the case of external clock anyway?
Documentation/devicetree/bindings/usb/da8xx-usb.txt line 19
Quoted 1 line
Documentation/devicetree/bindings/usb/da8xx-usb.txt new file +1
-0+ Supported values are 12MHz, 13MHz, 19.2MHz, 20MHz, 24MHz, 26MHz, 38.4MHz, 40MHz, 48MHz
[...]
MBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 49 lines · Petr Kulhavy
DT binding for the TI DA8xx/OMAP-L1x/AM17xx/AM18xx MUSB driver.
Signed-off-by Petr Kulhavy <petr-Qh/[email protected]>---
v1: <initial>v2:
- using standard properties "dr_mode", "mentor,power", "mentor,num-eps", "mentor,multipoint", "mentor,ram-bits"
- using "ti," prefix instead of "da8xx," for specific property names
- no wildcards in compatibility stringv3:
- added "reg", "interrupts" and "interrupt-names" properties
- wildcards in compatibility stringv4:
- compatibility string set to "ti,da830-musb"
- "mentor,num-eps", "mentor,multipoint", "mentor,ram-bits" properties removed and hardcoded
- "ti,phy20-clkmux-cfg" renamed to "ti,phy20-clkmux-pll" and changed to boolean
- removed "ti,hwmods"v5:
- "ti,phy20-refclock-frequency" property made mandatoryv6:
- using "ti,usb2-phy-" prefix instead of "ti,phy20-" for the specific propertiesv7:
- removed the "mentor,power" property; hard coded to 500mA in the code.../devicetree/bindings/usb/da8xx-usb.txt | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/da8xx-usb.txtDocumentation/devicetree/bindings/usb/da8xx-usb.txt new file +9
-0@@ -0,0 +1,43 @@ +TI DA8xx MUSB +~~~~~~~~~~~~~ +For DA8xx/OMAP-L1x/AM17xx/AM18xx platforms. + +Required properties: +~~~~~~~~~~~~~~~~~~~~ + - compatible : Should be set to "ti,da830-musb". + + - reg: Offset and length of the USB controller register set.
Documentation/devicetree/bindings/usb/da8xx-usb.txt line 19
Quoted 10 lines
Documentation/devicetree/bindings/usb/da8xx-usb.txt new file +10
-0+ + - interrupts: The USB interrupt number. + + - interrupt-names: Should be set to "mc". + + - dr_mode: The USB operation mode. Should be one of "host", "peripheral" or "otg". + + - ti,usb2-phy-refclock-frequency : Integer. Defines the USB 2.0 PHY reference clock input + frequency in Hz in case the clock is generated by the internal PLL. + Supported values are 12MHz, 13MHz, 19.2MHz, 20MHz, 24MHz, 26MHz, 38.4MHz, 40MHz, 48MHz
Shouldn't this be optional if it only applies for the internal PLL? I'd prefer "ti,usb2-phy-refclock-hz" so the units are clear.
Documentation/devicetree/bindings/usb/da8xx-usb.txt line 26
Quoted 5 lines
Documentation/devicetree/bindings/usb/da8xx-usb.txt new file +5
-0+Optional properties: +~~~~~~~~~~~~~~~~~~~~ + - ti,usb2-phy-clkmux-pll: Boolean. Defines the USB 2.0 PHY reference clock source. + If present the internal PLL is used as a clock source, otherwise the external + USB_REFCLKIN pin is used.
External is the more common case? The property should be present for the less common case.
Rob
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html