1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 $id: http://devicetree.org/schemas/mfd/rohm,bd71828-pmic.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: ROHM BD71828 Power Management Integrated Circuit
10 - Matti Vaittinen <mazziesaccount@gmail.com>
13 BD71828GW is a single-chip power management IC for battery-powered portable
14 devices. The IC integrates 7 buck converters, 7 LDOs, and a 1500 mA
15 single-cell linear charger. Also included is a Coulomb counter, a real-time
16 clock (RTC), and a 32.768 kHz clock gate.
35 The first cell is the pin number and the second cell is used to specify
36 flags. See ../gpio/gpio.txt for more information.
45 const: bd71828-32k-out
47 rohm,clkout-open-drain:
48 description: clk32kout mode. Set to 1 for "open-drain" or 0 for "cmos".
49 $ref: /schemas/types.yaml#/definitions/uint32
53 rohm,charger-sense-resistor-ohms:
57 BD71827 and BD71828 have SAR ADC for measuring charging currents.
58 External sense resistor (RSENSE in data sheet) should be used. If some
59 other but 30MOhm resistor is used the resistance value should be given
63 $ref: ../regulator/rohm,bd71828-regulator.yaml
65 List of child nodes that specify the regulators.
68 $ref: ../leds/rohm,bd71828-leds.yaml
72 Usage of BD71828 GPIO pins can be changed via OTP. This property can be
73 used to mark the pins which should not be configured for GPIO. Please see
74 the ../gpio/gpio.txt for more information.
86 additionalProperties: false
90 #include <dt-bindings/interrupt-controller/irq.h>
91 #include <dt-bindings/leds/common.h>
96 compatible = "rohm,bd71828";
99 interrupt-parent = <&gpio1>;
100 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
104 clock-output-names = "bd71828-32k-out";
108 gpio-reserved-ranges = <0 1>, <2 1>;
110 rohm,charger-sense-resistor-ohms = <10000000>;
114 regulator-name = "buck1";
115 regulator-min-microvolt = <500000>;
116 regulator-max-microvolt = <2000000>;
117 regulator-ramp-delay = <2500>;
120 regulator-name = "buck2";
121 regulator-min-microvolt = <500000>;
122 regulator-max-microvolt = <2000000>;
123 regulator-ramp-delay = <2500>;
126 regulator-name = "buck3";
127 regulator-min-microvolt = <1200000>;
128 regulator-max-microvolt = <2000000>;
131 regulator-name = "buck4";
132 regulator-min-microvolt = <1000000>;
133 regulator-max-microvolt = <1800000>;
136 regulator-name = "buck5";
137 regulator-min-microvolt = <2500000>;
138 regulator-max-microvolt = <3300000>;
141 regulator-name = "buck6";
142 regulator-min-microvolt = <500000>;
143 regulator-max-microvolt = <2000000>;
144 regulator-ramp-delay = <2500>;
147 regulator-name = "buck7";
148 regulator-min-microvolt = <500000>;
149 regulator-max-microvolt = <2000000>;
150 regulator-ramp-delay = <2500>;
153 regulator-name = "ldo1";
154 regulator-min-microvolt = <800000>;
155 regulator-max-microvolt = <3300000>;
158 regulator-name = "ldo2";
159 regulator-min-microvolt = <800000>;
160 regulator-max-microvolt = <3300000>;
163 regulator-name = "ldo3";
164 regulator-min-microvolt = <800000>;
165 regulator-max-microvolt = <3300000>;
168 regulator-name = "ldo4";
169 regulator-min-microvolt = <800000>;
170 regulator-max-microvolt = <3300000>;
173 regulator-name = "ldo5";
174 regulator-min-microvolt = <800000>;
175 regulator-max-microvolt = <3300000>;
178 regulator-name = "ldo6";
179 regulator-min-microvolt = <1800000>;
180 regulator-max-microvolt = <1800000>;
183 regulator-name = "ldo7";
184 regulator-min-microvolt = <800000>;
185 regulator-max-microvolt = <3300000>;
190 compatible = "rohm,bd71828-leds";
193 rohm,led-compatible = "bd71828-grnled";
194 function = LED_FUNCTION_INDICATOR;
195 color = <LED_COLOR_ID_GREEN>;
198 rohm,led-compatible = "bd71828-ambled";
199 function = LED_FUNCTION_CHARGING;
200 color = <LED_COLOR_ID_AMBER>;