Home
last modified time | relevance | path

Searched +full:spi +full:- +full:3 +full:wire (Results 1 – 25 of 63) sorted by relevance

123

/Linux-v5.4/Documentation/devicetree/bindings/display/panel/
Dtpo,tpg110.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Linus Walleij <linus.walleij@linaro.org>
11 - Thierry Reding <thierry.reding@gmail.com>
17 and other properties, and has a control interface over 3WIRE
18 SPI. By talking to the TPG110 over SPI, the strapped properties
20 self-describing.
22 +--------+
23 SPI -> | TPO | -> physical display
[all …]
Dkingdisplay,kd035g6-54nt.txt1 King Display KD035G6-54NT 3.5" (320x240 pixels) 24-bit TFT LCD panel
4 - compatible: should be "kingdisplay,kd035g6-54nt"
5 - power-supply: See panel-common.txt
6 - reset-gpios: See panel-common.txt
9 - backlight: see panel-common.txt
11 The generic bindings for the SPI slaves documented in [1] also apply.
17 [1]: Documentation/devicetree/bindings/spi/spi-bus.txt
22 &spi {
24 compatible = "kingdisplay,kd035g6-54nt";
27 spi-max-frequency = <3125000>;
[all …]
/Linux-v5.4/drivers/iio/common/st_sensors/
Dst_sensors_spi.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * STMicroelectronics sensors spi library driver
5 * Copyright 2012-2013 STMicroelectronics Inc.
33 * st_sensors_is_spi_3_wire() - check if SPI 3-wire mode has been selected
34 * @spi: spi device reference.
36 * Return: true if SPI 3-wire mode is selected, false otherwise.
38 static bool st_sensors_is_spi_3_wire(struct spi_device *spi) in st_sensors_is_spi_3_wire() argument
40 struct device_node *np = spi->dev.of_node; in st_sensors_is_spi_3_wire()
43 pdata = (struct st_sensors_platform_data *)spi->dev.platform_data; in st_sensors_is_spi_3_wire()
44 if ((np && of_property_read_bool(np, "spi-3wire")) || in st_sensors_is_spi_3_wire()
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/spi/
Dicpdas-lp8841-spi-rtc.txt1 * ICP DAS LP-8841 SPI Controller for RTC
3 ICP DAS LP-8841 contains a DS-1302 RTC. RTC is connected to an IO
4 memory register, which acts as an SPI master device.
6 The device uses the standard MicroWire half-duplex transfer timing.
13 - #address-cells: should be 1
15 - #size-cells: should be 0
17 - compatible: should be "icpdas,lp8841-spi-rtc"
19 - reg: should provide IO memory address
21 Requirements to SPI slave nodes:
23 - There can be only one slave device.
[all …]
Dspi-controller.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/spi/spi-controller.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: SPI Controller Generic Binding
10 - Mark Brown <broonie@kernel.org>
13 SPI busses can be described with a node for the SPI controller device
14 and a set of child nodes for each SPI slave on the bus. The system SPI
15 controller may be described for use in SPI master mode or in SPI slave mode,
20 pattern: "^spi(@.*|-[0-9a-f])*$"
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/rtc/
Dmaxim-ds1302.txt1 * Maxim/Dallas Semiconductor DS-1302 RTC
5 The device uses the standard MicroWire half-duplex transfer timing.
12 - compatible : Should be "maxim,ds1302"
14 Required SPI properties:
16 - reg : Should be address of the device chip select within
19 - spi-max-frequency : DS-1302 has 500 kHz if powered at 2.2V,
22 - spi-3wire : The device has a shared signal IN/OUT line.
24 - spi-lsb-first : DS-1302 requires least significant bit first
27 - spi-cs-high: DS-1302 has active high chip select line. This is
32 spi@901c {
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/display/
Dmulti-inno,mi0283qt.txt1 Multi-Inno MI0283QT display panel
4 - compatible: "multi-inno,mi0283qt".
6 The node for this driver must be a child node of a SPI controller, hence
7 all mandatory properties described in ../spi/spi-bus.txt must be specified.
10 - dc-gpios: D/C pin. The presence/absence of this GPIO determines
11 the panel interface mode (IM[3:0] pins):
12 - present: IM=x110 4-wire 8-bit data serial interface
13 - absent: IM=x101 3-wire 9-bit data serial interface
14 - reset-gpios: Reset pin
15 - power-supply: A regulator node for the supply voltage.
[all …]
/Linux-v5.4/Documentation/spi/
Dspi-lm70llp.rst2 spi_lm70llp : LM70-LLP parport-to-SPI adapter
15 -----------
17 temperature sensor evaluation board to the kernel's SPI core subsystem.
19 This is a SPI master controller driver. It can be used in conjunction with
20 (layered under) the LM70 logical driver (a "SPI protocol driver").
22 into a SPI bus with a single device, which will be driven by the generic
27 --------------------
28 The schematic for this particular board (the LM70EVAL-LLP) is
39 D0 2 - -
40 D1 3 --> V+ 5
[all …]
Dbutterfly.rst2 spi_butterfly - parport-to-butterfly adapter driver
9 sensors, LCD, flash, toggle stick, and more. You can use AVR-GCC to
20 SPI protocol drivers interact with the AVR, and could even let the AVR
22 easily with a "real SPI controller", instead of this bitbanger.
25 The first cable connections will hook Linux up to one SPI bus, with the
28 connector pins (used also on non-Butterfly AVR boards). On the parport
32 Signal Butterfly Parport (DB-25)
35 RESET J403.nRST pin 3/D1
43 (a) flash new firmware that disables SPI (set PRR.2, and disable pullups
44 by clearing PORTB.[0-3]); (b) configure the mtd_dataflash driver; and
[all …]
Dspi-summary.rst2 Overview of Linux kernel SPI support
5 02-Feb-2012
7 What is SPI?
8 ------------
9 The "Serial Peripheral Interface" (SPI) is a synchronous four wire serial
12 standardization body. SPI uses a master/slave configuration.
17 clocking modes through which data is exchanged; mode-0 and mode-3 are most
22 SPI masters use a fourth "chip select" line to activate a given SPI slave
24 in parallel. All SPI slaves support chipselects; they are usually active
29 SPI slave functions are usually not interoperable between vendors
[all …]
/Linux-v5.4/arch/arm/boot/dts/
Dste-nomadik-nhk15.dts1 // SPDX-License-Identifier: GPL-2.0
6 /dts-v1/;
7 #include <dt-bindings/interrupt-controller/irq.h>
8 #include <dt-bindings/gpio/gpio.h>
9 #include "ste-nomadik-stn8815.dtsi"
13 compatible = "st,nomadik-nhk-15";
22 stmpe-i2c0 = &stmpe0;
23 stmpe-i2c1 = &stmpe1;
71 disable-sxtalo;
72 disable-mxtalo;
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/powerpc/fsl/
Dmpc5200.txt2 ----------------------------
4 (c) 2006-2009 Secret Lab Technologies Ltd
8 ------------------
9 For mpc5200 on-chip devices, the format for each compatible value is
10 <chip>-<device>[-<mode>]. The OS should be able to match a device driver
21 "fsl,mpc5200-<device>".
29 compatible = "fsl,mpc5200b-<device>","fsl,mpc5200-<device>";
34 ie. ethernet on mpc5200: compatible = "fsl,mpc5200-fec";
35 ethernet on mpc5200b: compatible = "fsl,mpc5200b-fec", "fsl,mpc5200-fec";
39 "fsl,mpc5200-psc-i2s", not "fsl,mpc5200-i2s". This convention is chosen to
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/
Dtrivial-devices.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/trivial-devices.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Trivial I2C and SPI devices that have simple device tree bindings
10 - Rob Herring <robh@kernel.org>
13 This is a list of trivial I2C and SPI devices that have simple device tree
28 - enum:
29 … # SMBus/I2C Digital Temperature Sensor in 6-Pin SOT with SMBus Alert and Over Temperature Pin
30 - ad,ad7414
[all …]
/Linux-v5.4/include/linux/platform_data/
Dst_sensors_pdata.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * STMicroelectronics sensors platform-data driver
14 * struct st_sensors_platform_data - Platform data for the ST sensors
19 * @spi_3wire: enable spi-3wire mode.
/Linux-v5.4/drivers/spi/
Dspi-rb4xx.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * SPI controller driver for the Mikrotik RB4xx boards
16 #include <linux/spi/spi.h>
18 #include <asm/mach-ath79/ar71xx_regs.h>
27 return __raw_readl(rbspi->base + reg); in rb4xx_read()
32 __raw_writel(value, rbspi->base + reg); in rb4xx_write()
51 for (i = 7; i >= 0; i--) in do_spi_byte()
80 static void rb4xx_set_cs(struct spi_device *spi, bool enable) in rb4xx_set_cs() argument
82 struct rb4xx_spi *rbspi = spi_master_get_devdata(spi->master); in rb4xx_set_cs()
95 struct spi_device *spi, struct spi_transfer *t) in rb4xx_transfer_one() argument
[all …]
Dspi-lm70llp.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for LM70EVAL-LLP board for the LM70 sensor
19 #include <linux/spi/spi.h>
20 #include <linux/spi/spi_bitbang.h>
23 * The LM70 communicates with a host processor using a 3-wire variant of
24 * the SPI/Microwire bus interface. This driver specifically supports an
26 * port to bitbang an SPI-parport bridge. Accordingly, this is an SPI
27 * master controller driver. The hwmon/lm70 driver is a "SPI protocol
33 * The schematic for this particular board (the LM70EVAL-LLP) is
37 * Also see Documentation/spi/spi-lm70llp.rst. The SPI<->parport code here is
[all …]
/Linux-v5.4/drivers/acpi/acpica/
Dutresdecode.c1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
4 * Module Name: utresdecode - Resource descriptor keyword strings
28 "0 - Good Configuration",
29 "1 - Acceptable Configuration",
30 "2 - Suboptimal Configuration",
31 "3 - ***Invalid Configuration***",
163 "SPI",
181 /* SPI serial bus wire mode */
188 /* SPI serial clock phase */
195 /* SPI serial bus clock polarity */
[all …]
/Linux-v5.4/include/linux/mfd/wm831x/
Dpdata.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * include/linux/mfd/wm831x/pdata.h -- Platform data for WM831x
40 * Configuration for the WM831x DC-DC BuckWise convertors. This
47 * I2C or SPI buses.
62 WM831X_STATUS_CHARGER = 3,
73 int fivewire; /** 1 for five wire mode, 0 for 4 wire */
87 WM831X_WDOG_WAKE = 3,
/Linux-v5.4/tools/spi/
Dspidev_test.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * SPI testing utility (using spidev driver)
8 * Cross-compile with cross-gcc -I/path/to/cross-kernel/include
23 #include <linux/spi/spidev.h>
66 while (length-- > 0) { in hex_dump()
86 * Unescape - process hexadecimal escape character
87 * converts shell input "\x23" -> 0x23
143 pabort("can't send spi message"); in transfer()
166 printf("Usage: %s [-DsbdlHOLC3vpNR24SI]\n", prog); in print_usage()
167 puts(" -D --device device to use (default /dev/spidev1.1)\n" in print_usage()
[all …]
/Linux-v5.4/sound/soc/codecs/
Drt5677-spi.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5677-spi.c -- RT5677 ALSA SoC audio codec driver
11 #include <linux/spi/spi.h>
27 #include "rt5677-spi.h"
35 /* The AddressPhase and DataPhase of SPI commands are MSB first on the wire.
36 * DataPhase word size of 16-bit commands is 2 bytes.
37 * DataPhase word size of 32-bit commands is 4 bytes.
39 * The DSP CPU is little-endian.
55 * 3 transfer commands are available:
88 *len = (((remain - 1) >> 3) + 1) << 3; in rt5677_spi_select_cmd()
[all …]
/Linux-v5.4/drivers/rtc/
Drtc-ds1302.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 2003 - 2007 Paul Mundt
16 #include <linux/spi/spi.h>
18 #define DRV_NAME "rtc-ds1302"
41 struct spi_device *spi = dev_get_drvdata(dev); in ds1302_rtc_set_time() local
51 status = spi_write_then_read(spi, buf, 2, in ds1302_rtc_set_time()
60 *bp++ = bin2bcd(time->tm_sec); in ds1302_rtc_set_time()
61 *bp++ = bin2bcd(time->tm_min); in ds1302_rtc_set_time()
62 *bp++ = bin2bcd(time->tm_hour); in ds1302_rtc_set_time()
63 *bp++ = bin2bcd(time->tm_mday); in ds1302_rtc_set_time()
[all …]
/Linux-v5.4/drivers/iio/dac/
Dad5758.c1 // SPDX-License-Identifier: GPL-2.0
16 #include <linux/spi/spi.h>
52 #define AD5758_DAC_CONFIG_RANGE_MSK GENMASK(3, 0)
79 #define AD5758_DCDC_CONFIG2_ILIMIT_MSK GENMASK(3, 1)
96 * struct ad5758_state - driver instance specific data
97 * @spi: spi_device
101 * @dc_dc_ilim: variable which stores the dc-to-dc converter current limit
104 * @data: spi transfer buffers
114 struct spi_device *spi; member
122 __be32 d32[3];
[all …]
/Linux-v5.4/drivers/input/touchscreen/
Dads7846.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * - corgi_ts.c
11 * Copyright (C) 2004-2005 Richard Purdie
12 * - omap_ts.[hc], ads7846.h, ts_osk.c
31 #include <linux/spi/spi.h>
32 #include <linux/spi/ads7846.h>
41 * Support for ads7843 tested on Atmel at91sam926x-EK.
55 * note. The strength of filtering can be set in the board-* specific
67 * For portability, we can't read 12 bit values using SPI (which
69 * with msbs zeroed). Instead, we read them as two 8-bit values,
[all …]
/Linux-v5.4/arch/powerpc/boot/dts/
Dmpc832x_mds.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
12 * 2) Solder a wire from U61-21 to P19A-23. P19 is a grid of pins on the board
14 * 3) Solder a wire from U61-22 to P19K-22.
18 * you're going by the schematic, the pin is called "P19J-K22".
21 /dts-v1/;
26 #address-cells = <1>;
27 #size-cells = <1>;
38 #address-cells = <1>;
39 #size-cells = <0>;
44 d-cache-line-size = <32>; // 32 bytes
[all …]
/Linux-v5.4/include/linux/spi/
Dspi.h1 /* SPDX-License-Identifier: GPL-2.0-or-later
24 * INTERFACES between SPI master-side drivers and SPI slave protocol handlers,
25 * and SPI infrastructure.
30 * struct spi_statistics - statistics for spi transfers
33 * @messages: number of spi-messages handled
84 spin_lock_irqsave(&(stats)->lock, flags); \
85 (stats)->field += count; \
86 spin_unlock_irqrestore(&(stats)->lock, flags); \
93 * struct spi_device - Controller side proxy for an SPI slave device
95 * @controller: SPI controller used with the device.
[all …]

123