/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/arch/arm/boot/dts/nxp/lpc/ |
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-6.12.1/arch/arm/boot/dts/st/ |
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 …]
|
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-6.12.1/Documentation/ABI/testing/ |
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-6.12.1/drivers/iio/proximity/ |
D | srf04.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * SRF04: ultrasonic sensor for distance measuring by using GPIOs 5 * Copyright (c) 2017 Andreas Klinger <ak@it-klinger.de> 8 * https://www.robot-electronics.co.uk/htm/srf04tech.htm 12 * +---+ 14 * trig: --+ +------------------------------------------------------ 16 * |<->| 19 * ultra +-+ +-+ +-+ 21 * burst: ---------+ +-+ +-+ +----------------------------------------- 23 * ultra . +-+ +-+ +-+ [all …]
|
D | sx9500.c | 1 // SPDX-License-Identifier: GPL-2.0-only 77 #define SX9500_CHAN_MASK GENMASK(SX9500_NUM_CHANNELS - 1, 0) 82 struct iio_trigger *trig; member 171 regmap_reg_range(SX9500_REG_IRQ_MSK + 1, SX9500_REG_PROX_CTRL0 - 1), 172 regmap_reg_range(SX9500_REG_PROX_CTRL8 + 1, SX9500_REG_SENSOR_SEL - 1), 173 regmap_reg_range(SX9500_REG_OFFSET_LSB + 1, SX9500_REG_RESET - 1), 212 return regmap_set_bits(data->regmap, reg, bitmask); in sx9500_inc_users() 218 (*counter)--; in sx9500_dec_users() 223 return regmap_clear_bits(data->regmap, reg, bitmask); in sx9500_dec_users() 228 return sx9500_inc_users(data, &data->channel_users[chan], in sx9500_inc_chan_users() [all …]
|
/linux-6.12.1/drivers/iio/adc/ |
D | ad7606.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 42 * struct ad7606_chip_info - chip specific information 62 * struct ad7606_state - driver instance specific data 77 * @lock protect sensor state from concurrent accesses to GPIOs 79 * @gpio_reset GPIO descriptor for device hard-reset 81 * @gpio_standby GPIO descriptor for stand-by signal (STBY), 82 * controls power-down mode of device 87 * @trig The IIO trigger associated with the device. 113 struct iio_trigger *trig; member 119 * 16 * 16-bit samples + 64-bit timestamp [all …]
|
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_timestamp(indio_dev, &st->data, in ad7266_trigger_handler() 91 pf->timestamp); in ad7266_trigger_handler() 94 iio_trigger_notify_done(indio_dev->trig); in ad7266_trigger_handler() 103 if (st->fixed_addr) in ad7266_select_input() [all …]
|
D | ad7944.c | 1 // SPDX-License-Identifier: GPL-2.0-only 37 /* datasheet calls this "4-wire mode" */ 39 /* datasheet calls this "3-wire mode" (not related to SPI_3WIRE!) */ 45 /* maps adi,spi-mode property value to enum */ 58 /* Chip-specific timing specifications. */ 64 /* Indicates TURBO is hard-wired to be always enabled. */ 102 * AD7944_DEFINE_CHIP_INFO - Define a chip info structure for a specific chip 131 /* pseudo-differential with ground sense */ 140 unsigned int t_conv_ns = adc->always_turbo ? adc->timing_spec->turbo_conv_ns in ad7944_3wire_cs_mode_init_msg() 141 : adc->timing_spec->conv_ns; in ad7944_3wire_cs_mode_init_msg() [all …]
|
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 …]
|
/linux-6.12.1/arch/arm/boot/dts/qcom/ |
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-6.12.1/drivers/iio/resolver/ |
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 * ----------------------------------------|----|--------------------------------- 152 /* adi,fixed-mode property - only valid when mode_gpios == NULL. */ 177 struct gpio_descs *gpios = st->mode_gpios; in ad2s1210_set_mode() local 180 if (!gpios) in ad2s1210_set_mode() 181 return mode == st->fixed_mode ? 0 : -EOPNOTSUPP; in ad2s1210_set_mode() 185 return gpiod_set_array_value(gpios->ndescs, gpios->desc, gpios->info, in ad2s1210_set_mode() [all …]
|
/linux-6.12.1/drivers/pinctrl/mvebu/ |
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-6.12.1/drivers/nfc/pn544/ |
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-6.12.1/drivers/pinctrl/intel/ |
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 …]
|
/linux-6.12.1/drivers/net/wan/ |
D | ixp4xx_hss.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2007-2008 Krzysztof Hałasa <khc@pm.waw.pl> 13 #include <linux/dma-mapping.h> 90 #define PKT_HDLC_CRC_32 0x2 /* default = CRC-16 */ 142 /* 56k data endiannes - which bit unused: high (default) or low */ 180 * The clock sequence consists of (C - B) states of 0s and 1s, each state is 192 * The sequence takes (C - B) * A + (B + 1) * (A + 1) = 5 * 2 + 3 * 3 bits 201 #define TDMMAP_HDLC 1 /* HDLC - packetized */ 202 #define TDMMAP_VOICE56K 2 /* Voice56K - 7-bit channelized */ 203 #define TDMMAP_VOICE64K 3 /* Voice64K - 8-bit channelized */ [all …]
|
/linux-6.12.1/drivers/media/i2c/ |
D | ov8858.c | 1 // SPDX-License-Identifier: GPL-2.0 22 #include <media/media-entity.h> 23 #include <media/v4l2-async.h> 24 #include <media/v4l2-common.h> 25 #include <media/v4l2-ctrls.h> 26 #include <media/v4l2-device.h> 27 #include <media/v4l2-event.h> 28 #include <media/v4l2-fwnode.h> 29 #include <media/v4l2-mediabus.h> 30 #include <media/v4l2-subdev.h> [all …]
|