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/richtek,rt9467.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Richtek RT9467 Switching Battery Charger with Power Path Management
8
9maintainers:
10  - ChiYuan Huang <cy_huang@richtek.com>
11  - ChiaEn Wu <chiaen_wu@richtek.com>
12
13description: |
14  RT9467 is a switch-mode single cell Li-Ion/Li-Polymer battery charger for
15  portable applications. It integrates a synchronous PWM controller, power
16  MOSFETs, input current sensing and regulation, high-accuracy voltage
17  regulation, and charge termination. The charge current is regulated through
18  integrated sensing resistors.
19
20  The RT9467 also features USB On-The-Go (OTG) support. It also integrates
21  D+/D- pin for USB host/charging port detection.
22
23  Datasheet is available at
24  https://www.richtek.com/assets/product_file/RT9467/DS9467-01.pdf
25
26properties:
27  compatible:
28    const: richtek,rt9467
29
30  reg:
31    maxItems: 1
32
33  wakeup-source: true
34
35  interrupts:
36    maxItems: 1
37
38  charge-enable-gpios:
39    description: GPIO is used to turn on and off charging.
40    maxItems: 1
41
42  usb-otg-vbus-regulator:
43    type: object
44    description: OTG boost regulator.
45    unevaluatedProperties: false
46    $ref: /schemas/regulator/regulator.yaml#
47
48    properties:
49      enable-gpios: true
50
51required:
52  - compatible
53  - reg
54  - wakeup-source
55  - interrupts
56
57additionalProperties: false
58
59examples:
60  - |
61    #include <dt-bindings/interrupt-controller/irq.h>
62    #include <dt-bindings/gpio/gpio.h>
63    i2c {
64      #address-cells = <1>;
65      #size-cells = <0>;
66
67      charger@5b {
68        compatible = "richtek,rt9467";
69        reg = <0x5b>;
70        wakeup-source;
71        interrupts-extended = <&gpio_intc 32 IRQ_TYPE_LEVEL_LOW>;
72        charge-enable-gpios = <&gpio26 1 GPIO_ACTIVE_LOW>;
73
74        rt9467_otg_vbus: usb-otg-vbus-regulator {
75          regulator-name = "rt9467-usb-otg-vbus";
76          regulator-min-microvolt = <4425000>;
77          regulator-max-microvolt = <5825000>;
78          regulator-min-microamp = <500000>;
79          regulator-max-microamp = <3000000>;
80        };
81      };
82    };
83