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-v4.21' of git://git.kernel.org/pub/scm/linux/kernel/gi…
…t/broonie/spi Pull spi updates from Mark Brown: "The main thing this release has been a lot of work on the integration with SPI NOR flashes, there's been some specific support for a while for controller features designed to make them perform better but it's not worked out as well as hoped so the interface has been redesigned in a way that will hopefully do better - it's already been adopted by a number of additional controllers so things are looking good. Otherwise most of the work has been driver specific: - Support for better integration with NOR flashes from Boris Brezillon and Yogesh Narayan Gaur plus usage of it in several drivers. - A big cleanup of the Rockchip driver from Emil Renner Berthing. - Lots of performance improvements for bcm2835 from Lukas Wunner. - Slave mode support for pxa2xx from Lubomir Rintel. - Support for Macronix MXIC, Mediatek MT7629 and MT8183, NPCM PSPI, and Renesas r8a77470" * tag 'spi-v4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: (90 commits) spi: sh-msiof: Reduce the number of times write to and perform the transmission from FIFO spi: sh-msiof: Add r8a774c0 support doc: lpspi: Document DT bindings for LPSPI slave mode spi: lpspi: Let watermark change with send data length spi: lpspi: Add slave mode support spi: lpspi: Replace all "master" with "controller" spi: imx: drop useless member speed_hz from driver data struct spi: imx: rename config callback and add useful parameters spi: imx: style fixes spi: imx: mx51-ecspi: Move some initialisation to prepare_message hook. spi: imx: add a device specific prepare_message callback mtd: atmel-quadspi: disallow building on ebsa110 spi: Update NPCM PSPI controller documentation spi: npcm: Modify pspi send function spi: Use of_node_name_eq for node name comparisons spi: dw-mmio: add ACPI support spi: bcm2835: Synchronize with callback on DMA termination spi: bcm2835: Speed up FIFO access if fill level is known spi: bcm2835: Polish transfer of DMA prologue spi: spi-mem: add support for octal mode I/O data transfer ...
- Loading branch information
Showing
40 changed files
with
2,885 additions
and
1,103 deletions.
There are no files selected for viewing
File renamed without changes.
43 changes: 43 additions & 0 deletions
43
Documentation/devicetree/bindings/spi/nuvoton,npcm-pspi.txt
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,43 @@ | ||
Nuvoton NPCM Peripheral Serial Peripheral Interface(PSPI) controller driver | ||
|
||
Nuvoton NPCM7xx SOC support two PSPI channels. | ||
|
||
Required properties: | ||
- compatible : "nuvoton,npcm750-pspi" for NPCM7XX BMC | ||
- #address-cells : should be 1. see spi-bus.txt | ||
- #size-cells : should be 0. see spi-bus.txt | ||
- specifies physical base address and size of the register. | ||
- interrupts : contain PSPI interrupt. | ||
- clocks : phandle of PSPI reference clock. | ||
- clock-names: Should be "clk_apb5". | ||
- pinctrl-names : a pinctrl state named "default" must be defined. | ||
- pinctrl-0 : phandle referencing pin configuration of the device. | ||
- cs-gpios: Specifies the gpio pins to be used for chipselects. | ||
See: Documentation/devicetree/bindings/spi/spi-bus.txt | ||
|
||
Optional properties: | ||
- clock-frequency : Input clock frequency to the PSPI block in Hz. | ||
Default is 25000000 Hz. | ||
|
||
Aliases: | ||
- All the SPI controller nodes should be represented in the aliases node using | ||
the following format 'spi{n}' withe the correct numbered in "aliases" node. | ||
|
||
Example: | ||
|
||
aliases { | ||
spi0 = &spi0; | ||
}; | ||
|
||
spi0: spi@f0200000 { | ||
compatible = "nuvoton,npcm750-pspi"; | ||
reg = <0xf0200000 0x1000>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&pspi1_pins>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&clk NPCM7XX_CLK_APB5>; | ||
clock-names = "clk_apb5"; | ||
cs-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>; | ||
}; |
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Macronix SPI controller Device Tree Bindings | ||
-------------------------------------------- | ||
|
||
Required properties: | ||
- compatible: should be "mxicy,mx25f0a-spi" | ||
- #address-cells: should be 1 | ||
- #size-cells: should be 0 | ||
- reg: should contain 2 entries, one for the registers and one for the direct | ||
mapping area | ||
- reg-names: should contain "regs" and "dirmap" | ||
- interrupts: interrupt line connected to the SPI controller | ||
- clock-names: should contain "ps_clk", "send_clk" and "send_dly_clk" | ||
- clocks: should contain 3 entries for the "ps_clk", "send_clk" and | ||
"send_dly_clk" clocks | ||
|
||
Example: | ||
|
||
spi@43c30000 { | ||
compatible = "mxicy,mx25f0a-spi"; | ||
reg = <0x43c30000 0x10000>, <0xa0000000 0x20000000>; | ||
reg-names = "regs", "dirmap"; | ||
clocks = <&clkwizard 0>, <&clkwizard 1>, <&clkc 18>; | ||
clock-names = "send_clk", "send_dly_clk", "ps_clk"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
flash@0 { | ||
compatible = "jedec,spi-nor"; | ||
reg = <0>; | ||
spi-max-frequency = <25000000>; | ||
spi-tx-bus-width = <4>; | ||
spi-rx-bus-width = <4>; | ||
}; | ||
}; |
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
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
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
Oops, something went wrong.