1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/mfd/mps,mp2629.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: MP2629 Battery Charger PMIC from Monolithic Power System. 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Saravanan Sekar <sravanhome@gmail.com> 11c66ec88fSEmmanuel Vadot 12c66ec88fSEmmanuel Vadotdescription: | 13c66ec88fSEmmanuel Vadot MP2629 is a PMIC providing battery charging and power supply for smartphones, 14c66ec88fSEmmanuel Vadot wireless camera and portable devices. Chip is controlled over I2C. 15c66ec88fSEmmanuel Vadot 16c66ec88fSEmmanuel Vadot The battery charge management device handles battery charger controller and 17c66ec88fSEmmanuel Vadot ADC IIO device for battery, system voltage 18c66ec88fSEmmanuel Vadot 19c66ec88fSEmmanuel Vadotproperties: 20c66ec88fSEmmanuel Vadot compatible: 21*b97ee269SEmmanuel Vadot enum: 22*b97ee269SEmmanuel Vadot - mps,mp2629 23*b97ee269SEmmanuel Vadot - mps,mp2733 24c66ec88fSEmmanuel Vadot 25c66ec88fSEmmanuel Vadot reg: 26c66ec88fSEmmanuel Vadot maxItems: 1 27c66ec88fSEmmanuel Vadot 28c66ec88fSEmmanuel Vadot interrupts: 29c66ec88fSEmmanuel Vadot maxItems: 1 30c66ec88fSEmmanuel Vadot 31c66ec88fSEmmanuel Vadot interrupt-controller: true 32c66ec88fSEmmanuel Vadot 33c66ec88fSEmmanuel Vadot "#interrupt-cells": 34c66ec88fSEmmanuel Vadot const: 2 35c66ec88fSEmmanuel Vadot description: 36c66ec88fSEmmanuel Vadot The first cell is the IRQ number, the second cell is the trigger type. 37c66ec88fSEmmanuel Vadot 38c66ec88fSEmmanuel Vadotrequired: 39c66ec88fSEmmanuel Vadot - compatible 40c66ec88fSEmmanuel Vadot - reg 41c66ec88fSEmmanuel Vadot - interrupts 42c66ec88fSEmmanuel Vadot - interrupt-controller 43c66ec88fSEmmanuel Vadot - "#interrupt-cells" 44c66ec88fSEmmanuel Vadot 45c66ec88fSEmmanuel VadotadditionalProperties: false 46c66ec88fSEmmanuel Vadot 47c66ec88fSEmmanuel Vadotexamples: 48c66ec88fSEmmanuel Vadot - | 49c66ec88fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 50c66ec88fSEmmanuel Vadot #include <dt-bindings/input/linux-event-codes.h> 51c66ec88fSEmmanuel Vadot i2c { 52c66ec88fSEmmanuel Vadot #address-cells = <1>; 53c66ec88fSEmmanuel Vadot #size-cells = <0>; 54c66ec88fSEmmanuel Vadot 55c66ec88fSEmmanuel Vadot pmic@4b { 56c66ec88fSEmmanuel Vadot compatible = "mps,mp2629"; 57c66ec88fSEmmanuel Vadot reg = <0x4b>; 58c66ec88fSEmmanuel Vadot 59c66ec88fSEmmanuel Vadot interrupt-controller; 60c66ec88fSEmmanuel Vadot interrupt-parent = <&gpio2>; 61c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 62c66ec88fSEmmanuel Vadot interrupts = <3 IRQ_TYPE_LEVEL_HIGH>; 63c66ec88fSEmmanuel Vadot }; 64c66ec88fSEmmanuel Vadot }; 65