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

Configure Feed

Select the types of activity you want to include in your feed.

at v5.2-rc2 57 lines 2.0 kB view raw
1GPIO controlled regulators 2 3Required properties: 4- compatible : Must be "regulator-gpio". 5- regulator-name : Defined in regulator.txt as optional, but required 6 here. 7- gpios : Array of one or more GPIO pins used to select the 8 regulator voltage/current listed in "states". 9- states : Selection of available voltages/currents provided by 10 this regulator and matching GPIO configurations to 11 achieve them. If there are no states in the "states" 12 array, use a fixed regulator instead. 13 14Optional properties: 15- enable-gpios : GPIO used to enable/disable the regulator. 16 Warning, the GPIO phandle flags are ignored and the 17 GPIO polarity is controlled solely by the presence 18 of "enable-active-high" DT property. This is due to 19 compatibility with old DTs. 20- enable-active-high : Polarity of "enable-gpio" GPIO is active HIGH. 21 Default is active LOW. 22- gpios-states : On operating systems, that don't support reading back 23 gpio values in output mode (most notably linux), this 24 array provides the state of GPIO pins set when 25 requesting them from the gpio controller. Systems, 26 that are capable of preserving state when requesting 27 the lines, are free to ignore this property. 28 0: LOW, 1: HIGH. Default is LOW if nothing else 29 is specified. 30- startup-delay-us : Startup time in microseconds. 31- regulator-type : Specifies what is being regulated, must be either 32 "voltage" or "current", defaults to voltage. 33 34Any property defined as part of the core regulator binding defined in 35regulator.txt can also be used. 36 37Example: 38 39 mmciv: gpio-regulator { 40 compatible = "regulator-gpio"; 41 42 regulator-name = "mmci-gpio-supply"; 43 regulator-min-microvolt = <1800000>; 44 regulator-max-microvolt = <2600000>; 45 regulator-boot-on; 46 47 enable-gpios = <&gpio0 23 0x4>; 48 gpios = <&gpio0 24 0x4 49 &gpio0 25 0x4>; 50 states = <1800000 0x3 51 2200000 0x2 52 2600000 0x1 53 2900000 0x0>; 54 55 startup-delay-us = <100000>; 56 enable-active-high; 57 };