Lines Matching +full:regulator +full:- +full:gpio
2 # SPDX-License-Identifier: Apache-2.0
5 GPIO-controlled voltage of regulators
8 vccq_sd0: regulator-vccq-sd0 {
9 compatible = "regulator-gpio";
11 regulator-name = "SD0 VccQ";
12 regulator-min-microvolt = <1800000>;
13 regulator-max-microvolt = <3300000>;
15 enable-gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>;
20 regulator-boot-on;
23 In the above example, three GPIO pins are used for controlling the regulator:
25 * third for enabling/disabling the regulator.
28 - name: base.yaml
29 - name: regulator.yaml
30 property-allowlist:
31 - regulator-name
32 - regulator-init-microvolt
33 - regulator-min-microvolt
34 - regulator-max-microvolt
35 - regulator-always-on
36 - regulator-boot-on
37 - startup-delay-us
39 compatible: "regulator-gpio"
42 regulator-name:
46 type: phandle-array
49 GPIO to use to switch voltage.
54 Selection of available voltages provided by this regulator and matching
55 GPIO configurations to achieve them. If there are no states in the
56 "states" array, use a fixed regulator instead. First value in an array
57 item is voltage in microvolts and the second is GPIO group state value.
59 enable-gpios:
60 type: phandle-array
62 GPIO to use to enable/disable the regulator.
64 Unlike the gpio property in the Linux bindings this array must provide
65 the GPIO polarity and open-drain status in the phandle selector. The
66 Linux enable-active-high and gpio-open-drain properties are not valid
68 working with more than one GPIO and this property does not have a state
69 array. The driver simply sets or clears the appropriate GPIO bit when
70 it is requested to enable or disable the regulator.
73 enable-gpios = <&gpio5 2 GPIO_ACTIVE_HIGH>;