Files
BPI-CM9-Linux/build/patch/kernel/archive/rockchip64-6.19/board-sakurapi-rk3308b-fix-vop-panel.patch

84 lines
1.9 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: TheSnowfield <thesnowfield@sakurapi.org>
Date: Wed, 4 Mar 2026 18:21:14 +0800
Subject: Enable vop panel output for Sakura Pi RK3308B
Signed-off-by: TheSnowfield <thesnowfield@sakurapi.org>
---
arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts | 44 ++++++++++
1 file changed, 44 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts b/arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts
index 755a1164c..6e290d0e3 100644
--- a/arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts
@@ -113,10 +113,36 @@ sdio_pwrseq: sdio-pwrseq {
* - SDIO_RESET_L_WL_REG_ON
* - PDN (power down when low)
*/
reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
};
+
+ backlight: backlight {
+ status = "okay";
+ compatible = "pwm-backlight";
+ pwms = <&pwm3 0 25000 0>;
+ brightness-levels = <0 255>;
+ default-brightness-level = <255>;
+ };
+
+ display: panel {
+ compatible = "edt,et070080dh6";
+ backlight = <&backlight>;
+ enable-gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
+ enable-delay-ms = <20>;
+ status = "okay";
+
+ panel_in: port {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ panel_in_rgb: endpoint {
+ reg = <0>;
+ remote-endpoint = <&vop_out_rgb>;
+ };
+ };
+ };
};
&cpu0 {
cpu-supply = <&vdd_core>;
};
@@ -203,10 +229,28 @@ &pwm3 {
&saradc {
vref-supply = <&vcc_1v8>;
status = "okay";
};
+&vop {
+ status = "okay";
+
+ vop_out: port {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ vop_out_rgb: endpoint@0 {
+ reg = <0>;
+ remote-endpoint = <&panel_in_rgb>;
+ };
+ };
+};
+
+&display_subsystem {
+ status = "okay";
+};
+
&sdio {
#address-cells = <1>;
#size-cells = <0>;
cap-sd-highspeed;
cap-sdio-irq;
--
Created with Armbian build tools https://github.com/armbian/build