1*2eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2*2eb4d8dcSEmmanuel Vadot%YAML 1.2 3*2eb4d8dcSEmmanuel Vadot--- 4*2eb4d8dcSEmmanuel Vadot$id: http://devicetree.org/schemas/power/supply/sbs,sbs-charger.yaml# 5*2eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*2eb4d8dcSEmmanuel Vadot 7*2eb4d8dcSEmmanuel Vadottitle: SBS compliant charger 8*2eb4d8dcSEmmanuel Vadot 9*2eb4d8dcSEmmanuel Vadotmaintainers: 10*2eb4d8dcSEmmanuel Vadot - Sebastian Reichel <sre@kernel.org> 11*2eb4d8dcSEmmanuel Vadot 12*2eb4d8dcSEmmanuel Vadotdescription: | 13*2eb4d8dcSEmmanuel Vadot Charger compatible with the smart battery system specifications 14*2eb4d8dcSEmmanuel Vadot 15*2eb4d8dcSEmmanuel VadotallOf: 16*2eb4d8dcSEmmanuel Vadot - $ref: power-supply.yaml# 17*2eb4d8dcSEmmanuel Vadot 18*2eb4d8dcSEmmanuel Vadotproperties: 19*2eb4d8dcSEmmanuel Vadot compatible: 20*2eb4d8dcSEmmanuel Vadot oneOf: 21*2eb4d8dcSEmmanuel Vadot - items: 22*2eb4d8dcSEmmanuel Vadot - enum: 23*2eb4d8dcSEmmanuel Vadot - lltc,ltc4100 24*2eb4d8dcSEmmanuel Vadot - enum: 25*2eb4d8dcSEmmanuel Vadot - sbs,sbs-charger 26*2eb4d8dcSEmmanuel Vadot - items: 27*2eb4d8dcSEmmanuel Vadot - const: sbs,sbs-charger 28*2eb4d8dcSEmmanuel Vadot 29*2eb4d8dcSEmmanuel Vadot reg: 30*2eb4d8dcSEmmanuel Vadot maxItems: 1 31*2eb4d8dcSEmmanuel Vadot 32*2eb4d8dcSEmmanuel Vadot interrupts: 33*2eb4d8dcSEmmanuel Vadot maxItems: 1 34*2eb4d8dcSEmmanuel Vadot 35*2eb4d8dcSEmmanuel Vadotrequired: 36*2eb4d8dcSEmmanuel Vadot - compatible 37*2eb4d8dcSEmmanuel Vadot - reg 38*2eb4d8dcSEmmanuel Vadot 39*2eb4d8dcSEmmanuel VadotadditionalProperties: false 40*2eb4d8dcSEmmanuel Vadot 41*2eb4d8dcSEmmanuel Vadotexamples: 42*2eb4d8dcSEmmanuel Vadot - | 43*2eb4d8dcSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 44*2eb4d8dcSEmmanuel Vadot 45*2eb4d8dcSEmmanuel Vadot i2c { 46*2eb4d8dcSEmmanuel Vadot #address-cells = <1>; 47*2eb4d8dcSEmmanuel Vadot #size-cells = <0>; 48*2eb4d8dcSEmmanuel Vadot 49*2eb4d8dcSEmmanuel Vadot charger@9 { 50*2eb4d8dcSEmmanuel Vadot compatible = "lltc,ltc4100", "sbs,sbs-charger"; 51*2eb4d8dcSEmmanuel Vadot reg = <0x9>; 52*2eb4d8dcSEmmanuel Vadot interrupt-parent = <&gpio6>; 53*2eb4d8dcSEmmanuel Vadot interrupts = <7 IRQ_TYPE_LEVEL_LOW>; 54*2eb4d8dcSEmmanuel Vadot }; 55*2eb4d8dcSEmmanuel Vadot }; 56