
The RK3399 has a similar SPI controller as previous Rockchip SoCs.
This changeset reuses this driver and evolves pinctrl and clk drivers for the RK3399 to support the needs of the RK3399. Validated for SPI1 and SPI5 on the RK3399-Q7.
We've included the changes to our defconfig and dts (both not upstream) in the series to provide context for reviewers... these two final patches are not intended to apply to the current upstream and the contained changes will be subsumed by the (upcoming) patch publishing the RK3399-Q7 (Puma) DTS and defconfig.
Jakob Unterwurzacher (3): rockchip: spi: enable support for the rk_spi driver for the RK3399 rockchip: spi: rk3399: move CONFIG_SPI and CONFIG_SPI_FLASH to defconfig dts: rk3399-puma: enable spi1 and spi5, add /spi1/spiflash
Philipp Tomsich (5): rockchip: clk: rk3399: add clock support for SCLK_SPI1 and SCLK_SPI5 rockchip: pinctrl: rk3399: add support for the SPI5 controller defconfig: rk3399-puma: enable support for SPI and Winbond SPI flash defconfig: rk3399-puma: enable SPI as a boot-source in SPL rockchip: spl: RK3399: enable SPL_SPI_LOAD if SPI is enabled for SPL
arch/arm/dts/rk3399-puma.dts | 26 ++++++++++ arch/arm/include/asm/arch-rockchip/grf_rk3399.h | 12 +++++ arch/arm/include/asm/arch-rockchip/periph.h | 3 ++ configs/puma_defconfig | 10 ++++ drivers/clk/rockchip/clk_rk3399.c | 69 +++++++++++++++++++++++++ drivers/pinctrl/rockchip/pinctrl_rk3399.c | 17 ++++++ drivers/spi/rk_spi.c | 1 + include/configs/rk3399_common.h | 5 +- 8 files changed, 141 insertions(+), 2 deletions(-)