forked from grate-driver/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.7' of git://git.kernel.org/pub/scm/linux/kernel/git…
…/broonie/spi Pull spi updates from Mark Brown: "Another quiet release for SPI, almost entirely driver specific changes with the diffstat dominated by two new drivers which are about two thirds of it in terms of lines of code: - new drivers for PIC32 standard and SQI controllers - the Cadence driver has had runtime PM support added and quite a few fixes and cleanups - flash-specific accelerated path support now has a feature query interface - the pxa2xx driver has been moved to use the core DMA mapping support" * tag 'spi-v4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: (48 commits) spi: pic32-sqi: Fix linker error, undefined reference to `bad_dma_ops' spi: dw-pci: Spelling s/paltforms/platforms/g spi: pic32-sqi: Remove pic32_sqi_setup and pic32_sqi_cleanup spi: Fix simple typo s/impelment/implement spi: rockchip: potential NULL dereference on error spi: zynqmp: disable clocks in error paths spi: Drop unnecessary dependencies on relaxed I/O accessors spi: qup: Add spi_master_put in remove function spi: qup: Handle clocks in pm_runtime suspend and resume spi: st-ssc4: Fix missing spi_master_put in spi_st_probe error paths spi: st-ssc4: Allow compile test build spi: omap2-mcspi: Use dma_request_chan() for requesting DMA channel spi: davinci: Use dma_request_chan() for requesting DMA channel spi: pic32: Fix checking return value of devm_ioremap_resource spi: spi-fsl-dspi: Update DT binding documentation spi: Drop duplicate code to set master->dev.parent spi: pic32: Set proper bits_per_word_mask spi: return error if kmap'd buffers passed to spi_map_buf() spi: core: add hook flash_read_supported to spi_master spi: pic32-sqi: silence array overflow warning ...
- Loading branch information
Showing
27 changed files
with
2,033 additions
and
288 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
Documentation/devicetree/bindings/spi/microchip,spi-pic32.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,34 @@ | ||
Microchip PIC32 SPI Master controller | ||
|
||
Required properties: | ||
- compatible: Should be "microchip,pic32mzda-spi". | ||
- reg: Address and length of register space for the device. | ||
- interrupts: Should contain all three spi interrupts in sequence | ||
of <fault-irq>, <receive-irq>, <transmit-irq>. | ||
- interrupt-names: Should be "fault", "rx", "tx" in order. | ||
- clocks: Phandle of the clock generating SPI clock on the bus. | ||
- clock-names: Should be "mck0". | ||
- cs-gpios: Specifies the gpio pins to be used for chipselects. | ||
See: Documentation/devicetree/bindings/spi/spi-bus.txt | ||
|
||
Optional properties: | ||
- dmas: Two or more DMA channel specifiers following the convention outlined | ||
in Documentation/devicetree/bindings/dma/dma.txt | ||
- dma-names: Names for the dma channels. There must be at least one channel | ||
named "spi-tx" for transmit and named "spi-rx" for receive. | ||
|
||
Example: | ||
|
||
spi1: spi@1f821000 { | ||
compatible = "microchip,pic32mzda-spi"; | ||
reg = <0x1f821000 0x200>; | ||
interrupts = <109 IRQ_TYPE_LEVEL_HIGH>, | ||
<110 IRQ_TYPE_LEVEL_HIGH>, | ||
<111 IRQ_TYPE_LEVEL_HIGH>; | ||
interrupt-names = "fault", "rx", "tx"; | ||
clocks = <&PBCLK2>; | ||
clock-names = "mck0"; | ||
cs-gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; | ||
dmas = <&dma 134>, <&dma 135>; | ||
dma-names = "spi-rx", "spi-tx"; | ||
}; |
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,18 @@ | ||
Microchip PIC32 Quad SPI controller | ||
----------------------------------- | ||
Required properties: | ||
- compatible: Should be "microchip,pic32mzda-sqi". | ||
- reg: Address and length of SQI controller register space. | ||
- interrupts: Should contain SQI interrupt. | ||
- clocks: Should contain phandle of two clocks in sequence, one that drives | ||
clock on SPI bus and other that drives SQI controller. | ||
- clock-names: Should be "spi_ck" and "reg_ck" in order. | ||
|
||
Example: | ||
sqi1: spi@1f8e2000 { | ||
compatible = "microchip,pic32mzda-sqi"; | ||
reg = <0x1f8e2000 0x200>; | ||
clocks = <&rootclk REF2CLK>, <&rootclk PB5CLK>; | ||
clock-names = "spi_ck", "reg_ck"; | ||
interrupts = <169 IRQ_TYPE_LEVEL_HIGH>; | ||
}; |
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.