/linux-6.12.1/drivers/tty/serial/ |
D | serial_mctrl_gpio.c | 1 // SPDX-License-Identifier: GPL-2.0+ 46 * mctrl_gpio_set - set gpios according to mctrl state 47 * @gpios: gpios to set 48 * @mctrl: state to set 50 * Set the gpios according to the mctrl state. 52 void mctrl_gpio_set(struct mctrl_gpios *gpios, unsigned int mctrl) in mctrl_gpio_set() argument 59 if (gpios == NULL) in mctrl_gpio_set() 63 if (gpios->gpio[i] && mctrl_gpio_flags_is_dir_out(i)) { in mctrl_gpio_set() 64 desc_array[count] = gpios->gpio[i]; in mctrl_gpio_set() 74 * mctrl_gpio_to_gpiod - obtain gpio_desc of modem line index [all …]
|
D | serial_mctrl_gpio.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 29 * Opaque descriptor for modem lines controlled by GPIOs 36 * Set state of the modem control output lines via GPIOs. 38 void mctrl_gpio_set(struct mctrl_gpios *gpios, unsigned int mctrl); 41 * Get state of the modem control input lines from GPIOs. 44 unsigned int mctrl_gpio_get(struct mctrl_gpios *gpios, unsigned int *mctrl); 47 * Get state of the modem control output lines from GPIOs. 51 mctrl_gpio_get_outputs(struct mctrl_gpios *gpios, unsigned int *mctrl); 56 struct gpio_desc *mctrl_gpio_to_gpiod(struct mctrl_gpios *gpios, 60 * Request and set direction of modem control line GPIOs and set up irq [all …]
|
/linux-6.12.1/Documentation/driver-api/gpio/ |
D | consumer.rst | 8 Guidelines for GPIOs consumers 13 obtain and use GPIOs are available by including the following file:: 21 - Simple compile coverage with e.g. COMPILE_TEST - it does not matter that 25 - Truly optional GPIOLIB support - where the driver does not really make use 26 of the GPIOs on certain compile-time configurations for certain systems, but 27 will use it under other compile-time configurations. In this case the 35 All the functions that work with the descriptor-based GPIO interface are 42 Obtaining and Disposing GPIOs 45 With the descriptor-based interface, GPIOs are identified with an opaque, 46 non-forgeable handler that must be obtained through a call to one of the [all …]
|
D | board.rst | 5 This document explains how GPIOs can be assigned to given devices and functions. 9 Kconfig. Then, how GPIOs are mapped depends on what the platform uses to 14 ----------- 15 GPIOs can easily be mapped to devices and functions in the device tree. The 16 exact way to do it depends on the GPIO controller providing the GPIOs, see the 19 GPIOs mappings are defined in the consumer device's node, in a property named 20 <function>-gpios, where <function> is the function the driver will request 26 led-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>, /* red */ 30 power-gpios = <&gpio 1 GPIO_ACTIVE_LOW>; 33 Properties named <function>-gpio are also considered valid and old bindings use [all …]
|
/linux-6.12.1/drivers/staging/olpc_dcon/ |
D | olpc_dcon_xo_1.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright © 2006-2007 Red Hat, Inc. 6 * Copyright © 2006-2007 Advanced Micro Devices, Inc. 37 static struct gpio_desc *gpios[5]; variable 46 gpios[i] = devm_gpiod_get(&dcon->client->dev, pin[i].name, in dcon_init_xo_1() 48 if (IS_ERR(gpios[i])) { in dcon_init_xo_1() 49 ret = PTR_ERR(gpios[i]); in dcon_init_xo_1() 64 * this is because OFW will disable input for the pin and set a value.. in dcon_init_xo_1() 66 * then a value is set. So, future readings of the pin can use in dcon_init_xo_1() 69 dcon->curr_src = cs5535_gpio_isset(OLPC_GPIO_DCON_LOAD, GPIO_OUTPUT_VAL) in dcon_init_xo_1() [all …]
|
/linux-6.12.1/arch/arm/boot/dts/renesas/ |
D | r8a7793-gose.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2014-2015 Renesas Electronics Corporation 9 * SSI-AK4643 17 * amixer set "LINEOUT Mixer DACL" on 18 * amixer set "DVC Out" 100% 19 * amixer set "DVC In" 100% 23 * amixer set "DVC Out Mute" on 24 * amixer set "DVC In Mute" on 28 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps" 29 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps" [all …]
|
D | r8a7791-koelsch.dts | 1 // SPDX-License-Identifier: GPL-2.0 6 * Copyright (C) 2013-2014 Renesas Solutions Corp. 11 * SSI-AK4643 19 * amixer set "LINEOUT Mixer DACL" on 20 * amixer set "DVC Out" 100% 21 * amixer set "DVC In" 100% 25 * amixer set "DVC Out Mute" on 26 * amixer set "DVC In Mute" on 30 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps" 31 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps" [all …]
|
D | r8a7742-iwg21d-q7.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Device Tree Source for the iWave-RZ/G1H Qseven board 9 * SSI-SGTL5000 13 * amixer set "DVC Out" 100% 14 * amixer set "DVC In" 100% 18 * amixer set "DVC Out Mute" on 19 * amixer set "DVC In Mute" on 23 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps" 24 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps" 25 * amixer set "DVC Out Ramp" on [all …]
|
D | r8a7790-lager.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2013-2014 Renesas Solutions Corp. 7 * Copyright (C) 2015-2016 Renesas Electronics Corporation 11 * SSI-AK4643 19 * amixer set "LINEOUT Mixer DACL" on 20 * amixer set "DVC Out" 100% 21 * amixer set "DVC In" 100% 25 * amixer set "DVC Out Mute" on 26 * amixer set "DVC In Mute" on 30 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps" [all …]
|
D | iwg20d-q7-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Device Tree Source for the iWave-RZ/G1M/G1N Qseven carrier board 9 * SSI-SGTL5000 13 * amixer set "DVC Out" 100% 14 * amixer set "DVC In" 100% 18 * amixer set "DVC Out Mute" on 19 * amixer set "DVC In Mute" on 23 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps" 24 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps" 25 * amixer set "DVC Out Ramp" on [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/iio/proximity/ |
D | devantech-srf04.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/iio/proximity/devantech-srf04.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andreas Klinger <ak@it-klinger.de> 13 Bit-banging driver using two GPIOs: 14 - trigger-gpio is raised by the driver to start sending out an ultrasonic 16 - echo-gpio is held high by the sensor after sending ultrasonic burst 20 https://www.robot-electronics.co.uk/htm/srf04tech.htm 22 https://www.maxbotix.com/documents/LV-MaxSonar-EZ_Datasheet.pdf [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/i2c/ |
D | i2c-mux-gpio.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/i2c/i2c-mux-gpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: GPIO-based I2C Bus Mux 10 - Wolfram Sang <wsa@kernel.org> 13 This binding describes an I2C bus multiplexer that uses GPIOs to route the I2C signals. 15 +-----+ +-----+ 17 +------------+ +-----+ +-----+ 19 | | /--------+--------+ [all …]
|
/linux-6.12.1/Documentation/admin-guide/gpio/ |
D | gpio-virtuser.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 7 that request GPIOs and then control their behavior over debugfs. Virtual 8 consumer devices can be instantiated from device-tree or over configfs. 10 A virtual consumer uses the driver-facing GPIO APIs and allows to cover it with 11 automated tests driven by user-space. The GPIOs are requested using 12 ``gpiod_get_array()`` and so we support multiple GPIOs per connector ID. 15 ----------------------- 17 The gpio-consumer module registers a configfs subsystem called 18 ``'gpio-virtuser'``. For details of the configfs filesystem, please refer to 25 **Group:** ``/config/gpio-virtuser`` [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/gpio/ |
D | gpio.txt | 4 1) gpios property 5 ----------------- 7 GPIO properties should be named "[<name>-]gpios", with <name> being the purpose 8 of this GPIO for the device. While a non-existent <name> is considered valid 9 for compatibility reasons (resolving to the "gpios" property), it is not allowed 10 for new bindings. Also, GPIO properties named "[<name>-]gpio" are valid and old 15 cases should they contain more than one. If your device uses several GPIOs with 17 meaningful name. The only case where an array of GPIOs is accepted is when 18 several GPIOs serve the same function (e.g. a parallel data line). 20 The exact purpose of each gpios property must be documented in the device tree [all …]
|
/linux-6.12.1/drivers/bus/ |
D | ts-nbus.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * NBUS driver for TS-4600 based boards 5 * Copyright (c) 2016 - Savoir-faire Linux 8 * This driver implements a GPIOs bit-banged bus, called the NBUS by Technologic 10 * TS-4600 SoM. 21 #include <linux/ts-nbus.h> 40 * request all gpios required by the bus. 45 ts_nbus->data = devm_gpiod_get_array(&pdev->dev, "ts,data", in ts_nbus_init_pdata() 47 if (IS_ERR(ts_nbus->data)) in ts_nbus_init_pdata() 48 return dev_err_probe(&pdev->dev, PTR_ERR(ts_nbus->data), in ts_nbus_init_pdata() [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/iio/frequency/ |
D | adi,adf4377.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Antoniu Miclaus <antoniu.miclaus@analog.com> 11 - Dragos Bogdan <dragos.bogdan@analog.com> 14 The ADF4377 is a high performance, ultralow jitter, dual output integer-N 25 - adi,adf4377 26 - adi,adf4378 31 spi-max-frequency: 37 clock-names: [all …]
|
/linux-6.12.1/sound/soc/ |
D | soc-jack.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // soc-jack.c -- ALSA SoC jack handling 20 * snd_soc_jack_report - Report the current status for a jack 39 if (!jack || !jack->jack) in snd_soc_jack_report() 43 dapm = &jack->card->dapm; in snd_soc_jack_report() 45 mutex_lock(&jack->mutex); in snd_soc_jack_report() 47 jack->status &= ~mask; in snd_soc_jack_report() 48 jack->status |= status & mask; in snd_soc_jack_report() 52 list_for_each_entry(pin, &jack->pins, list) { in snd_soc_jack_report() 53 int enable = pin->mask & jack->status; in snd_soc_jack_report() [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/mfd/ |
D | samsung,s5m8767.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 17 and current regulators, RTC, clock outputs and other sub-blocks. 21 const: samsung,s5m8767-pmic 39 s5m8767,pmic-buck2-dvs-voltage: 40 $ref: /schemas/types.yaml#/definitions/uint32-array 44 A set of 8 voltage values in micro-volt (uV) units for buck2 when 47 s5m8767,pmic-buck3-dvs-voltage: [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/serial/ |
D | st,stm32-uart.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/serial/st,stm32-uart.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 - Erwan Le Ray <erwan.leray@foss.st.com> 15 - st,stm32-uart 16 - st,stm32f7-uart 17 - st,stm32h7-uart 34 st,hw-flow-ctrl: 38 rx-tx-swap: true [all …]
|
/linux-6.12.1/arch/arm64/boot/dts/renesas/ |
D | r8a779h0-gray-hawk-single.dts | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 * Device Tree Source for the R-Car V4M Gray Hawk Single board 11 * Because R-Car V4M has only 1 SSI, it cannot handle both Playback/Capture 16 * > amixer set "MUX" "Playback" // for GP0_01 17 * > amixer set "DAC 1" 85% 21 * > amixer set "MUX" "Capture" // for GP0_01 22 * > amixer set "Mic 1" 80% 23 * > amixer set "ADC 1" on 24 * > amixer set 'ADC 1' 80% 28 /dts-v1/; [all …]
|
/linux-6.12.1/arch/arm64/boot/dts/qcom/ |
D | msm8994-msft-lumia-octagon.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 12 #include <dt-bindings/gpio/gpio.h> 13 #include <dt-bindings/input/gpio-keys.h> 14 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 20 /delete-node/ &adsp_mem; 21 /delete-node/ &audio_mem; 22 /delete-node/ &cont_splash_mem; 23 /delete-node/ &mba_mem; 24 /delete-node/ &mpss_mem; 25 /delete-node/ &peripheral_region; [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/power/reset/ |
D | gpio-restart.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/reset/gpio-restart.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 17 'open-source' is not found, the GPIO line will be driven in the inactive state. Otherwise its 22 This will also cause an inactive->active edge condition, triggering positive edge triggered 23 reset. After a delay specified by active-delay, the GPIO is set to inactive, thus causing an 24 active->inactive edge, triggering negative edge triggered reset. After a delay specified by 25 inactive-delay, the GPIO is driven active again. After a delay specified by wait-delay, the [all …]
|
/linux-6.12.1/drivers/gpio/ |
D | gpio-davinci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2006-2007 David Brownell 44 #define BINTEN 0x8 /* GPIO Interrupt Per-Bank Enable Register */ 83 /*--------------------------------------------------------------------------*/ 96 g = d->regs[bank]; in __davinci_direction() 97 spin_lock_irqsave(&d->lock, flags); in __davinci_direction() 98 temp = readl_relaxed(&g->dir); in __davinci_direction() 101 writel_relaxed(mask, value ? &g->set_data : &g->clr_data); in __davinci_direction() 105 writel_relaxed(temp, &g->dir); in __davinci_direction() 106 spin_unlock_irqrestore(&d->lock, flags); in __davinci_direction() [all …]
|
/linux-6.12.1/include/linux/gpio/ |
D | driver.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 12 #include <linux/pinctrl/pinconf-generic.h> 48 * struct gpio_irq_chip - GPIO interrupt controller 78 * If non-NULL, will be set as the parent of this GPIO interrupt 90 * hardware IRQs correspond to the GPIO index 0..ngpio-1 (see the 98 * HWIRQ, return -EINVAL, but also make sure to fill in @valid_mask and 113 * &gpiochip_populate_parent_fwspec_twocell will be used. A four-cell 228 * True if set the interrupt handling uses nested threads. 270 * bits from 0..(ngpios-1) set to "1" as in valid. The callback can 271 * then directly set some bits to "0" if they cannot be used for [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/spi/ |
D | fsl-spi.txt | 4 - cell-index : QE SPI subblock index. 7 - compatible : should be "fsl,spi" or "aeroflexgaisler,spictrl". 8 - mode : the SPI operation mode, it can be "cpu" or "cpu-qe". 9 - reg : Offset and length of the register set for the device 10 - interrupts : <a b> where a is the interrupt number and b is a 15 - clock-frequency : input clock frequency to non FSL_SOC cores 18 - cs-gpios : specifies the gpio pins to be used for chipselects. 19 The gpios will be referred to as reg = <index> in the SPI child nodes. 21 - fsl,spisel_boot : for the MPC8306 and MPC8309, specifies that the 23 reg = <number of gpios> in the corresponding child node, i.e. 0 if [all …]
|