1# Copyright (c), 2021 NXP
2# Copyright (c), 2023 Martin Kiepfer <mrmarteng@teleschirm.org>
3# SPDX-License-Identifier: Apache-2.0
4
5description: |
6  AXP192 PMIC
7
8  The PMIC has three DCDC converters and two LDOs (LDO1 cannot be disabled).
9  All need to be defined as children nodes.
10  For example:
11
12  i2c {
13    pmic@34 {
14      reg = <0x34>;
15      ...
16      regulators {
17        compatible = "x-powers,axp192-regulator";
18
19        DCDC1 {
20          /* all properties for DCDC1 */
21        };
22        DCDC2 {
23          /* all properties for DCDC2 */
24        };
25        DCDC3 {
26          /* all properties for DCDC3 */
27        };
28        LDOIO0 {
29          /* all properties for LDOIO0 */
30        };
31        LDO2 {
32          /* all properties for LDO2 */
33        };
34        LDO3 {
35          /* all properties for LDO3 */
36        };
37      };
38    };
39  };
40
41compatible: "x-powers,axp192-regulator"
42
43include: base.yaml
44
45child-binding:
46  include:
47    - name: regulator.yaml
48      property-allowlist:
49        - regulator-init-microvolt
50        - regulator-min-microvolt
51        - regulator-max-microvolt
52        - regulator-always-on
53        - regulator-boot-on
54        - regulator-boot-off
55        - regulator-initial-mode
56        - regulator-allowed-modes
57
58  properties:
59    regulator-initial-mode:
60      type: int
61      default: 0
62      enum:
63        - 0
64        - 1
65      description: |
66        Initial operating mode. AXP192 supports 2 different power modes:
67        AXP192_DCDC_MODE_AUTO: Auto (0, default)
68        AXP192_DCDC_MODE_PWM:  PWM
69