Home
last modified time | relevance | path

Searched +full:gpios +full:- +full:states (Results 1 – 25 of 186) sorted by relevance

12345678

/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/regulator/
H A Dgpio-regulator.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/regulator/gpio-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Liam Girdwood <lgirdwood@gmail.com>
11 - Mark Brown <broonie@kernel.org>
18 - $ref: "regulator.yaml#"
22 const: regulator-gpio
24 regulator-name: true
26 enable-gpios:
[all …]
/OK3568_Linux_fs/kernel/drivers/regulator/
H A Dgpio-regulator.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * gpio-regulator.c
14 * Roger Quadros <ext-roger.quadros@nokia.com>
17 * non-controllable regulators, as well as for allowing testing on
28 #include <linux/regulator/gpio-regulator.h>
39 struct gpio_regulator_state *states; member
50 for (ptr = 0; ptr < data->nr_states; ptr++) in gpio_regulator_get_value()
51 if (data->states[ptr].gpios == data->state) in gpio_regulator_get_value()
52 return data->states[ptr].value; in gpio_regulator_get_value()
54 return -EINVAL; in gpio_regulator_get_value()
[all …]
/OK3568_Linux_fs/kernel/include/linux/regulator/
H A Dgpio-regulator.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * gpio-regulator.h
14 * Roger Quadros <ext-roger.quadros@nokia.com>
27 * struct gpio_regulator_state - state description
29 * @gpios: bitfield of gpio target-states for the value
32 * and the necessary gpio-state to achieve it.
34 * The n-th bit in the bitfield describes the state of the n-th GPIO
35 * from the gpios-array defined in gpio_regulator_config below.
39 int gpios; member
43 * struct gpio_regulator_config - config structure
[all …]
/OK3568_Linux_fs/kernel/drivers/mux/
H A Dgpio.c1 // SPDX-License-Identifier: GPL-2.0
3 * GPIO-controlled multiplexer driver
19 struct gpio_descs *gpios; member
24 struct mux_gpio *mux_gpio = mux_chip_priv(mux->chip); in mux_gpio_set()
29 gpiod_set_array_value_cansleep(mux_gpio->gpios->ndescs, in mux_gpio_set()
30 mux_gpio->gpios->desc, in mux_gpio_set()
31 mux_gpio->gpios->info, values); in mux_gpio_set()
41 { .compatible = "gpio-mux", },
48 struct device *dev = &pdev->dev; in mux_gpio_probe()
64 mux_chip->ops = &mux_gpio_ops; in mux_gpio_probe()
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/dts/
H A Dr8a7796-salvator-x.dts2 * Device Tree Source for the Salvator-X board
11 /dts-v1/;
13 #include <dt-bindings/gpio/gpio.h>
16 model = "Renesas Salvator-X board based on r8a7796";
17 compatible = "renesas,salvator-x", "renesas,r8a7796";
27 stdout-path = "serial0:115200n8";
42 compatible = "regulator-fixed";
43 regulator-name = "fixed-1.8V";
44 regulator-min-microvolt = <1800000>;
45 regulator-max-microvolt = <1800000>;
[all …]
H A Dr8a7796-m3ulcb.dts2 * Device Tree Source for the M3ULCB (R-Car Starter Kit Pro) board
12 /dts-v1/;
14 #include <dt-bindings/gpio/gpio.h>
15 #include <dt-bindings/input/input.h>
26 stdout-path = "serial0:115200n8";
36 compatible = "gpio-leds";
39 gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
42 gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>;
47 compatible = "gpio-keys";
49 key-1 {
[all …]
H A Dr8a7795-salvator-x.dts2 * Device Tree Source for the Salvator-X board
12 * SSI-AK4613
34 /dts-v1/;
36 #include <dt-bindings/gpio/gpio.h>
39 model = "Renesas Salvator-X board based on r8a7795";
40 compatible = "renesas,salvator-x", "renesas,r8a7795";
50 stdout-path = "serial0:115200n8";
60 compatible = "fixed-clock";
61 #clock-cells = <0>;
62 clock-frequency = <24576000>;
[all …]
/OK3568_Linux_fs/u-boot/drivers/power/regulator/
H A Dgpio-regulator.c3 * Keerthy <j-keerthy@ti.com>
5 * SPDX-License-Identifier: GPL-2.0+
23 int states[GPIO_REGULATOR_MAX_STATES]; member
38 return -ENXIO; in gpio_regulator_ofdata_to_platdata()
41 uc_pdata->type = REGULATOR_TYPE_GPIO; in gpio_regulator_ofdata_to_platdata()
46 * Can be extended later to multiple GPIOs in gpio_regulator_ofdata_to_platdata()
47 * per gpio-regulator. As of now no instance with multiple in gpio_regulator_ofdata_to_platdata()
48 * gpios is presnt in gpio_regulator_ofdata_to_platdata()
50 gpio = &dev_pdata->gpio; in gpio_regulator_ofdata_to_platdata()
51 ret = gpio_request_by_name(dev, "gpios", 0, gpio, GPIOD_IS_OUT); in gpio_regulator_ofdata_to_platdata()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Dr8a7793-gose.dts1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2014-2015 Renesas Electronics Corporation
9 * SSI-AK4643
36 /dts-v1/;
38 #include <dt-bindings/gpio/gpio.h>
39 #include <dt-bindings/input/input.h>
59 stdout-path = "serial0:115200n8";
67 gpio-keys {
68 compatible = "gpio-keys";
70 key-1 {
[all …]
H A Dr8a7791-koelsch.dts1 // SPDX-License-Identifier: GPL-2.0
6 * Copyright (C) 2013-2014 Renesas Solutions Corp.
11 * SSI-AK4643
38 /dts-v1/;
40 #include <dt-bindings/gpio/gpio.h>
41 #include <dt-bindings/input/input.h>
63 stdout-path = "serial0:115200n8";
77 #address-cells = <1>;
78 #size-cells = <1>;
82 compatible = "gpio-keys";
[all …]
H A Dr8a7794-alt.dts1 // SPDX-License-Identifier: GPL-2.0
8 /dts-v1/;
10 #include <dt-bindings/gpio/gpio.h>
29 stdout-path = "serial0:115200n8";
37 d3_3v: regulator-d3-3v {
38 compatible = "regulator-fixed";
39 regulator-name = "D3.3V";
40 regulator-min-microvolt = <3300000>;
41 regulator-max-microvolt = <3300000>;
42 regulator-boot-on;
[all …]
H A Dr8a7791-porter.dts1 // SPDX-License-Identifier: GPL-2.0
9 * SSI-AK4642
11 * JP3: 2-1: AK4642
12 * 2-3: ADV7511
19 /dts-v1/;
21 #include <dt-bindings/gpio/gpio.h>
37 stdout-path = "serial0:115200n8";
50 vcc_sdhi0: regulator-vcc-sdhi0 {
51 compatible = "regulator-fixed";
53 regulator-name = "SDHI0 Vcc";
[all …]
H A Dsun8i-h2-plus-bananapi-m2-zero.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
5 * Based on sun8i-h3-bananapi-m2-plus.dts, which is:
6 * Copyright (C) 2016 Chen-Yu Tsai <wens@csie.org>
9 /dts-v1/;
10 #include "sun8i-h3.dtsi"
11 #include "sunxi-common-regulators.dtsi"
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
17 model = "Banana Pi BPI-M2-Zero";
18 compatible = "sinovoip,bpi-m2-zero", "allwinner,sun8i-h2-plus";
[all …]
H A Dsun8i-h3-nanopi-duo2.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
7 #include "sun8i-h3.dtsi"
8 #include "sunxi-common-regulators.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
15 compatible = "friendlyarm,nanopi-duo2", "allwinner,sun8i-h3";
22 stdout-path = "serial0:115200n8";
26 compatible = "gpio-leds";
30 gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */
[all …]
H A Dsun8i-h3-orangepi-one.dts4 * This file is dual-licensed: you can use it either under the terms
43 /dts-v1/;
44 #include "sun8i-h3.dtsi"
45 #include "sunxi-common-regulators.dtsi"
47 #include <dt-bindings/gpio/gpio.h>
48 #include <dt-bindings/input/input.h>
52 compatible = "xunlong,orangepi-one", "allwinner,sun8i-h3";
60 stdout-path = "serial0:115200n8";
64 compatible = "hdmi-connector";
69 remote-endpoint = <&hdmi_out_con>;
[all …]
H A Dsunxi-bananapi-m2-plus-v1.2.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2018 Chen-Yu Tsai <wens@csie.org>
6 #include "sunxi-bananapi-m2-plus.dtsi"
13 reg_vdd_cpux: vdd-cpux {
14 compatible = "regulator-gpio";
15 regulator-name = "vdd-cpux";
16 regulator-type = "voltage";
17 regulator-boot-on;
18 regulator-always-on;
19 regulator-min-microvolt = <1108475>;
[all …]
H A Dsun8i-h2-plus-orangepi-zero.dts4 * Based on sun8i-h3-orangepi-one.dts, which is:
7 * This file is dual-licensed: you can use it either under the terms
46 /dts-v1/;
47 #include "sun8i-h3.dtsi"
48 #include "sunxi-common-regulators.dtsi"
50 #include <dt-bindings/gpio/gpio.h>
51 #include <dt-bindings/input/input.h>
55 compatible = "xunlong,orangepi-zero", "allwinner,sun8i-h2-plus";
59 /* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */
65 stdout-path = "serial0:115200n8";
[all …]
H A Dsun8i-h3-emlid-neutis-n5h3-devboard.dts1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
8 /dts-v1/;
10 #include "sun8i-h3-emlid-neutis-n5h3.dtsi"
14 compatible = "emlid,neutis-n5h3-devboard",
15 "emlid,neutis-n5h3",
16 "allwinner,sun8i-h3";
18 vdd_cpux: gpio-regulator {
19 compatible = "regulator-gpio";
20 regulator-name = "vdd-cpux";
21 regulator-type = "voltage";
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/synaptics/
H A Dberlin4ct.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
12 interrupt-parent = <&gic>;
13 #address-cells = <2>;
14 #size-cells = <2>;
21 compatible = "arm,psci-1.0", "arm,psci-0.2";
26 #address-cells = <1>;
27 #size-cells = <0>;
30 compatible = "arm,cortex-a53";
33 enable-method = "psci";
[all …]
H A Das370.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
12 interrupt-parent = <&gic>;
13 #address-cells = <2>;
14 #size-cells = <2>;
17 compatible = "arm,psci-1.0";
22 #address-cells = <1>;
23 #size-cells = <0>;
26 compatible = "arm,cortex-a53";
29 enable-method = "psci";
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/
H A Drk3566-box-demo-v10.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 /dts-v1/;
9 #include "rk3566-box.dtsi"
13 compatible = "rockchip,rk3568-box-demo-v10", "rockchip,rk3566";
15 gpio-leds {
16 compatible = "gpio-leds";
18 ir-led {
19 gpios = <&gpio4 RK_PC5 GPIO_ACTIVE_HIGH>;
20 default-state = "off";
23 work-led {
[all …]
H A Drk3568-toybrick-x0.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/pinctrl/rockchip.h>
10 #include "rk3568-toybrick.dtsi"
12 /delete-node/ &adc_keys;
15 compatible = "rockchip,rk3568-toybrick", "rockchip,rk3568";
16 adc-keys {
17 compatible = "adc-keys";
18 io-channels = <&saradc 0>;
19 io-channel-names = "buttons";
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/marvell/
H A Darmada-7040-db.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 #include <dt-bindings/gpio/gpio.h>
9 #include "armada-7040.dtsi"
13 compatible = "marvell,armada7040-db", "marvell,armada7040",
14 "marvell,armada-ap806-quad", "marvell,armada-ap806";
17 stdout-path = "serial0:115200n8";
31 cp0_exp_usb3_0_current_regulator: gpio-regulator {
32 compatible = "regulator-gpio";
33 regulator-name = "cp0-usb3-0-current-regulator";
34 regulator-type = "current";
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/allwinner/
H A Dsun50i-h5-nanopi-neo-plus2.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
5 /dts-v1/;
6 #include "sun50i-h5.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/pinctrl/sun4i-a10.h>
14 compatible = "friendlyarm,nanopi-neo-plus2", "allwinner,sun50i-h5";
22 stdout-path = "serial0:115200n8";
26 compatible = "gpio-leds";
30 gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>;
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/amlogic/
H A Dmeson-gxl-s905x-hwacom-amazetv.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
10 #include "meson-gxl-s905x.dtsi"
13 compatible = "hwacom,amazetv", "amlogic,s905x", "amlogic,meson-gxl";
22 stdout-path = "serial0:115200n8";
30 vddio_card: gpio-regulator {
31 compatible = "regulator-gpio";
33 regulator-name = "VDDIO_CARD";
34 regulator-min-microvolt = <1800000>;
35 regulator-max-microvolt = <3300000>;
[all …]

12345678