1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/regulator/gpio-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: GPIO controlled regulators
10 - Liam Girdwood <lgirdwood@gmail.com>
11 - Mark Brown <broonie@kernel.org>
14 Any property defined as part of the core regulator binding, defined in
15 regulator.txt, can also be used.
18 - $ref: "regulator.yaml#"
27 description: GPIO to use to enable/disable the regulator.
28 Warning, the GPIO phandle flags are ignored and the GPIO polarity is
29 controlled solely by the presence of "enable-active-high" DT property.
30 This is due to compatibility with old DTs.
34 description: Array of one or more GPIO pins used to select the regulator
35 voltage/current listed in "states".
37 maxItems: 8 # Should be enough...
41 On operating systems, that don't support reading back gpio values in
42 output mode (most notably linux), this array provides the state of GPIO
43 pins set when requesting them from the gpio controller. Systems, that are
44 capable of preserving state when requesting the lines, are free to ignore
48 Default is LOW if nothing else is specified.
50 - $ref: /schemas/types.yaml#/definitions/uint32-array
57 description: Selection of available voltages/currents provided by this
58 regulator and matching GPIO configurations to achieve them. If there are
59 no states in the "states" array, use a fixed regulator instead.
61 - $ref: /schemas/types.yaml#/definitions/uint32-matrix
65 - description: Voltage in microvolts
66 - description: GPIO group state value
69 description: startup time in microseconds
72 description: Polarity of "enable-gpio" GPIO is active HIGH. Default is
78 GPIO is open drain type. If this property is missing then default
83 description: Specifies what is being regulated.
85 - $ref: /schemas/types.yaml#/definitions/string
100 compatible = "regulator-gpio";
102 regulator-name = "mmci-gpio-supply";
103 regulator-min-microvolt = <1800000>;
104 regulator-max-microvolt = <2600000>;
107 enable-gpios = <&gpio0 23 0x4>;
108 gpios = <&gpio0 24 0x4
110 states = <1800000 0x3>,
115 startup-delay-us = <100000>;