| /linux/Documentation/devicetree/bindings/iio/proximity/ |
| H A 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/arch/arm/boot/dts/nxp/lpc/ |
| H A D | lpc3250-phy3250.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * PHYTEC phyCORE-LPC3250 board 5 * Copyright (C) 2015-2019 Vladimir Zapolskiy <vz@mleia.com> 9 /dts-v1/; 13 model = "PHYTEC phyCORE-LPC3250 board based on NXP LPC3250"; 22 compatible = "gpio-leds"; 25 gpios = <&gpio 5 1 0>; /* GPO_P3 1, GPIO 80, active high */ 26 default-state = "off"; 30 gpios = <&gpio 5 14 0>; /* GPO_P3 14, GPIO 93, active high */ 31 linux,default-trigger = "heartbeat"; [all …]
|
| /linux/arch/arm/boot/dts/st/ |
| H A D | spear1310-evb.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 /dts-v1/; 13 compatible = "st,spear1310-evb", "st,spear1310"; 14 #address-cells = <1>; 15 #size-cells = <1>; 23 pinctrl-names = "default"; 24 pinctrl-0 = <&state_default>; 63 smi-pmx { 127 label = "u-boot"; 149 compatible = "gpio-keys"; [all …]
|
| H A D | spear1340-evb.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 /dts-v1/; 13 compatible = "st,spear1340-evb", "st,spear1340"; 14 #address-cells = <1>; 15 #size-cells = <1>; 23 pinctrl-names = "default"; 24 pinctrl-0 = <&state_default>; 47 spdif-in { 51 spdif-out { 59 smi-pmx { [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-iio-trigger-sysfs | 3 Contact: linux-iio@vger.kernel.org 5 This file is provided by the iio-trig-sysfs stand-alone trigger 10 are not applicable. For example no RTC or spare GPIOs. 15 Contact: linux-iio@vger.kernel.org 24 Contact: linux-iio@vger.kernel.org 26 This attribute is provided by the iio-trig-sysfs stand-alone 35 Contact: linux-iio@vger.kernel.org
|
| /linux/drivers/iio/adc/ |
| H A D | ad7606.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 22 * For channels from second group(8-15) the order is the same, only with 55 * struct ad7606_chip_info - chip specific information 91 * struct ad7606_chan_info - channel configuration 110 * struct ad7606_state - driver instance specific data 125 * @lock: protect sensor state from concurrent accesses to GPIOs 127 * @gpio_reset: GPIO descriptor for device hard-reset 129 * @gpio_standby: GPIO descriptor for stand-by signal (STBY), 130 * controls power-down mode of device 134 * @trig: The IIO trigger associated with the device. [all …]
|
| H A D | ad7266.c | 1 // SPDX-License-Identifier: GPL-2.0-only 38 struct gpio_desc *gpios[3]; member 55 return spi_read(st->spi, &st->data.sample[0], 2); in ad7266_wakeup() 61 return spi_read(st->spi, &st->data.sample[0], 1); in ad7266_powerdown() 84 struct iio_dev *indio_dev = pf->indio_dev; in ad7266_trigger_handler() 88 ret = spi_read(st->spi, st->data.sample, 4); in ad7266_trigger_handler() 90 iio_push_to_buffers_with_ts(indio_dev, &st->data, sizeof(st->data), in ad7266_trigger_handler() 91 pf->timestamp); in ad7266_trigger_handler() 93 iio_trigger_notify_done(indio_dev->trig); in ad7266_trigger_handler() 102 if (st->fixed_addr) in ad7266_select_input() [all …]
|
| H A D | ad7606.c | 1 // SPDX-License-Identifier: GPL-2.0 103 -128, 1, 127, 107 -512, 4, 508, 135 .name = "ad7605-4", 144 .name = "ad7606-8", 155 .name = "ad7606-6", 167 .name = "ad7606-4", 278 if (st->gpio_reset) { in ad7606_reset() 279 gpiod_set_value(st->gpio_reset, 1); in ad7606_reset() 281 gpiod_set_value(st->gpio_reset, 0); in ad7606_reset() [all …]
|
| H A D | ad4170-4.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Analog Devices AD4170-4 ADC driver 6 * Author: Ana-Maria Cusco <ana-maria.cusco@analog.com> 17 #include <linux/clk-provider.h> 81 /* AD4170_CONFIG_A_REG - INTERFACE_CONFIG_A REGISTER */ 246 [AD4170_CHAN_SETUP_REG(0) ... AD4170_CHAN_MAP_REG(AD4170_MAX_ADC_CHANNELS - 1)] = 2, 249 * also interleaved but MISC, AFE, FILTER, FILTER_FS, OFFSET are 16-bit 250 * while OFFSET, GAIN are 24-bit registers so we can't init them all to 278 AD4170_REF_BUF_PRE, /* Pre-charge referrence buffer */ 283 /* maps adi,positive/negative-reference-buffer property values to enum */ [all …]
|
| H A D | ti-ads7950.c | 1 // SPDX-License-Identifier: GPL-2.0 12 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/ 36 * Device tree users encode that via the vref-supply regulator. 54 (((val) >> (dec)) & ((1 << (bits)) - 1)) 61 (TI_ADS7950_MAN_CMD(TI_ADS7950_CR_WRITE | st->cmd_settings_bitmask)) 64 (TI_ADS7950_GPIO_CMD(st->gpio_cmd_settings_bitmask)) 84 * [0-3] GPIO signal 95 * [0-3] GPIO direction 96 * [4-6] Different GPIO alarm mode configurations 100 * [10-11] N/A [all …]
|
| H A D | ad7944.c | 1 // SPDX-License-Identifier: GPL-2.0-only 26 #include <linux/iio/buffer-dmaengine.h> 40 /* datasheet calls this "4-wire mode" */ 42 /* datasheet calls this "3-wire mode" (not related to SPI_3WIRE!) */ 48 /* maps adi,spi-mode property value to enum */ 67 /* Chip-specific timing specifications. */ 73 /* Indicates TURBO is hard-wired to be always enabled. */ 118 * AD7944_DEFINE_CHIP_INFO - Define a chip info structure for a specific chip 170 * - There is no soft timestamp since everything is done in hardware. 171 * - There is a sampling frequency attribute added. This controls the SPI [all …]
|
| /linux/arch/arm/boot/dts/qcom/ |
| H A D | qcom-apq8060-dragonboard.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 #include <dt-bindings/input/input.h> 3 #include <dt-bindings/gpio/gpio.h> 4 #include <dt-bindings/leds/common.h> 5 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 6 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h> 7 #include "qcom-msm8660.dtsi" 12 compatible = "qcom,apq8060-dragonboard", "qcom,msm8660"; 19 stdout-path = "serial0:115200n8"; 23 vph: regulator-fixed { [all …]
|
| /linux/drivers/pinctrl/mvebu/ |
| H A D | pinctrl-armada-xp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 12 * both have 67 MPP pins (more GPIOs and address lines for the memory 26 #include "pinctrl-mvebu.h" 129 MPP_VAR_FUNCTION(0x3, "ptp", "trig", V_MV78230_PLUS), 177 MPP_VAR_FUNCTION(0x1, "ptp", "trig", V_MV78230_PLUS), 189 MPP_VAR_FUNCTION(0x4, "lcd", "ref-clk", V_MV78230_PLUS)), 235 MPP_VAR_FUNCTION(0x4, "lcd", "vga-hsync", V_MV78230_PLUS), 243 MPP_VAR_FUNCTION(0x4, "lcd", "vga-vsync", V_MV78230_PLUS), 480 .compatible = "marvell,mv78230-pinctrl", [all …]
|
| /linux/drivers/iio/resolver/ |
| H A D | ad2s1210.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2010-2010 Analog Devices Inc. 11 * ----------------------------|------|------------------------------------------- 23 * Resolution | D1:0 | *device tree: assigned-resolution-bits* 34 * ----------------------------------------|----|--------------------------------- 153 /* adi,fixed-mode property - only valid when mode_gpios == NULL. */ 178 struct gpio_descs *gpios = st->mode_gpios; in ad2s1210_set_mode() local 181 if (!gpios) in ad2s1210_set_mode() 182 return mode == st->fixed_mode ? 0 : -EOPNOTSUPP; in ad2s1210_set_mode() 186 return gpiod_multi_set_value_cansleep(gpios, bitmap); in ad2s1210_set_mode() [all …]
|
| /linux/drivers/nfc/pn544/ |
| H A D | i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/crc-ccitt.h> 132 #define PN544_FW_I2C_WRITE_DATA_MAX_LEN MIN((PN544_FW_I2C_MAX_PAYLOAD -\ 136 #define PN544_FW_SECURE_CHUNK_WRITE_DATA_MAX_LEN (PN544_FW_I2C_MAX_PAYLOAD -\ 183 16, 1, (skb)->data, (skb)->len, 0); \ 192 nfc_info(&phy->i2c_dev->dev, "Detecting nfc_en polarity\n"); in pn544_hci_i2c_platform_init() 195 gpiod_set_value_cansleep(phy->gpiod_fw, 0); in pn544_hci_i2c_platform_init() 198 phy->en_polarity = polarity; in pn544_hci_i2c_platform_init() 200 while (retry--) { in pn544_hci_i2c_platform_init() 202 gpiod_set_value_cansleep(phy->gpiod_en, !phy->en_polarity); in pn544_hci_i2c_platform_init() [all …]
|
| /linux/drivers/pinctrl/intel/ |
| H A D | pinctrl-baytrail.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2012-2013, Intel Corporation 28 #include <linux/pinctrl/pinconf-generic.h> 30 #include "pinctrl-intel.h" 570 offset -= comm->pin_base; in byt_gpio_reg() 579 reg_offset = comm->pad_map[offset] * 16; in byt_gpio_reg() 583 return comm->pad_regs + reg_offset + reg; in byt_gpio_reg() 606 dev_warn(vg->dev, "Group %s, pin %i not muxed (can't retrieve CONF0)\n", in byt_set_group_simple_mux() 632 dev_warn(vg->dev, "Group %s, pin %i not muxed (can't retrieve CONF0)\n", in byt_set_group_mixed_mux() 648 const struct intel_function func = vg->soc->functions[func_selector]; in byt_set_mux() [all …]
|