forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'spi-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/gi…
…t/broonie/spi Pull spi updates from Mark Brown: "This is quite a quiet release but some new drivers mean that the diffstat is fairly large. The new drivers include the aspeed driver which is migrated from MTD as part of the ongoing move of controllers with specialised support for SPI flashes into the SPI subsystem. - Support for devices which flip CPHA during recieve only transfers (eg, if MOSI and MISO have inverted polarity). - Overhaul of the i.MX driver, including the addition of PIO support for better performance on small transfers. - Migration of the Aspeed driver from MTD. - Support for Aspeed AST2400, Ingenic JZ4775 and X1/2000 and MediaTek IPM and SFI" * tag 'spi-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: (84 commits) spi: spi-au1550: replace ternary operator with min() mtd: spi-nor: aspeed: set the decoding size to at least 2MB for AST2600 spi: aspeed: Calibrate read timings spi: aspeed: Add support for the AST2400 SPI controller spi: aspeed: Workaround AST2500 limitations spi: aspeed: Adjust direct mapping to device size spi: aspeed: Add support for direct mapping spi: spi-mem: Convert Aspeed SMC driver to spi-mem spi: Convert the Aspeed SMC controllers device tree binding spi: spi-cadence: Update ISR status variable type to irqreturn_t spi: Doc fix - Describe add_lock and dma_map_dev in spi_controller spi: cadence-quadspi: Handle spi_unregister_master() in remove() spi: stm32-qspi: Remove SR_BUSY bit check before sending command spi: stm32-qspi: Always check SR_TCF flags in stm32_qspi_wait_cmd() spi: stm32-qspi: Fix wait_cmd timeout in APM mode spi: cadence-quadspi: remove unnecessary (void *) casts spi: cadence-quadspi: Add missing blank line in cqspi_request_mmap_dma() spi: spi-imx: mx51_ecspi_prepare_message(): skip writing MX51_ECSPI_CONFIG register if unchanged spi: spi-imx: add PIO polling support spi: spi-imx: replace struct spi_imx_data::bitbang by pointer to struct spi_controller ...
- Loading branch information
Showing
45 changed files
with
3,911 additions
and
1,597 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
82 changes: 82 additions & 0 deletions
82
Documentation/devicetree/bindings/spi/aspeed,ast2600-fmc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/spi/aspeed,ast2600-fmc.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Aspeed SMC controllers bindings | ||
|
||
maintainers: | ||
- Chin-Ting Kuo <[email protected]> | ||
- Cédric Le Goater <[email protected]> | ||
|
||
description: | | ||
This binding describes the Aspeed Static Memory Controllers (FMC and | ||
SPI) of the AST2400, AST2500 and AST2600 SOCs. | ||
allOf: | ||
- $ref: "spi-controller.yaml#" | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- aspeed,ast2600-fmc | ||
- aspeed,ast2600-spi | ||
- aspeed,ast2500-fmc | ||
- aspeed,ast2500-spi | ||
- aspeed,ast2400-fmc | ||
- aspeed,ast2400-spi | ||
|
||
reg: | ||
items: | ||
- description: registers | ||
- description: memory mapping | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- clocks | ||
|
||
unevaluatedProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/arm-gic.h> | ||
#include <dt-bindings/interrupt-controller/aspeed-scu-ic.h> | ||
#include <dt-bindings/clock/ast2600-clock.h> | ||
spi@1e620000 { | ||
reg = <0x1e620000 0xc4>, <0x20000000 0x10000000>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
compatible = "aspeed,ast2600-fmc"; | ||
clocks = <&syscon ASPEED_CLK_AHB>; | ||
interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; | ||
flash@0 { | ||
reg = < 0 >; | ||
compatible = "jedec,spi-nor"; | ||
spi-max-frequency = <50000000>; | ||
spi-rx-bus-width = <2>; | ||
}; | ||
flash@1 { | ||
reg = < 1 >; | ||
compatible = "jedec,spi-nor"; | ||
spi-max-frequency = <50000000>; | ||
spi-rx-bus-width = <2>; | ||
}; | ||
flash@2 { | ||
reg = < 2 >; | ||
compatible = "jedec,spi-nor"; | ||
spi-max-frequency = <50000000>; | ||
spi-rx-bus-width = <2>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 88 additions & 0 deletions
88
Documentation/devicetree/bindings/spi/mediatek,spi-mtk-snfi.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/spi/mediatek,spi-mtk-snfi.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: SPI-NAND flash controller for MediaTek ARM SoCs | ||
|
||
maintainers: | ||
- Chuanhong Guo <[email protected]> | ||
|
||
description: | | ||
The Mediatek SPI-NAND flash controller is an extended version of | ||
the Mediatek NAND flash controller. It can perform standard SPI | ||
instructions with one continuous write and one read for up-to 0xa0 | ||
bytes. It also supports typical SPI-NAND page cache operations | ||
in single, dual or quad IO mode with pipelined ECC encoding/decoding | ||
using the accompanying ECC engine. There should be only one spi | ||
slave device following generic spi bindings. | ||
allOf: | ||
- $ref: /schemas/spi/spi-controller.yaml# | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- mediatek,mt7622-snand | ||
- mediatek,mt7629-snand | ||
|
||
reg: | ||
items: | ||
- description: core registers | ||
|
||
interrupts: | ||
items: | ||
- description: NFI interrupt | ||
|
||
clocks: | ||
items: | ||
- description: clock used for the controller | ||
- description: clock used for the SPI bus | ||
|
||
clock-names: | ||
items: | ||
- const: nfi_clk | ||
- const: pad_clk | ||
|
||
nand-ecc-engine: | ||
description: device-tree node of the accompanying ECC engine. | ||
$ref: /schemas/types.yaml#/definitions/phandle | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
- clocks | ||
- clock-names | ||
- nand-ecc-engine | ||
|
||
unevaluatedProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
#include <dt-bindings/interrupt-controller/arm-gic.h> | ||
#include <dt-bindings/clock/mt7622-clk.h> | ||
soc { | ||
#address-cells = <2>; | ||
#size-cells = <2>; | ||
snfi: spi@1100d000 { | ||
compatible = "mediatek,mt7622-snand"; | ||
reg = <0 0x1100d000 0 0x1000>; | ||
interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>; | ||
clocks = <&pericfg CLK_PERI_NFI_PD>, <&pericfg CLK_PERI_SNFI_PD>; | ||
clock-names = "nfi_clk", "pad_clk"; | ||
nand-ecc-engine = <&bch>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
flash@0 { | ||
compatible = "spi-nand"; | ||
reg = <0>; | ||
spi-tx-bus-width = <4>; | ||
spi-rx-bus-width = <4>; | ||
nand-ecc-engine = <&snfi>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3102,6 +3102,16 @@ S: Maintained | |
F: Documentation/devicetree/bindings/mmc/aspeed,sdhci.yaml | ||
F: drivers/mmc/host/sdhci-of-aspeed* | ||
|
||
ASPEED SMC SPI DRIVER | ||
M: Chin-Ting Kuo <[email protected]> | ||
M: Cédric Le Goater <[email protected]> | ||
L: [email protected] (moderated for non-subscribers) | ||
L: [email protected] (moderated for non-subscribers) | ||
L: [email protected] | ||
S: Maintained | ||
F: Documentation/devicetree/bindings/spi/aspeed,ast2600-fmc.yaml | ||
F: drivers/spi/spi-aspeed-smc.c | ||
|
||
ASPEED VIDEO ENGINE DRIVER | ||
M: Eddie James <[email protected]> | ||
L: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
obj-$(CONFIG_SPI_ASPEED_SMC) += aspeed-smc.o | ||
obj-$(CONFIG_SPI_HISI_SFC) += hisi-sfc.o | ||
obj-$(CONFIG_SPI_NXP_SPIFI) += nxp-spifi.o |
Oops, something went wrong.