xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/ricoh,rn5t618.yaml (revision 2eb4d8dc723da3cf7d735a3226ae49da4c8c5dbc)
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/mfd/ricoh,rn5t618.yaml#
5*2eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*2eb4d8dcSEmmanuel Vadot
7*2eb4d8dcSEmmanuel Vadottitle: Ricoh RN5T567/RN5T618/RC5T619 PMIC
8*2eb4d8dcSEmmanuel Vadot
9*2eb4d8dcSEmmanuel Vadotmaintainers:
10*2eb4d8dcSEmmanuel Vadot  - Andreas Kemnade <andreas@kemnade.info>
11*2eb4d8dcSEmmanuel Vadot
12*2eb4d8dcSEmmanuel Vadotdescription: |
13*2eb4d8dcSEmmanuel Vadot  Ricoh RN5T567/RN5T618/RC5T619 is a power management IC family which
14*2eb4d8dcSEmmanuel Vadot  integrates 3 to 5 step-down DCDC converters, 7 to 10 low-dropout regulators,
15*2eb4d8dcSEmmanuel Vadot  GPIOs, and a watchdog timer. It can be controlled through an I2C interface.
16*2eb4d8dcSEmmanuel Vadot  The RN5T618/RC5T619 provides additionally a Li-ion battery charger,
17*2eb4d8dcSEmmanuel Vadot  fuel gauge, and an ADC.
18*2eb4d8dcSEmmanuel Vadot  The RC5T619 additionally includes USB charger detection and an RTC.
19*2eb4d8dcSEmmanuel Vadot
20*2eb4d8dcSEmmanuel VadotallOf:
21*2eb4d8dcSEmmanuel Vadot  - if:
22*2eb4d8dcSEmmanuel Vadot      properties:
23*2eb4d8dcSEmmanuel Vadot        compatible:
24*2eb4d8dcSEmmanuel Vadot          contains:
25*2eb4d8dcSEmmanuel Vadot            const: ricoh,rn5t567
26*2eb4d8dcSEmmanuel Vadot    then:
27*2eb4d8dcSEmmanuel Vadot      properties:
28*2eb4d8dcSEmmanuel Vadot        regulators:
29*2eb4d8dcSEmmanuel Vadot          patternProperties:
30*2eb4d8dcSEmmanuel Vadot            "^(DCDC[1-4]|LDO[1-5]|LDORTC[12])$":
31*2eb4d8dcSEmmanuel Vadot              $ref: ../regulator/regulator.yaml
32*2eb4d8dcSEmmanuel Vadot          additionalProperties: false
33*2eb4d8dcSEmmanuel Vadot  - if:
34*2eb4d8dcSEmmanuel Vadot      properties:
35*2eb4d8dcSEmmanuel Vadot        compatible:
36*2eb4d8dcSEmmanuel Vadot          contains:
37*2eb4d8dcSEmmanuel Vadot            const: ricoh,rn5t618
38*2eb4d8dcSEmmanuel Vadot    then:
39*2eb4d8dcSEmmanuel Vadot      properties:
40*2eb4d8dcSEmmanuel Vadot        regulators:
41*2eb4d8dcSEmmanuel Vadot          patternProperties:
42*2eb4d8dcSEmmanuel Vadot            "^(DCDC[1-3]|LDO[1-5]|LDORTC[12])$":
43*2eb4d8dcSEmmanuel Vadot              $ref: ../regulator/regulator.yaml
44*2eb4d8dcSEmmanuel Vadot          additionalProperties: false
45*2eb4d8dcSEmmanuel Vadot  - if:
46*2eb4d8dcSEmmanuel Vadot      properties:
47*2eb4d8dcSEmmanuel Vadot        compatible:
48*2eb4d8dcSEmmanuel Vadot          contains:
49*2eb4d8dcSEmmanuel Vadot            const: ricoh,rc5t619
50*2eb4d8dcSEmmanuel Vadot    then:
51*2eb4d8dcSEmmanuel Vadot      properties:
52*2eb4d8dcSEmmanuel Vadot        regulators:
53*2eb4d8dcSEmmanuel Vadot          patternProperties:
54*2eb4d8dcSEmmanuel Vadot            "^(DCDC[1-5]|LDO[1-9]|LDO10|LDORTC[12])$":
55*2eb4d8dcSEmmanuel Vadot              $ref: ../regulator/regulator.yaml
56*2eb4d8dcSEmmanuel Vadot          additionalProperties: false
57*2eb4d8dcSEmmanuel Vadot
58*2eb4d8dcSEmmanuel Vadotproperties:
59*2eb4d8dcSEmmanuel Vadot  compatible:
60*2eb4d8dcSEmmanuel Vadot    enum:
61*2eb4d8dcSEmmanuel Vadot      - ricoh,rn5t567
62*2eb4d8dcSEmmanuel Vadot      - ricoh,rn5t618
63*2eb4d8dcSEmmanuel Vadot      - ricoh,rc5t619
64*2eb4d8dcSEmmanuel Vadot
65*2eb4d8dcSEmmanuel Vadot  reg:
66*2eb4d8dcSEmmanuel Vadot    maxItems: 1
67*2eb4d8dcSEmmanuel Vadot
68*2eb4d8dcSEmmanuel Vadot  interrupts:
69*2eb4d8dcSEmmanuel Vadot    maxItems: 1
70*2eb4d8dcSEmmanuel Vadot
71*2eb4d8dcSEmmanuel Vadot  system-power-controller:
72*2eb4d8dcSEmmanuel Vadot    type: boolean
73*2eb4d8dcSEmmanuel Vadot    description: |
74*2eb4d8dcSEmmanuel Vadot      See Documentation/devicetree/bindings/power/power-controller.txt
75*2eb4d8dcSEmmanuel Vadot
76*2eb4d8dcSEmmanuel Vadot  regulators:
77*2eb4d8dcSEmmanuel Vadot    type: object
78*2eb4d8dcSEmmanuel Vadot
79*2eb4d8dcSEmmanuel VadotadditionalProperties: false
80*2eb4d8dcSEmmanuel Vadot
81*2eb4d8dcSEmmanuel Vadotrequired:
82*2eb4d8dcSEmmanuel Vadot  - compatible
83*2eb4d8dcSEmmanuel Vadot  - reg
84*2eb4d8dcSEmmanuel Vadot
85*2eb4d8dcSEmmanuel Vadotexamples:
86*2eb4d8dcSEmmanuel Vadot  - |
87*2eb4d8dcSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
88*2eb4d8dcSEmmanuel Vadot    i2c {
89*2eb4d8dcSEmmanuel Vadot      #address-cells = <1>;
90*2eb4d8dcSEmmanuel Vadot      #size-cells = <0>;
91*2eb4d8dcSEmmanuel Vadot
92*2eb4d8dcSEmmanuel Vadot      pmic@32 {
93*2eb4d8dcSEmmanuel Vadot        compatible = "ricoh,rn5t618";
94*2eb4d8dcSEmmanuel Vadot        reg = <0x32>;
95*2eb4d8dcSEmmanuel Vadot        interrupt-parent = <&gpio5>;
96*2eb4d8dcSEmmanuel Vadot        interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
97*2eb4d8dcSEmmanuel Vadot        system-power-controller;
98*2eb4d8dcSEmmanuel Vadot
99*2eb4d8dcSEmmanuel Vadot        regulators {
100*2eb4d8dcSEmmanuel Vadot          DCDC1 {
101*2eb4d8dcSEmmanuel Vadot            regulator-min-microvolt = <1050000>;
102*2eb4d8dcSEmmanuel Vadot            regulator-max-microvolt = <1050000>;
103*2eb4d8dcSEmmanuel Vadot          };
104*2eb4d8dcSEmmanuel Vadot
105*2eb4d8dcSEmmanuel Vadot          DCDC2 {
106*2eb4d8dcSEmmanuel Vadot            regulator-min-microvolt = <1175000>;
107*2eb4d8dcSEmmanuel Vadot            regulator-max-microvolt = <1175000>;
108*2eb4d8dcSEmmanuel Vadot          };
109*2eb4d8dcSEmmanuel Vadot        };
110*2eb4d8dcSEmmanuel Vadot      };
111*2eb4d8dcSEmmanuel Vadot    };
112