spi: Add Renesas SPIBSC controller
From: | Chris Brandt <chris.brandt-AT-renesas.com> | |
To: | Mark Brown <broonie-AT-kernel.org>, Rob Herring <robh+dt-AT-kernel.org>, "Mark Rutland" <mark.rutland-AT-arm.com>, Geert Uytterhoeven <geert+renesas-AT-glider.be>, Michael Turquette <mturquette-AT-baylibre.com>, Stephen Boyd <sboyd-AT-kernel.org> | |
Subject: | [PATCH 0/6] spi: Add Renesas SPIBSC controller | |
Date: | Mon, 2 Dec 2019 22:45:13 -0500 | |
Message-ID: | <20191203034519.5640-1-chris.brandt@renesas.com> | |
Cc: | <linux-spi-AT-vger.kernel.org>, <devicetree-AT-vger.kernel.org>, <linux-renesas-soc-AT-vger.kernel.org>, <linux-clk-AT-vger.kernel.org>, Mason Yang <masonccyang-AT-mxic.com.tw>, Sergei Shtylyov <sergei.shtylyov-AT-cogentembedded.com>, Chris Brandt <chris.brandt-AT-renesas.com> | |
Archive-link: | Article |
The Renesas SPI Bus Space Controller (SPIBSC) HW was specifically designed for accessing SPI flash devices. In the hardware manuals, it is almost always labeled as the "Renesas SPI Multi I/O Bus Controller". However, the HW IP is usually referred to within Renesas as the "SPIBSC" block. This driver has been tested on an RZ/A1H RSK and RZ/A2M EVB. The testing mostly consisted of formatting an area as JFFS2 and doing copying of files and such. While the HW changed a little between the RZ/A1 and RZ/A2 generations, the IP block in the RZ/A2M was taken from the R-Car H3 design, so in theory this driver should work for R-Car Gen3 as well. Chris Brandt (6): clk: renesas: mstp: Add critical clock from device tree support ARM: dts: r7s72100: Add SPIBSC clocks clk: renesas: r7s9210: Add SPIBSC clock spi: Add SPIBSC driver ARM: dts: r7s9210: Add SPIBSC Device support dt-bindings: spi: Document Renesas SPIBSC bindings .../bindings/spi/spi-renesas-spibsc.txt | 48 ++ arch/arm/boot/dts/r7s72100.dtsi | 26 +- arch/arm/boot/dts/r7s9210.dtsi | 10 + drivers/clk/renesas/clk-mstp.c | 16 +- drivers/clk/renesas/r7s9210-cpg-mssr.c | 9 + drivers/spi/Kconfig | 8 + drivers/spi/Makefile | 1 + drivers/spi/spi-spibsc.c | 609 ++++++++++++++++++ 8 files changed, 719 insertions(+), 8 deletions(-) create mode 100644 Documentation/devicetree/bindings/spi/spi-renesas-spibsc.txt create mode 100644 drivers/spi/spi-spibsc.c -- 2.23.0