Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: power: supply: Document Maxim MAX8971 charger

Add bindings for Maxim MAX8971 charger.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250430055114.11469-2-clamor95@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Svyatoslav Ryhel and committed by
Sebastian Reichel
c5a0a64c d055f517

+68
+68
Documentation/devicetree/bindings/power/supply/maxim,max8971.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/power/supply/maxim,max8971.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Maxim MAX8971 IC charger 8 + 9 + maintainers: 10 + - Svyatoslav Ryhel <clamor95@gmail.com> 11 + 12 + description: 13 + The MAX8971 is a compact, high-frequency, high-efficiency switch-mode charger 14 + for a one-cell lithium-ion (Li+) battery. 15 + 16 + allOf: 17 + - $ref: power-supply.yaml# 18 + 19 + properties: 20 + compatible: 21 + const: maxim,max8971 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + interrupts: 27 + maxItems: 1 28 + 29 + monitored-battery: true 30 + 31 + port: 32 + description: 33 + An optional port node to link the extcon device to detect type of plug. 34 + $ref: /schemas/graph.yaml#/properties/port 35 + 36 + required: 37 + - compatible 38 + - reg 39 + - interrupts 40 + 41 + unevaluatedProperties: false 42 + 43 + examples: 44 + - | 45 + #include <dt-bindings/gpio/gpio.h> 46 + #include <dt-bindings/interrupt-controller/irq.h> 47 + 48 + i2c { 49 + #address-cells = <1>; 50 + #size-cells = <0>; 51 + 52 + charger@35 { 53 + compatible = "maxim,max8971"; 54 + reg = <0x35>; 55 + 56 + interrupt-parent = <&gpio>; 57 + interrupts = <74 IRQ_TYPE_LEVEL_LOW>; 58 + 59 + monitored-battery = <&battery>; 60 + 61 + port { 62 + charger_input: endpoint { 63 + remote-endpoint = <&extcon_output>; 64 + }; 65 + }; 66 + }; 67 + }; 68 + ...