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