add support for bcm63xx HSSPI controller
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | MIPS: BCM63XX: expose the HSSPI clockarch/ | +24 | 0 replies | |
| 2/5 | MIPS: BCM63XX: setup the HSSPI clock ratearch/ | +18 | 0 replies | |
| 3/5 | MIPS: BCM63XX: add HSSPI IRQ and register offsetsarch/ | +18 | 0 replies | |
| 4/5 | MIPS: BCM63XX: add HSSPI platform device and register itarch/ arch/ arch/ +1 more | +60 | 0 replies | |
| 5/5 | spi: add bcm63xx HSSPI driverdrivers/ drivers/ drivers/ | +492 | 5 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] add support for bcm63xx HSSPI controller
This patch set adds support for the high speed SPI controller found in newer BCM63XX SoCs.
Patches 1 to 4 add the required platform data to bcm63xx, while Patch 5 adds the actual driver.
Since all the driver needs are the register block offset, an interrupt and a clock with a rate, it does not need any extra platform data. Therefore there is no compile time dependency, and patches 1 to 4, and patch 5 can go through different trees (these patches are based on spi/for-next).
While the controller itself has the same limitations as the old SPI controller, that is automatic deactivation of the CS line after flushing its hardware buffer.
But in contrast to the old one it supports CS polarity configuration, which allows us to work around it and manually control the CS lines. In addition to that it also supports dual mode (both read and write) and 3-wire, but both of them are not supported by the driver yet.
This driver was run tested on BCM63281, BCM63283 and BCM6361, and build tested for x86 to ensure COMPILE_TEST works.
Jonas Gorski (5):
MIPS: BCM63XX: expose the HSSPI clock
MIPS: BCM63XX: setup the HSSPI clock rate
MIPS: BCM63XX: add HSSPI IRQ and register offsets
MIPS: BCM63XX: add HSSPI platform device and register it
spi: add bcm63xx HSSPI driver
arch/mips/bcm63xx/Makefile | 4 +- arch/mips/bcm63xx/boards/board_bcm963xx.c | 3 + arch/mips/bcm63xx/clk.c | 42 ++ arch/mips/bcm63xx/dev-hsspi.c | 47 ++ arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h | 18 + .../include/asm/mach-bcm63xx/bcm63xx_dev_hsspi.h | 8 + drivers/spi/Kconfig | 7 + drivers/spi/Makefile | 1 + drivers/spi/spi-bcm63xx-hsspi.c | 484 +++++++++++++++++++++ 9 files changed, 612 insertions(+), 2 deletions(-) create mode 100644 arch/mips/bcm63xx/dev-hsspi.c create mode 100644 arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_hsspi.h create mode 100644 drivers/spi/spi-bcm63xx-hsspi.c
Signature · 5 lines
1.8.4.rc3 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html