summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arm64/boot/dts/rockchip/Makefile1
-rw-r--r--arch/arm64/boot/dts/rockchip/rk3399-puma-spidev.dts25
2 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile
index 67d4e8877cc5..82746b83709e 100644
--- a/arch/arm64/boot/dts/rockchip/Makefile
+++ b/arch/arm64/boot/dts/rockchip/Makefile
@@ -58,6 +58,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-rv1-android.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-sapphire-excavator-box-android-6.0.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-sapphire-excavator-box.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>;
+ };
+
+};