15956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 25956d97fSEmmanuel Vadot%YAML 1.2 35956d97fSEmmanuel Vadot--- 4b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/power/supply/richtek,rt5033-battery.yaml# 5b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 65956d97fSEmmanuel Vadot 75956d97fSEmmanuel Vadottitle: Richtek RT5033 PMIC Fuel Gauge 85956d97fSEmmanuel Vadot 95956d97fSEmmanuel Vadotmaintainers: 105956d97fSEmmanuel Vadot - Stephan Gerhold <stephan@gerhold.net> 115956d97fSEmmanuel Vadot 125956d97fSEmmanuel VadotallOf: 135956d97fSEmmanuel Vadot - $ref: power-supply.yaml# 145956d97fSEmmanuel Vadot 155956d97fSEmmanuel Vadotproperties: 165956d97fSEmmanuel Vadot compatible: 175956d97fSEmmanuel Vadot const: richtek,rt5033-battery 185956d97fSEmmanuel Vadot 195956d97fSEmmanuel Vadot reg: 205956d97fSEmmanuel Vadot maxItems: 1 215956d97fSEmmanuel Vadot 225956d97fSEmmanuel Vadot interrupts: 235956d97fSEmmanuel Vadot maxItems: 1 245956d97fSEmmanuel Vadot 255956d97fSEmmanuel Vadotrequired: 265956d97fSEmmanuel Vadot - compatible 275956d97fSEmmanuel Vadot - reg 285956d97fSEmmanuel Vadot 29*f126890aSEmmanuel VadotunevaluatedProperties: false 305956d97fSEmmanuel Vadot 315956d97fSEmmanuel Vadotexamples: 325956d97fSEmmanuel Vadot - | 335956d97fSEmmanuel Vadot i2c { 345956d97fSEmmanuel Vadot #address-cells = <1>; 355956d97fSEmmanuel Vadot #size-cells = <0>; 365956d97fSEmmanuel Vadot 375956d97fSEmmanuel Vadot battery@35 { 385956d97fSEmmanuel Vadot compatible = "richtek,rt5033-battery"; 395956d97fSEmmanuel Vadot reg = <0x35>; 405956d97fSEmmanuel Vadot }; 415956d97fSEmmanuel Vadot }; 425956d97fSEmmanuel Vadot - | 435956d97fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 445956d97fSEmmanuel Vadot i2c { 455956d97fSEmmanuel Vadot #address-cells = <1>; 465956d97fSEmmanuel Vadot #size-cells = <0>; 475956d97fSEmmanuel Vadot 485956d97fSEmmanuel Vadot battery@35 { 495956d97fSEmmanuel Vadot compatible = "richtek,rt5033-battery"; 505956d97fSEmmanuel Vadot reg = <0x35>; 515956d97fSEmmanuel Vadot interrupt-parent = <&msmgpio>; 525956d97fSEmmanuel Vadot interrupts = <121 IRQ_TYPE_EDGE_FALLING>; 535956d97fSEmmanuel Vadot }; 545956d97fSEmmanuel Vadot }; 55