blob: 6a824351834ee0250e465af5e141b91dbe8a50d7 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# 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
7title: HiSilicon 6421v600 SPMI PMIC
8
9maintainers:
10 - Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
11
12description: |
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
Tom Rini93743d22024-04-01 09:08:13 -040020 Documentation/devicetree/bindings/spmi/hisilicon,hisi-spmi-controller.yaml
Tom Rini53633a82024-02-29 12:33:36 -050021
22properties:
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 interrupts:
38 maxItems: 1
39
40 regulators:
41 type: object
42
43 additionalProperties: false
44
Tom Rini53633a82024-02-29 12:33:36 -050045 patternProperties:
46 '^ldo[0-9]+$':
47 type: object
48
49 $ref: /schemas/regulator/regulator.yaml#
50
51 unevaluatedProperties: false
52
53required:
54 - compatible
55 - reg
56 - regulators
57
58additionalProperties: false
59
60examples:
61 - |
Tom Rini93743d22024-04-01 09:08:13 -040062 #include <dt-bindings/spmi/spmi.h>
Tom Rini53633a82024-02-29 12:33:36 -050063
Tom Rini93743d22024-04-01 09:08:13 -040064 spmi {
65 #address-cells = <2>;
66 #size-cells = <0>;
Tom Rini53633a82024-02-29 12:33:36 -050067
Tom Rini93743d22024-04-01 09:08:13 -040068 pmic@0 {
69 compatible = "hisilicon,hi6421v600-spmi";
70 reg = <0 SPMI_USID>;
Tom Rini53633a82024-02-29 12:33:36 -050071
Tom Rini93743d22024-04-01 09:08:13 -040072 #interrupt-cells = <2>;
73 interrupt-controller;
74 interrupt-parent = <&gpio28>;
75 interrupts = <0 0>;
Tom Rini53633a82024-02-29 12:33:36 -050076
Tom Rini93743d22024-04-01 09:08:13 -040077 regulators {
78 ldo3 {
79 regulator-name = "ldo3";
80 regulator-min-microvolt = <1500000>;
81 regulator-max-microvolt = <2000000>;
82 regulator-boot-on;
83 };
Tom Rini53633a82024-02-29 12:33:36 -050084
Tom Rini93743d22024-04-01 09:08:13 -040085 ldo4 {
86 regulator-name = "ldo4";
87 regulator-min-microvolt = <1725000>;
88 regulator-max-microvolt = <1900000>;
89 regulator-boot-on;
90 };
Tom Rini53633a82024-02-29 12:33:36 -050091
Tom Rini93743d22024-04-01 09:08:13 -040092 ldo9 {
93 regulator-name = "ldo9";
94 regulator-min-microvolt = <1750000>;
95 regulator-max-microvolt = <3300000>;
96 regulator-boot-on;
97 };
Tom Rini53633a82024-02-29 12:33:36 -050098
Tom Rini93743d22024-04-01 09:08:13 -040099 ldo15 {
100 regulator-name = "ldo15";
101 regulator-min-microvolt = <1800000>;
102 regulator-max-microvolt = <3000000>;
103 regulator-always-on;
104 };
Tom Rini53633a82024-02-29 12:33:36 -0500105
Tom Rini93743d22024-04-01 09:08:13 -0400106 ldo16 {
107 regulator-name = "ldo16";
108 regulator-min-microvolt = <1800000>;
109 regulator-max-microvolt = <3000000>;
110 regulator-boot-on;
111 };
Tom Rini53633a82024-02-29 12:33:36 -0500112
Tom Rini93743d22024-04-01 09:08:13 -0400113 ldo17 {
114 regulator-name = "ldo17";
115 regulator-min-microvolt = <2500000>;
116 regulator-max-microvolt = <3300000>;
117 };
Tom Rini53633a82024-02-29 12:33:36 -0500118
Tom Rini93743d22024-04-01 09:08:13 -0400119 ldo33 {
120 regulator-name = "ldo33";
121 regulator-min-microvolt = <2500000>;
122 regulator-max-microvolt = <3300000>;
123 regulator-boot-on;
124 };
Tom Rini53633a82024-02-29 12:33:36 -0500125
Tom Rini93743d22024-04-01 09:08:13 -0400126 ldo34 {
127 regulator-name = "ldo34";
128 regulator-min-microvolt = <2600000>;
129 regulator-max-microvolt = <3300000>;
130 };
131 };
Tom Rini53633a82024-02-29 12:33:36 -0500132 };
Tom Rini53633a82024-02-29 12:33:36 -0500133 };