1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/mfd/st,stpmic1.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: STMicroelectonics STPMIC1 Power Management IC
9 description: STMicroelectronics STPMIC1 Power Management IC
27 interrupt-controller: true
32 $ref: ../input/input.yaml
36 const: st,stpmic1-onkey
40 - description: onkey-falling, happens when onkey is pressed. IT_PONKEY_F of pmic
41 - description: onkey-rising, happens when onkey is released. IT_PONKEY_R of pmic
45 - const: onkey-falling
48 st,onkey-clear-cc-flag:
49 description: onkey is able power on after an over-current shutdown event.
50 $ref: /schemas/types.yaml#/definitions/flag
53 description: onkey pull up is not active
54 $ref: /schemas/types.yaml#/definitions/flag
65 additionalProperties: false
70 $ref: ../watchdog/watchdog.yaml
81 additionalProperties: false
87 Available Regulators in STPMIC1 device are:
88 - buck1 for Buck BUCK1
89 - buck2 for Buck BUCK2
90 - buck3 for Buck BUCK3
91 - buck4 for Buck BUCK4
98 - vref_ddr for LDO Vref DDR
99 - boost for Buck BOOST
100 - pwr_sw1 for VBUS_OTG switch
101 - pwr_sw2 for SW_OUT switch
102 Switches are fixed voltage regulators with only enable/disable capability.
106 const: st,stpmic1-regulators
109 $ref: /schemas/regulator/regulator.yaml
117 description: mask reset for this regulator, the regulator configuration
118 is maintained during pmic reset.
119 $ref: /schemas/types.yaml#/definitions/flag
122 regulator-boot-on: true
123 regulator-always-on: true
124 regulator-min-microvolt: true
125 regulator-max-microvolt: true
126 regulator-allow-bypass: true
127 regulator-over-current-protection: true
129 additionalProperties: false
132 $ref: /schemas/regulator/regulator.yaml
140 description: mask reset for this regulator, the regulator configuration
141 is maintained during pmic reset.
142 $ref: /schemas/types.yaml#/definitions/flag
145 regulator-boot-on: true
146 regulator-always-on: true
147 regulator-min-microvolt: true
148 regulator-max-microvolt: true
149 regulator-over-current-protection: true
151 additionalProperties: false
154 $ref: /schemas/regulator/regulator.yaml
162 description: mask reset for this regulator, the regulator configuration
163 is maintained during pmic reset.
164 $ref: /schemas/types.yaml#/definitions/flag
167 regulator-boot-on: true
168 regulator-always-on: true
170 additionalProperties: false
173 $ref: /schemas/regulator/regulator.yaml
181 description: mask reset for this regulator, the regulator configuration
182 is maintained during pmic reset.
183 $ref: /schemas/types.yaml#/definitions/flag
186 regulator-boot-on: true
187 regulator-always-on: true
188 regulator-over-current-protection: true
190 additionalProperties: false
193 "^(buck[1-4]|ldo[1-6]|vref_ddr|boost|pwr_sw[1-2])-supply$":
194 description: STPMIC1 voltage regulators supplies
197 $ref: /schemas/regulator/regulator.yaml
205 description: mask reset for this regulator, the regulator configuration
206 is maintained during pmic reset.
207 $ref: /schemas/types.yaml#/definitions/flag
210 regulator-boot-on: true
211 regulator-always-on: true
212 regulator-min-microvolt: true
213 regulator-max-microvolt: true
214 regulator-over-current-protection: true
215 regulator-enable-ramp-delay: true
217 additionalProperties: false
220 $ref: /schemas/regulator/regulator.yaml
228 description: mask reset for this regulator, the regulator configuration
229 is maintained during pmic reset.
230 $ref: /schemas/types.yaml#/definitions/flag
233 regulator-boot-on: true
234 regulator-always-on: true
235 regulator-min-microvolt: true
236 regulator-max-microvolt: true
237 regulator-initial-mode: true
238 regulator-pull-down: true
239 regulator-over-current-protection: true
240 regulator-enable-ramp-delay: true
242 additionalProperties: false
245 $ref: /schemas/regulator/regulator.yaml
253 regulator-boot-on: true
254 regulator-always-on: true
255 regulator-over-current-protection: true
256 regulator-active-discharge: true
258 additionalProperties: false
263 additionalProperties: false
265 additionalProperties: false
272 - interrupt-controller
276 #include <dt-bindings/mfd/st,stpmic1.h>
277 #include <dt-bindings/interrupt-controller/arm-gic.h>
279 #address-cells = <1>;
282 compatible = "st,stpmic1";
284 interrupt-parent = <&gpioa>;
287 interrupt-controller;
288 #interrupt-cells = <2>;
291 compatible = "st,stpmic1-onkey";
292 interrupts = <IT_PONKEY_F 0>,<IT_PONKEY_R 1>;
293 interrupt-names = "onkey-falling", "onkey-rising";
294 power-off-time-sec = <10>;
298 compatible = "st,stpmic1-wdt";
302 compatible = "st,stpmic1-regulators";
304 ldo6-supply = <&v3v3>;
307 regulator-name = "vdd_core";
308 interrupts = <IT_CURLIM_BUCK1 0>;
311 regulator-min-microvolt = <700000>;
312 regulator-max-microvolt = <1200000>;
316 regulator-name = "vdd";
317 regulator-min-microvolt = <3300000>;
318 regulator-max-microvolt = <3300000>;
324 regulator-name = "v3v3";
325 interrupts = <IT_CURLIM_BUCK4 0>;
326 regulator-min-microvolt = <3300000>;
327 regulator-max-microvolt = <3300000>;
331 regulator-name = "v1v8";
332 regulator-min-microvolt = <1800000>;
333 regulator-max-microvolt = <1800000>;
334 regulator-over-current-protection;