Skip to contentSkip to conversation

usb: host: add DT bindings for faraday fotg2

PATCH In review Hans Ulli Kroll 2 participants 2 messages Apr 26, 2017 – Apr 28, 2017 3 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 20170426194120.26304-1-ulli.kroll-gM/[email protected]

#2 lore raw

PATCH 1/9 usb: host: add DT bindings for faraday fotg2

This adds device tree bindings for the Faraday FOTG2 dual-mode host controller.

---
 .../devicetree/bindings/usb/faraday,fotg210.txt    | 40 ++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/usb/faraday,fotg210.txt
Documentation/devicetree/bindings/usb/faraday,fotg210.txt new file +40 -0
new file mode 100644
index 000000000000..dc2cdaf20d9f
@@ -0,0 +1,40 @@
+Faraday FOTG Dual role controller
+
+This OTG-capable host/device mode USB controller is found in Cortina Systems
+Gemini and other SoC products.
+On Gemini currently host mode is used
+
+Required properties:
+- compatible: should be one of:
+  "faraday,fotg210-dr"
+  "cortina,gemini-usb", "faraday,fotg210-dr"
+- reg: should contain one register range i.e. start and length
+- interrupts: description of the interrupt line
+
+Optional properties:
+- clocks: should contain the IP block clock
+- clock-names: should be "PCLK" for the IP block clock
+- dr_mode : indicates the working mode for "faraday,fotg210-dr" compatible
+   controllers.  Can be "host" or "peripheral"
+   Default to "host" if not defined for backward compatibility.
+
+
+Required properties for "cortina,gemini-usb" compatible:
+- syscon: a phandle to the system controller to access PHY registers
+
+Optional properties for "cortina,gemini-usb" compatible:
+- cortina,gemini-mini-b: boolean property that indicates that a Mini-B
+  OTH connector is in use
+- wakeup-source: see power/wakeup-source.txt
+
+Example for Gemini:
+
+usb@68000000 {
+	compatible = "cortina,gemini-usb", "faraday,fotg210-dr";
+	reg = <0x68000000 0x1000>;
+	interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
+	clocks = <&cc 12>;
+	clock-names = "PCLK";
+	syscon = <&syscon>;
+	wakeup-source;
+};
Signature · 6 lines
2.12.2

--
To unsubscribe from this list: send the line "unsubscribe devicetree" 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): 20170426194120.26304-2-ulli.kroll-gM/[email protected]

Acked-by
#4 lore raw
Quoted 34 lines · Hans Ulli Kroll

This adds device tree bindings for the Faraday FOTG2 dual-mode host controller.

---
 .../devicetree/bindings/usb/faraday,fotg210.txt    | 40 ++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/usb/faraday,fotg210.txt
Documentation/devicetree/bindings/usb/faraday,fotg210.txt new file +17 -0
new file mode 100644
index 000000000000..dc2cdaf20d9f
@@ -0,0 +1,40 @@
+Faraday FOTG Dual role controller
+
+This OTG-capable host/device mode USB controller is found in Cortina Systems
+Gemini and other SoC products.
+On Gemini currently host mode is used
+
+Required properties:
+- compatible: should be one of:
+  "faraday,fotg210-dr"
+  "cortina,gemini-usb", "faraday,fotg210-dr"
+- reg: should contain one register range i.e. start and length
+- interrupts: description of the interrupt line
+
+Optional properties:
+- clocks: should contain the IP block clock
+- clock-names: should be "PCLK" for the IP block clock
+- dr_mode : indicates the working mode for "faraday,fotg210-dr" compatible

Documentation/devicetree/bindings/usb/faraday,fotg210.txt line 27

Quoted 10 lines
Documentation/devicetree/bindings/usb/faraday,fotg210.txt new file +10 -0
+   controllers.  Can be "host" or "peripheral"
+   Default to "host" if not defined for backward compatibility.
+
+
+Required properties for "cortina,gemini-usb" compatible:
+- syscon: a phandle to the system controller to access PHY registers
+
+Optional properties for "cortina,gemini-usb" compatible:
+- cortina,gemini-mini-b: boolean property that indicates that a Mini-B
+  OTH connector is in use

s/OTH/OTG/

With that,

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html