| /linux/drivers/base/regmap/ |
| H A D | regmap-spi.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Register map access API - SPI support 10 #include <linux/spi/spi.h> 25 regmap_async_complete_cb(&async->core, async->m.status); in regmap_spi_complete() 31 struct spi_device *spi = to_spi_device(dev); in regmap_spi_write() local 33 return spi_write(spi, data, count); in regmap_spi_write() 41 struct spi_device *spi = to_spi_device(dev); in regmap_spi_gather_write() local 50 return spi_sync(spi, &m); in regmap_spi_gather_write() 62 struct spi_device *spi = to_spi_device(dev); in regmap_spi_async_write() local 64 async->t[0].tx_buf = reg; in regmap_spi_async_write() [all …]
|
| /linux/Documentation/spi/ |
| 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 host/target configuration. 17 clocking modes through which data is exchanged; mode-0 and mode-3 are most 22 SPI hosts use a fourth "chip select" line to activate a given SPI target 24 in parallel. All SPI targets support chipselects; they are usually active 29 SPI target functions are usually not interoperable between vendors [all …]
|
| /linux/Documentation/devicetree/bindings/spi/ |
| H A D | spi-peripheral-props.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/spi/spi-peripheral-props.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Peripheral-specific properties for a SPI bus. 10 Many SPI controllers need to add properties to peripheral devices. They could 11 be common properties like spi-max-frequency, spi-cs-high, etc. or they could 14 per-peripheral and there can be multiple peripherals attached to a 20 - Mark Brown <broonie@kernel.org> 28 - minimum: 0 [all …]
|
| H A D | mediatek,spi-mtk-snfi.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/spi/mediatek,spi-mtk-snfi.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: SPI-NAND flash controller for MediaTek ARM SoCs 10 - Chuanhong Guo <gch981213@gmail.com> 13 The Mediatek SPI-NAND flash controller is an extended version of 14 the Mediatek NAND flash controller. It can perform standard SPI 15 instructions with one continuous write and one read for up-to 0xa0 16 bytes. It also supports typical SPI-NAND page cache operations [all …]
|
| H A D | spi-lantiq-ssc.txt | 1 Lantiq Synchronous Serial Controller (SSC) SPI master driver 4 - compatible: "lantiq,ase-spi", "lantiq,falcon-spi", "lantiq,xrx100-spi", 5 "intel,lgm-spi" 6 - #address-cells: see spi-bus.txt 7 - #size-cells: see spi-bus.txt 8 - reg: address and length of the spi master registers 9 - interrupts: 10 For compatible "intel,lgm-ssc" - the common interrupt number for 18 - clocks: spi clock phandle 19 - num-cs: see spi-bus.txt, set to 8 if unset [all …]
|
| H A D | aspeed,ast2600-fmc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/spi/aspeed,ast2600-fmc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com> 11 - Cédric Le Goater <clg@kaod.org> 15 SPI) of the AST2400, AST2500 and AST2600 SOCs. 18 - $ref: spi-controller.yaml# 23 - aspeed,ast2600-fmc 24 - aspeed,ast2600-spi [all …]
|
| H A D | allwinner,sun6i-a31-spi.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/spi/allwinner,sun6i-a31-spi.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Allwinner A31 SPI Controller 10 - $ref: spi-controller.yaml 13 - Chen-Yu Tsai <wens@csie.org> 14 - Maxime Ripard <mripard@kernel.org> 19 - const: allwinner,sun50i-r329-spi 20 - const: allwinner,sun6i-a31-spi [all …]
|
| H A D | nvidia,tegra210-quad.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/spi/nvidia,tegra210-quad.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Tegra Quad SPI Controller 10 - Thierry Reding <thierry.reding@gmail.com> 11 - Jonathan Hunter <jonathanh@nvidia.com> 16 - nvidia,tegra210-qspi 17 - nvidia,tegra186-qspi 18 - nvidia,tegra194-qspi [all …]
|
| H A 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# 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 17 for devices other than SPI NOR flash due to limited transfer [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-spi-devices-spi-nor | 1 What: /sys/bus/spi/devices/.../spi-nor/jedec_id 4 Contact: linux-mtd@lists.infradead.org 5 Description: (RO) The JEDEC ID of the SPI NOR flash as reported by the 10 non-JEDEC compliant flashes. 12 What: /sys/bus/spi/devices/.../spi-nor/manufacturer 15 Contact: linux-mtd@lists.infradead.org 16 Description: (RO) Manufacturer of the SPI NOR flash. 22 What: /sys/bus/spi/devices/.../spi-nor/partname 25 Contact: linux-mtd@lists.infradead.org 26 Description: (RO) Part name of the SPI NOR flash. [all …]
|
| /linux/arch/arm64/boot/dts/freescale/ |
| H A D | fsl-ls1088a-qds.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 11 /dts-v1/; 13 #include "fsl-ls1088a.dtsi" 17 compatible = "fsl,ls1088a-qds", "fsl,ls1088a"; 21 bus-num = <0>; 25 #address-cells = <1>; 26 #size-cells = <1>; 27 compatible = "jedec,spi-nor"; 29 spi-max-frequency = <1000000>; 33 #address-cells = <1>; [all …]
|
| H A D | fsl-ls1046a-tqmls1046a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) 3 * Copyright (c) 2018-2023 TQ-Systems GmbH <linux@ew.tq-group.com>, 4 * D-82229 Seefeld, Germany. 10 #include "fsl-ls1046a.dtsi" 14 num-cs = <2>; 18 compatible = "jedec,spi-nor"; 20 spi-max-frequency = <62500000>; 21 spi-rx-bus-width = <4>; 22 spi-tx-bus-width = <4>; 23 vcc-supply = <®_vcc1v8>; [all …]
|
| H A D | fsl-ls1088a-tqmls1088a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) 3 * Copyright (c) 2018-2023 TQ-Systems GmbH <linux@ew.tq-group.com>, 4 * D-82229 Seefeld, Germany. 10 #include "fsl-ls1088a.dtsi" 14 num-cs = <2>; 18 compatible = "jedec,spi-nor"; 20 spi-max-frequency = <62500000>; 21 spi-rx-bus-width = <4>; 22 spi-tx-bus-width = <4>; 23 vcc-supply = <®_vcc1v8>; [all …]
|
| H A D | fsl-ls1028a-qds.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 11 /dts-v1/; 13 #include "fsl-ls1028a.dtsi" 17 compatible = "fsl,ls1028a-qds", "fsl,ls1028a"; 32 stdout-path = "serial0:115200n8"; 40 sys_mclk: clock-mclk { 41 compatible = "fixed-clock"; 42 #clock-cells = <0>; 43 clock-frequency = <25000000>; 46 reg_1p8v: regulator-1p8v { [all …]
|
| H A D | fsl-lx2160a-tqmlx2160a.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 3 * Copyright (c) 2020-2023 TQ-Systems GmbH <linux@ew.tq-group.com>, 4 * D-82229 Seefeld, Germany. 8 #include "fsl-lx2160a.dtsi" 11 reg_vcc3v3: regulator-vcc3v3 { 12 compatible = "regulator-fixed"; 13 regulator-name = "VCC3V3"; 14 regulator-min-microvolt = <3300000>; 15 regulator-max-microvolt = <3300000>; 16 regulator-always-on; [all …]
|
| H A D | fsl-ls2081a-rdb.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 11 /dts-v1/; 13 #include "fsl-ls2088a.dtsi" 17 compatible = "fsl,ls2081a-rdb", "fsl,ls2081a"; 25 stdout-path = "serial1:115200n8"; 33 compatible = "jedec,spi-nor"; 34 #address-cells = <1>; 35 #size-cells = <1>; 36 spi-max-frequency = <3000000>; 51 #address-cells = <1>; [all …]
|
| /linux/Documentation/devicetree/bindings/net/ |
| H A D | micrel,ks8851.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Micrel KS8851 Ethernet MAC (SPI and Parallel bus options) 10 - Marek Vasut <marex@denx.de> 15 - micrel,ks8851 # SPI bus option 16 - micrel,ks8851-mll # Parallel bus option 24 - description: SPI or Parallel bus hardware address 25 - description: Parallel bus command mode address 27 reset-gpios: [all …]
|
| /linux/Documentation/driver-api/mtd/ |
| H A D | spi-nor.rst | 2 SPI NOR framework 6 ----------------------------------- 8 Most SPI NOR flashes comply with the JEDEC JESD216 11 standard set of internal read-only parameter tables. 13 The SPI NOR driver queries the SFDP tables in order to determine the 17 on its SFDP data. All one has to do is to specify the "jedec,spi-nor" 28 ----------------------------- 31 section, after the ``---`` marker. 37 frequency using the Z (put compatible) SPI controller. 41 root@1:~# cat /sys/bus/spi/devices/spi0.0/spi-nor/partname [all …]
|
| /linux/Documentation/devicetree/bindings/bus/ |
| H A D | moxtet.txt | 1 Turris Mox module status and configuration bus (over SPI) 4 - compatible : Should be "cznic,moxtet" 5 - #address-cells : Has to be 1 6 - #size-cells : Has to be 0 7 - spi-cpol : Required inverted clock polarity 8 - spi-cpha : Required shifted clock phase 9 - interrupts : Must contain reference to the shared interrupt line 10 - interrupt-controller : Required 11 - #interrupt-cells : Has to be 1 13 For other required and optional properties of SPI slave nodes please refer to [all …]
|
| /linux/arch/arm/boot/dts/aspeed/ |
| H A D | ibm-power11-quad.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 125 #address-cells = <2>; 126 #size-cells = <0>; 128 bus-frequency = <100000000>; 129 cfam-reset-gpios = <&gpio0 ASPEED_GPIO(Q, 0) GPIO_ACTIVE_HIGH>; 133 #address-cells = <1>; 134 #size-cells = <1>; 135 chip-id = <0>; 138 compatible = "ibm,p9-scom"; 143 compatible = "ibm,i2c-fsi"; [all …]
|
| /linux/drivers/net/wireless/silabs/wfx/ |
| H A D | bus_spi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * SPI interface. 5 * Copyright (c) 2017-2020, Silicon Laboratories, Inc. 7 * Copyright (c) 2010, ST-Ericsson 12 #include <linux/spi/spi.h> 18 #include "bus.h" 63 * support big endian host and commonly used SPI 8bits. 67 struct wfx_spi_priv *bus = priv; in wfx_spi_copy_from_io() local 84 if (bus->need_swab) in wfx_spi_copy_from_io() 90 ret = spi_sync(bus->func, &m); in wfx_spi_copy_from_io() [all …]
|
| /linux/drivers/net/ethernet/wiznet/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 52 bool "Direct address bus mode" 55 after mapping to Memory-Mapped I/O space. 58 bool "Indirect address bus mode" 62 which are directly mapped to Memory-Mapped I/O space. 70 Performance may decrease compared to explicitly selected bus mode. 74 tristate "WIZnet W5100/W5200/W5500 Ethernet support for SPI mode" 76 depends on SPI 78 In SPI mode host system accesses registers using SPI protocol 79 (mode 0) on the SPI bus. [all …]
|
| /linux/Documentation/devicetree/bindings/net/dsa/ |
| H A D | vitesse,vsc73xx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 13 The Vitesse DSA Switches were produced in the early-to-mid 2000s. 19 Vitesse VSC7385 SparX-G5 5+1-port Integrated Gigabit Ethernet Switch 20 Vitesse VSC7388 SparX-G8 8-port Integrated Gigabit Ethernet Switch 21 Vitesse VSC7395 SparX-G5e 5+1-port Integrated Gigabit Ethernet Switch 22 Vitesse VSC7398 SparX-G8e 8-port Integrated Gigabit Ethernet Switch 26 If SPI interface is used, the device tree node is an SPI device so it must [all …]
|
| /linux/drivers/spi/ |
| H A D | spi-dw-bt1.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 // Baikal-T1 DW APB SPI and System Boot SPI driver 24 #include <linux/spi/spi-mem.h> 25 #include <linux/spi/spi.h> 27 #include "spi-dw.h" 52 struct dw_spi_bt1 *dwsbt1 = to_dw_spi_bt1(desc->mem->spi->controller); in dw_spi_bt1_dirmap_create() 54 if (!dwsbt1->map || in dw_spi_bt1_dirmap_create() 55 !dwsbt1->dws.mem_ops.supports_op(desc->mem, &desc->info.op_tmpl)) in dw_spi_bt1_dirmap_create() 56 return -EOPNOTSUPP; in dw_spi_bt1_dirmap_create() 58 if (desc->info.op_tmpl.data.dir != SPI_MEM_DATA_IN) in dw_spi_bt1_dirmap_create() [all …]
|
| /linux/drivers/fpga/ |
| H A D | lattice-sysconfig-spi.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Lattice FPGA programming over slave SPI sysCONFIG interface. 7 #include <linux/spi/spi.h> 9 #include "lattice-sysconfig.h" 17 struct spi_device *spi = to_spi_device(priv->dev); in sysconfig_spi_cmd_transfer() local 19 return spi_write_then_read(spi, tx_buf, tx_len, rx_buf, rx_len); in sysconfig_spi_cmd_transfer() 25 struct spi_device *spi = to_spi_device(priv->dev); in sysconfig_spi_bitstream_burst_init() local 36 return -ENOMEM; in sysconfig_spi_bitstream_burst_init() 45 * Lock SPI bus for exclusive usage until FPGA programming is done. in sysconfig_spi_bitstream_burst_init() 46 * SPI bus will be released in sysconfig_spi_bitstream_burst_complete(). in sysconfig_spi_bitstream_burst_init() [all …]
|