Merge tag 'tegra-for-5.14-rc3-arm64-dt' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / drivers / staging / hikey9xx / hisilicon,hi6421-spmi-pmic.yaml
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/mfd/hisilicon,hi6421-spmi-pmic.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: HiSilicon 6421v600 SPMI PMIC
8
9 maintainers:
10   - Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
11
12 description: |
13   HiSilicon 6421v600 should be connected inside a MIPI System Power Management
14   (SPMI) bus. It provides interrupts and power supply.
15
16   The GPIO and interrupt settings are represented as part of the top-level PMIC
17   node.
18
19   The SPMI controller part is provided by
20   Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml
21
22 properties:
23   $nodename:
24     pattern: "pmic@[0-9a-f]"
25
26   compatible:
27     const: hisilicon,hi6421v600-spmi
28
29   reg:
30     maxItems: 1
31
32   '#interrupt-cells':
33     const: 2
34
35   interrupt-controller: true
36
37   gpios:
38     maxItems: 1
39     description: GPIO used for IRQs
40
41   regulators:
42     type: object
43
44     properties:
45       '#address-cells':
46         const: 1
47
48       '#size-cells':
49         const: 0
50
51     patternProperties:
52       '^ldo[0-9]+@[0-9a-f]$':
53         type: object
54
55         $ref: "/schemas/regulator/regulator.yaml#"
56
57 required:
58   - compatible
59   - reg
60   - regulators
61
62 additionalProperties: false
63
64 examples:
65   - |
66     /* pmic properties */
67
68     pmic: pmic@0 {
69       compatible = "hisilicon,hi6421-spmi";
70       reg = <0 0>;
71
72       #interrupt-cells = <2>;
73       interrupt-controller;
74       gpios = <&gpio28 0 0>;
75
76       regulators {
77         #address-cells = <1>;
78         #size-cells = <0>;
79
80         ldo3: LDO3 {
81           regulator-name = "ldo3";
82           regulator-min-microvolt = <1500000>;
83           regulator-max-microvolt = <2000000>;
84           regulator-boot-on;
85         };
86
87         ldo4: LDO4 {
88           regulator-name = "ldo4";
89           regulator-min-microvolt = <1725000>;
90           regulator-max-microvolt = <1900000>;
91           regulator-boot-on;
92         };
93
94         ldo9: LDO9 {
95           regulator-name = "ldo9";
96           regulator-min-microvolt = <1750000>;
97           regulator-max-microvolt = <3300000>;
98           regulator-boot-on;
99         };
100
101         ldo15: LDO15 {
102           regulator-name = "ldo15";
103           regulator-min-microvolt = <1800000>;
104           regulator-max-microvolt = <3000000>;
105           regulator-always-on;
106         };
107
108         ldo16: LDO16 {
109           regulator-name = "ldo16";
110           regulator-min-microvolt = <1800000>;
111           regulator-max-microvolt = <3000000>;
112           regulator-boot-on;
113         };
114
115         ldo17: LDO17 {
116           regulator-name = "ldo17";
117           regulator-min-microvolt = <2500000>;
118           regulator-max-microvolt = <3300000>;
119         };
120
121         ldo33: LDO33 {
122           regulator-name = "ldo33";
123           regulator-min-microvolt = <2500000>;
124           regulator-max-microvolt = <3300000>;
125           regulator-boot-on;
126         };
127
128         ldo34: LDO34 {
129           regulator-name = "ldo34";
130           regulator-min-microvolt = <2600000>;
131           regulator-max-microvolt = <3300000>;
132         };
133       };
134     };