diff mbox series

[v2,1/2] dt-bindings: power: Add bindings document for Charger support on MT6360 PMIC

Message ID 1604400091-14618-2-git-send-email-gene.chen.richtek@gmail.com
State Superseded
Headers show
Series [v2,1/2] dt-bindings: power: Add bindings document for Charger support on MT6360 PMIC | expand

Commit Message

Gene Chen Nov. 3, 2020, 10:41 a.m. UTC
From: Gene Chen <gene_chen@richtek.com>

Add bindings document for Charger support on MT6360 PMIC

Signed-off-by: Gene Chen <gene_chen@richtek.com>
---
 .../bindings/power/supply/mt6360_charger.yaml      | 48 ++++++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/power/supply/mt6360_charger.yaml

Comments

Rob Herring Nov. 9, 2020, 4:07 p.m. UTC | #1
On Tue, 03 Nov 2020 18:41:30 +0800, Gene Chen wrote:
> From: Gene Chen <gene_chen@richtek.com>

> 

> Add bindings document for Charger support on MT6360 PMIC

> 

> Signed-off-by: Gene Chen <gene_chen@richtek.com>

> ---

>  .../bindings/power/supply/mt6360_charger.yaml      | 48 ++++++++++++++++++++++

>  1 file changed, 48 insertions(+)

>  create mode 100644 Documentation/devicetree/bindings/power/supply/mt6360_charger.yaml

> 


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

Patch

diff --git a/Documentation/devicetree/bindings/power/supply/mt6360_charger.yaml b/Documentation/devicetree/bindings/power/supply/mt6360_charger.yaml
new file mode 100644
index 0000000..b89b15a
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/supply/mt6360_charger.yaml
@@ -0,0 +1,48 @@ 
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/power/supply/mt6360_charger.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Battery charger driver for MT6360 PMIC from MediaTek Integrated.
+
+maintainers:
+  - Gene Chen <gene_chen@richtek.com>
+
+description: |
+  This module is part of the MT6360 MFD device.
+  Provides Battery Charger, Boost for OTG devices and BC1.2 detection.
+
+properties:
+  compatible:
+    const: mediatek,mt6360-chg
+
+  richtek,vinovp-microvolt:
+    description: Maximum CHGIN regulation voltage in uV.
+    enum: [ 5500000, 6500000, 11000000, 14500000 ]
+
+
+  usb-otg-vbus-regulator:
+    type: object
+    description: OTG boost regulator.
+    $ref: /schemas/regulator/regulator.yaml#
+
+required:
+  - compatible
+
+additionalProperties: false
+
+examples:
+  - |
+    mt6360_charger: charger {
+      compatible = "mediatek,mt6360-chg";
+      richtek,vinovp-microvolt = <14500000>;
+
+      otg_vbus_regulator: usb-otg-vbus-regulator {
+        regulator-compatible = "usb-otg-vbus";
+        regulator-name = "usb-otg-vbus";
+        regulator-min-microvolt = <4425000>;
+        regulator-max-microvolt = <5825000>;
+      };
+    };
+...