linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v9 01/10] dt-bindings: power: supply: Add MediaTek MT6370 Charger
@ 2022-08-30  3:40 ChiaEn Wu
  2022-08-30  3:40 ` [PATCH v9 02/10] dt-bindings: leds: mt6370: Add MediaTek MT6370 current sink type LED indicator ChiaEn Wu
                   ` (8 more replies)
  0 siblings, 9 replies; 20+ messages in thread
From: ChiaEn Wu @ 2022-08-30  3:40 UTC (permalink / raw)
  To: lee, daniel.thompson, jingoohan1, pavel, robh+dt,
	krzysztof.kozlowski+dt, matthias.bgg, sre, jic23, lars, deller,
	broonie, mazziesaccount, andriy.shevchenko
  Cc: chiaen_wu, alice_chen, cy_huang, dri-devel, linux-leds,
	devicetree, linux-arm-kernel, linux-mediatek, linux-kernel,
	linux-pm, linux-iio, linux-fbdev, szunichen, andy.shevchenko,
	Krzysztof Kozlowski

From: ChiaEn Wu <chiaen_wu@richtek.com>

Add MediaTek MT6370 Charger binding documentation.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: ChiaEn Wu <chiaen_wu@richtek.com>
---
 .../power/supply/mediatek,mt6370-charger.yaml      | 88 ++++++++++++++++++++++
 1 file changed, 88 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/power/supply/mediatek,mt6370-charger.yaml

diff --git a/Documentation/devicetree/bindings/power/supply/mediatek,mt6370-charger.yaml b/Documentation/devicetree/bindings/power/supply/mediatek,mt6370-charger.yaml
new file mode 100644
index 0000000..bd09a0a
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/supply/mediatek,mt6370-charger.yaml
@@ -0,0 +1,88 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/power/supply/mediatek,mt6370-charger.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MediaTek MT6370 Battery Charger
+
+maintainers:
+  - ChiaEn Wu <chiaen_wu@richtek.com>
+
+description: |
+  This module is part of the MT6370 MFD device.
+  Provides Battery Charger, Boost for OTG devices and BC1.2 detection.
+
+properties:
+  compatible:
+    const: mediatek,mt6370-charger
+
+  interrupts:
+    description: |
+      Specify what irqs are needed to be handled by MT6370 Charger driver. IRQ
+      "MT6370_IRQ_CHG_MIVR", "MT6370_IRQ_ATTACH" and "MT6370_IRQ_OVPCTRL_UVP_D"
+      are required.
+    items:
+      - description: BC1.2 done irq
+      - description: usb plug in irq
+      - description: mivr irq
+
+  interrupt-names:
+    items:
+      - const: attach_i
+      - const: uvp_d_evt
+      - const: mivr
+
+  io-channels:
+    description: |
+      Use ADC channel to read VBUS, IBUS, IBAT, etc., info.
+    minItems: 1
+    items:
+      - description: |
+          VBUS voltage with lower accuracy (+-75mV) but higher measure
+          range (1~22V)
+      - description: |
+          VBUS voltage with higher accuracy (+-30mV) but lower measure
+          range (1~9.76V)
+      - description: the main system input voltage
+      - description: battery voltage
+      - description: battery temperature-sense input voltage
+      - description: IBUS current (required)
+      - description: battery current
+      - description: |
+          regulated output voltage to supply for the PWM low-side gate driver
+          and the bootstrap capacitor
+      - description: IC junction temperature
+
+  io-channel-names:
+    minItems: 1
+    items:
+      - const: vbusdiv5
+      - const: vbusdiv2
+      - const: vsys
+      - const: vbat
+      - const: ts_bat
+      - const: ibus
+      - const: ibat
+      - const: chg_vddp
+      - const: temp_jc
+
+  usb-otg-vbus-regulator:
+    type: object
+    description: OTG boost regulator.
+    unevaluatedProperties: false
+    $ref: /schemas/regulator/regulator.yaml#
+
+    properties:
+      enable-gpios:
+        maxItems: 1
+
+required:
+  - compatible
+  - interrupts
+  - interrupt-names
+  - io-channels
+
+additionalProperties: false
+
+...
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2022-09-23 22:03 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-30  3:40 [PATCH v9 01/10] dt-bindings: power: supply: Add MediaTek MT6370 Charger ChiaEn Wu
2022-08-30  3:40 ` [PATCH v9 02/10] dt-bindings: leds: mt6370: Add MediaTek MT6370 current sink type LED indicator ChiaEn Wu
2022-08-30  3:40 ` [PATCH v9 03/10] dt-bindings: leds: Add MediaTek MT6370 flashlight ChiaEn Wu
2022-08-30  3:40 ` [PATCH v9 04/10] dt-bindings: backlight: Add MediaTek MT6370 backlight ChiaEn Wu
2022-09-05 15:18   ` Lee Jones
2022-08-30  3:40 ` [PATCH v9 05/10] lib: add linear range index macro ChiaEn Wu
2022-08-30 10:22   ` Matti Vaittinen
2022-08-30  3:40 ` [PATCH v9 06/10] iio: adc: mt6370: Add MediaTek MT6370 support ChiaEn Wu
2022-08-30  3:40 ` [PATCH v9 07/10] power: supply: mt6370: Add MediaTek MT6370 charger driver ChiaEn Wu
2022-08-30 10:34   ` Matti Vaittinen
2022-08-30  3:40 ` [PATCH v9 08/10] leds: rgb: mt6370: Add MediaTek MT6370 current sink type LED Indicator support ChiaEn Wu
2022-08-30  3:40 ` [PATCH v9 09/10] leds: flash: mt6370: Add MediaTek MT6370 flashlight support ChiaEn Wu
2022-08-30  8:49   ` AngeloGioacchino Del Regno
     [not found]   ` <CAPOBaE7rz2F-sij-LbYau6TRxFoOfmoUc=R__Z7iUrFWmZPgrg@mail.gmail.com>
2022-09-21  1:48     ` ChiaEn Wu
2022-09-21 11:47       ` Andy Shevchenko
2022-09-23 21:34         ` Han Jingoo
2022-09-23 22:02           ` Joe Perches
2022-08-30  3:40 ` [PATCH v9 10/10] video: backlight: mt6370: Add MediaTek MT6370 support ChiaEn Wu
2022-09-05 15:17   ` Lee Jones
2022-09-05 15:17   ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).