diff mbox series

[3/4] dt-bindings: power: supply: qcom,pm8941: document usb-charge-current-limit

Message ID 20220601071911.6435-3-krzysztof.kozlowski@linaro.org
State Accepted
Commit 096a6223424e8f5f9d9dbc70c66cdfd63b34fc58
Headers show
Series [1/4] dt-bindings: power: supply: bq24190: use regulator schema for child node | expand

Commit Message

Krzysztof Kozlowski June 1, 2022, 7:19 a.m. UTC
Document already used (in DTS and by driver) 'usb-charge-current-limit'
property:

  arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dtb:
    charger@1000: 'usb-charge-current-limit' does not match any of the regexes: 'pinctrl-[0-9]+'

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 .../bindings/power/supply/qcom,pm8941-charger.yaml         | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Rob Herring (Arm) June 5, 2022, 10:26 p.m. UTC | #1
On Wed, 01 Jun 2022 09:19:10 +0200, Krzysztof Kozlowski wrote:
> Document already used (in DTS and by driver) 'usb-charge-current-limit'
> property:
> 
>   arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dtb:
>     charger@1000: 'usb-charge-current-limit' does not match any of the regexes: 'pinctrl-[0-9]+'
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  .../bindings/power/supply/qcom,pm8941-charger.yaml         | 7 +++++++
>  1 file changed, 7 insertions(+)
> 

Acked-by: Rob Herring <robh@kernel.org>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/power/supply/qcom,pm8941-charger.yaml b/Documentation/devicetree/bindings/power/supply/qcom,pm8941-charger.yaml
index cd6364d65751..cbac55d3cb92 100644
--- a/Documentation/devicetree/bindings/power/supply/qcom,pm8941-charger.yaml
+++ b/Documentation/devicetree/bindings/power/supply/qcom,pm8941-charger.yaml
@@ -117,6 +117,13 @@  properties:
       be done externally to fully comply with the JEITA safety guidelines if this flag
       is set.
 
+  usb-charge-current-limit:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    minimum: 100000
+    maximum: 2500000
+    description: |
+      Default USB charge current limit in uA.
+
   usb-otg-in-supply:
     description: Reference to the regulator supplying power to the USB_OTG_IN pin.