Home
last modified time | relevance | path

Searched +full:spi +full:- +full:gpio (Results 1 – 25 of 1136) sorted by relevance

12345678910>>...46

/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/pinctrl/
H A Dmarvell,kirkwood-pinctrl.txt3 Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding
7 - compatible: "marvell,88f6180-pinctrl",
8 "marvell,88f6190-pinctrl", "marvell,88f6192-pinctrl",
9 "marvell,88f6281-pinctrl", "marvell,88f6282-pinctrl",
10 "marvell,98dx4122-pinctrl", "marvell,98dx1135-pinctrl"
11 - reg: register specifier of MPP registers
14 It also support the 88f6281-based variant in the 98dx412x Bobcat SoCs.
24 mpp0 0 gpio, nand(io2), spi(cs)
25 mpp1 1 gpo, nand(io3), spi(mosi)
26 mpp2 2 gpo, nand(io4), spi(sck)
[all …]
H A Dpinctrl-mcp23s08.txt2 8-/16-bit I/O expander with serial interface (I2C/SPI)
5 - compatible : Should be
6 - "mcp,mcp23s08" (DEPRECATED) for 8 GPIO SPI version
7 - "mcp,mcp23s17" (DEPRECATED) for 16 GPIO SPI version
8 - "mcp,mcp23008" (DEPRECATED) for 8 GPIO I2C version or
9 - "mcp,mcp23017" (DEPRECATED) for 16 GPIO I2C version of the chip
11 - "microchip,mcp23s08" for 8 GPIO SPI version
12 - "microchip,mcp23s17" for 16 GPIO SPI version
13 - "microchip,mcp23s18" for 16 GPIO SPI version
14 - "microchip,mcp23008" for 8 GPIO I2C version or
[all …]
/OK3568_Linux_fs/u-boot/doc/device-tree-bindings/spi/
H A Dsoft-spi.txt1 Soft SPI
3 The soft SPI bus implementation allows the use of GPIO pins to simulate a
4 SPI bus. No SPI host is required for this to work. The down-side is that the
5 performance will typically be much lower than a real SPI bus.
7 The soft SPI node requires the following properties:
9 compatible: "u-boot,soft-spi"
10 soft_spi_cs: GPIO number to use for SPI chip select (output)
11 soft_spi_sclk: GPIO number to use for SPI clock (output)
12 soft_spi_mosi: GPIO number to use for SPI MOSI line (output)
13 soft_spi_miso GPIO number to use for SPI MISO line (input)
[all …]
/OK3568_Linux_fs/kernel/drivers/gpio/
H A Dgpio-pisosr.c2 * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/
18 #include <linux/gpio/consumer.h>
19 #include <linux/gpio/driver.h>
22 #include <linux/spi/spi.h>
27 * struct pisosr_gpio - GPIO driver data
28 * @chip: GPIO controller chip
29 * @spi: SPI device pointer
32 * @load_gpio: GPIO pin used to load input into device
37 struct spi_device *spi; member
44 static int pisosr_gpio_refresh(struct pisosr_gpio *gpio) in pisosr_gpio_refresh() argument
[all …]
H A Dgpio-max3191x.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * gpio-max3191x.c - GPIO driver for Maxim MAX3191x industrial serializer
7 * The MAX3191x makes 8 digital 24V inputs available via SPI.
8 * Multiple chips can be daisy-chained, the spec does not impose
11 * Either of two modes is selectable: In 8-bit mode, only the state
13 * In 16-bit mode, an additional status byte is clocked out with
17 * readout of non-faulting chips in the same daisy-chain.
21 * daisy-chain.
23 * If the chips are hardwired to 8-bit mode ("modesel" pulled high),
24 * gpio-pisosr.c can be used alternatively to this driver.
[all …]
/OK3568_Linux_fs/kernel/drivers/pinctrl/
H A Dpinctrl-xway.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/drivers/pinctrl/pinmux-xway.c
4 * based on linux/drivers/pinctrl/pinmux-pxa910.c
21 #include "pinctrl-lantiq.h"
110 /* --------- DEPRECATED: xr9 related code --------- */
111 /* ---------- use xrx100/xrx200 instead ---------- */
116 MFP_XWAY(GPIO0, GPIO, EXIN, NONE, TDM),
117 MFP_XWAY(GPIO1, GPIO, EXIN, NONE, NONE),
118 MFP_XWAY(GPIO2, GPIO, CGU, EXIN, GPHY),
119 MFP_XWAY(GPIO3, GPIO, CGU, NONE, PCI),
[all …]
H A Dpinctrl-falcon.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/drivers/pinctrl/pinmux-falcon.c
4 * based on linux/drivers/pinctrl/pinmux-pxa910.c
10 #include <linux/gpio/driver.h>
22 #include "pinctrl-lantiq.h"
107 MFP_FALCON(GPIO0, RST, GPIO, NONE, NONE),
108 MFP_FALCON(GPIO1, GPIO, GPIO, NONE, NONE),
109 MFP_FALCON(GPIO2, GPIO, GPIO, NONE, NONE),
110 MFP_FALCON(GPIO3, GPIO, GPIO, NONE, NONE),
111 MFP_FALCON(GPIO4, NTR, GPIO, NONE, NONE),
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/spi/
H A Dspi-gpio.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/spi/spi-gpio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: SPI-GPIO devicetree bindings
10 - Rob Herring <robh@kernel.org>
13 This represents a group of 3-n GPIO lines used for bit-banged SPI on
14 dedicated GPIO lines.
17 - $ref: "/schemas/spi/spi-controller.yaml#"
21 const: spi-gpio
[all …]
H A Dbrcm,bcm2835-aux-spi.txt3 The BCM2835 contains two forms of SPI master controller, one known simply as
4 SPI0, and the other known as the "Universal SPI Master"; part of the
8 - compatible: Should be "brcm,bcm2835-aux-spi".
9 - reg: Should contain register location and length for the spi block
10 - interrupts: Should contain shared interrupt of the aux block
11 - clocks: The clock feeding the SPI controller - needs to
15 - cs-gpios: the cs-gpios (native cs is NOT supported)
16 see also spi-bus.txt
21 compatible = "brcm,bcm2835-aux-spi";
25 #address-cells = <1>;
[all …]
/OK3568_Linux_fs/u-boot/board/renesas/sh7752evb/
H A Dsh7752evb.c4 * SPDX-License-Identifier: GPL-2.0+
12 #include <spi.h>
24 struct gpio_regs *gpio = GPIO_BASE; in init_gpio() local
27 /* GPIO */ in init_gpio()
28 writew(0x0000, &gpio->pacr); /* GETHER */ in init_gpio()
29 writew(0x0001, &gpio->pbcr); /* INTC */ in init_gpio()
30 writew(0x0000, &gpio->pccr); /* PWMU, INTC */ in init_gpio()
31 writew(0xeaff, &gpio->pecr); /* GPIO */ in init_gpio()
32 writew(0x0000, &gpio->pfcr); /* WDT */ in init_gpio()
33 writew(0x0000, &gpio->phcr); /* SPI1 */ in init_gpio()
[all …]
/OK3568_Linux_fs/kernel/drivers/tty/serial/
H A Difx6x60.c1 // SPDX-License-Identifier: GPL-2.0
4 * Driver for the IFX 6x60 spi modem.
19 * o The driver is intended to be big-endian safe but has never been
22 * o Some of the GPIO naming/setup assumptions may need revisiting if
26 #include <linux/dma-mapping.h>
31 #include <linux/spi/spi.h>
42 #include <linux/gpio/consumer.h>
48 #include <linux/spi/ifx_modem.h>
60 #define IFX_SPI_HEADER_0 (-1)
61 #define IFX_SPI_HEADER_F (-2)
[all …]
/OK3568_Linux_fs/u-boot/board/renesas/sh7753evb/
H A Dsh7753evb.c4 * SPDX-License-Identifier: GPL-2.0+
12 #include <spi.h>
24 struct gpio_regs *gpio = GPIO_BASE; in init_gpio() local
27 /* GPIO */ in init_gpio()
28 writew(0x0000, &gpio->pacr); /* GETHER */ in init_gpio()
29 writew(0x0001, &gpio->pbcr); /* INTC */ in init_gpio()
30 writew(0x0000, &gpio->pccr); /* PWMU, INTC */ in init_gpio()
31 writew(0x0000, &gpio->pdcr); /* SPI0 */ in init_gpio()
32 writew(0xeaff, &gpio->pecr); /* GPIO */ in init_gpio()
33 writew(0x0000, &gpio->pfcr); /* WDT */ in init_gpio()
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/wfx/Documentation/devicetree/bindings/net/wireless/
H A Dsilabs,wfx.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 ---
7 $schema: http://devicetree.org/meta-schemas/core.yaml#
12 - Jérôme Pouiller <jerome.pouiller@silabs.com>
15 The WFxxx chip series can be connected via SPI or via SDIO.
24 In addition, it is recommended to declare a mmc-pwrseq on SDIO host above
25 WFx. Without it, you may encounter issues with warm boot. The mmc-pwrseq
26 should be compatible with mmc-pwrseq-simple. Please consult
27 Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.yaml for more
30 For SPI':'
[all …]
/OK3568_Linux_fs/kernel/drivers/spi/
H A Dspi-gpio.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * SPI master driver using generic bitbanged GPIO
11 #include <linux/gpio/consumer.h>
15 #include <linux/spi/spi.h>
16 #include <linux/spi/spi_bitbang.h>
17 #include <linux/spi/spi_gpio.h>
21 * This bitbanging SPI master driver should help make systems usable
22 * when a native hardware SPI engine is not available, perhaps because
26 * platform_device->driver_data ... points to spi_gpio
28 * spi->controller_state ... reserved for bitbang framework code
[all …]
H A Dspi-txx9.c2 * TXx9 SPI controller driver.
5 * Copyright (C) 2000-2001 Toshiba Corporation
7 * 2003-2005 (c) MontaVista Software, Inc. This file is licensed under the
12 * Support for TX4938 in 2.6 - Manish Lachwani (mlachwani@mvista.com)
14 * Convert to generic SPI framework - Atsushi Nemoto (anemo@mba.ocn.ne.jp)
24 #include <linux/spi/spi.h>
29 #include <linux/gpio/machine.h>
30 #include <linux/gpio/consumer.h>
44 /* SPMCR : SPI Master Control */
51 /* SPCR0 : SPI Control 0 */
[all …]
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Daspeed-bmc-ibm-rainier.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
3 /dts-v1/;
5 #include "aspeed-g6.dtsi"
6 #include <dt-bindings/gpio/aspeed-gpio.h>
7 #include <dt-bindings/i2c/i2c.h>
8 #include <dt-bindings/leds/leds-pca955x.h>
12 compatible = "ibm,rainier-bmc", "aspeed,ast2600";
36 stdout-path = &uart5;
45 reserved-memory {
46 #address-cells = <1>;
[all …]
/OK3568_Linux_fs/kernel/drivers/net/can/spi/
H A Dmcp251x.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* CAN bus driver for Microchip 251x/25625 CAN Controller with SPI Interface
17 * - Sascha Hauer, Marc Kleine-Budde, Pengutronix
18 * - Simon Kallweit, intefo AG
31 #include <linux/gpio.h>
32 #include <linux/gpio/driver.h>
43 #include <linux/spi/spi.h>
46 /* SPI interface instruction set */
197 /* Buffer size required for the largest SPI transfer (i.e., reading a
231 struct spi_device *spi; member
[all …]
/OK3568_Linux_fs/kernel/Documentation/driver-api/gpio/
H A Ddrivers-on-gpio.rst2 Subsystem drivers using GPIO
5 Note that standard kernel drivers exist for common GPIO tasks and will provide
6 the right in-kernel and userspace APIs/ABIs for the job, and that these
10 - leds-gpio: drivers/leds/leds-gpio.c will handle LEDs connected to GPIO
13 - ledtrig-gpio: drivers/leds/trigger/ledtrig-gpio.c will provide a LED trigger,
14 i.e. a LED will turn on/off in response to a GPIO line going high or low
15 (and that LED may in turn use the leds-gpio as per above).
17 - gpio-keys: drivers/input/keyboard/gpio_keys.c is used when your GPIO line
20 - gpio-keys-polled: drivers/input/keyboard/gpio_keys_polled.c is used when your
21 GPIO line cannot generate interrupts, so it needs to be periodically polled
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/gpio/
H A Dgpio-pisosr.txt1 Generic Parallel-in/Serial-out Shift Register GPIO Driver
3 This binding describes generic parallel-in/serial-out shift register
5 SN74165 serial-out shift registers and the SN65HVS88x series of
9 - compatible : Should be "pisosr-gpio".
10 - gpio-controller : Marks the device node as a GPIO controller.
11 - #gpio-cells : Should be two. For consumer use see gpio.txt.
14 - ngpios : Number of used GPIO lines (0..n-1), default is 8.
15 - load-gpios : GPIO pin specifier attached to load enable, this
19 For other required and optional properties of SPI slave
20 nodes please refer to ../spi/spi-bus.txt.
[all …]
/OK3568_Linux_fs/kernel/drivers/video/fbdev/omap2/omapfb/displays/
H A Dpanel-lgphilips-lb035q02.c1 // SPDX-License-Identifier: GPL-2.0-only
12 #include <linux/spi/spi.h>
14 #include <linux/gpio.h>
43 struct spi_device *spi; member
49 /* used for non-DT boot, to be removed */
57 static int lb035q02_write_reg(struct spi_device *spi, u8 reg, u16 val) in lb035q02_write_reg() argument
85 return spi_sync(spi, &msg); in lb035q02_write_reg()
88 static void init_lb035q02_panel(struct spi_device *spi) in init_lb035q02_panel() argument
91 lb035q02_write_reg(spi, 0x01, 0x6300); in init_lb035q02_panel()
92 lb035q02_write_reg(spi, 0x02, 0x0200); in init_lb035q02_panel()
[all …]
/OK3568_Linux_fs/u-boot/drivers/video/
H A Dscf0403_lcd.c2 * scf0403.c -- support for DataImage SCF0403 LCD
12 * U-Boot port: Nikita Kiryanov <nikita@compulab.co.il>
14 * SPDX-License-Identifier: GPL-2.0+
18 #include <asm/gpio.h>
19 #include <spi.h>
33 struct spi_slave *spi; member
138 static void scf0403_gpio_reset(unsigned int gpio) in scf0403_gpio_reset() argument
140 if (!gpio_is_valid(gpio)) in scf0403_gpio_reset()
143 gpio_set_value(gpio, 1); in scf0403_gpio_reset()
145 gpio_set_value(gpio, 0); in scf0403_gpio_reset()
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/dsa/
H A Dvitesse,vsc73xx.txt9 Vitesse VSC7385 SparX-G5 5+1-port Integrated Gigabit Ethernet Switch
10 Vitesse VSC7388 SparX-G8 8-port Integrated Gigabit Ethernet Switch
11 Vitesse VSC7395 SparX-G5e 5+1-port Integrated Gigabit Ethernet Switch
12 Vitesse VSC7398 SparX-G8e 8-port Integrated Gigabit Ethernet Switch
16 If SPI interface is used, the device tree node is an SPI device so it must
17 reside inside a SPI bus device tree node, see spi/spi-bus.txt
19 When the chip is connected to a parallel memory bus and work in memory-mapped
25 - compatible: must be exactly one of:
30 - gpio-controller: indicates that this switch is also a GPIO controller,
31 see gpio/gpio.txt
[all …]
/OK3568_Linux_fs/kernel/drivers/fpga/
H A Dxilinx-spi.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Xilinx Spartan6 and 7 Series Slave Serial SPI Driver
9 * Manage Xilinx FPGA firmware that is loaded over SPI using
15 #include <linux/fpga/fpga-mgr.h>
16 #include <linux/gpio/consumer.h>
20 #include <linux/spi/spi.h>
24 struct spi_device *spi; member
32 struct xilinx_spi_conf *conf = mgr->priv; in get_done_gpio()
35 ret = gpiod_get_value(conf->done); in get_done_gpio()
38 dev_err(&mgr->dev, "Error reading DONE (%d)\n", ret); in get_done_gpio()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/include/asm/hardware/
H A Dlocomo.h53 #define LOCOMO_DAC_SDA 0x02 /* SDA pin level (read-only) */
56 /* SPI interface */
58 #define LOCOMO_SPIMD 0x00 /* SPI mode setting */
59 #define LOCOMO_SPICT 0x04 /* SPI mode control */
60 #define LOCOMO_SPIST 0x08 /* SPI status */
66 #define LOCOMO_SPIIS 0x10 /* SPI interrupt status */
67 #define LOCOMO_SPIWE 0x14 /* SPI interrupt status write enable */
68 #define LOCOMO_SPIIE 0x18 /* SPI interrupt enable */
69 #define LOCOMO_SPIIR 0x1c /* SPI interrupt request */
70 #define LOCOMO_SPITD 0x20 /* SPI transfer data write */
[all …]
/OK3568_Linux_fs/kernel/drivers/iio/adc/
H A Dti-ads7950.c1 // SPDX-License-Identifier: GPL-2.0
3 * Texas Instruments ADS7950 SPI ADC driver
12 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
20 #include <linux/gpio/driver.h>
26 #include <linux/spi/spi.h>
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))
62 /* GPIO mode configuration */
64 (TI_ADS7950_GPIO_CMD(st->gpio_cmd_settings_bitmask))
[all …]

12345678910>>...46