All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: usb: dwc3: Add usb-psy-name string
@ 2021-03-27 19:15 Ray Chi
  2021-03-30 15:11 ` Rob Herring
  0 siblings, 1 reply; 2+ messages in thread
From: Ray Chi @ 2021-03-27 19:15 UTC (permalink / raw)
  To: gregkh, robh+dt, balbi
  Cc: linux-usb, devicetree, linux-kernel, kyletso, badhri, 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.

Signed-off-by: Ray Chi <raychi@google.com>
---
 Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml
index 2247da77eac1..ad62f4552fad 100644
--- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml
+++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml
@@ -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:
-- 
2.31.0.291.g576ba9dcdaf-goog


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] dt-bindings: usb: dwc3: Add usb-psy-name string
  2021-03-27 19:15 [PATCH] dt-bindings: usb: dwc3: Add usb-psy-name string Ray Chi
@ 2021-03-30 15:11 ` Rob Herring
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2021-03-30 15:11 UTC (permalink / raw)
  To: Ray Chi
  Cc: gregkh, balbi, linux-usb, devicetree, linux-kernel, kyletso, badhri

On Sun, Mar 28, 2021 at 03:15:20AM +0800, Ray Chi wrote:
> 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?

> 
> Signed-off-by: Ray Chi <raychi@google.com>
> ---
>  Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml
> index 2247da77eac1..ad62f4552fad 100644
> --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml
> +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml
> @@ -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:
> -- 
> 2.31.0.291.g576ba9dcdaf-goog
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-30 15:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-27 19:15 [PATCH] dt-bindings: usb: dwc3: Add usb-psy-name string Ray Chi
2021-03-30 15:11 ` Rob Herring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.