Skip to contentSkip to conversation

arm64: dts: rockchip: Add Radxa ROCK 4C+ DSI DT-overlay

PATCH In review Jagan Teki 2 participants 6 messages Jul 31, 2023 – Jan 5, 2024

Subsystems (2)
lore
Share & tools
lore

Jagan Teki

author
#0 lore raw

PATCH 1/3 arm64: dts: rockchip: Add Radxa ROCK 4C+ DSI DT-overlay

Add DSI pipeline for Radxa ROCK 4C+ board via DT-overlay.

The DSI connector in Radxa ROCK 4C+ board support different resolution panels and those compatible is added in another DT-overlay.

---
 arch/arm64/boot/dts/rockchip/Makefile         |  1 +
 .../rk3399-rock-4c-plus-mipi-dsi.dtso         | 69 +++++++++++++++++++
 2 files changed, 70 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus-mipi-dsi.dtso
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 1ebbb3e9c2f9..3a4c4cd769eb 100644
@@ -58,6 +58,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc-mezzanine.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc-plus.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-4c-plus.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-4c-plus-mipi-dsi.dtbo
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-4se.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4a.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4a-plus.dtb
arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus-mipi-dsi.dtso new file +69 -0

69 lines not on this page · raw message

Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 2/3 arm64: dts: rockchip: Add Radxa Display 8HD DT-overlay

Add compatible string of Radxa Display 8HD via DT-overlay.

---
 arch/arm64/boot/dts/rockchip/Makefile              |  1 +
 .../arm64/boot/dts/rockchip/radxa-display-8hd.dtso | 14 ++++++++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/radxa-display-8hd.dtso
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 3a4c4cd769eb..1b42eef074b3 100644
@@ -4,6 +4,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-engicam-px30-core-ctouch2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-engicam-px30-core-ctouch2-of10.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-engicam-px30-core-edimm2.2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-ringneck-haikou.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += radxa-display-8hd.dtbo
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-evb.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-roc-cc.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-rock-pi-s.dtb
arch/arm64/boot/dts/rockchip/radxa-display-8hd.dtso new file +14 -0
new file mode 100644
index 000000000000..d42499f8d6b2
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2023 Radxa Computer Co., Ltd.
+ * Copyright (c) 2023 Edgeble AI Technologies Pvt. Ltd.
+ *
+ * DT-overlay for Radxa Display 8HD compatible.
+ */
+
+/dts-v1/;
+/plugin/;
+
+&panel {
+	compatible = "radxa,display-8hd-ad002", "jadard,jd9365da-h3";
+};
Signature · 1 line
2.25.1
author
#2 lore raw

PATCH 3/3 arm64: dts: rockchip: Add Radxa Display 10HD DT-overlay

In reply to Jagan Teki

Add compatible string of Radxa Display 10HD via DT-overlay.

---
 arch/arm64/boot/dts/rockchip/Makefile              |  1 +
 .../boot/dts/rockchip/radxa-display-10hd.dtso      | 14 ++++++++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/radxa-display-10hd.dtso
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 1b42eef074b3..520c7d3c80ed 100644
@@ -4,6 +4,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-engicam-px30-core-ctouch2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-engicam-px30-core-ctouch2-of10.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-engicam-px30-core-edimm2.2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-ringneck-haikou.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += radxa-display-10hd.dtbo
 dtb-$(CONFIG_ARCH_ROCKCHIP) += radxa-display-8hd.dtbo
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-evb.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-roc-cc.dtb
arch/arm64/boot/dts/rockchip/radxa-display-10hd.dtso new file +14 -0
new file mode 100644
index 000000000000..7393b9417647
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2023 Radxa Computer Co., Ltd.
+ * Copyright (c) 2023 Edgeble AI Technologies Pvt. Ltd.
+ *
+ * DT-overlay for Radxa Display 10HD compatible.
+ */
+
+/dts-v1/;
+/plugin/;
+
+&panel {
+	compatible = "radxa,display-10hd-ad001", "jadard,jd9365da-h3";
+};
Signature · 1 line
2.25.1
maintainer
#3 lore raw
In reply to Jagan Teki

Am Montag, 31. Juli 2023, 22:05:57 CEST schrieb Jagan Teki:

Quoted 63 lines

Add DSI pipeline for Radxa ROCK 4C+ board via DT-overlay.

The DSI connector in Radxa ROCK 4C+ board support different resolution panels and those compatible is added in another DT-overlay.

---
 arch/arm64/boot/dts/rockchip/Makefile         |  1 +
 .../rk3399-rock-4c-plus-mipi-dsi.dtso         | 69 +++++++++++++++++++
 2 files changed, 70 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus-mipi-dsi.dtso
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 1ebbb3e9c2f9..3a4c4cd769eb 100644
@@ -58,6 +58,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc-mezzanine.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc-plus.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-4c-plus.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-4c-plus-mipi-dsi.dtbo
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-4se.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4a.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4a-plus.dtb
arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus-mipi-dsi.dtso new file +32 -0
new file mode 100644
index 000000000000..271717040b6c
@@ -0,0 +1,69 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2023 Radxa Computer Co., Ltd.
+ * Copyright (c) 2023 Edgeble AI Technologies Pvt. Ltd.
+ *
+ * DT-overlay for Radxa ROCK 4C+ DSI Connector.
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/pinctrl/rockchip.h>
+
+&{/} {
+	backlight: backlight {
+		compatible = "pwm-backlight";
+		pwms = <&pwm2 0 25000 0>;
+	};
+};
+
+&mipi_dsi {
+	clock-master;
+	#address-cells = <1>;
+	#size-cells = <0>;
+	status = "okay";
+
+	ports {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		mipi_out: port@1 {

arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus-mipi-dsi.dtso line 42

Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus-mipi-dsi.dtso new file +10 -0
+			reg = <1>;
+
+			mipi_out_panel: endpoint {
+				remote-endpoint = <&mipi_in_panel>;
+			};
+		};
+	};
+
+	panel: panel@0 {
+		/* different resolution panels are used, compatibles are in DTO */

then I guess, the panel node should get a disabled here (and the mipi_dsi should stay disabled at this point) and both should get enabled in the final dtbo where the compatible lives?

Quoted 18 lines
arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus-mipi-dsi.dtso new file +17 -0
+		reg = <0>;
+		backlight = <&backlight>;
+		vdd-supply = <&lcd_3v3>;
+		vccio-supply = <&vcc_1v8_s0>;
+		reset-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_HIGH>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&lcd_panel_reset>;
+
+		port {
+			mipi_in_panel: endpoint {
+				remote-endpoint = <&mipi_out_panel>;
+			};
+		};
+	};
+};
+
+&pinctrl {

arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus-mipi-dsi.dtso line 69

Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus-mipi-dsi.dtso new file +10 -0
+	lcd {
+		lcd_panel_reset: lcd-panel-reset {
+			rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_up>;
+		};
+	};
+};
+
+&pwm2 {
+	status = "okay";
+};

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

author
#4 lore raw
Quoted 71 lines · Heiko Stübner

Am Montag, 31. Juli 2023, 22:05:57 CEST schrieb Jagan Teki:

Quoted 69 lines

Add DSI pipeline for Radxa ROCK 4C+ board via DT-overlay.

The DSI connector in Radxa ROCK 4C+ board support different resolution panels and those compatible is added in another DT-overlay.

---
 arch/arm64/boot/dts/rockchip/Makefile         |  1 +
 .../rk3399-rock-4c-plus-mipi-dsi.dtso         | 69 +++++++++++++++++++
 2 files changed, 70 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus-mipi-dsi.dtso
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 1ebbb3e9c2f9..3a4c4cd769eb 100644
@@ -58,6 +58,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc-mezzanine.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc-plus.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-4c-plus.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-4c-plus-mipi-dsi.dtbo
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-4se.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4a.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4a-plus.dtb
arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus-mipi-dsi.dtso new file +38 -0
new file mode 100644
index 000000000000..271717040b6c
@@ -0,0 +1,69 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2023 Radxa Computer Co., Ltd.
+ * Copyright (c) 2023 Edgeble AI Technologies Pvt. Ltd.
+ *
+ * DT-overlay for Radxa ROCK 4C+ DSI Connector.
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/pinctrl/rockchip.h>
+
+&{/} {
+     backlight: backlight {
+             compatible = "pwm-backlight";
+             pwms = <&pwm2 0 25000 0>;
+     };
+};
+
+&mipi_dsi {
+     clock-master;
+     #address-cells = <1>;
+     #size-cells = <0>;
+     status = "okay";
+
+     ports {
+             #address-cells = <1>;
+             #size-cells = <0>;
+
+             mipi_out: port@1 {
+                     reg = <1>;
+
+                     mipi_out_panel: endpoint {
+                             remote-endpoint = <&mipi_in_panel>;
+                     };
+             };
Quoted 8 lines

arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus-mipi-dsi.dtso line 42

Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus-mipi-dsi.dtso new file +4 -0
+     };
+
+     panel: panel@0 {
+             /* different resolution panels are used, compatibles are in DTO */

then I guess, the panel node should get a disabled here (and the mipi_dsi should stay disabled at this point) and both should get enabled in the final dtbo where the compatible lives?

Do you mean dsi also needs to be disabled here and enabled in dtbo? if so why? if panel disabled then dsi won't probe even if it enabled.

Jagan

maintainer
#5 lore raw

Hi Jagan,

Am Montag, 13. November 2023, 16:15:34 CET schrieb Jagan Teki:

Quoted 81 lines · Heiko Stübner
Quoted 71 lines

Am Montag, 31. Juli 2023, 22:05:57 CEST schrieb Jagan Teki:

Quoted 69 lines

Add DSI pipeline for Radxa ROCK 4C+ board via DT-overlay.

The DSI connector in Radxa ROCK 4C+ board support different resolution panels and those compatible is added in another DT-overlay.

---
 arch/arm64/boot/dts/rockchip/Makefile         |  1 +
 .../rk3399-rock-4c-plus-mipi-dsi.dtso         | 69 +++++++++++++++++++
 2 files changed, 70 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus-mipi-dsi.dtso
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 1ebbb3e9c2f9..3a4c4cd769eb 100644
@@ -58,6 +58,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc-mezzanine.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc-plus.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-4c-plus.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-4c-plus-mipi-dsi.dtbo
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-4se.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4a.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4a-plus.dtb
arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus-mipi-dsi.dtso new file +38 -0
new file mode 100644
index 000000000000..271717040b6c
@@ -0,0 +1,69 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2023 Radxa Computer Co., Ltd.
+ * Copyright (c) 2023 Edgeble AI Technologies Pvt. Ltd.
+ *
+ * DT-overlay for Radxa ROCK 4C+ DSI Connector.
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/pinctrl/rockchip.h>
+
+&{/} {
+     backlight: backlight {
+             compatible = "pwm-backlight";
+             pwms = <&pwm2 0 25000 0>;
+     };
+};
+
+&mipi_dsi {
+     clock-master;
+     #address-cells = <1>;
+     #size-cells = <0>;
+     status = "okay";
+
+     ports {
+             #address-cells = <1>;
+             #size-cells = <0>;
+
+             mipi_out: port@1 {
+                     reg = <1>;
+
+                     mipi_out_panel: endpoint {
+                             remote-endpoint = <&mipi_in_panel>;
+                     };
+             };
Quoted 8 lines

arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus-mipi-dsi.dtso line 42

Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus-mipi-dsi.dtso new file +4 -0
+     };
+
+     panel: panel@0 {
+             /* different resolution panels are used, compatibles are in DTO */

then I guess, the panel node should get a disabled here (and the mipi_dsi should stay disabled at this point) and both should get enabled in the final dtbo where the compatible lives?

Quoted 2 lines

Do you mean dsi also needs to be disabled here and enabled in dtbo? if so why? if panel disabled then dsi won't probe even if it enabled.

I'm not sure how dtbo's are loaded nowadays, but if by some form of accident only this dtbo gets loaded without a panel compatible you've essentially broken the whole display output, as the dsi will defer indefinitly.

Also, in more general thinking, the savings in terms of node duplication is quite minimal with this setup. Can't you just have the tiny dsi+backlight nodes in each panel dtbo?

Thanks
Heiko