diff options
author | Klaus Goger <klaus.goger@theobroma-systems.com> | 2018-05-08 10:41:11 +0200 |
---|---|---|
committer | Christoph Muellner <christoph.muellner@theobroma-systems.com> | 2019-03-20 19:55:18 +0100 |
commit | dcc53f8d8c724c29d5d377ae551c04db1db34797 (patch) | |
tree | 0f1a95ce4102c54aaceeefee56b8b0517e9adeef | |
parent | 489e36b1ecec44d512aeb919483ff48185234cf3 (diff) |
arm64: rockchip: add rk3399-puma-spidev.dts
This devicetree adds spidev nodes to the spi5 bus as enhancement to the
rk3399-puma.dts.
Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
-rw-r--r-- | arch/arm64/boot/dts/rockchip/Makefile | 1 | ||||
-rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3399-puma-spidev.dts | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index 8328a4ff3347..999d9cc5ba50 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -95,6 +95,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-hdmi+edp.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-hdmi+mipidsi.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-mipidsi.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-spi5.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-spidev.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock960-ab.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rockpro64.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rv1-android.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma-spidev.dts b/arch/arm64/boot/dts/rockchip/rk3399-puma-spidev.dts new file mode 100644 index 000000000000..c5d6c14947cd --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3399-puma-spidev.dts @@ -0,0 +1,25 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +/* + * Theobroma Systems RK3399-Q7 "Puma" with HDMI and spidev enabled on SPI5. + */ + +#include "rk3399-puma.dts" + +&spi5 { + cs-gpios = <0>, <&gpio2 RK_PD0 GPIO_ACTIVE_LOW>; + status = "okay"; + + spidev5@0 { + compatible = "rockchip,spidev"; + reg = <0>; + spi-max-frequency = <10000000>; + }; + + spidev5@1 { + compatible = "rockchip,spidev"; + reg = <1>; + spi-max-frequency = <10000000>; + }; + +}; |