public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v3 0/5] General RK3368 HDMI support and 2 outputs for RK3368-Lion
@ 2026-01-14 23:07 Heiko Stuebner
  2026-01-14 23:07 ` [PATCH v3 1/5] arm64: dts: rockchip: Use phandle for i2c_lvds_blc on rk3368-lion haikou Heiko Stuebner
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Heiko Stuebner @ 2026-01-14 23:07 UTC (permalink / raw)
  To: heiko; +Cc: quentin.schulz, linux-arm-kernel, linux-rockchip, linux-kernel

This series adds the necessary bits for HDMI output on RK3368 and enables
this on RK3368-Lion. At the same time, use the recently added DSI support
to enable the generic Video-Demo-adapter as an overlay on Lion as well.


The reason I'm shaving this Yak is that the recently added DSI support
created DTC warnings about a single endpoint with an address.

So it was either removing the @0 from the endpoint, or adding a second
output option :-) .


changes in v3:
- drop patches that already are applied
- added Quentin's Rb tags (except the one on hdmi enablement)
- moved hdmi supplies to lion.dtsi
- move bl-pwm enablement into a separate patch (and to haikou)

changes in v2:
- pick up Conor's Ack for the compatible
- fix the spelling errors reported by Diederik

Heiko Stuebner (5):
  arm64: dts: rockchip: Use phandle for i2c_lvds_blc on rk3368-lion
    haikou
  arm64: dts: rockchip: Add HDMI node to RK3368
  arm64: dts: rockchip: Enable HDMI output on RK3368-Lion-Haikou
  arm64: dts: rockchip: Enable pwm1 on rk3368-lion-haikou
  arm64: dts: rockchip: Add the Video-Demo overlay for Lion Haikou

 arch/arm64/boot/dts/rockchip/Makefile         |   5 +
 .../rk3368-lion-haikou-video-demo.dtso        | 170 ++++++++++++++++++
 .../boot/dts/rockchip/rk3368-lion-haikou.dts  |  38 ++--
 arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi |   5 +
 arch/arm64/boot/dts/rockchip/rk3368.dtsi      |  43 +++++
 5 files changed, 251 insertions(+), 10 deletions(-)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3368-lion-haikou-video-demo.dtso

-- 
2.47.2



^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH v3 1/5] arm64: dts: rockchip: Use phandle for i2c_lvds_blc on rk3368-lion haikou
  2026-01-14 23:07 [PATCH v3 0/5] General RK3368 HDMI support and 2 outputs for RK3368-Lion Heiko Stuebner
@ 2026-01-14 23:07 ` Heiko Stuebner
  2026-01-14 23:07 ` [PATCH v3 2/5] arm64: dts: rockchip: Add HDMI node to RK3368 Heiko Stuebner
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 12+ messages in thread
From: Heiko Stuebner @ 2026-01-14 23:07 UTC (permalink / raw)
  To: heiko
  Cc: quentin.schulz, linux-arm-kernel, linux-rockchip, linux-kernel,
	Heiko Stuebner

From: Heiko Stuebner <heiko.stuebner@cherry.de>

i2c@0 on i2cmux2 does already have a phandle i2c_lvds_blc defined.

Use this one instead of replicating the hierarchy again, as this might
result in strange errors if the lion dtsi is changed at some point
in the future.

Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
---
 .../boot/dts/rockchip/rk3368-lion-haikou.dts   | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dts b/arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dts
index ab70ee5f561a..abd1af97456a 100644
--- a/arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dts
@@ -18,16 +18,6 @@ chosen {
 		stdout-path = "serial0:115200n8";
 	};
 
-	i2cmux2 {
-		i2c@0 {
-			eeprom: eeprom@50 {
-				compatible = "atmel,24c01";
-				pagesize = <8>;
-				reg = <0x50>;
-			};
-		};
-	};
-
 	leds {
 		pinctrl-0 = <&module_led_pins>, <&sd_card_led_pin>;
 
@@ -68,6 +58,14 @@ vcc5v0_otg: regulator-vcc5v0-otg {
 	};
 };
 
+&i2c_lvds_blc {
+	eeprom: eeprom@50 {
+		compatible = "atmel,24c01";
+		pagesize = <8>;
+		reg = <0x50>;
+	};
+};
+
 &sdmmc {
 	bus-width = <4>;
 	cap-mmc-highspeed;
-- 
2.47.2



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v3 2/5] arm64: dts: rockchip: Add HDMI node to RK3368
  2026-01-14 23:07 [PATCH v3 0/5] General RK3368 HDMI support and 2 outputs for RK3368-Lion Heiko Stuebner
  2026-01-14 23:07 ` [PATCH v3 1/5] arm64: dts: rockchip: Use phandle for i2c_lvds_blc on rk3368-lion haikou Heiko Stuebner
@ 2026-01-14 23:07 ` Heiko Stuebner
  2026-01-14 23:07 ` [PATCH v3 3/5] arm64: dts: rockchip: Enable HDMI output on RK3368-Lion-Haikou Heiko Stuebner
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 12+ messages in thread
From: Heiko Stuebner @ 2026-01-14 23:07 UTC (permalink / raw)
  To: heiko
  Cc: quentin.schulz, linux-arm-kernel, linux-rockchip, linux-kernel,
	Heiko Stuebner

From: Heiko Stuebner <heiko.stuebner@cherry.de>

Add the HDMI controller node to the main SoC devicetree and hook
it into the VOP.

Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
---
 arch/arm64/boot/dts/rockchip/rk3368.dtsi | 43 ++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch/arm64/boot/dts/rockchip/rk3368.dtsi
index f9e24b25274b..98d350768fd2 100644
--- a/arch/arm64/boot/dts/rockchip/rk3368.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3368.dtsi
@@ -883,6 +883,11 @@ vop_out_dsi: endpoint@0 {
 				reg = <0>;
 				remote-endpoint = <&dsi_in_vop>;
 			};
+
+			vop_out_hdmi: endpoint@1 {
+				reg = <1>;
+				remote-endpoint = <&hdmi_in_vop>;
+			};
 		};
 	};
 
@@ -941,6 +946,37 @@ dphy: phy@ff968000 {
 		status = "disabled";
 	};
 
+	hdmi: hdmi@ff980000 {
+		compatible = "rockchip,rk3368-dw-hdmi";
+		reg = <0x0 0xff980000 0x0 0x20000>;
+		interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cru PCLK_HDMI_CTRL>, <&cru SCLK_HDMI_HDCP>, <&cru SCLK_HDMI_CEC>;
+		clock-names = "iahb", "isfr", "cec";
+		pinctrl-names = "default";
+		pinctrl-0 = <&hdmi_i2c_xfer>;
+		power-domains = <&power RK3368_PD_VIO>;
+		reg-io-width = <4>;
+		rockchip,grf = <&grf>;
+		status = "disabled";
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			hdmi_in: port@0 {
+				reg = <0>;
+
+				hdmi_in_vop: endpoint {
+					remote-endpoint = <&vop_out_hdmi>;
+				};
+			};
+
+			hdmi_out: port@1 {
+				reg = <1>;
+			};
+		};
+	};
+
 	hevc_mmu: iommu@ff9a0440 {
 		compatible = "rockchip,iommu";
 		reg = <0x0 0xff9a0440 0x0 0x40>,
@@ -1204,6 +1240,13 @@ rmii_pins: rmii-pins {
 			};
 		};
 
+		hdmi {
+			hdmi_i2c_xfer: hdmi-i2c-xfer {
+				rockchip,pins = <3 RK_PD2 1 &pcfg_pull_none>,
+						<3 RK_PD3 1 &pcfg_pull_none>;
+			};
+		};
+
 		i2c0 {
 			i2c0_xfer: i2c0-xfer {
 				rockchip,pins = <0 RK_PA6 1 &pcfg_pull_none>,
-- 
2.47.2



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v3 3/5] arm64: dts: rockchip: Enable HDMI output on RK3368-Lion-Haikou
  2026-01-14 23:07 [PATCH v3 0/5] General RK3368 HDMI support and 2 outputs for RK3368-Lion Heiko Stuebner
  2026-01-14 23:07 ` [PATCH v3 1/5] arm64: dts: rockchip: Use phandle for i2c_lvds_blc on rk3368-lion haikou Heiko Stuebner
  2026-01-14 23:07 ` [PATCH v3 2/5] arm64: dts: rockchip: Add HDMI node to RK3368 Heiko Stuebner
@ 2026-01-14 23:07 ` Heiko Stuebner
  2026-01-15  1:25   ` Chaoyi Chen
  2026-01-16 11:24   ` Quentin Schulz
  2026-01-14 23:07 ` [PATCH v3 4/5] arm64: dts: rockchip: Enable pwm1 on rk3368-lion-haikou Heiko Stuebner
                   ` (2 subsequent siblings)
  5 siblings, 2 replies; 12+ messages in thread
From: Heiko Stuebner @ 2026-01-14 23:07 UTC (permalink / raw)
  To: heiko
  Cc: quentin.schulz, linux-arm-kernel, linux-rockchip, linux-kernel,
	Heiko Stuebner

From: Heiko Stuebner <heiko.stuebner@cherry.de>

Enable the VOP and HDMI controller on the Lion-Haikou board.

Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
---
 .../boot/dts/rockchip/rk3368-lion-haikou.dts     | 16 ++++++++++++++++
 arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi    |  5 +++++
 2 files changed, 21 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dts b/arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dts
index abd1af97456a..ec843a1b0266 100644
--- a/arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dts
@@ -58,6 +58,14 @@ vcc5v0_otg: regulator-vcc5v0-otg {
 	};
 };
 
+&display_subsystem {
+	status = "okay";
+};
+
+&hdmi {
+	status = "okay";
+};
+
 &i2c_lvds_blc {
 	eeprom: eeprom@50 {
 		compatible = "atmel,24c01";
@@ -101,6 +109,14 @@ &uart1 {
 	status = "disabled";
 };
 
+&vop {
+	status = "okay";
+};
+
+&vop_mmu {
+	status = "okay";
+};
+
 &pinctrl {
 	pinctrl-names = "default";
 	pinctrl-0 = <&haikou_pin_hog>;
diff --git a/arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi b/arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi
index 61c52bd91784..4b4305b90055 100644
--- a/arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi
@@ -164,6 +164,11 @@ &gmac {
 	status = "okay";
 };
 
+&hdmi {
+	avdd-0v9-supply = <&vdd10_video>;
+	avdd-1v8-supply = <&vcc18_video>;
+};
+
 &i2c0 {
 	status = "okay";
 
-- 
2.47.2



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v3 4/5] arm64: dts: rockchip: Enable pwm1 on rk3368-lion-haikou
  2026-01-14 23:07 [PATCH v3 0/5] General RK3368 HDMI support and 2 outputs for RK3368-Lion Heiko Stuebner
                   ` (2 preceding siblings ...)
  2026-01-14 23:07 ` [PATCH v3 3/5] arm64: dts: rockchip: Enable HDMI output on RK3368-Lion-Haikou Heiko Stuebner
@ 2026-01-14 23:07 ` Heiko Stuebner
  2026-01-16 11:24   ` Quentin Schulz
  2026-01-14 23:07 ` [PATCH v3 5/5] arm64: dts: rockchip: Add the Video-Demo overlay for Lion Haikou Heiko Stuebner
  2026-01-16 14:04 ` [PATCH v3 0/5] General RK3368 HDMI support and 2 outputs for RK3368-Lion Heiko Stuebner
  5 siblings, 1 reply; 12+ messages in thread
From: Heiko Stuebner @ 2026-01-14 23:07 UTC (permalink / raw)
  To: heiko
  Cc: quentin.schulz, linux-arm-kernel, linux-rockchip, linux-kernel,
	Heiko Stuebner

From: Heiko Stuebner <heiko.stuebner@cherry.de>

The pwm1 is exposed as BLT_CTRL signal on the MISC I/O pin header of the
haikou baseboard and the Qseven  standard specifies this signal is only
for PWM (either for a panel backlight or generic PWM).

So enable it in the Haikou baseboard for Lion.

Suggested-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
---
 arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dts b/arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dts
index ec843a1b0266..1b3a498d3624 100644
--- a/arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dts
@@ -74,6 +74,10 @@ eeprom: eeprom@50 {
 	};
 };
 
+&pwm1 {
+	status = "okay";
+};
+
 &sdmmc {
 	bus-width = <4>;
 	cap-mmc-highspeed;
-- 
2.47.2



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v3 5/5] arm64: dts: rockchip: Add the Video-Demo overlay for Lion Haikou
  2026-01-14 23:07 [PATCH v3 0/5] General RK3368 HDMI support and 2 outputs for RK3368-Lion Heiko Stuebner
                   ` (3 preceding siblings ...)
  2026-01-14 23:07 ` [PATCH v3 4/5] arm64: dts: rockchip: Enable pwm1 on rk3368-lion-haikou Heiko Stuebner
@ 2026-01-14 23:07 ` Heiko Stuebner
  2026-01-16 14:04 ` [PATCH v3 0/5] General RK3368 HDMI support and 2 outputs for RK3368-Lion Heiko Stuebner
  5 siblings, 0 replies; 12+ messages in thread
From: Heiko Stuebner @ 2026-01-14 23:07 UTC (permalink / raw)
  To: heiko
  Cc: quentin.schulz, linux-arm-kernel, linux-rockchip, linux-kernel,
	Heiko Stuebner

From: Heiko Stuebner <heiko.stuebner@cherry.de>

The video-demo adapter also works on the Lion SoM when running
on a Haikou baseboard, so add an overlay for it.

Tested-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
---
 arch/arm64/boot/dts/rockchip/Makefile         |   5 +
 .../rk3368-lion-haikou-video-demo.dtso        | 170 ++++++++++++++++++
 2 files changed, 175 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3368-lion-haikou-video-demo.dtso

diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile
index dbdda9783e93..64c4199f8a43 100644
--- a/arch/arm64/boot/dts/rockchip/Makefile
+++ b/arch/arm64/boot/dts/rockchip/Makefile
@@ -42,6 +42,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-evb-act8846.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-geekbox.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-lba3368.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-lion-haikou.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-lion-haikou-video-demo.dtbo
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-orion-r68-meta.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-px5-evb.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-r88.dtb
@@ -238,6 +239,10 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-ringneck-haikou-haikou-video-demo.dtb
 px30-ringneck-haikou-haikou-video-demo-dtbs := px30-ringneck-haikou.dtb \
 	px30-ringneck-haikou-video-demo.dtbo
 
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-lion-haikou-haikou-video-demo.dtb
+rk3368-lion-haikou-haikou-video-demo-dtbs := rk3368-lion-haikou.dtb \
+	rk3368-lion-haikou-video-demo.dtbo
+
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-haikou-haikou-video-demo.dtb
 rk3399-puma-haikou-haikou-video-demo-dtbs := rk3399-puma-haikou.dtb \
 	rk3399-puma-haikou-video-demo.dtbo
diff --git a/arch/arm64/boot/dts/rockchip/rk3368-lion-haikou-video-demo.dtso b/arch/arm64/boot/dts/rockchip/rk3368-lion-haikou-video-demo.dtso
new file mode 100644
index 000000000000..2db0f3d9495b
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/rk3368-lion-haikou-video-demo.dtso
@@ -0,0 +1,170 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2025 Cherry Embedded Solutions GmbH
+ *
+ * DEVKIT ADDON CAM-TS-A01
+ * https://embedded.cherry.de/product/development-kit/
+ *
+ * DT-overlay for the camera / DSI demo appliance for Haikou boards.
+ * In the flavour for use with a Lion system-on-module.
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/clock/rk3368-cru.h>
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/leds/common.h>
+#include <dt-bindings/pinctrl/rockchip.h>
+
+&{/} {
+	backlight: backlight {
+		compatible = "pwm-backlight";
+		power-supply = <&dc_12v>;
+		pwms = <&pwm1 0 25000 0>;
+	};
+
+	cam_afvdd_2v8: regulator-cam-afvdd-2v8 {
+		compatible = "regulator-fixed";
+		gpio = <&pca9670 2 GPIO_ACTIVE_LOW>;
+		regulator-max-microvolt = <2800000>;
+		regulator-min-microvolt = <2800000>;
+		regulator-name = "cam-afvdd-2v8";
+		vin-supply = <&vcc2v8_video>;
+	};
+
+	cam_avdd_2v8: regulator-cam-avdd-2v8 {
+		compatible = "regulator-fixed";
+		gpio = <&pca9670 4 GPIO_ACTIVE_LOW>;
+		regulator-max-microvolt = <2800000>;
+		regulator-min-microvolt = <2800000>;
+		regulator-name = "cam-avdd-2v8";
+		vin-supply = <&vcc2v8_video>;
+	};
+
+	cam_dovdd_1v8: regulator-cam-dovdd-1v8 {
+		compatible = "regulator-fixed";
+		gpio = <&pca9670 3 GPIO_ACTIVE_LOW>;
+		regulator-max-microvolt = <1800000>;
+		regulator-min-microvolt = <1800000>;
+		regulator-name = "cam-dovdd-1v8";
+		vin-supply = <&vcc1v8_video>;
+	};
+
+	cam_dvdd_1v2: regulator-cam-dvdd-1v2 {
+		compatible = "regulator-fixed";
+		enable-active-high;
+		gpio = <&pca9670 5 GPIO_ACTIVE_HIGH>;
+		regulator-max-microvolt = <1200000>;
+		regulator-min-microvolt = <1200000>;
+		regulator-name = "cam-dvdd-1v2";
+		vin-supply = <&vcc3v3_baseboard>;
+	};
+
+	vcc1v8_video: regulator-vcc1v8-video {
+		compatible = "regulator-fixed";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-max-microvolt = <1800000>;
+		regulator-min-microvolt = <1800000>;
+		regulator-name = "vcc1v8-video";
+		vin-supply = <&vcc3v3_baseboard>;
+	};
+
+	vcc2v8_video: regulator-vcc2v8-video {
+		compatible = "regulator-fixed";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-max-microvolt = <2800000>;
+		regulator-min-microvolt = <2800000>;
+		regulator-name = "vcc2v8-video";
+		vin-supply = <&vcc3v3_baseboard>;
+	};
+
+	video-adapter-leds {
+		compatible = "gpio-leds";
+
+		video-adapter-led {
+			color = <LED_COLOR_ID_BLUE>;
+			gpios = <&pca9670 7 GPIO_ACTIVE_HIGH>;
+			label = "video-adapter-led";
+			linux,default-trigger = "none";
+		};
+	};
+};
+
+&dphy {
+	status = "okay";
+};
+
+&i2c_gp2 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+	/* OV5675, GT911, DW9714 are limited to 400KHz */
+	clock-frequency = <400000>;
+
+	touchscreen@14 {
+		compatible = "goodix,gt911";
+		reg = <0x14>;
+		interrupt-parent = <&gpio1>;
+		interrupts = <RK_PB5 IRQ_TYPE_LEVEL_LOW>;
+		irq-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
+		pinctrl-0 = <&touch_int>;
+		pinctrl-names = "default";
+		reset-gpios = <&pca9670 1 GPIO_ACTIVE_HIGH>;
+		AVDD28-supply = <&vcc2v8_video>;
+		VDDIO-supply = <&vcc3v3_baseboard>;
+	};
+
+	pca9670: gpio@27 {
+		compatible = "nxp,pca9670";
+		reg = <0x27>;
+		gpio-controller;
+		#gpio-cells = <2>;
+		pinctrl-0 = <&pca9670_resetn>;
+		pinctrl-names = "default";
+		reset-gpios = <&gpio1 RK_PA5 GPIO_ACTIVE_LOW>;
+	};
+};
+
+&mipi_dsi {
+	#address-cells = <1>;
+	#size-cells = <0>;
+	status = "okay";
+
+	panel@0 {
+		compatible = "leadtek,ltk050h3148w";
+		reg = <0>;
+		backlight = <&backlight>;
+		iovcc-supply = <&vcc1v8_video>;
+		reset-gpios = <&pca9670 0 GPIO_ACTIVE_LOW>;
+		vci-supply = <&vcc2v8_video>;
+
+		port {
+			mipi_in_panel: endpoint {
+				remote-endpoint = <&mipi_out_panel>;
+			};
+		};
+	};
+};
+
+&mipi_out {
+	mipi_out_panel: endpoint {
+		remote-endpoint = <&mipi_in_panel>;
+	};
+};
+
+&pinctrl {
+	pca9670 {
+		pca9670_resetn: pca9670-resetn {
+			rockchip,pins = <1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+	};
+
+	touch {
+		touch_int: touch-int {
+			rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+	};
+};
-- 
2.47.2



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH v3 3/5] arm64: dts: rockchip: Enable HDMI output on RK3368-Lion-Haikou
  2026-01-14 23:07 ` [PATCH v3 3/5] arm64: dts: rockchip: Enable HDMI output on RK3368-Lion-Haikou Heiko Stuebner
@ 2026-01-15  1:25   ` Chaoyi Chen
  2026-01-15  9:35     ` Heiko Stübner
  2026-01-16 11:24   ` Quentin Schulz
  1 sibling, 1 reply; 12+ messages in thread
From: Chaoyi Chen @ 2026-01-15  1:25 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: quentin.schulz, linux-arm-kernel, linux-rockchip, linux-kernel,
	Heiko Stuebner

Hi Heiko,

On 1/15/2026 7:07 AM, Heiko Stuebner wrote:
> From: Heiko Stuebner <heiko.stuebner@cherry.de>
> 
> Enable the VOP and HDMI controller on the Lion-Haikou board.
> 
> Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
> ---
>  .../boot/dts/rockchip/rk3368-lion-haikou.dts     | 16 ++++++++++++++++
>  arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi    |  5 +++++
>  2 files changed, 21 insertions(+)
> 

I guess NPLL is an independent PLL available for VOP, 
could you give it a try?

-- 
Best, 
Chaoyi


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v3 3/5] arm64: dts: rockchip: Enable HDMI output on RK3368-Lion-Haikou
  2026-01-15  1:25   ` Chaoyi Chen
@ 2026-01-15  9:35     ` Heiko Stübner
  2026-01-15 11:05       ` Chaoyi Chen
  0 siblings, 1 reply; 12+ messages in thread
From: Heiko Stübner @ 2026-01-15  9:35 UTC (permalink / raw)
  To: Chaoyi Chen
  Cc: quentin.schulz, linux-arm-kernel, linux-rockchip, linux-kernel,
	Heiko Stuebner

Hi,

Am Donnerstag, 15. Januar 2026, 02:25:34 Mitteleuropäische Normalzeit schrieb Chaoyi Chen:
> On 1/15/2026 7:07 AM, Heiko Stuebner wrote:
> > From: Heiko Stuebner <heiko.stuebner@cherry.de>
> > 
> > Enable the VOP and HDMI controller on the Lion-Haikou board.
> > 
> > Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
> > ---
> >  .../boot/dts/rockchip/rk3368-lion-haikou.dts     | 16 ++++++++++++++++
> >  arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi    |  5 +++++
> >  2 files changed, 21 insertions(+)
> > 
> 
> I guess NPLL is an independent PLL available for VOP, 
> could you give it a try?

not really sure what you mean here.

The VOP-binding specifies the aclk, dclk and hclk clocks.

The NPLL is a possible source for quite a lot of peripherals on the rk3368
aclk_cci_pre,  sclk_tcp, vepu/vdpu, hevc, isp, gpu, gmac

So it's definitly not dedicated to the VOP, and thus should not
change frequency for the VOP alone, because that could affect
other blocks.


Heiko




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v3 3/5] arm64: dts: rockchip: Enable HDMI output on RK3368-Lion-Haikou
  2026-01-15  9:35     ` Heiko Stübner
@ 2026-01-15 11:05       ` Chaoyi Chen
  0 siblings, 0 replies; 12+ messages in thread
From: Chaoyi Chen @ 2026-01-15 11:05 UTC (permalink / raw)
  To: Heiko Stübner
  Cc: quentin.schulz, linux-arm-kernel, linux-rockchip, linux-kernel,
	Heiko Stuebner

On 1/15/2026 5:35 PM, Heiko Stübner wrote:
> Hi,
> 
> Am Donnerstag, 15. Januar 2026, 02:25:34 Mitteleuropäische Normalzeit schrieb Chaoyi Chen:
>> On 1/15/2026 7:07 AM, Heiko Stuebner wrote:
>>> From: Heiko Stuebner <heiko.stuebner@cherry.de>
>>>
>>> Enable the VOP and HDMI controller on the Lion-Haikou board.
>>>
>>> Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
>>> ---
>>>  .../boot/dts/rockchip/rk3368-lion-haikou.dts     | 16 ++++++++++++++++
>>>  arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi    |  5 +++++
>>>  2 files changed, 21 insertions(+)
>>>
>>
>> I guess NPLL is an independent PLL available for VOP, 
>> could you give it a try?
> 
> not really sure what you mean here.
> 
> The VOP-binding specifies the aclk, dclk and hclk clocks.
> 
> The NPLL is a possible source for quite a lot of peripherals on the rk3368
> aclk_cci_pre,  sclk_tcp, vepu/vdpu, hevc, isp, gpu, gmac
> 
> So it's definitly not dedicated to the VOP, and thus should not
> change frequency for the VOP alone, because that could affect
> other blocks.
> 
> 
> Heiko

Oh, you are right. It is a general purpose PLL.

-- 
Best, 
Chaoyi


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v3 3/5] arm64: dts: rockchip: Enable HDMI output on RK3368-Lion-Haikou
  2026-01-14 23:07 ` [PATCH v3 3/5] arm64: dts: rockchip: Enable HDMI output on RK3368-Lion-Haikou Heiko Stuebner
  2026-01-15  1:25   ` Chaoyi Chen
@ 2026-01-16 11:24   ` Quentin Schulz
  1 sibling, 0 replies; 12+ messages in thread
From: Quentin Schulz @ 2026-01-16 11:24 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: linux-arm-kernel, linux-rockchip, linux-kernel, Heiko Stuebner

Hi Heiko,

On 1/15/26 12:07 AM, Heiko Stuebner wrote:
> From: Heiko Stuebner <heiko.stuebner@cherry.de>
> 
> Enable the VOP and HDMI controller on the Lion-Haikou board.
> 

Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>

Thanks!
Quentin


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v3 4/5] arm64: dts: rockchip: Enable pwm1 on rk3368-lion-haikou
  2026-01-14 23:07 ` [PATCH v3 4/5] arm64: dts: rockchip: Enable pwm1 on rk3368-lion-haikou Heiko Stuebner
@ 2026-01-16 11:24   ` Quentin Schulz
  0 siblings, 0 replies; 12+ messages in thread
From: Quentin Schulz @ 2026-01-16 11:24 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: linux-arm-kernel, linux-rockchip, linux-kernel, Heiko Stuebner

Hi Heiko,

On 1/15/26 12:07 AM, Heiko Stuebner wrote:
> From: Heiko Stuebner <heiko.stuebner@cherry.de>
> 
> The pwm1 is exposed as BLT_CTRL signal on the MISC I/O pin header of the
> haikou baseboard and the Qseven  standard specifies this signal is only
> for PWM (either for a panel backlight or generic PWM).
> 
> So enable it in the Haikou baseboard for Lion.
> 
> Suggested-by: Quentin Schulz <quentin.schulz@cherry.de>

Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>

Thanks!
Quentin


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v3 0/5] General RK3368 HDMI support and 2 outputs for RK3368-Lion
  2026-01-14 23:07 [PATCH v3 0/5] General RK3368 HDMI support and 2 outputs for RK3368-Lion Heiko Stuebner
                   ` (4 preceding siblings ...)
  2026-01-14 23:07 ` [PATCH v3 5/5] arm64: dts: rockchip: Add the Video-Demo overlay for Lion Haikou Heiko Stuebner
@ 2026-01-16 14:04 ` Heiko Stuebner
  5 siblings, 0 replies; 12+ messages in thread
From: Heiko Stuebner @ 2026-01-16 14:04 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: quentin.schulz, linux-arm-kernel, linux-rockchip, linux-kernel


On Thu, 15 Jan 2026 00:07:02 +0100, Heiko Stuebner wrote:
> This series adds the necessary bits for HDMI output on RK3368 and enables
> this on RK3368-Lion. At the same time, use the recently added DSI support
> to enable the generic Video-Demo-adapter as an overlay on Lion as well.
> 
> 
> The reason I'm shaving this Yak is that the recently added DSI support
> created DTC warnings about a single endpoint with an address.
> 
> [...]

Applied, thanks!

[1/5] arm64: dts: rockchip: Use phandle for i2c_lvds_blc on rk3368-lion haikou
      commit: 4f3df9abf44bd92ecd5d8c3018ddefa7f5bf74d0
[2/5] arm64: dts: rockchip: Add HDMI node to RK3368
      commit: 6d60168c6d2f76917b3f71d2a6807c6d8dd24363
[3/5] arm64: dts: rockchip: Enable HDMI output on RK3368-Lion-Haikou
      commit: 385430244e85e245f071ab158f7e4c7b2b5d99cb
[4/5] arm64: dts: rockchip: Enable pwm1 on rk3368-lion-haikou
      commit: f03f3e0a77a72f6f6284aff0da6d21d6508e57ac
[5/5] arm64: dts: rockchip: Add the Video-Demo overlay for Lion Haikou
      commit: 7f43ac104af7d3d4158ec306d4ca1c897ecce78c

Best regards,
-- 
Heiko Stuebner <heiko@sntech.de>


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-01-16 14:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-14 23:07 [PATCH v3 0/5] General RK3368 HDMI support and 2 outputs for RK3368-Lion Heiko Stuebner
2026-01-14 23:07 ` [PATCH v3 1/5] arm64: dts: rockchip: Use phandle for i2c_lvds_blc on rk3368-lion haikou Heiko Stuebner
2026-01-14 23:07 ` [PATCH v3 2/5] arm64: dts: rockchip: Add HDMI node to RK3368 Heiko Stuebner
2026-01-14 23:07 ` [PATCH v3 3/5] arm64: dts: rockchip: Enable HDMI output on RK3368-Lion-Haikou Heiko Stuebner
2026-01-15  1:25   ` Chaoyi Chen
2026-01-15  9:35     ` Heiko Stübner
2026-01-15 11:05       ` Chaoyi Chen
2026-01-16 11:24   ` Quentin Schulz
2026-01-14 23:07 ` [PATCH v3 4/5] arm64: dts: rockchip: Enable pwm1 on rk3368-lion-haikou Heiko Stuebner
2026-01-16 11:24   ` Quentin Schulz
2026-01-14 23:07 ` [PATCH v3 5/5] arm64: dts: rockchip: Add the Video-Demo overlay for Lion Haikou Heiko Stuebner
2026-01-16 14:04 ` [PATCH v3 0/5] General RK3368 HDMI support and 2 outputs for RK3368-Lion Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox