/linux-5.10/drivers/spi/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # SPI driver configuration 5 menuconfig SPI config 6 bool "SPI support" 10 protocol. Chips that support SPI can have data transfer rates 12 controller and a chipselect. Most SPI slaves don't support 13 dynamic device discovery; some are even write-only or read-only. 15 SPI is widely used by microcontrollers to talk with sensors, 16 eeprom and flash memory, codecs and various other controller 17 chips, analog to digital (and d-to-a) converters, and more. [all …]
|
D | spi-stm32.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // STMicroelectronics STM32 SPI Controller driver (master mode only) 5 // Copyright (C) 2017, STMicroelectronics - All Rights Reserved 19 #include <linux/spi/spi.h> 23 /* STM32F4 SPI registers */ 72 /* STM32F4 SPI Baud Rate min/max divisor */ 76 /* STM32H7 SPI registers */ 153 /* STM32H7 SPI Master Baud Rate min/max divisor */ 157 /* STM32H7 SPI Communication mode */ 163 /* SPI Communication type */ [all …]
|
D | spi-mux.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // General Purpose SPI multiplexer 10 #include <linux/spi/spi.h> 12 #define SPI_MUX_NO_CS ((unsigned int)-1) 17 * This driver supports a MUX on an SPI bus. This can be useful when you need 21 * The driver will create an additional SPI controller. Devices added under the 22 * mux will be handled as 'chip selects' on this controller. 26 * struct spi_mux_priv - the basic spi_mux structure 27 * @spi: pointer to the device struct attached to the parent 28 * spi controller [all …]
|
D | spi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 // SPI init/core code 11 #include <linux/dma-mapping.h> 16 #include <linux/clk/clk-conf.h> 19 #include <linux/spi/spi.h> 20 #include <linux/spi/spi-mem.h> 38 #include <trace/events/spi.h> 48 struct spi_device *spi = to_spi_device(dev); in spidev_release() local 50 /* spi controllers may cleanup for released devices */ in spidev_release() 51 if (spi->controller->cleanup) in spidev_release() [all …]
|
D | spi-qup.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2008-2014, The Linux foundation. All rights reserved. 17 #include <linux/spi/spi.h> 19 #include <linux/dma-mapping.h> 116 #define SPI_MAX_XFER (SZ_64K - 64) 141 int w_size; /* bytes per SPI word */ 154 static int spi_qup_io_config(struct spi_device *spi, struct spi_transfer *xfer); 156 static inline bool spi_qup_is_flag_set(struct spi_qup *controller, u32 flag) in spi_qup_is_flag_set() argument 158 u32 opflag = readl_relaxed(controller->base + QUP_OPERATIONAL); in spi_qup_is_flag_set() 172 static inline unsigned int spi_qup_len(struct spi_qup *controller) in spi_qup_len() argument [all …]
|
D | spi-cadence.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Cadence SPI controller driver (master mode only) 5 * Copyright (C) 2008 - 2014 Xilinx, Inc. 7 * based on Blackfin On-Chip SPI Driver (spi_bfin5xx.c) 20 #include <linux/spi/spi.h> 23 #define CDNS_SPI_NAME "cdns-spi" 40 * SPI Configuration Register bit Masks 43 * of the SPI controller 61 * SPI Configuration Register - Baud rate and slave select 74 * SPI Interrupt Registers bit Masks [all …]
|
D | spi-at91-usart.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Driver for AT91 USART Controllers as SPI 12 #include <linux/dma-direction.h> 22 #include <linux/spi/spi.h> 70 readl_relaxed((port)->regs + US_##reg) 72 writel_relaxed((value), (port)->regs + US_##reg) 75 readb_relaxed((port)->regs + US_##reg) 77 writeb_relaxed((value), (port)->regs + US_##reg) 110 aus->current_rx_remaining_bytes = 0; in dma_callback() 111 complete(&aus->xfer_completion); in dma_callback() [all …]
|
D | spi-pxa2xx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 28 #include <linux/spi/pxa2xx_spi.h> 29 #include <linux/spi/spi.h> 31 #include "spi-pxa2xx.h" 34 MODULE_DESCRIPTION("PXA2xx SSP SPI Controller"); 36 MODULE_ALIAS("platform:pxa2xx-spi"); 78 /* LPSS offset from drv_data->ioaddr */ 80 /* Register offsets from drv_data->lpss_base or -1 */ 104 .reg_capabilities = -1, 114 .reg_capabilities = -1, [all …]
|
/linux-5.10/Documentation/devicetree/bindings/spi/ |
D | snps,dw-apb-ssi.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/spi/snps,dw-apb-ssi.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Mark Brown <broonie@kernel.org> 13 - $ref: "spi-controller.yaml#" 14 - if: 19 - mscc,ocelot-spi 20 - mscc,jaguar2-spi 25 - if: [all …]
|
D | spi-samsung.txt | 1 * Samsung SPI Controller 3 The Samsung SPI controller is used to interface with various devices such as flash 4 and display controllers using the SPI communication interface. 8 - compatible: should be one of the following. 9 - samsung,s3c2443-spi: for s3c2443, s3c2416 and s3c2450 platforms 10 - samsung,s3c6410-spi: for s3c6410 platforms 11 - samsung,s5pv210-spi: for s5pv210 and s5pc110 platforms 12 - samsung,exynos5433-spi: for exynos5433 compatible controllers 13 - samsung,exynos7-spi: for exynos7 platforms <DEPRECATED> 15 - reg: physical base address of the controller and length of memory mapped [all …]
|
D | mediatek,spi-mtk-nor.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/spi/mediatek,spi-mtk-nor.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Serial NOR flash controller for MediaTek ARM SoCs 10 - Bayi Cheng <bayi.cheng@mediatek.com> 11 - Chuanhong Guo <gch981213@gmail.com> 14 This spi controller support single, dual, or quad mode transfer for 15 SPI NOR flash. There should be only one spi slave device following 16 generic spi bindings. It's not recommended to use this controller [all …]
|
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 …]
|
D | spi-rockchip.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/spi/spi-rockchip.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Rockchip SPI Controller 10 The Rockchip SPI controller is used to interface with various devices such 11 as flash and display controllers using the SPI communication interface. 14 - $ref: "spi-controller.yaml#" 17 - Heiko Stuebner <heiko@sntech.de> 23 - const: rockchip,rk3036-spi [all …]
|
D | brcm,spi-bcm-qspi.txt | 1 Broadcom SPI controller 3 The Broadcom SPI controller is a SPI master found on various SOCs, including 4 BRCMSTB (BCM7XXX), Cygnus, NSP and NS2. The Broadcom Master SPI hw IP consits 6 MSPI : SPI master controller can read and write to a SPI slave device 7 BSPI : Broadcom SPI in combination with the MSPI hw IP provides acceleration 9 io with 3-byte and 4-byte addressing support. 11 Supported Broadcom SoCs have one instance of MSPI+BSPI controller IP. 14 use SPI protocol. 18 - #address-cells: 19 Must be <1>, as required by generic SPI binding. [all …]
|
D | spi-sprd-adi.txt | 1 Spreadtrum ADI controller 3 ADI is the abbreviation of Anolog-Digital interface, which is used to access 4 analog chip (such as PMIC) from digital chip. ADI controller follows the SPI 5 framework for its hardware implementation is alike to SPI bus and its timing 6 is compatile to SPI timing. 8 ADI controller has 50 channels including 2 software read/write channels and 16 Thus we introduce one property named "sprd,hw-channels" to configure hardware 21 Since we have multi-subsystems will use unique ADI to access analog chip, when 25 ADI registers will make ADI controller registers chaos to lead incorrect results. 28 The new version ADI controller supplies multiple master channels for different [all …]
|
/linux-5.10/drivers/mtd/spi-nor/controllers/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 tristate "Aspeed flash controllers in SPI mode" 7 This enables support for the Firmware Memory controller (FMC) 8 in the Aspeed AST2500/AST2400 SoCs when attached to SPI NOR chips, 9 and support for the SPI flash memory controller (SPI) for 10 the host firmware. The implementation only supports SPI NOR. 13 tristate "Hisilicon FMC SPI NOR Flash Controller(SFC)" 17 This enables support for HiSilicon FMC SPI NOR flash controller. 20 tristate "NXP SPI Flash Interface (SPIFI)" 24 Enable support for the NXP LPC SPI Flash Interface controller. [all …]
|
/linux-5.10/Documentation/spi/ |
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 …]
|
/linux-5.10/drivers/clk/qcom/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 32 tristate "MSM8916 APCS Clock Controller" 35 Support for the APCS Clock Controller on msm8916 devices. The 41 tristate "MSM8996 CPU Clock Controller" 45 Support for the CPU clock controller on msm8996 devices. 50 tristate "RPM based Clock Controller" 63 tristate "RPM over SMD based Clock Controller" 85 tristate "APQ8084 Global Clock Controller" 88 Support for the global clock controller on apq8084 devices. 89 Say Y if you want to use peripheral devices such as UART, SPI, [all …]
|
/linux-5.10/Documentation/driver-api/mtd/ |
D | spi-nor.rst | 2 SPI NOR framework 5 Part I - Why do we need this framework? 6 --------------------------------------- 8 SPI bus controllers (drivers/spi/) only deal with streams of bytes; the bus 9 controller operates agnostic of the specific device attached. However, some 10 controllers (such as Freescale's QuadSPI controller) cannot easily handle 11 arbitrary streams of bytes, but rather are designed specifically for SPI NOR. 13 In particular, Freescale's QuadSPI controller must know the NOR commands to 14 find the right LUT sequence. Unfortunately, the SPI subsystem has no notion of 15 opcodes, addresses, or data payloads; a SPI controller simply knows to send or [all …]
|
/linux-5.10/Documentation/devicetree/bindings/mtd/ |
D | aspeed-smc.txt | 1 * Aspeed Firmware Memory controller 2 * Aspeed SPI Flash Memory Controller 4 The Firmware Memory Controller in the Aspeed AST2500 SoC supports 5 three chip selects, two of which are always of SPI type and the third 6 can be SPI or NOR type flash. These bindings only describe SPI. 8 The two SPI flash memory controllers in the AST2500 each support two 12 - compatible : Should be one of 13 "aspeed,ast2400-fmc" for the AST2400 Firmware Memory Controller 14 "aspeed,ast2400-spi" for the AST2400 SPI Flash memory Controller 15 "aspeed,ast2500-fmc" for the AST2500 Firmware Memory Controller [all …]
|
/linux-5.10/include/linux/spi/ |
D | spi.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later 25 * INTERFACES between SPI master-side drivers and SPI slave protocol handlers, 26 * and SPI infrastructure. 31 * struct spi_statistics - statistics for spi transfers 34 * @messages: number of spi-messages handled 85 spin_lock_irqsave(&(stats)->lock, flags); \ 86 (stats)->field += count; \ 87 spin_unlock_irqrestore(&(stats)->lock, flags); \ 94 * struct spi_delay - SPI delay information 110 * struct spi_device - Controller side proxy for an SPI slave device [all …]
|
/linux-5.10/include/trace/events/ |
D | spi.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 #define TRACE_SYSTEM spi 13 TP_PROTO(struct spi_controller *controller), 15 TP_ARGS(controller), 22 __entry->bus_num = controller->bus_num; 25 TP_printk("spi%d", (int)__entry->bus_num) 31 TP_PROTO(struct spi_controller *controller), 33 TP_ARGS(controller) 39 TP_PROTO(struct spi_controller *controller), 41 TP_ARGS(controller) [all …]
|
/linux-5.10/Documentation/devicetree/bindings/interrupt-controller/ |
D | marvell,odmi-controller.txt | 4 Some Marvell SoCs have an On-Die Message Interrupt (ODMI) controller 5 which can be used by on-board peripheral for MSI interrupts. 9 - compatible : The value here should contain: 11 "marvell,ap806-odmi-controller", "marvell,odmi-controller". 13 - interrupt,controller : Identifies the node as an interrupt controller. 15 - msi-controller : Identifies the node as an MSI controller. 17 - marvell,odmi-frames : Number of ODMI frames available. Each frame 20 - reg : List of register definitions, one for each 23 - marvell,spi-base : List of GIC base SPI interrupts, one for each 24 ODMI frame. Those SPI interrupts are 0-based, [all …]
|
/linux-5.10/Documentation/devicetree/bindings/pinctrl/ |
D | pinctrl-mcp23s08.txt | 2 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 …]
|
/linux-5.10/drivers/net/ieee802154/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 7 Say Y here to get to see options for IEEE 802.15.4 Low-Rate 27 depends on SPI 30 Say Y here to enable the at86rf230/231/233/212 SPI 802.15.4 wireless 31 controller. 46 depends on SPI 49 Say Y here to enable the MRF24J20 SPI 802.15.4 wireless 50 controller. 58 depends on SPI 60 Say Y here to enable the CC2520 SPI 802.15.4 wireless [all …]
|