/Linux-v5.10/drivers/mtd/spi-nor/ |
D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 3 spi-nor-objs := core.o sfdp.o 4 spi-nor-objs += atmel.o 5 spi-nor-objs += catalyst.o 6 spi-nor-objs += eon.o 7 spi-nor-objs += esmt.o 8 spi-nor-objs += everspin.o 9 spi-nor-objs += fujitsu.o 10 spi-nor-objs += gigadevice.o 11 spi-nor-objs += intel.o [all …]
|
D | core.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 48 /* Dual SPI */ 54 /* Quad SPI */ 60 /* Octal SPI */ 72 /* Quad SPI */ 77 /* Octal SPI */ 86 * struct spi_nor_erase_type - Structure to describe a SPI NOR erase type 92 * @opcode: the SPI command op code to erase the sector/block. 107 * struct spi_nor_erase_command - Used for non-uniform erases 110 * are run-length encoded. [all …]
|
D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 22 #include <linux/spi/flash.h> 23 #include <linux/mtd/spi-nor.h> 30 * For everything but full-chip erase; probably could be much smaller, but kept 36 * For full-chip erase, calibrated to a 2MB flash (M25P16); should be scaled up 44 * spi_nor_spimem_bounce() - check if a bounce buffer is needed for the data 46 * @nor: pointer to 'struct spi_nor' 53 static bool spi_nor_spimem_bounce(struct spi_nor *nor, struct spi_mem_op *op) in spi_nor_spimem_bounce() argument 55 /* op->data.buf.in occupies the same memory as op->data.buf.out */ in spi_nor_spimem_bounce() 56 if (object_is_on_stack(op->data.buf.in) || in spi_nor_spimem_bounce() [all …]
|
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 tristate "SPI NOR device support" 8 This is the framework for the SPI NOR which can be used by the SPI 9 device drivers and the SPI NOR device driver. 27 source "drivers/mtd/spi-nor/controllers/Kconfig"
|
/Linux-v5.10/Documentation/devicetree/bindings/spi/ |
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-fsl-qspi.txt | 4 - compatible : Should be "fsl,vf610-qspi", "fsl,imx6sx-qspi", 5 "fsl,imx7d-qspi", "fsl,imx6ul-qspi", 6 "fsl,ls1021a-qspi", "fsl,ls2080a-qspi" 8 "fsl,ls1043a-qspi" followed by "fsl,ls1021a-qspi" 9 - reg : the first contains the register location and length, 11 - reg-names: Should contain the reg names "QuadSPI" and "QuadSPI-memory" 12 - interrupts : Should contain the interrupt for the device 13 - clocks : The clocks needed by the QuadSPI controller 14 - clock-names : Should contain the name of the clocks: "qspi_en" and "qspi". 16 Required SPI slave node properties: [all …]
|
/Linux-v5.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 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 18 details of the SPI NOR protocol. 20 Part II - How does the framework work? [all …]
|
/Linux-v5.10/include/linux/mtd/ |
D | spi-nor.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 12 #include <linux/spi/spi-mem.h> 19 * requires a 4-byte (32-bit) address. 31 #define SPINOR_OP_READ_1_1_2 0x3b /* Read data bytes (Dual Output SPI) */ 32 #define SPINOR_OP_READ_1_2_2 0xbb /* Read data bytes (Dual I/O SPI) */ 33 #define SPINOR_OP_READ_1_1_4 0x6b /* Read data bytes (Quad Output SPI) */ 34 #define SPINOR_OP_READ_1_4_4 0xeb /* Read data bytes (Quad I/O SPI) */ 35 #define SPINOR_OP_READ_1_1_8 0x8b /* Read data bytes (Octal Output SPI) */ 36 #define SPINOR_OP_READ_1_8_8 0xcb /* Read data bytes (Octal I/O SPI) */ 55 /* 4-byte address opcodes - used on Spansion and some Macronix flashes. */ [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/mtd/ |
D | hisilicon,fmc-spi-nor.txt | 1 HiSilicon SPI-NOR Flash Controller 4 - compatible : Should be "hisilicon,fmc-spi-nor" and one of the following strings: 5 "hisilicon,hi3519-spi-nor" 6 - address-cells : Should be 1. 7 - size-cells : Should be 0. 8 - reg : Offset and length of the register set for the controller device. 9 - reg-names : Must include the following two entries: "control", "memory". 10 - clocks : handle to spi-nor flash controller clock. 13 spi-nor-controller@10000000 { 14 compatible = "hisilicon,hi3519-spi-nor", "hisilicon,fmc-spi-nor"; [all …]
|
D | aspeed-smc.txt | 2 * Aspeed SPI Flash Memory Controller 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 16 "aspeed,ast2500-spi" for the AST2500 SPI flash memory controllers 18 - reg : the first contains the control register location and length, [all …]
|
D | jedec,spi-nor.txt | 1 * SPI NOR flash: ST M25Pxx (and similar) serial flash chips 4 - #address-cells, #size-cells : Must be present if the device has sub-nodes 6 - compatible : May include a device-specific string consisting of the 9 Must also include "jedec,spi-nor" for any SPI NOR flash that can 53 m25p05-nonjedec 54 m25p10-nonjedec 55 m25p20-nonjedec 56 m25p40-nonjedec 57 m25p80-nonjedec 58 m25p16-nonjedec [all …]
|
/Linux-v5.10/arch/arm64/boot/dts/freescale/ |
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 …]
|
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"; 29 stdout-path = "serial0:115200n8"; 37 sys_mclk: clock-mclk { 38 compatible = "fixed-clock"; 39 #clock-cells = <0>; 40 clock-frequency = <25000000>; 43 reg_1p8v: regulator-1p8v { [all …]
|
D | fsl-ls1046a-qds.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for Freescale Layerscape-1046A family SoC. 11 /dts-v1/; 13 #include "fsl-ls1046a.dtsi" 17 compatible = "fsl,ls1046a-qds", "fsl,ls1046a"; 31 stdout-path = "serial0:115200n8"; 36 bus-num = <0>; 40 #address-cells = <1>; 41 #size-cells = <1>; 42 compatible = "n25q128a11", "jedec,spi-nor"; [all …]
|
D | fsl-ls1012a-qds.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include "fsl-ls1012a.dtsi" 14 compatible = "fsl,ls1012a-qds", "fsl,ls1012a"; 16 sys_mclk: clock-mclk { 17 compatible = "fixed-clock"; 18 #clock-cells = <0>; 19 clock-frequency = <24576000>; 22 reg_3p3v: regulator-3p3v { 23 compatible = "regulator-fixed"; [all …]
|
D | fsl-lx2160a-qds.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 7 /dts-v1/; 9 #include "fsl-lx2160a.dtsi" 13 compatible = "fsl,lx2160a-qds", "fsl,lx2160a"; 21 stdout-path = "serial0:115200n8"; 24 sb_3v3: regulator-sb3v3 { 25 compatible = "regulator-fixed"; 26 regulator-name = "MC34717-3.3VSB"; 27 regulator-min-microvolt = <3300000>; 28 regulator-max-microvolt = <3300000>; [all …]
|
/Linux-v5.10/drivers/mtd/spi-nor/controllers/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 tristate "Aspeed flash controllers in SPI mode" 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. 26 SPIFI is a specialized controller for connecting serial SPI [all …]
|
D | nxp-spifi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * SPI NOR driver for NXP SPI Flash Interface (SPIFI) 18 #include <linux/mtd/spi-nor.h> 22 #include <linux/spi/spi.h> 59 struct spi_nor nor; member 69 ret = readb_poll_timeout(spifi->io_base + SPIFI_STAT, stat, in nxp_spifi_wait_for_cmd() 72 dev_warn(spifi->dev, "command timed out\n"); in nxp_spifi_wait_for_cmd() 82 writel(SPIFI_STAT_RESET, spifi->io_base + SPIFI_STAT); in nxp_spifi_reset() 83 ret = readb_poll_timeout(spifi->io_base + SPIFI_STAT, stat, in nxp_spifi_reset() 86 dev_warn(spifi->dev, "state reset timed out\n"); in nxp_spifi_reset() [all …]
|
D | aspeed-smc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2015-2016, IBM Corporation. 15 #include <linux/mtd/spi-nor.h> 21 #define DEVICE_NAME "aspeed-smc" 24 * The driver only support SPI flash 100 struct spi_nor nor; member 109 void __iomem *ahb_base; /* per-chip windows resource */ 116 * SPI Flash Configuration Register (AST2500 SPI) 119 * CE0 and CE1 can only be of type SPI. CE2 can be of type NOR but the 156 #define CONTROL_IO_ADDRESS_4B BIT(13) /* AST2400 SPI */ [all …]
|
D | hisi-sfc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * HiSilicon FMC SPI NOR flash controller driver 5 * Copyright (c) 2015-2016 HiSilicon Technologies Co., Ltd. 9 #include <linux/dma-mapping.h> 13 #include <linux/mtd/spi-nor.h> 64 #define HIFMC_DMA_MASK (HIFMC_DMA_MAX_LEN - 1) 99 struct spi_nor *nor[HIFMC_MAX_CHIP_NUM]; member 107 return readl_poll_timeout(host->regbase + FMC_INT, reg, in hisi_spi_nor_wait_op_finish() 144 writel(reg, host->regbase + FMC_SPI_TIMING_CFG); in hisi_spi_nor_init() 147 static int hisi_spi_nor_prep(struct spi_nor *nor) in hisi_spi_nor_prep() argument [all …]
|
/Linux-v5.10/arch/powerpc/boot/dts/fsl/ |
D | mpc8536ds.dtsi | 2 * MPC8536DS Device Tree Source stub (no addresses or top-level ranges) 13 * * Neither the name of Freescale Semiconductor nor the 36 nor@0,0 { 37 #address-cells = <1>; 38 #size-cells = <1>; 39 compatible = "cfi-flash"; 41 bank-width = <2>; 42 device-width = <1>; 46 label = "ramdisk-nor"; 51 label = "diagnostic-nor"; [all …]
|
D | p1022ds.dtsi | 2 * P1022 DS Device Tree Source stub (no addresses or top-level ranges) 13 * * Neither the name of Freescale Semiconductor nor the 36 nor@0,0 { 37 #address-cells = <1>; 38 #size-cells = <1>; 39 compatible = "cfi-flash"; 41 bank-width = <2>; 42 device-width = <1>; 46 label = "ramdisk-nor"; 47 read-only; [all …]
|
D | p1024rdb.dtsi | 2 * P1024 RDB Device Tree Source stub (no addresses or top-level ranges) 13 * * Neither the name of Freescale Semiconductor nor the 36 nor@0,0 { 37 #address-cells = <1>; 38 #size-cells = <1>; 39 compatible = "cfi-flash"; 41 bank-width = <2>; 42 device-width = <1>; 48 label = "NOR Vitesse-7385 Firmware"; 49 read-only; [all …]
|
D | p1020rdb-pd.dts | 2 * P1020 RDB-PD Device Tree Source (32-bit address map) 13 * * Neither the name of Freescale Semiconductor nor the 35 /include/ "p1020si-pre.dtsi" 37 model = "fsl,P1020RDB-PD"; 38 compatible = "fsl,P1020RDB-PD"; 47 /* NOR, NAND flash, L2 switch and CPLD */ 53 nor@0,0 { 54 #address-cells = <1>; 55 #size-cells = <1>; 56 compatible = "cfi-flash"; [all …]
|
D | p1021rdb-pc.dtsi | 2 * P1021 RDB Device Tree Source stub (no addresses or top-level ranges) 13 * * Neither the name of Freescale Semiconductor nor the 36 nor@0,0 { 37 #address-cells = <1>; 38 #size-cells = <1>; 39 compatible = "cfi-flash"; 41 bank-width = <2>; 42 device-width = <1>; 48 label = "NOR Vitesse-7385 Firmware"; 49 read-only; [all …]
|