Files
BPI-CM9-Linux/build/patch/kernel/archive/rockchip64-6.19/board-sakurapi-rk3308b-spidev.patch
T

51 lines
1.2 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: TheSnowfield <thesnowfield@sakurapi.org>
Date: Wed, 4 Mar 2026 16:23:44 +0800
Subject: Sakura Pi RK3308B spidev
Signed-off-by: TheSnowfield <thesnowfield@sakurapi.org>
---
arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts | 22 ++++++++++
1 file changed, 22 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts b/arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts
index 80a59a3c7..bd5f3eee9 100644
--- a/arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts
@@ -156,10 +156,32 @@ &emmc {
&i2c1 {
status = "okay";
};
+/* SPI0 for external gpio pin */
+&spi0 {
+ status = "okay";
+
+ spi_dev@0 {
+ compatible = "spidev";
+ reg = <0>;
+ spi-max-frequency = <0x2faf080>;
+ };
+};
+
+/* SPI1 for ws2812*/
+&spi1 {
+ status = "okay";
+
+ spi_dev@0 {
+ compatible = "spidev";
+ reg = <0>;
+ spi-max-frequency = <0x2faf080>;
+ };
+};
+
&pinctrl {
pinctrl-names = "default";
pinctrl-0 = <&rtc_32k>;
bluetooth {
--
Created with Armbian build tools https://github.com/armbian/build