| /OK3568_Linux_fs/u-boot/doc/device-tree-bindings/gpio/ |
| H A D | gpio.txt | 4 1) gpios property 5 ----------------- 7 Nodes that makes use of GPIOs should specify them using one or more 8 properties, each containing a 'gpio-list': 10 gpio-list ::= <single-gpio> [gpio-list] 11 single-gpio ::= <gpio-phandle> <gpio-specifier> 12 gpio-phandle : phandle to gpio controller node 13 gpio-specifier : Array of #gpio-cells specifying specific gpio 16 GPIO properties should be named "[<name>-]gpios", with <name> being the purpose 17 of this GPIO for the device. While a non-existent <name> is considered valid [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/adc/ |
| H A D | adi,ad7606.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Beniamin Bia <beniamin.bia@analog.com> 11 - Stefan Popa <stefan.popa@analog.com> 15 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606_7606-6_7606-4.pdf 16 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7606B.pdf 17 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7616.pdf 22 - adi,ad7605-4 23 - adi,ad7606-8 [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/gpio/ |
| H A D | sh_pfc.c | 23 if (enum_id < r->begin) in enum_in_range() 26 if (enum_id > r->end) in enum_in_range() 74 pos = dr->reg_width - (in_pos + 1); in gpio_read_bit() 77 dr->reg + offset, pos, dr->reg_width); in gpio_read_bit() 79 return (gpio_read_raw_reg(dr->mapped_reg + offset, in gpio_read_bit() 80 dr->reg_width) >> pos) & 1; in gpio_read_bit() 88 pos = dr->reg_width - (in_pos + 1); in gpio_write_bit() 92 dr->reg, !!value, pos, dr->reg_width); in gpio_write_bit() 95 __set_bit(pos, &dr->reg_shadow); in gpio_write_bit() 97 __clear_bit(pos, &dr->reg_shadow); in gpio_write_bit() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/gpio/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/touchscreen/ |
| H A D | edt-ft5x06.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/input/touchscreen/edt-ft5x06.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: FocalTech EDT-FT5x06 Polytouch Bindings 18 - Dmitry Torokhov <dmitry.torokhov@gmail.com> 21 - $ref: touchscreen.yaml# 22 - if: 27 - evervision,ev-ft5726 31 offset-x: true [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/renesas/ |
| H A D | gpio.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Copyright (C) 2009 - 2012 Paul Mundt 41 return chip->pfc; in gpio_to_pfc() 48 int idx = sh_pfc_get_pin_index(chip->pfc, offset); in gpio_get_data_reg() 49 struct sh_pfc_gpio_pin *gpio_pin = &chip->pins[idx]; in gpio_get_data_reg() 51 *reg = &chip->regs[gpio_pin->dreg]; in gpio_get_data_reg() 52 *bit = gpio_pin->dbit; in gpio_get_data_reg() 58 phys_addr_t address = dreg->reg; in gpio_read_data_reg() 59 void __iomem *mem = address - chip->mem->phys + chip->mem->virt; in gpio_read_data_reg() 61 return sh_pfc_read_raw_reg(mem, dreg->reg_width); in gpio_read_data_reg() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sound/ |
| H A D | axentia,tse850-pcm5142.txt | 1 Devicetree bindings for the Axentia TSE-850 audio complex 4 - compatible: "axentia,tse850-pcm5142" 5 - axentia,cpu-dai: The phandle of the cpu dai. 6 - axentia,audio-codec: The phandle of the PCM5142 codec. 7 - axentia,add-gpios: gpio specifier that controls the mixer. 8 - axentia,loop1-gpios: gpio specifier that controls loop relays on channel 1. 9 - axentia,loop2-gpios: gpio specifier that controls loop relays on channel 2. 10 - axentia,ana-supply: Regulator that supplies the output amplifier. Must 11 support voltages in the 2V - 20V range, in 1V steps. 13 The schematics explaining the gpios are as follows: [all …]
|
| H A D | es8311.txt | 5 - compatible: "everest,es8311" 6 - reg: the I2C address of the device for I2C 7 - spk-ctl-gpios: control spk enable/disable 10 - clocks: The phandle of the master clock to the CODEC 11 - clock-names: Should be "mclk" 12 - adc-pga-gain: The PGA Gain of ADC, the value range is: 0(0dB) ~ 10(30dB), 14 - adc-volume: The volume of ADC, range is: 0x00(-95dB) ~ 0xff(+32dB), 0dB is 0xbf. 15 - dac-volume: The volume of DAC, range is: 0x00(-95dB) ~ 0xff(+32dB), 0dB is 0xbf. 16 - aec-mode: The string of description AEC path between ADC and DAC, It should be: 24 And aec-mode is "adc left, adc right" by default, if the property [all …]
|
| /OK3568_Linux_fs/u-boot/arch/x86/cpu/coreboot/ |
| H A D | tables.c | 7 * SPDX-License-Identifier: BSD-3-Clause 41 info->n_memranges = 0; in cb_parse_memory() 44 struct cb_memory_range *range = in cb_parse_memory() local 47 info->memrange[info->n_memranges].base = in cb_parse_memory() 48 UNPACK_CB64(range->start); in cb_parse_memory() 50 info->memrange[info->n_memranges].size = in cb_parse_memory() 51 UNPACK_CB64(range->size); in cb_parse_memory() 53 info->memrange[info->n_memranges].type = range->type; in cb_parse_memory() 55 info->n_memranges++; in cb_parse_memory() 62 info->serial = ser; in cb_parse_serial() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/dac/ |
| H A D | ad5758.txt | 4 - compatible: Must be "adi,ad5758" 5 - reg: SPI chip select number for the device 6 - spi-max-frequency: Max SPI frequency to use (< 50000000) 7 - spi-cpha: is the only mode that is supported 11 - adi,dc-dc-mode: Mode of operation of the dc-to-dc converter 19 In this mode, the VDPC+ voltage is user-programmable to 36 - adi,range-microvolt: Voltage output range 38 * <0 5000000>: 0 V to 5 V voltage range 39 * <0 10000000>: 0 V to 10 V voltage range 40 * <(-5000000) 5000000>: ±5 V voltage range [all …]
|
| H A D | adi,ad5770r.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Mircea Caprioru <mircea.caprioru@analog.com> 16 https://www.analog.com/media/en/technical-documentation/data-sheets/AD5770R.pdf 21 - adi,ad5770r 26 avdd-supply: 31 iovdd-supply: 35 vref-supply: 41 adi,external-resistor: [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/gpio/ |
| H A D | driver.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 12 #include <linux/pinctrl/pinconf-generic.h> 30 * struct gpio_irq_chip - GPIO interrupt controller 67 * If non-NULL, will be set as the parent of this GPIO interrupt 79 * hardware IRQs correspond to the GPIO index 0..ngpio-1 (see the 87 * HWIRQ, return -EINVAL, but also make sure to fill in @valid_mask and 102 * &gpiochip_populate_parent_fwspec_twocell will be used. A four-cell 220 * bits from 0..(ngpios-1) set to "1" as in valid. The callback can 231 * If not %NULL holds bitmask of GPIOs which are valid to be included 283 * struct gpio_chip - abstract a GPIO controller [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/iio/resolver/ |
| H A D | ad2s1210.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2010-2010 Analog Devices Inc. 78 static const struct ad2s1210_gpio gpios[] = { variable 91 struct gpio_desc *gpios[5]; member 110 gpiod_set_value(st->gpios[AD2S1210_A0], ad2s1210_mode_vals[mode][0]); in ad2s1210_set_mode() 111 gpiod_set_value(st->gpios[AD2S1210_A1], ad2s1210_mode_vals[mode][1]); in ad2s1210_set_mode() 112 st->mode = mode; in ad2s1210_set_mode() 121 st->tx[0] = data; in ad2s1210_config_write() 122 ret = spi_write(st->sdev, st->tx, 1); in ad2s1210_config_write() 136 .rx_buf = &st->rx[0], in ad2s1210_config_read() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/misc/ |
| H A D | ifm-csi.txt | 4 - compatible: "ifm,o2d-csi" 5 - reg: specifies sensor chip select number and associated address range 6 - interrupts: external interrupt line number and interrupt sense mode 8 - gpios: three gpio-specifiers for "capture", "reset" and "master enable" 9 GPIOs (strictly in this order). 10 - ifm,csi-clk-handle: the phandle to a node in the DT describing the sensor 12 - ifm,csi-addr-bus-width: address bus width (valid values are 16, 24, 25) 13 - ifm,csi-data-bus-width: data bus width (valid values are 8 and 16) 14 - ifm,csi-wait-cycles: sensor bus wait cycles 17 - ifm,csi-byte-swap: if this property is present, the byte swapping on [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/pci/ |
| H A D | intel-gw-pcie.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/intel-gw-pcie.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Dilip Kota <eswara.kota@linux.intel.com> 16 const: intel,lgm-pcie 18 - compatible 23 - const: intel,lgm-pcie 24 - const: snps,dw-pcie 29 "#address-cells": [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/ |
| H A D | max8998.txt | 1 * Maxim MAX8998, National/TI LP3974 multi-function device 3 The Maxim MAX8998 is a multi-function device which includes voltage/current 5 other sub-blocks. It is interfaced using an I2C interface. Each sub-block 8 PMIC sub-block 9 -------------- 11 The PMIC sub-block contains a number of voltage and current regulators, 17 - compatible: Should be one of the following: 18 - "maxim,max8998" for Maxim MAX8998 19 - "national,lp3974" or "ti,lp3974" for National/TI LP3974. 20 - reg: Specifies the i2c slave address of the pmic block. It should be 0x66. [all …]
|
| H A D | ti-lmu.txt | 6 ------ --------------------------------- 14 - compatible: Should be one of: 20 - reg: I2C slave address. 28 - enable-gpios: A GPIO specifier for hardware enable pin. 29 - ramp-up-us: Current ramping from one brightness level to 31 Range from 2048 us - 117.44 s 32 - ramp-down-us: Current ramping from one brightness level to 34 Range from 2048 us - 117.44 s 35 - ti,brightness-resolution - This determines whether to use 8 bit brightness 47 - backlight: All LMU devices have backlight child nodes. [all …]
|
| /OK3568_Linux_fs/kernel/drivers/iio/adc/ |
| H A D | ad7266.c | 1 // SPDX-License-Identifier: GPL-2.0-only 34 enum ad7266_range range; member 37 struct gpio_desc *gpios[3]; member 54 return spi_read(st->spi, &st->data.sample[0], 2); in ad7266_wakeup() 60 return spi_read(st->spi, &st->data.sample[0], 1); in ad7266_powerdown() 83 struct iio_dev *indio_dev = pf->indio_dev; in ad7266_trigger_handler() 87 ret = spi_read(st->spi, st->data.sample, 4); in ad7266_trigger_handler() 89 iio_push_to_buffers_with_timestamp(indio_dev, &st->data, in ad7266_trigger_handler() 90 pf->timestamp); in ad7266_trigger_handler() 93 iio_trigger_notify_done(indio_dev->trig); in ad7266_trigger_handler() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/mt7621-pci/ |
| H A D | mediatek,mt7621-pci.txt | 4 - compatible: "mediatek,mt7621-pci" 5 - device_type: Must be "pci" 6 - reg: Base addresses and lengths of the PCIe subsys and root ports. 7 - bus-range: Range of bus numbers associated with this controller. 8 - #address-cells: Address representation for root ports (must be 3) 9 - pinctrl-names : The pin control state names. 10 - pinctrl-0: The "default" pinctrl state. 11 - #size-cells: Size representation for root ports (must be 2) 12 - ranges: Ranges for the PCI memory and I/O regions. 13 - #interrupt-cells: Must be 1 [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/arm/ |
| H A D | vexpress-v2m-rs1.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 6 * V2M-P1 8 * HBI-0190D 10 * RS1 memory map ("ARM Cortex-A Series memory map" in the board's 14 * original variant (vexpress-v2m.dtsi), but there is a strong 18 * CHANGES TO vexpress-v2m.dtsi! 22 v2m_fixed_3v3: fixed-regulator-0 { 23 compatible = "regulator-fixed"; 24 regulator-name = "3V3"; 25 regulator-min-microvolt = <3300000>; [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| H A D | vexpress-v2m-rs1.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 6 * V2M-P1 8 * HBI-0190D 10 * RS1 memory map ("ARM Cortex-A Series memory map" in the board's 14 * original variant (vexpress-v2m.dtsi), but there is a strong 18 * CHANGES TO vexpress-v2m.dtsi! 22 v2m_fixed_3v3: fixed-regulator-0 { 23 compatible = "regulator-fixed"; 24 regulator-name = "3V3"; 25 regulator-min-microvolt = <3300000>; [all …]
|
| H A D | vexpress-v2m.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 6 * V2M-P1 8 * HBI-0190D 14 * RS1 variant (vexpress-v2m-rs1.dtsi), but there is a strong 18 * CHANGES TO vexpress-v2m-rs1.dtsi! 24 model = "V2M-P1"; 27 compatible = "arm,vexpress,v2m-p1", "simple-bus"; 28 #address-cells = <2>; /* SMB chipselect number and offset */ 29 #size-cells = <1>; 30 #interrupt-cells = <1>; [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/driver-api/gpio/ |
| H A D | legacy.rst | 13 A "General Purpose Input/Output" (GPIO) is a flexible software-controlled 18 which GPIOs. Drivers can be written generically, so that board setup code 21 System-on-Chip (SOC) processors heavily rely on GPIOs. In some cases, every 22 non-dedicated pin can be configured as a GPIO; and most chips have at least 24 provide GPIOs; multifunction chips like power managers, and audio codecs 27 Most PC southbridges have a few dozen GPIO-capable pins (with only the BIOS 30 The exact capabilities of GPIOs vary between systems. Common options: 32 - Output values are writable (high=1, low=0). Some chips also have 34 value might be driven ... supporting "wire-OR" and similar schemes 37 - Input values are likewise readable (1, 0). Some chips support readback [all …]
|
| /OK3568_Linux_fs/kernel/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# 7 title: Devantech SRF04 and Maxbotix mb1000 ultrasonic range finder 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 [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpio/ |
| H A D | gpiolib-of.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (c) 2007-2008 MontaVista Software, Inc. 24 #include "gpiolib-of.h" 27 * of_gpio_spi_cs_get_count() - special GPIO counting for SPI 33 * established "cs-gpios" for chip selects but instead rely on 34 * "gpios" for the chip select lines. If we detect this, we redirect 35 * the counting of "cs-gpios" to count "gpios" transparent to the 40 struct device_node *np = dev->of_node; in of_gpio_spi_cs_get_count() 48 !of_device_is_compatible(np, "ibm,ppc4xx-spi")) in of_gpio_spi_cs_get_count() 50 return of_gpio_named_count(np, "gpios"); in of_gpio_spi_cs_get_count() [all …]
|