Skip to contentSkip to conversation

dt-bindings: usb: dwc3: Add usb-psy-name string

PATCH In review Ray Chi 2 participants 2 messages Mar 27, 2021 – Mar 30, 2021

Subsystems (2)
lore
Share & tools
lore

Ray Chi

author
#0 lore raw

PATCH 1/1 dt-bindings: usb: dwc3: Add usb-psy-name string

This commit adds documentation for usb-psy-name string. The string will use to find the power supply interface. And then, DWC3 can use the interface to control charing current with USB state and USB speed.

---
 Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/usb/snps,dwc3.yaml +7 -0
index 2247da77eac1..ad62f4552fad 100644
@@ -301,6 +301,13 @@ properties:
     items:
       enum: [1, 4, 8, 16, 32, 64, 128, 256]
 
+  usb-psy-name:
+    description:
+      Contains the name for power supply interface. To follow
+      BC1.2 specification, DWC3 could use power supply interface
+      to control current with corresponding USB state and USB speed.
+    minItems: 1
+
 unevaluatedProperties: false
 
 required:
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog
maintainer
#1 lore raw
Quoted 4 lines · Ray Chi

This commit adds documentation for usb-psy-name string. The string will use to find the power supply interface. And then, DWC3 can use the interface to control charing current with USB state and USB speed.

Why is this DWC3 specific?

Where does it find the power supply interface?

Quoted 27 lines
---
 Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/usb/snps,dwc3.yaml +7 -0
index 2247da77eac1..ad62f4552fad 100644
@@ -301,6 +301,13 @@ properties:
     items:
       enum: [1, 4, 8, 16, 32, 64, 128, 256]
 
+  usb-psy-name:
+    description:
+      Contains the name for power supply interface. To follow
+      BC1.2 specification, DWC3 could use power supply interface
+      to control current with corresponding USB state and USB speed.
+    minItems: 1
+
 unevaluatedProperties: false
 
 required:
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog