Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: mfd: Convert X-Powers AXP binding to a schema

The X-Powers AXP PMICs are supported by Linux thanks to its device tree
binding.

Now that we have the DT validation in place, let's convert the device
tree bindings for that driver over to a YAML schema.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210924071614.868307-2-maxime@cerno.tech

authored by

Maxime Ripard and committed by
Lee Jones
239f2bb1 59f031c0

+401 -274
+1 -1
Documentation/devicetree/bindings/i2c/allwinner,sun6i-a31-p2wi.yaml
··· 55 55 #size-cells = <0>; 56 56 57 57 axp221: pmic@68 { 58 - compatible = "x-powers,axp221"; 58 + /* compatible = "x-powers,axp221"; */ 59 59 reg = <0x68>; 60 60 }; 61 61 };
-273
Documentation/devicetree/bindings/mfd/axp20x.txt
··· 1 - AXP family PMIC device tree bindings 2 - 3 - The axp20x family current members : 4 - axp152 (X-Powers) 5 - axp202 (X-Powers) 6 - axp209 (X-Powers) 7 - axp221 (X-Powers) 8 - axp223 (X-Powers) 9 - axp803 (X-Powers) 10 - axp806 (X-Powers) 11 - axp809 (X-Powers) 12 - axp813 (X-Powers) 13 - 14 - The AXP813 is 2 chips packaged into 1. The 2 chips do not share anything 15 - other than the packaging. Pins are routed separately. As such they should 16 - be treated as separate entities. The other half is an AC100 RTC/codec 17 - combo chip. Please see ./ac100.txt for its bindings. 18 - 19 - Required properties: 20 - - compatible: should be one of: 21 - * "x-powers,axp152" 22 - * "x-powers,axp202" 23 - * "x-powers,axp209" 24 - * "x-powers,axp221" 25 - * "x-powers,axp223" 26 - * "x-powers,axp803" 27 - * "x-powers,axp806" 28 - * "x-powers,axp805", "x-powers,axp806" 29 - * "x-powers,axp305", "x-powers,axp805", "x-powers,axp806" 30 - * "x-powers,axp809" 31 - * "x-powers,axp813" 32 - - reg: The I2C slave address or RSB hardware address for the AXP chip 33 - - interrupt-controller: The PMIC has its own internal IRQs 34 - - #interrupt-cells: Should be set to 1 35 - 36 - Supported common regulator properties, see ../regulator/regulator.txt for 37 - more information: 38 - - regulator-ramp-delay: sets the ramp up delay in uV/us 39 - AXP20x/DCDC2: 1600, 800 40 - AXP20x/LDO3: 1600, 800 41 - - regulator-soft-start: enable the output at the lowest possible voltage and 42 - only then set the desired voltage 43 - AXP20x/LDO3: software-based implementation 44 - 45 - Optional properties: 46 - - interrupts: SoC NMI / GPIO interrupt connected to the PMIC's IRQ pin 47 - - x-powers,dcdc-freq: defines the work frequency of DC-DC in KHz 48 - AXP152/20X: range: 750-1875, Default: 1.5 MHz 49 - AXP22X/8XX: range: 1800-4050, Default: 3 MHz 50 - 51 - - x-powers,drive-vbus-en: boolean, set this when the N_VBUSEN pin is 52 - used as an output pin to control an external 53 - regulator to drive the OTG VBus, rather then 54 - as an input pin which signals whether the 55 - board is driving OTG VBus or not. 56 - (axp221 / axp223 / axp803/ axp813 only) 57 - 58 - - x-powers,self-working-mode and 59 - x-powers,master-mode: Boolean (axp806 only). Set either of these when the 60 - PMIC is wired for self-working mode or master mode. 61 - If neither is set then slave mode is assumed. 62 - This corresponds to how the MODESET pin is wired. 63 - 64 - - <input>-supply: a phandle to the regulator supply node. May be omitted if 65 - inputs are unregulated, such as using the IPSOUT output 66 - from the PMIC. 67 - 68 - - regulators: A node that houses a sub-node for each regulator. Regulators 69 - not used but preferred to be managed by the OS should be 70 - listed as well. 71 - See Documentation/devicetree/bindings/regulator/regulator.txt 72 - for more information on standard regulator bindings. 73 - 74 - Optional properties for DCDC regulators: 75 - - x-powers,dcdc-workmode: 1 for PWM mode, 0 for AUTO (PWM/PFM) mode 76 - Default: Current hardware setting 77 - The DCDC regulators work in a mixed PWM/PFM mode, 78 - using PFM under light loads and switching to PWM 79 - for heavier loads. Forcing PWM mode trades efficiency 80 - under light loads for lower output noise. This 81 - probably makes sense for HiFi audio related 82 - applications that aren't battery constrained. 83 - 84 - AXP202/AXP209 regulators, type, and corresponding input supply names: 85 - 86 - Regulator Type Supply Name Notes 87 - --------- ---- ----------- ----- 88 - DCDC2 : DC-DC buck : vin2-supply 89 - DCDC3 : DC-DC buck : vin3-supply 90 - LDO1 : LDO : acin-supply : always on 91 - LDO2 : LDO : ldo24in-supply : shared supply 92 - LDO3 : LDO : ldo3in-supply 93 - LDO4 : LDO : ldo24in-supply : shared supply 94 - LDO5 : LDO : ldo5in-supply 95 - 96 - AXP221/AXP223 regulators, type, and corresponding input supply names: 97 - 98 - Regulator Type Supply Name Notes 99 - --------- ---- ----------- ----- 100 - DCDC1 : DC-DC buck : vin1-supply 101 - DCDC2 : DC-DC buck : vin2-supply 102 - DCDC3 : DC-DC buck : vin3-supply 103 - DCDC4 : DC-DC buck : vin4-supply 104 - DCDC5 : DC-DC buck : vin5-supply 105 - DC1SW : On/Off Switch : : DCDC1 secondary output 106 - DC5LDO : LDO : : input from DCDC5 107 - ALDO1 : LDO : aldoin-supply : shared supply 108 - ALDO2 : LDO : aldoin-supply : shared supply 109 - ALDO3 : LDO : aldoin-supply : shared supply 110 - DLDO1 : LDO : dldoin-supply : shared supply 111 - DLDO2 : LDO : dldoin-supply : shared supply 112 - DLDO3 : LDO : dldoin-supply : shared supply 113 - DLDO4 : LDO : dldoin-supply : shared supply 114 - ELDO1 : LDO : eldoin-supply : shared supply 115 - ELDO2 : LDO : eldoin-supply : shared supply 116 - ELDO3 : LDO : eldoin-supply : shared supply 117 - LDO_IO0 : LDO : ips-supply : GPIO 0 118 - LDO_IO1 : LDO : ips-supply : GPIO 1 119 - RTC_LDO : LDO : ips-supply : always on 120 - DRIVEVBUS : Enable output : drivevbus-supply : external regulator 121 - 122 - AXP803 regulators, type, and corresponding input supply names: 123 - 124 - Regulator Type Supply Name Notes 125 - --------- ---- ----------- ----- 126 - DCDC1 : DC-DC buck : vin1-supply 127 - DCDC2 : DC-DC buck : vin2-supply : poly-phase capable 128 - DCDC3 : DC-DC buck : vin3-supply : poly-phase capable 129 - DCDC4 : DC-DC buck : vin4-supply 130 - DCDC5 : DC-DC buck : vin5-supply : poly-phase capable 131 - DCDC6 : DC-DC buck : vin6-supply : poly-phase capable 132 - DC1SW : On/Off Switch : : DCDC1 secondary output 133 - ALDO1 : LDO : aldoin-supply : shared supply 134 - ALDO2 : LDO : aldoin-supply : shared supply 135 - ALDO3 : LDO : aldoin-supply : shared supply 136 - DLDO1 : LDO : dldoin-supply : shared supply 137 - DLDO2 : LDO : dldoin-supply : shared supply 138 - DLDO3 : LDO : dldoin-supply : shared supply 139 - DLDO4 : LDO : dldoin-supply : shared supply 140 - ELDO1 : LDO : eldoin-supply : shared supply 141 - ELDO2 : LDO : eldoin-supply : shared supply 142 - ELDO3 : LDO : eldoin-supply : shared supply 143 - FLDO1 : LDO : fldoin-supply : shared supply 144 - FLDO2 : LDO : fldoin-supply : shared supply 145 - LDO_IO0 : LDO : ips-supply : GPIO 0 146 - LDO_IO1 : LDO : ips-supply : GPIO 1 147 - RTC_LDO : LDO : ips-supply : always on 148 - DRIVEVBUS : Enable output : drivevbus-supply : external regulator 149 - 150 - AXP806 regulators, type, and corresponding input supply names: 151 - 152 - Regulator Type Supply Name Notes 153 - --------- ---- ----------- ----- 154 - DCDCA : DC-DC buck : vina-supply : poly-phase capable 155 - DCDCB : DC-DC buck : vinb-supply : poly-phase capable 156 - DCDCC : DC-DC buck : vinc-supply : poly-phase capable 157 - DCDCD : DC-DC buck : vind-supply : poly-phase capable 158 - DCDCE : DC-DC buck : vine-supply : poly-phase capable 159 - ALDO1 : LDO : aldoin-supply : shared supply 160 - ALDO2 : LDO : aldoin-supply : shared supply 161 - ALDO3 : LDO : aldoin-supply : shared supply 162 - BLDO1 : LDO : bldoin-supply : shared supply 163 - BLDO2 : LDO : bldoin-supply : shared supply 164 - BLDO3 : LDO : bldoin-supply : shared supply 165 - BLDO4 : LDO : bldoin-supply : shared supply 166 - CLDO1 : LDO : cldoin-supply : shared supply 167 - CLDO2 : LDO : cldoin-supply : shared supply 168 - CLDO3 : LDO : cldoin-supply : shared supply 169 - SW : On/Off Switch : swin-supply 170 - 171 - Additionally, the AXP806 DC-DC regulators support poly-phase arrangements 172 - for higher output current. The possible groupings are: A+B, A+B+C, D+E. 173 - 174 - AXP809 regulators, type, and corresponding input supply names: 175 - 176 - Regulator Type Supply Name Notes 177 - --------- ---- ----------- ----- 178 - DCDC1 : DC-DC buck : vin1-supply 179 - DCDC2 : DC-DC buck : vin2-supply 180 - DCDC3 : DC-DC buck : vin3-supply 181 - DCDC4 : DC-DC buck : vin4-supply 182 - DCDC5 : DC-DC buck : vin5-supply 183 - DC1SW : On/Off Switch : : DCDC1 secondary output 184 - DC5LDO : LDO : : input from DCDC5 185 - ALDO1 : LDO : aldoin-supply : shared supply 186 - ALDO2 : LDO : aldoin-supply : shared supply 187 - ALDO3 : LDO : aldoin-supply : shared supply 188 - DLDO1 : LDO : dldoin-supply : shared supply 189 - DLDO2 : LDO : dldoin-supply : shared supply 190 - ELDO1 : LDO : eldoin-supply : shared supply 191 - ELDO2 : LDO : eldoin-supply : shared supply 192 - ELDO3 : LDO : eldoin-supply : shared supply 193 - LDO_IO0 : LDO : ips-supply : GPIO 0 194 - LDO_IO1 : LDO : ips-supply : GPIO 1 195 - RTC_LDO : LDO : ips-supply : always on 196 - SW : On/Off Switch : swin-supply 197 - 198 - AXP813 regulators, type, and corresponding input supply names: 199 - 200 - Regulator Type Supply Name Notes 201 - --------- ---- ----------- ----- 202 - DCDC1 : DC-DC buck : vin1-supply 203 - DCDC2 : DC-DC buck : vin2-supply : poly-phase capable 204 - DCDC3 : DC-DC buck : vin3-supply : poly-phase capable 205 - DCDC4 : DC-DC buck : vin4-supply 206 - DCDC5 : DC-DC buck : vin5-supply : poly-phase capable 207 - DCDC6 : DC-DC buck : vin6-supply : poly-phase capable 208 - DCDC7 : DC-DC buck : vin7-supply 209 - ALDO1 : LDO : aldoin-supply : shared supply 210 - ALDO2 : LDO : aldoin-supply : shared supply 211 - ALDO3 : LDO : aldoin-supply : shared supply 212 - DLDO1 : LDO : dldoin-supply : shared supply 213 - DLDO2 : LDO : dldoin-supply : shared supply 214 - DLDO3 : LDO : dldoin-supply : shared supply 215 - DLDO4 : LDO : dldoin-supply : shared supply 216 - ELDO1 : LDO : eldoin-supply : shared supply 217 - ELDO2 : LDO : eldoin-supply : shared supply 218 - ELDO3 : LDO : eldoin-supply : shared supply 219 - FLDO1 : LDO : fldoin-supply : shared supply 220 - FLDO2 : LDO : fldoin-supply : shared supply 221 - FLDO3 : LDO : fldoin-supply : shared supply 222 - LDO_IO0 : LDO : ips-supply : GPIO 0 223 - LDO_IO1 : LDO : ips-supply : GPIO 1 224 - RTC_LDO : LDO : ips-supply : always on 225 - SW : On/Off Switch : swin-supply 226 - DRIVEVBUS : Enable output : drivevbus-supply : external regulator 227 - 228 - Example: 229 - 230 - axp209: pmic@34 { 231 - compatible = "x-powers,axp209"; 232 - reg = <0x34>; 233 - interrupt-parent = <&nmi_intc>; 234 - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 235 - interrupt-controller; 236 - #interrupt-cells = <1>; 237 - 238 - regulators { 239 - x-powers,dcdc-freq = <1500>; 240 - 241 - vdd_cpu: dcdc2 { 242 - regulator-always-on; 243 - regulator-min-microvolt = <1000000>; 244 - regulator-max-microvolt = <1450000>; 245 - regulator-name = "vdd-cpu"; 246 - }; 247 - 248 - vdd_int_dll: dcdc3 { 249 - regulator-always-on; 250 - regulator-min-microvolt = <1000000>; 251 - regulator-max-microvolt = <1400000>; 252 - regulator-name = "vdd-int-dll"; 253 - }; 254 - 255 - vdd_rtc: ldo1 { 256 - regulator-always-on; 257 - regulator-min-microvolt = <1200000>; 258 - regulator-max-microvolt = <1400000>; 259 - regulator-name = "vdd-rtc"; 260 - }; 261 - 262 - avcc: ldo2 { 263 - regulator-always-on; 264 - regulator-min-microvolt = <2700000>; 265 - regulator-max-microvolt = <3300000>; 266 - regulator-name = "avcc"; 267 - }; 268 - 269 - ldo3 { 270 - /* unused but preferred to be managed by OS */ 271 - }; 272 - }; 273 - };
+400
Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/mfd/x-powers,axp152.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: X-Powers AXP PMIC Device Tree Bindings 8 + 9 + maintainers: 10 + - Chen-Yu Tsai <wens@csie.org> 11 + 12 + allOf: 13 + - if: 14 + properties: 15 + compatible: 16 + contains: 17 + enum: 18 + - x-powers,axp152 19 + - x-powers,axp202 20 + - x-powers,axp209 21 + 22 + then: 23 + properties: 24 + regulators: 25 + properties: 26 + x-powers,dcdc-freq: 27 + minimum: 750 28 + maximum: 1875 29 + default: 1500 30 + 31 + else: 32 + properties: 33 + regulators: 34 + properties: 35 + x-powers,dcdc-freq: 36 + minimum: 1800 37 + maximum: 4050 38 + default: 3000 39 + 40 + - if: 41 + properties: 42 + compatible: 43 + contains: 44 + enum: 45 + - x-powers,axp152 46 + - x-powers,axp202 47 + - x-powers,axp209 48 + 49 + then: 50 + not: 51 + required: 52 + - x-powers,drive-vbus-en 53 + 54 + - if: 55 + not: 56 + properties: 57 + compatible: 58 + contains: 59 + const: x-powers,axp806 60 + 61 + then: 62 + allOf: 63 + - not: 64 + required: 65 + - x-powers,self-working-mode 66 + 67 + - not: 68 + required: 69 + - x-powers,master-mode 70 + 71 + - if: 72 + not: 73 + properties: 74 + compatible: 75 + contains: 76 + const: x-powers,axp305 77 + 78 + then: 79 + required: 80 + - interrupts 81 + 82 + properties: 83 + compatible: 84 + oneOf: 85 + - enum: 86 + - x-powers,axp152 87 + - x-powers,axp202 88 + - x-powers,axp209 89 + - x-powers,axp221 90 + - x-powers,axp223 91 + - x-powers,axp803 92 + - x-powers,axp806 93 + - x-powers,axp809 94 + - x-powers,axp813 95 + - items: 96 + - const: x-powers,axp805 97 + - const: x-powers,axp806 98 + - items: 99 + - const: x-powers,axp305 100 + - const: x-powers,axp805 101 + - const: x-powers,axp806 102 + - items: 103 + - const: x-powers,axp818 104 + - const: x-powers,axp813 105 + 106 + reg: 107 + maxItems: 1 108 + 109 + interrupts: 110 + maxItems: 1 111 + 112 + interrupt-controller: true 113 + 114 + "#interrupt-cells": 115 + const: 1 116 + 117 + x-powers,drive-vbus-en: 118 + type: boolean 119 + description: > 120 + Set this when the N_VBUSEN pin is used as an output pin to control an 121 + external regulator to drive the OTG VBus, rather then as an input pin 122 + which signals whether the board is driving OTG VBus or not. 123 + 124 + x-powers,self-working-mode: 125 + type: boolean 126 + description: > 127 + Set this when the PMIC is wired for self-working mode through the MODESET 128 + pin. 129 + 130 + x-powers,master-mode: 131 + type: boolean 132 + description: > 133 + Set this when the PMIC is wired for master mode through the MODESET pin. 134 + 135 + vin1-supply: 136 + description: > 137 + DCDC1 power supply node, if present. 138 + 139 + vin2-supply: 140 + description: > 141 + DCDC2 power supply node, if present. 142 + 143 + vin3-supply: 144 + description: > 145 + DCDC3 power supply node, if present. 146 + 147 + vin4-supply: 148 + description: > 149 + DCDC4 power supply node, if present. 150 + 151 + vin5-supply: 152 + description: > 153 + DCDC5 power supply node, if present. 154 + 155 + vin6-supply: 156 + description: > 157 + DCDC6 power supply node, if present. 158 + 159 + vin7-supply: 160 + description: > 161 + DCDC7 power supply node, if present. 162 + 163 + vina-supply: 164 + description: > 165 + DCDCA power supply node, if present. 166 + 167 + vinb-supply: 168 + description: > 169 + DCDCB power supply node, if present. 170 + 171 + vinc-supply: 172 + description: > 173 + DCDCC power supply node, if present. 174 + 175 + vind-supply: 176 + description: > 177 + DCDCD power supply node, if present. 178 + 179 + vine-supply: 180 + description: > 181 + DCDCE power supply node, if present. 182 + 183 + acin-supply: 184 + description: > 185 + LDO1 power supply node, if present. 186 + 187 + ldo24in-supply: 188 + description: > 189 + LDO2 and LDO4 power supply node, if present. 190 + 191 + ldo3in-supply: 192 + description: > 193 + LDO3 power supply node, if present. 194 + 195 + ldo5in-supply: 196 + description: > 197 + LDO5 power supply node, if present. 198 + 199 + aldoin-supply: 200 + description: > 201 + ALDO* power supply node, if present. 202 + 203 + bldoin-supply: 204 + description: > 205 + BLDO* power supply node, if present. 206 + 207 + cldoin-supply: 208 + description: > 209 + CLDO* power supply node, if present. 210 + 211 + dldoin-supply: 212 + description: > 213 + DLDO* power supply node, if present. 214 + 215 + eldoin-supply: 216 + description: > 217 + ELDO* power supply node, if present. 218 + 219 + fldoin-supply: 220 + description: > 221 + FLDO* power supply node, if present. 222 + 223 + ips-supply: 224 + description: > 225 + LDO_IO0, LDO_IO1 and RTC_LDO power supply node, if present. 226 + 227 + drivevbus-supply: 228 + description: > 229 + DRIVEVBUS power supply node, if present. 230 + 231 + swin-supply: 232 + description: > 233 + SW power supply node, if present. 234 + 235 + adc: 236 + $ref: /schemas/iio/adc/x-powers,axp209-adc.yaml# 237 + 238 + gpio: 239 + $ref: /schemas/gpio/x-powers,axp209-gpio.yaml# 240 + 241 + ac-power: 242 + $ref: /schemas/power/supply/x-powers,axp20x-ac-power-supply.yaml# 243 + 244 + battery-power: 245 + $ref: /schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml# 246 + 247 + usb-power: 248 + $ref: /schemas/power/supply/x-powers,axp20x-usb-power-supply.yaml# 249 + 250 + regulators: 251 + type: object 252 + 253 + properties: 254 + x-powers,dcdc-freq: 255 + $ref: /schemas/types.yaml#/definitions/uint32 256 + description: > 257 + Defines the work frequency of DC-DC in kHz. 258 + 259 + patternProperties: 260 + "^(([a-f])?ldo[0-9]|dcdc[0-7a-e]|ldo(_|-)io(0|1)|(dc1)?sw|rtc(_|-)ldo|drivevbus|dc5ldo)$": 261 + $ref: /schemas/regulator/regulator.yaml# 262 + type: object 263 + 264 + properties: 265 + regulator-ramp-delay: 266 + description: > 267 + Only 800 and 1600 are valid for the DCDC2 and LDO3 regulators on 268 + the AXP209. 269 + 270 + regulator-soft-start: 271 + description: > 272 + Only valid for the LDO3 regulator. 273 + 274 + x-powers,dcdc-workmode: 275 + $ref: /schemas/types.yaml#/definitions/uint32 276 + enum: [0, 1] 277 + description: > 278 + Only valid for DCDC regulators. Setup 1 for PWM mode, 0 279 + for AUTO (PWM/PFM) mode. The DCDC regulators work in a 280 + mixed PWM/PFM mode, using PFM under light loads and 281 + switching to PWM for heavier loads. Forcing PWM mode 282 + trades efficiency under light loads for lower output 283 + noise. This probably makes sense for HiFi audio related 284 + applications that aren't battery constrained. 285 + 286 + additionalProperties: false 287 + 288 + required: 289 + - compatible 290 + - reg 291 + - "#interrupt-cells" 292 + - interrupt-controller 293 + 294 + additionalProperties: false 295 + 296 + examples: 297 + - | 298 + i2c0 { 299 + #address-cells = <1>; 300 + #size-cells = <0>; 301 + 302 + pmic@30 { 303 + compatible = "x-powers,axp152"; 304 + reg = <0x30>; 305 + interrupts = <0>; 306 + interrupt-controller; 307 + #interrupt-cells = <1>; 308 + }; 309 + }; 310 + 311 + - | 312 + #include <dt-bindings/interrupt-controller/irq.h> 313 + 314 + i2c0 { 315 + #address-cells = <1>; 316 + #size-cells = <0>; 317 + 318 + pmic@34 { 319 + compatible = "x-powers,axp209"; 320 + reg = <0x34>; 321 + interrupt-parent = <&nmi_intc>; 322 + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 323 + interrupt-controller; 324 + #interrupt-cells = <1>; 325 + 326 + ac_power_supply: ac-power { 327 + compatible = "x-powers,axp202-ac-power-supply"; 328 + }; 329 + 330 + axp_adc: adc { 331 + compatible = "x-powers,axp209-adc"; 332 + #io-channel-cells = <1>; 333 + }; 334 + 335 + axp_gpio: gpio { 336 + compatible = "x-powers,axp209-gpio"; 337 + gpio-controller; 338 + #gpio-cells = <2>; 339 + 340 + gpio0-adc-pin { 341 + pins = "GPIO0"; 342 + function = "adc"; 343 + }; 344 + }; 345 + 346 + battery_power_supply: battery-power { 347 + compatible = "x-powers,axp209-battery-power-supply"; 348 + }; 349 + 350 + regulators { 351 + /* Default work frequency for buck regulators */ 352 + x-powers,dcdc-freq = <1500>; 353 + 354 + reg_dcdc2: dcdc2 { 355 + regulator-always-on; 356 + regulator-min-microvolt = <1000000>; 357 + regulator-max-microvolt = <1450000>; 358 + regulator-name = "vdd-cpu"; 359 + }; 360 + 361 + reg_dcdc3: dcdc3 { 362 + regulator-always-on; 363 + regulator-min-microvolt = <1000000>; 364 + regulator-max-microvolt = <1400000>; 365 + regulator-name = "vdd-int-dll"; 366 + }; 367 + 368 + reg_ldo1: ldo1 { 369 + /* LDO1 is a fixed output regulator */ 370 + regulator-always-on; 371 + regulator-min-microvolt = <1300000>; 372 + regulator-max-microvolt = <1300000>; 373 + regulator-name = "vdd-rtc"; 374 + }; 375 + 376 + reg_ldo2: ldo2 { 377 + regulator-always-on; 378 + regulator-min-microvolt = <3000000>; 379 + regulator-max-microvolt = <3000000>; 380 + regulator-name = "avcc"; 381 + }; 382 + 383 + reg_ldo3: ldo3 { 384 + regulator-name = "ldo3"; 385 + }; 386 + 387 + reg_ldo4: ldo4 { 388 + regulator-name = "ldo4"; 389 + }; 390 + 391 + reg_ldo5: ldo5 { 392 + regulator-name = "ldo5"; 393 + }; 394 + }; 395 + 396 + usb_power_supply: usb-power { 397 + compatible = "x-powers,axp202-usb-power-supply"; 398 + }; 399 + }; 400 + };