1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/mfd/hisilicon,hi6421-spmi-pmic.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: HiSilicon 6421v600 SPMI PMIC
10 - Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
13 HiSilicon 6421v600 should be connected inside a MIPI System Power Management
14 (SPMI) bus. It provides interrupts and power supply.
16 The GPIO and interrupt settings are represented as part of the top-level PMIC
19 The SPMI controller part is provided by
20 drivers/staging/hikey9xx/hisilicon,hisi-spmi-controller.yaml.
24 pattern: "pmic@[0-9a-f]"
27 const: hisilicon,hi6421v600-spmi
37 Identify that the PMIC is capable of behaving as an interrupt controller.
53 '^ldo[0-9]+@[0-9a-f]$':
56 $ref: "/schemas/regulator/regulator.yaml#"
60 description: Enable register.
69 description: Voltage selector register.
72 description: Bitmask used to enable the regulator.
75 description: Table with the selector items for the voltage regulator.
80 description: Time required for changing state to enabled in microseconds.
83 description: Startup time in microseconds.
86 description: Bitmask used to put the regulator on idle mode.
89 description: Maximum current while on idle mode.
106 /* pmic properties */
109 compatible = "hisilicon,hi6421-spmi";
112 #interrupt-cells = <2>;
113 interrupt-controller;
114 gpios = <&gpio28 0 0>;
117 #address-cells = <1>;
124 regulator-name = "ldo3";
125 regulator-min-microvolt = <1500000>;
126 regulator-max-microvolt = <2000000>;
129 enable-mask = <0x01>;
131 voltage-table = <1500000>, <1550000>, <1600000>, <1650000>,
132 <1700000>, <1725000>, <1750000>, <1775000>,
133 <1800000>, <1825000>, <1850000>, <1875000>,
134 <1900000>, <1925000>, <1950000>, <2000000>;
135 off-on-delay-us = <20000>;
136 startup-delay-us = <120>;
139 ldo4: ldo4@17 { /* 40 PIN */
143 regulator-name = "ldo4";
144 regulator-min-microvolt = <1725000>;
145 regulator-max-microvolt = <1900000>;
148 enable-mask = <0x01>;
149 idle-mode-mask = <0x10>;
150 eco-microamp = <10000>;
152 hi6421-vsel = <0x52 0x07>;
153 voltage-table = <1725000>, <1750000>, <1775000>, <1800000>,
154 <1825000>, <1850000>, <1875000>, <1900000>;
155 off-on-delay-us = <20000>;
156 startup-delay-us = <120>;