| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/i2c/ |
| D | i2c-gpio.txt | 1 Device-Tree bindings for i2c gpio driver 4 - compatible = "i2c-gpio"; 5 - sda-gpios: gpio used for the sda signal, this should be flagged as 6 active high using open drain with (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) 7 from <dt-bindings/gpio/gpio.h> since the signal is by definition 8 open drain. 9 - scl-gpios: gpio used for the scl signal, this should be flagged as 10 active high using open drain with (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) 11 from <dt-bindings/gpio/gpio.h> since the signal is by definition 12 open drain. [all …]
|
| /kernel/linux/linux-5.10/arch/arm64/boot/dts/nvidia/ |
| D | tegra210-p2597.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 2 #include <dt-bindings/input/input.h> 20 avdd-dsi-csi-supply = <&vdd_dsi_csi>; 30 avdd-io-hdmi-dp-supply = <&avdd_1v05>; 31 vdd-hdmi-dp-pll-supply = <&vdd_1v8>; 32 hdmi-supply = <&vdd_hdmi>; 34 nvidia,ddc-i2c-bus = <&hdmi_ddc>; 35 nvidia,hpd-gpio = <&gpio TEGRA_GPIO(CC, 1) 41 pinctrl-names = "boot"; 42 pinctrl-0 = <&state_boot>; [all …]
|
| D | tegra210-p2894.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 #include <dt-bindings/input/input.h> 4 #include <dt-bindings/input/gpio-keys.h> 5 #include <dt-bindings/mfd/max77620.h> 6 #include <dt-bindings/pinctrl/pinctrl-tegra.h> 16 stdout-path = "serial0:115200n8"; 26 pinctrl-names = "boot"; 27 pinctrl-0 = <&state_boot>; 35 nvidia,enable-input = <TEGRA_PIN_DISABLE>; 36 nvidia,open-drain = <TEGRA_PIN_DISABLE>; [all …]
|
| D | tegra210-smaug.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/input/input.h> 5 #include <dt-bindings/mfd/max77620.h> 6 #include <dt-bindings/pinctrl/pinctrl-tegra.h> 12 compatible = "google,smaug-rev8", "google,smaug-rev7", 13 "google,smaug-rev6", "google,smaug-rev5", 14 "google,smaug-rev4", "google,smaug-rev3", 15 "google,smaug-rev2", "google,smaug-rev1", 24 stdout-path = "serial0:115200n8"; [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/i2c/ |
| D | i2c-gpio.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/i2c/i2c-gpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Bindings for GPIO bitbanged I2C 10 - Wolfram Sang <wolfram@the-dreams.de> 13 - $ref: /schemas/i2c/i2c-controller.yaml# 18 - const: i2c-gpio 20 sda-gpios: 22 gpio used for the sda signal, this should be flagged as [all …]
|
| /kernel/linux/linux-4.19/arch/arm64/boot/dts/nvidia/ |
| D | tegra210-p2597.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 2 #include <dt-bindings/input/input.h> 16 avdd-io-supply = <&avdd_1v05>; 17 vdd-pll-supply = <&vdd_1v8>; 18 hdmi-supply = <&vdd_hdmi>; 20 nvidia,ddc-i2c-bus = <&hdmi_ddc>; 21 nvidia,hpd-gpio = <&gpio TEGRA_GPIO(CC, 1) 27 pinctrl-names = "boot"; 28 pinctrl-0 = <&state_boot>; 36 nvidia,enable-input = <TEGRA_PIN_DISABLE>; [all …]
|
| D | tegra210-smaug.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/input/input.h> 5 #include <dt-bindings/mfd/max77620.h> 6 #include <dt-bindings/pinctrl/pinctrl-tegra.h> 12 compatible = "google,smaug-rev8", "google,smaug-rev7", 13 "google,smaug-rev6", "google,smaug-rev5", 14 "google,smaug-rev4", "google,smaug-rev3", 15 "google,smaug-rev2", "google,smaug-rev1", 24 stdout-path = "serial0:115200n8"; [all …]
|
| /kernel/linux/linux-5.10/Documentation/driver-api/gpio/ |
| D | intro.rst | 6 GPIO Interfaces 13 Due to the history of GPIO interfaces in the kernel, there are two different 16 - The descriptor-based interface is the preferred way to manipulate GPIOs, 17 and is described by all the files in this directory excepted gpio-legacy.txt. 18 - The legacy integer-based interface which is considered deprecated (but still 19 usable for compatibility reasons) is documented in gpio-legacy.txt. 21 The remainder of this document applies to the new descriptor-based interface. 22 gpio-legacy.txt contains the same information applied to the legacy 23 integer-based interface. 26 What is a GPIO? [all …]
|
| D | consumer.rst | 2 GPIO Descriptor Consumer Interface 5 This document describes the consumer interface of the GPIO framework. Note that 6 it describes the new descriptor-based interface. For a description of the 7 deprecated integer-based GPIO interface please refer to gpio-legacy.txt. 13 Drivers that can't work without standard GPIO calls should have Kconfig entries 17 #include <linux/gpio/consumer.h> 23 - Simple compile coverage with e.g. COMPILE_TEST - it does not matter that 27 - Truly optional GPIOLIB support - where the driver does not really make use 28 of the GPIOs on certain compile-time configurations for certain systems, but 29 will use it under other compile-time configurations. In this case the [all …]
|
| D | driver.rst | 2 GPIO Driver Interface 5 This document serves as a guide for writers of GPIO chip drivers. 7 Each GPIO controller driver needs to include the following header, which defines 8 the structures used to define a GPIO driver:: 10 #include <linux/gpio/driver.h> 16 A GPIO chip handles one or more GPIO lines. To be considered a GPIO chip, the 18 line is not general purpose, it is not GPIO and should not be handled by a 19 GPIO chip. The use case is the indicative: certain lines in a system may be 20 called GPIO but serve a very particular purpose thus not meeting the criteria 22 GPIO and should therefore still be handled by a GPIO chip driver. [all …]
|
| /kernel/linux/linux-4.19/Documentation/driver-api/gpio/ |
| D | intro.rst | 6 GPIO Interfaces 13 Due to the history of GPIO interfaces in the kernel, there are two different 16 - The descriptor-based interface is the preferred way to manipulate GPIOs, 17 and is described by all the files in this directory excepted gpio-legacy.txt. 18 - The legacy integer-based interface which is considered deprecated (but still 19 usable for compatibility reasons) is documented in gpio-legacy.txt. 21 The remainder of this document applies to the new descriptor-based interface. 22 gpio-legacy.txt contains the same information applied to the legacy 23 integer-based interface. 26 What is a GPIO? [all …]
|
| D | driver.rst | 2 GPIO Descriptor Driver Interface 5 This document serves as a guide for GPIO chip drivers writers. Note that it 6 describes the new descriptor-based interface. For a description of the 7 deprecated integer-based GPIO interface please refer to gpio-legacy.txt. 9 Each GPIO controller driver needs to include the following header, which defines 10 the structures used to define a GPIO driver: 12 #include <linux/gpio/driver.h> 18 Inside a GPIO driver, individual GPIOs are identified by their hardware number, 21 GPIO descriptor is never made visible outside of the driver. 23 On top of this internal number, each GPIO also need to have a global number in [all …]
|
| D | consumer.rst | 2 GPIO Descriptor Consumer Interface 5 This document describes the consumer interface of the GPIO framework. Note that 6 it describes the new descriptor-based interface. For a description of the 7 deprecated integer-based GPIO interface please refer to gpio-legacy.txt. 13 Drivers that can't work without standard GPIO calls should have Kconfig entries 17 #include <linux/gpio/consumer.h> 23 - Simple compile coverage with e.g. COMPILE_TEST - it does not matter that 27 - Truly optional GPIOLIB support - where the driver does not really make use 28 of the GPIOs on certain compile-time configurations for certain systems, but 29 will use it under other compile-time configurations. In this case the [all …]
|
| /kernel/linux/linux-5.10/drivers/w1/masters/ |
| D | w1-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * w1-gpio - GPIO w1 bus master driver 12 #include <linux/w1-gpio.h> 13 #include <linux/gpio/consumer.h> 26 pdata->pullup_duration = delay; in w1_gpio_set_pullup() 28 if (pdata->pullup_duration) { in w1_gpio_set_pullup() 30 * This will OVERRIDE open drain emulation and force-pull in w1_gpio_set_pullup() 33 gpiod_set_raw_value(pdata->gpiod, 1); in w1_gpio_set_pullup() 34 msleep(pdata->pullup_duration); in w1_gpio_set_pullup() 37 * open drain emulation in the GPIO library. in w1_gpio_set_pullup() [all …]
|
| /kernel/linux/linux-4.19/drivers/w1/masters/ |
| D | w1-gpio.c | 2 * w1-gpio - GPIO w1 bus master driver 15 #include <linux/w1-gpio.h> 16 #include <linux/gpio/consumer.h> 29 pdata->pullup_duration = delay; in w1_gpio_set_pullup() 31 if (pdata->pullup_duration) { in w1_gpio_set_pullup() 33 * This will OVERRIDE open drain emulation and force-pull in w1_gpio_set_pullup() 36 gpiod_set_raw_value(pdata->gpiod, 1); in w1_gpio_set_pullup() 37 msleep(pdata->pullup_duration); in w1_gpio_set_pullup() 40 * open drain emulation in the GPIO library. in w1_gpio_set_pullup() 42 gpiod_set_value(pdata->gpiod, 1); in w1_gpio_set_pullup() [all …]
|
| /kernel/linux/linux-4.19/include/dt-bindings/gpio/ |
| D | gpio.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * This header provides constants for most GPIO bindings. 5 * Most GPIO bindings include a flags cell as part of the GPIO specifier. 17 /* Bit 1 express single-endedness */ 21 /* Bit 2 express Open drain or open source */ 26 * Open Drain/Collector is the combination of single-ended open drain interface. 27 * Open Source/Emitter is the combination of single-ended open source interface. 32 /* Bit 3 express GPIO suspend/resume and reset persistence */
|
| /kernel/linux/linux-5.10/include/dt-bindings/gpio/ |
| D | gpio.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * This header provides constants for most GPIO bindings. 5 * Most GPIO bindings include a flags cell as part of the GPIO specifier. 17 /* Bit 1 express single-endedness */ 21 /* Bit 2 express Open drain or open source */ 26 * Open Drain/Collector is the combination of single-ended open drain interface. 27 * Open Source/Emitter is the combination of single-ended open source interface. 32 /* Bit 3 express GPIO suspend/resume and reset persistence */
|
| /kernel/linux/linux-4.19/drivers/i2c/busses/ |
| D | i2c-gpio.c | 2 * Bitbanging I2C bus driver using the GPIO API 13 #include <linux/i2c-algo-bit.h> 14 #include <linux/platform_data/i2c-gpio.h> 19 #include <linux/gpio/consumer.h> 35 * valid for pins configured as open drain (i.e. setting the value 42 gpiod_set_value_cansleep(priv->sda, state); in i2c_gpio_setsda_val() 47 * for pins that are configured as open drain and for output-only 55 gpiod_set_value_cansleep(priv->scl, state); in i2c_gpio_setscl_val() 62 return gpiod_get_value_cansleep(priv->sda); in i2c_gpio_getsda() 69 return gpiod_get_value_cansleep(priv->scl); in i2c_gpio_getscl() [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/regulator/ |
| D | fixed-regulator.txt | 4 - compatible: Must be "regulator-fixed"; 5 - regulator-name: Defined in regulator.txt as optional, but required here. 8 - gpio: gpio to use for enable control 9 - startup-delay-us: startup time in microseconds 10 - enable-active-high: Polarity of GPIO is Active high 12 - gpio-open-drain: GPIO is open drain type. 14 -vin-supply: Input supply name. 19 regulator-min-microvolt and regulator-max-microvolt 25 compatible = "regulator-fixed"; 26 regulator-name = "fixed-supply"; [all …]
|
| /kernel/linux/linux-4.19/include/linux/regulator/ |
| D | fixed.h | 9 * Roger Quadros <ext-roger.quadros@nokia.com> 23 * struct fixed_voltage_config - fixed_voltage_config structure 27 * @gpio: GPIO to use for enable control 28 * set to -EINVAL if not used 29 * @startup_delay: Start-up time in microseconds 30 * @gpio_is_open_drain: Gpio pin is open drain or normal type. 31 * If it is open drain type then HIGH will be set 32 * through PULL-UP with setting gpio as input 33 * and low will be set as gpio-output with driven 34 * to low. For non-open-drain case, the gpio will [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/regulator/ |
| D | fixed-regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/regulator/fixed-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Liam Girdwood <lgirdwood@gmail.com> 11 - Mark Brown <broonie@kernel.org> 16 expected to have the regulator-min-microvolt and regulator-max-microvolt 20 - $ref: "regulator.yaml#" 26 const: regulator-fixed-clock 28 - clocks [all …]
|
| /kernel/linux/linux-5.10/drivers/gpio/ |
| D | gpio-tps65218.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * This driver is based on the gpio-tps65912 implementation. 13 #include <linux/gpio/driver.h> 26 struct tps65218 *tps65218 = tps65218_gpio->tps65218; in tps65218_gpio_get() 30 ret = regmap_read(tps65218->regmap, TPS65218_REG_ENABLE2, &val); in tps65218_gpio_get() 41 struct tps65218 *tps65218 = tps65218_gpio->tps65218; in tps65218_gpio_set() 64 return -EPERM; in tps65218_gpio_input() 70 struct tps65218 *tps65218 = tps65218_gpio->tps65218; in tps65218_gpio_request() 74 dev_err(gc->parent, "can't work as open source\n"); in tps65218_gpio_request() 75 return -EINVAL; in tps65218_gpio_request() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/w1/ |
| D | w1-gpio.txt | 1 w1-gpio devicetree bindings 5 - compatible: "w1-gpio" 6 - gpios: one or two GPIO specs: 7 - the first one is used as data I/O pin 8 - the second one is optional. If specified, it is used as 13 - linux,open-drain: if specified, the data pin is considered in 14 open-drain mode. 21 compatible = "w1-gpio"; 22 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/w1/ |
| D | w1-gpio.txt | 1 w1-gpio devicetree bindings 5 - compatible: "w1-gpio" 6 - gpios: one or two GPIO specs: 7 - the first one is used as data I/O pin 8 - the second one is optional. If specified, it is used as 13 - linux,open-drain: if specified, the data pin is considered in 14 open-drain mode. 21 compatible = "w1-gpio"; 22 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
| /kernel/linux/linux-4.19/drivers/gpio/ |
| D | gpio-tps65218.c | 11 * This driver is based on the gpio-tps65912 implementation. 17 #include <linux/gpio/driver.h> 30 struct tps65218 *tps65218 = tps65218_gpio->tps65218; in tps65218_gpio_get() 34 ret = regmap_read(tps65218->regmap, TPS65218_REG_ENABLE2, &val); in tps65218_gpio_get() 45 struct tps65218 *tps65218 = tps65218_gpio->tps65218; in tps65218_gpio_set() 68 return -EPERM; in tps65218_gpio_input() 74 struct tps65218 *tps65218 = tps65218_gpio->tps65218; in tps65218_gpio_request() 78 dev_err(gc->parent, "can't work as open source\n"); in tps65218_gpio_request() 79 return -EINVAL; in tps65218_gpio_request() 85 dev_err(gc->parent, "GPO1 works only as open drain\n"); in tps65218_gpio_request() [all …]
|