| /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/kernel/Documentation/devicetree/bindings/mfd/ |
| H A D | atmel-usart.txt | 4 - compatible: Should be one of the following: 5 - "atmel,at91rm9200-usart" 6 - "atmel,at91sam9260-usart" 7 - "microchip,sam9x60-usart" 8 - "atmel,at91rm9200-dbgu", "atmel,at91rm9200-usart" 9 - "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart" 10 - "microchip,sam9x60-dbgu", "microchip,sam9x60-usart" 11 - reg: Should contain registers location and length 12 - interrupts: Should contain interrupt 13 - clock-names: tuple listing input clock names. [all …]
|
| /OK3568_Linux_fs/kernel/drivers/bus/ |
| H A D | ts-nbus.c | 2 * NBUS driver for TS-4600 based boards 4 * Copyright (c) 2016 - Savoir-faire Linux 11 * This driver implements a GPIOs bit-banged bus, called the NBUS by Technologic 13 * TS-4600 SoM. 24 #include <linux/ts-nbus.h> 33 struct gpio_descs *data; member 43 * request all gpios required by the bus. 48 ts_nbus->data = devm_gpiod_get_array(&pdev->dev, "ts,data", in ts_nbus_init_pdata() 50 if (IS_ERR(ts_nbus->data)) { in ts_nbus_init_pdata() 51 dev_err(&pdev->dev, "failed to retrieve ts,data-gpio from dts\n"); in ts_nbus_init_pdata() [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/u-boot/arch/powerpc/include/asm/ |
| H A D | mpc85xx_gpio.h | 4 * SPDX-License-Identifier: GPL-2.0+ 13 * The following internal functions are an MPC85XX-specific GPIO API which 14 * allows setting and querying multiple GPIOs in a single operation. 18 * memory-mapped IO operation or two. 25 /* First mask off the unwanted parts of "dir" and "val" */ in mpc85xx_gpio_set() 30 dir |= (in_be32(&gpio->gpdir) & ~mask); in mpc85xx_gpio_set() 31 val |= (in_be32(&gpio->gpdat) & ~mask); in mpc85xx_gpio_set() 34 * Poke the new output values first, then set the direction. This in mpc85xx_gpio_set() 35 * helps to avoid transient data when switching from input to output in mpc85xx_gpio_set() 38 out_be32(&gpio->gpdat, val); in mpc85xx_gpio_set() [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 173 * Data associated, and passed to, the handler for the parent 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 [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 19 passes such pin configuration data to drivers. 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 [all …]
|
| H A D | board.rst | 5 This document explains how GPIOs can be assigned to given devices and functions. 7 Note that it only applies to the new descriptor-based interface. For a 8 description of the deprecated integer-based GPIO interface please refer to 9 gpio-legacy.txt (actually, there is no real mapping possible with the old 15 Kconfig. Then, how GPIOs are mapped depends on what the platform uses to 17 tree, ACPI, and platform data. 20 ----------- 21 GPIOs can easily be mapped to devices and functions in the device tree. The 22 exact way to do it depends on the GPIO controller providing the GPIOs, see the 25 GPIOs mappings are defined in the consumer device's node, in a property named [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mmc/ |
| H A D | exynos-dw-mshc.txt | 7 by synopsys-dw-mshc.txt and the properties used by the Samsung Exynos specific 13 - "samsung,exynos4210-dw-mshc": for controllers with Samsung Exynos4210 15 - "samsung,exynos4412-dw-mshc": for controllers with Samsung Exynos4412 17 - "samsung,exynos5250-dw-mshc": for controllers with Samsung Exynos5250 19 - "samsung,exynos5420-dw-mshc": for controllers with Samsung Exynos5420 21 - "samsung,exynos7-dw-mshc": for controllers with Samsung Exynos7 23 - "samsung,exynos7-dw-mshc-smu": for controllers with Samsung Exynos7 26 * samsung,dw-mshc-ciu-div: Specifies the divider value for the card interface 30 * samsung,dw-mshc-sdr-timing: Specifies the value of CIU clock phase shift value 32 data rate mode operation. Refer notes below for the order of the cells and the [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/display/bridge/ |
| H A D | thine,thc63lvd1024.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jacopo Mondi <jacopo+renesas@jmondi.org> 11 - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> 15 streams to parallel data outputs. The chip supports single/dual input/output 19 Single or dual operation mode, output data mapping and DDR output modes are 33 The device can operate in single-link mode or dual-link mode. In 34 single-link mode, all pixels are received on port@0, and port@1 shall not 35 contain any endpoint. In dual-link mode, even-numbered pixels are [all …]
|
| H A D | sii902x.txt | 4 - compatible: "sil,sii9022" 5 - reg: i2c address of the bridge 8 - interrupts: describe the interrupt line used to inform the host 10 - reset-gpios: OF device-tree gpio specification for RST_N pin. 11 - iovcc-supply: I/O Supply Voltage (1.8V or 3.3V) 12 - cvcc12-supply: Digital Core Supply Voltage (1.2V) 15 - #sound-dai-cells: <0> or <1>. <0> if only i2s or spdif pin 18 - sil,i2s-data-lanes: Array of up to 4 integers with values of 0-3 20 audio fifo. The first integer selects i2s audio pin for the 21 first audio fifo#0 (HDMI channels 1&2), second for fifo#1 [all …]
|
| H A D | ti,sn65dsi86.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sandeep Panda <spanda@codeaurora.org> 23 enable-gpios: 27 suspend-gpios: 31 no-hpd: 37 vccio-supply: 40 vpll-supply: 43 vcca-supply: [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/misc/ |
| H A D | hisilicon-hikey-usb.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: "http://devicetree.org/schemas/misc/hisilicon-hikey-usb.yaml#" 6 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 11 - John Stultz <john.stultz@linaro.org> 15 role-switch intermediary to detect the state of the USB-C 16 port, to switch the hub into dual-role USB-C or host mode, 17 which enables the onboard USB-A host ports. 20 …https://github.com/96boards/documentation/raw/master/consumer/hikey/hikey960/hardware-docs/HiKey96… 25 - const: hisilicon,gpio_hubv1 [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpio/ |
| H A D | gpio-syscon.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 /* SYSCON driver is designed to use 32-bit wide registers */ 26 * struct syscon_gpio_data - Configuration for the device. 29 * GPIO_SYSCON_FEAT_IN: GPIOs supports input, 30 * GPIO_SYSCON_FEAT_OUT: GPIOs supports output, 31 * GPIO_SYSCON_FEAT_DIR: GPIOs supports switch direction. 32 * @bit_count: Number of bits used as GPIOs. 33 * @dat_bit_offset: Offset (in bits) to the first GPIO bit. 34 * @dir_bit_offset: Optional offset (in bits) to the first bit to switch 53 const struct syscon_gpio_data *data; member [all …]
|
| H A D | gpio-davinci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2006-2007 David Brownell 22 #include <linux/platform_data/gpio-davinci.h> 26 #include <asm-generic/gpio.h> 46 #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() [all …]
|
| H A D | gpiolib-acpi.c | 1 // SPDX-License-Identifier: GPL-2.0 22 #include "gpiolib-acpi.h" 24 static int run_edge_events_on_boot = -1; 27 "Run edge _AEI event-handlers at boot: 0=no, 1=yes, -1=auto"); 41 * struct acpi_gpio_event - ACPI GPIO event handler data 43 * @node: list-entry of the events list of the struct acpi_gpio_chip 73 * ACPICA requires that the first field of the context parameter 96 static int acpi_gpiochip_find(struct gpio_chip *gc, void *data) in acpi_gpiochip_find() argument 98 if (!gc->parent) in acpi_gpiochip_find() 101 return ACPI_HANDLE(gc->parent) == data; in acpi_gpiochip_find() [all …]
|
| H A D | gpio-twl4030.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Access to GPIOs on TWL4030/TPS659x0 chips 5 * Copyright (C) 2006-2007 Texas Instruments, Inc. 8 * Code re-arranged and cleaned up by: 28 * The GPIO "subchip" supports 18 GPIOs which can be configured as 35 * There are also two LED pins used sometimes as output-only GPIOs. 50 /* Mask for GPIO registers when aggregated into a 32-bit integer */ 64 /*----------------------------------------------------------------------*/ 69 static inline int gpio_twl4030_write(u8 address, u8 data) in gpio_twl4030_write() argument 71 return twl_i2c_write_u8(TWL4030_MODULE_GPIO, data, address); in gpio_twl4030_write() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/demo/ |
| H A D | demo-shape.c | 4 * SPDX-License-Identifier: GPL-2.0+ 12 #include <dm-demo.h> 23 int num_chars; /* Number of non-space characters output so far */ 32 struct shape_data *data = dev_get_priv(dev); in shape_hello() local 41 { HEIGHT / 2 - 1, WIDTH - HEIGHT / 2 + 1, -1, 1}, in shape_hello() 46 const char *colour = pdata->colour; in shape_hello() 47 int first = 0; in shape_hello() local 50 ch = pdata->default_char; in shape_hello() 54 index = (pdata->sides / 2) - 1; in shape_hello() 56 return -EIO; in shape_hello() [all …]
|
| /OK3568_Linux_fs/u-boot/include/asm-generic/ |
| H A D | gpio.h | 4 * SPDX-License-Identifier: GPL-2.0+ 15 * Generic GPIO API for U-Boot 17 * -- 20 * - gpio_request_by_name() 21 * - dm_gpio_get_value() etc. 24 * -- 26 * GPIOs are numbered from 0 to GPIO_COUNT-1 which value is defined 38 * an error value of -1. 51 * @return 0 if ok, -1 on error 60 * @return 0 if ok, -1 on error [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/admin-guide/gpio/ |
| H A D | sysfs.rst | 7 Documentation/ABI/obsolete/sysfs-gpio AND NEW USERSPACE CONSUMERS 16 ------------------------ 18 configure a sysfs user interface to GPIOs. This is different from the 26 may need to temporarily remove that protection, first importing a GPIO, 27 then changing its output state, then updating the code before re-enabling 32 userspace GPIO can be used to determine system configuration data that 37 PLEASE READ THE DOCUMENT AT Documentation/driver-api/gpio/drivers-on-gpio.rst 41 -------------- 44 - Control interfaces used to get userspace control over GPIOs; 46 - GPIOs themselves; and [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/w1/ |
| H A 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>;
|
| /OK3568_Linux_fs/kernel/include/linux/platform_data/ |
| H A D | pcf857x.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * struct pcf857x_platform_data - data to set up pcf857x driver 7 * @gpio_base: number of the chip's first GPIO 8 * @n_latch: optional bit-inverse of initial register value; if 11 * @setup: optional callback issued once the GPIOs are valid 12 * @teardown: optional callback issued before the GPIOs are invalidated 20 * The @setup callback may be used with the kind of board-specific glue 21 * which hands the (now-valid) GPIOs to other drivers, or which puts 22 * devices in their initial states using these GPIOs. 24 * These GPIO chips are only "quasi-bidirectional"; read the chip specs
|
| /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() 51 unsigned long data) in gpio_write_raw_reg() argument 55 writeb(data, mapped_reg); in gpio_write_raw_reg() 58 writew(data, mapped_reg); in gpio_write_raw_reg() 61 writel(data, mapped_reg); in gpio_write_raw_reg() 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() [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/net/ |
| H A D | davicom-dm9000.txt | 4 - compatible = "davicom,dm9000"; 5 - reg : physical addresses and sizes of registers, must contain 2 entries: 6 first entry : address register, 7 second entry : data register. 8 - interrupts : interrupt specifier specific to interrupt controller 11 - davicom,no-eeprom : Configuration EEPROM is not available 12 - davicom,ext-phy : Use external PHY 13 - reset-gpios : phandle of gpio that will be used to reset chip during probe 14 - vcc-supply : phandle of regulator that will be used to enable power to chip 21 interrupt-parent = <&gpn>; [all …]
|