Home
last modified time | relevance | path

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

123

/linux-5.10/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.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/display/panel/kingdisplay,kd035g6-54nt.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: King Display KD035G6-54NT 3.5" (320x240 pixels) 24-bit TFT LCD panel
10 The panel must obey the rules for a SPI slave device as specified in
11 spi/spi-controller.yaml
14 - Paul Cercueil <paul@crapouillou.net>
17 - $ref: panel-common.yaml#
21 const: kingdisplay,kd035g6-54nt
[all …]
/linux-5.10/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.
34 * st_sensors_is_spi_3_wire() - check if SPI 3-wire mode has been selected
35 * @spi: spi device reference.
37 * Return: true if SPI 3-wire mode is selected, false otherwise.
39 static bool st_sensors_is_spi_3_wire(struct spi_device *spi) in st_sensors_is_spi_3_wire() argument
42 struct device *dev = &spi->dev; in st_sensors_is_spi_3_wire()
44 if (device_property_read_bool(dev, "spi-3wire")) in st_sensors_is_spi_3_wire()
48 if (pdata && pdata->spi_3wire) in st_sensors_is_spi_3_wire()
[all …]
/linux-5.10/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-5.10/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-5.10/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-5.10/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-5.10/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-5.10/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 …]
Dstm32f429-disco.dts2 * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com>
4 * This file is dual-licensed: you can use it either under the terms
22 * MA 02110-1301 USA
48 /dts-v1/;
50 #include "stm32f429-pinctrl.dtsi"
51 #include <dt-bindings/input/input.h>
52 #include <dt-bindings/interrupt-controller/irq.h>
53 #include <dt-bindings/gpio/gpio.h>
56 model = "STMicroelectronics STM32F429i-DISCO board";
57 compatible = "st,stm32f429i-disco", "st,stm32f429";
[all …]
/linux-5.10/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-5.10/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-5.10/drivers/iio/temperature/
Dltc2983.c1 // SPDX-License-Identifier: GPL-2.0
3 * Analog Devices LTC2983 Multi-Sensor Digital Temperature Measurement System
18 #include <linux/spi/spi.h>
42 (((chan - 1) * 4) + LTC2983_CHAN_ASSIGN_START_REG)
44 (((chan - 1) * 4) + LTC2983_TEMP_RES_START_REG)
45 #define LTC2983_THERMOCOUPLE_DIFF_MASK BIT(3)
75 #define LTC2983_RTD_4_WIRE_MASK BIT(3)
79 #define LTC2983_RTD_KELVIN_R_SENSE_MASK GENMASK(3, 2)
80 #define LTC2983_RTD_N_WIRES_MASK GENMASK(3, 2)
190 struct spi_device *spi; member
[all …]
/linux-5.10/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-5.10/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>
19 #include <asm/mach-ath79/ar71xx_regs.h>
28 return __raw_readl(rbspi->base + reg); in rb4xx_read()
33 __raw_writel(value, rbspi->base + reg); in rb4xx_write()
52 for (i = 7; i >= 0; i--) in do_spi_byte()
81 static void rb4xx_set_cs(struct spi_device *spi, bool enable) in rb4xx_set_cs() argument
83 struct rb4xx_spi *rbspi = spi_master_get_devdata(spi->master); in rb4xx_set_cs()
96 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-5.10/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-5.10/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
24 #include <linux/spi/spidev.h>
71 while (length-- > 0) { in hex_dump()
91 * Unescape - process hexadecimal escape character
92 * converts shell input "\x23" -> 0x23
152 pabort("can't send spi message"); in transfer()
175 printf("Usage: %s [-DsbdlHOLC3vpNR24SI]\n", prog); in print_usage()
176 puts(" -D --device device to use (default /dev/spidev1.1)\n" in print_usage()
[all …]
/linux-5.10/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>
39 struct spi_device *spi = dev_get_drvdata(dev); in ds1302_rtc_set_time() local
49 status = spi_write_then_read(spi, buf, 2, in ds1302_rtc_set_time()
58 *bp++ = bin2bcd(time->tm_sec); in ds1302_rtc_set_time()
59 *bp++ = bin2bcd(time->tm_min); in ds1302_rtc_set_time()
60 *bp++ = bin2bcd(time->tm_hour); in ds1302_rtc_set_time()
61 *bp++ = bin2bcd(time->tm_mday); in ds1302_rtc_set_time()
62 *bp++ = bin2bcd(time->tm_mon + 1); in ds1302_rtc_set_time()
[all …]
/linux-5.10/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)
102 * struct ad5758_state - driver instance specific data
103 * @spi: spi_device
108 * @dc_dc_ilim: variable which stores the dc-to-dc converter current limit
111 * @d32: spi transfer buffers
114 struct spi_device *spi; member
122 __be32 d32[3];
[all …]
/linux-5.10/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-5.10/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 …]

123