| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/display/panel/ |
| H A D | tpo,tpg110.yaml | 1 # 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 …]
|
| H A D | kingdisplay,kd035g6-54nt.yaml | 1 # 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/iio/common/st_sensors/ |
| H A D | st_sensors_spi.c | 1 // 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/spi/ |
| H A D | icpdas-lp8841-spi-rtc.txt | 1 * 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 …]
|
| H A D | spi-controller.yaml | 1 # 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 …]
|
| /OK3568_Linux_fs/u-boot/doc/device-tree-bindings/spi/ |
| H A D | spi-bus.txt | 1 SPI (Serial Peripheral Interface) busses 3 SPI busses can be described with a node for the SPI master device 4 and a set of child nodes for each SPI slave on the bus. For this 5 discussion, it is assumed that the system's SPI controller is in 6 SPI master mode. This binding does not describe SPI controllers 9 The SPI master node requires the following properties: 10 - #address-cells - number of cells required to define a chip select 11 address on the SPI bus. 12 - #size-cells - should be zero. 13 - compatible - name of SPI bus controller following generic names [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/rtc/ |
| H A D | maxim-ds1302.txt | 1 * 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/display/ |
| H A D | multi-inno,mi0283qt.txt | 1 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/ |
| H A D | trivial-devices.yaml | 1 # 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/spi/ |
| H A D | spi-lm70llp.rst | 2 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 …]
|
| H A D | spi-summary.rst | 2 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 …]
|
| H A D | butterfly.rst | 2 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 …]
|
| /OK3568_Linux_fs/app/forlinx/forlinx_cmd/fltest_spidev_test/ |
| H A D | spidev_test.c | 2 * SPI testing utility (using spidev driver) 11 * Cross-compile with cross-gcc -I/path/to/cross-kernel/include 22 #include <linux/spi/spidev.h> 62 pabort("can't send spi message"); in transfer() 74 printf("Usage: %s [-DsbdlHOLC3]\n", prog); in print_usage() 75 puts(" -D --device device to use (default /dev/spidev1.1)\n" in print_usage() 76 " -s --speed max speed (Hz)\n" in print_usage() 77 " -d --delay delay (usec)\n" in print_usage() 78 " -b --bpw bits per word \n" in print_usage() 79 " -l --loop loopback\n" in print_usage() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| H A D | ste-nomadik-nhk15.dts | 1 // 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/powerpc/fsl/ |
| H A D | mpc5200.txt | 2 ---------------------------- 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 …]
|
| /OK3568_Linux_fs/u-boot/drivers/video/ |
| H A D | ssd2828.c | 4 * SPDX-License-Identifier: GPL-2.0+ 91 #define SSD2828_CFGR_VEN (1 << 3) 108 #define SSD2828_VIDEO_PIXEL_FORMAT_24BPP 3 110 #define SSD2828_LP_CLOCK_DIVIDER(n) (((n) - 1) & 0x3F) 113 * SPI transfer, using the "24-bit 3 wire" mode (that's how it is called in 114 * the SSD2828 documentation). The 'dout' input parameter specifies 24-bits 115 * of data to be written to SSD2828. Returns the lowest 16-bits of data, 123 * According to the "24 Bit 3 Wire SPI Interface Timing Characteristics" in soft_spi_xfer_24bit_3wire() 125 * the lowest possible 'tx_clk' clock frequency is 8MHz, and SPI runs in soft_spi_xfer_24bit_3wire() 134 gpio_set_value(drv->csx_pin, 0); in soft_spi_xfer_24bit_3wire() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/spi/ |
| H A D | lpc32xx_ssp.c | 2 * LPC32xx SSP interface (SPI mode) 5 * Written-by: Albert ARIBAUD <albert.aribaud@3adev.fr> 7 * SPDX-License-Identifier: GPL-2.0+ 14 #include <spi.h> 39 /* lpc32xx spi slave */ 69 pr_err("3-wire mode not supported"); in spi_setup_slave() 89 lslave->regs = (struct ssp_regs *)SSP0_BASE; in spi_setup_slave() 92 * 8 bit frame, SPI fmt, 500kbps -> clock divider is 26. in spi_setup_slave() 96 writel(0x7, &lslave->regs->cr0); /* 8-bit chunks, SPI, 1 clk/bit */ in spi_setup_slave() 97 writel(26, &lslave->regs->cpsr); /* SSP clock = HCLK/26 = 500kbps */ in spi_setup_slave() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/iio/temperature/ |
| H A D | ltc2983.c | 1 // 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) 192 struct spi_device *spi; member [all …]
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | spi.h | 2 * Common SPI Interface: Controller-specific definitions 7 * SPDX-License-Identifier: GPL-2.0+ 15 /* SPI mode flags */ 23 #define SPI_LSB_FIRST BIT(3) /* per-word bits-on-wire */ 28 #define SPI_TX_BYTE BIT(8) /* transmit with 1 wire byte */ 31 #define SPI_RX_SLOW BIT(11) /* receive with 1 wire slow */ 44 * struct dm_spi_bus - SPI bus info 46 * This contains information about a SPI bus. To obtain this structure, use 47 * dev_get_uclass_priv(bus) where bus is the SPI bus udevice. 62 * struct dm_spi_platdata - platform data for all SPI slaves [all …]
|
| /OK3568_Linux_fs/kernel/tools/spi/ |
| H A D | spidev_test.c | 1 // 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 …]
|
| /OK3568_Linux_fs/kernel/include/linux/mfd/wm831x/ |
| H A D | pdata.h | 1 /* 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,
|
| /OK3568_Linux_fs/kernel/drivers/acpi/acpica/ |
| H A D | utresdecode.c | 1 // 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/spi/ |
| H A D | spi-rb4xx.c | 1 // 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 …]
|
| /OK3568_Linux_fs/kernel/include/linux/platform_data/ |
| H A D | st_sensors_pdata.h | 1 /* 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.
|
| /OK3568_Linux_fs/kernel/drivers/iio/dac/ |
| H A D | ad5758.c | 1 // 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 …]
|