Skip to content

Commit 7f43ac1

Browse files
Heiko Stuebnermmind
authored andcommitted
arm64: dts: rockchip: Add the Video-Demo overlay for Lion Haikou
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> Link: https://patch.msgid.link/20260114230707.4175162-6-heiko@sntech.de Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent f03f3e0 commit 7f43ac1

2 files changed

Lines changed: 175 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-evb-act8846.dtb
4242
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-geekbox.dtb
4343
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-lba3368.dtb
4444
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-lion-haikou.dtb
45+
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-lion-haikou-video-demo.dtbo
4546
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-orion-r68-meta.dtb
4647
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-px5-evb.dtb
4748
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-r88.dtb
@@ -243,6 +244,10 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-ringneck-haikou-haikou-video-demo.dtb
243244
px30-ringneck-haikou-haikou-video-demo-dtbs := px30-ringneck-haikou.dtb \
244245
px30-ringneck-haikou-video-demo.dtbo
245246

247+
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-lion-haikou-haikou-video-demo.dtb
248+
rk3368-lion-haikou-haikou-video-demo-dtbs := rk3368-lion-haikou.dtb \
249+
rk3368-lion-haikou-video-demo.dtbo
250+
246251
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-haikou-haikou-video-demo.dtb
247252
rk3399-puma-haikou-haikou-video-demo-dtbs := rk3399-puma-haikou.dtb \
248253
rk3399-puma-haikou-video-demo.dtbo
Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) 2025 Cherry Embedded Solutions GmbH
4+
*
5+
* DEVKIT ADDON CAM-TS-A01
6+
* https://embedded.cherry.de/product/development-kit/
7+
*
8+
* DT-overlay for the camera / DSI demo appliance for Haikou boards.
9+
* In the flavour for use with a Lion system-on-module.
10+
*/
11+
12+
/dts-v1/;
13+
/plugin/;
14+
15+
#include <dt-bindings/clock/rk3368-cru.h>
16+
#include <dt-bindings/gpio/gpio.h>
17+
#include <dt-bindings/interrupt-controller/irq.h>
18+
#include <dt-bindings/leds/common.h>
19+
#include <dt-bindings/pinctrl/rockchip.h>
20+
21+
&{/} {
22+
backlight: backlight {
23+
compatible = "pwm-backlight";
24+
power-supply = <&dc_12v>;
25+
pwms = <&pwm1 0 25000 0>;
26+
};
27+
28+
cam_afvdd_2v8: regulator-cam-afvdd-2v8 {
29+
compatible = "regulator-fixed";
30+
gpio = <&pca9670 2 GPIO_ACTIVE_LOW>;
31+
regulator-max-microvolt = <2800000>;
32+
regulator-min-microvolt = <2800000>;
33+
regulator-name = "cam-afvdd-2v8";
34+
vin-supply = <&vcc2v8_video>;
35+
};
36+
37+
cam_avdd_2v8: regulator-cam-avdd-2v8 {
38+
compatible = "regulator-fixed";
39+
gpio = <&pca9670 4 GPIO_ACTIVE_LOW>;
40+
regulator-max-microvolt = <2800000>;
41+
regulator-min-microvolt = <2800000>;
42+
regulator-name = "cam-avdd-2v8";
43+
vin-supply = <&vcc2v8_video>;
44+
};
45+
46+
cam_dovdd_1v8: regulator-cam-dovdd-1v8 {
47+
compatible = "regulator-fixed";
48+
gpio = <&pca9670 3 GPIO_ACTIVE_LOW>;
49+
regulator-max-microvolt = <1800000>;
50+
regulator-min-microvolt = <1800000>;
51+
regulator-name = "cam-dovdd-1v8";
52+
vin-supply = <&vcc1v8_video>;
53+
};
54+
55+
cam_dvdd_1v2: regulator-cam-dvdd-1v2 {
56+
compatible = "regulator-fixed";
57+
enable-active-high;
58+
gpio = <&pca9670 5 GPIO_ACTIVE_HIGH>;
59+
regulator-max-microvolt = <1200000>;
60+
regulator-min-microvolt = <1200000>;
61+
regulator-name = "cam-dvdd-1v2";
62+
vin-supply = <&vcc3v3_baseboard>;
63+
};
64+
65+
vcc1v8_video: regulator-vcc1v8-video {
66+
compatible = "regulator-fixed";
67+
regulator-always-on;
68+
regulator-boot-on;
69+
regulator-max-microvolt = <1800000>;
70+
regulator-min-microvolt = <1800000>;
71+
regulator-name = "vcc1v8-video";
72+
vin-supply = <&vcc3v3_baseboard>;
73+
};
74+
75+
vcc2v8_video: regulator-vcc2v8-video {
76+
compatible = "regulator-fixed";
77+
regulator-always-on;
78+
regulator-boot-on;
79+
regulator-max-microvolt = <2800000>;
80+
regulator-min-microvolt = <2800000>;
81+
regulator-name = "vcc2v8-video";
82+
vin-supply = <&vcc3v3_baseboard>;
83+
};
84+
85+
video-adapter-leds {
86+
compatible = "gpio-leds";
87+
88+
video-adapter-led {
89+
color = <LED_COLOR_ID_BLUE>;
90+
gpios = <&pca9670 7 GPIO_ACTIVE_HIGH>;
91+
label = "video-adapter-led";
92+
linux,default-trigger = "none";
93+
};
94+
};
95+
};
96+
97+
&dphy {
98+
status = "okay";
99+
};
100+
101+
&i2c_gp2 {
102+
#address-cells = <1>;
103+
#size-cells = <0>;
104+
/* OV5675, GT911, DW9714 are limited to 400KHz */
105+
clock-frequency = <400000>;
106+
107+
touchscreen@14 {
108+
compatible = "goodix,gt911";
109+
reg = <0x14>;
110+
interrupt-parent = <&gpio1>;
111+
interrupts = <RK_PB5 IRQ_TYPE_LEVEL_LOW>;
112+
irq-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
113+
pinctrl-0 = <&touch_int>;
114+
pinctrl-names = "default";
115+
reset-gpios = <&pca9670 1 GPIO_ACTIVE_HIGH>;
116+
AVDD28-supply = <&vcc2v8_video>;
117+
VDDIO-supply = <&vcc3v3_baseboard>;
118+
};
119+
120+
pca9670: gpio@27 {
121+
compatible = "nxp,pca9670";
122+
reg = <0x27>;
123+
gpio-controller;
124+
#gpio-cells = <2>;
125+
pinctrl-0 = <&pca9670_resetn>;
126+
pinctrl-names = "default";
127+
reset-gpios = <&gpio1 RK_PA5 GPIO_ACTIVE_LOW>;
128+
};
129+
};
130+
131+
&mipi_dsi {
132+
#address-cells = <1>;
133+
#size-cells = <0>;
134+
status = "okay";
135+
136+
panel@0 {
137+
compatible = "leadtek,ltk050h3148w";
138+
reg = <0>;
139+
backlight = <&backlight>;
140+
iovcc-supply = <&vcc1v8_video>;
141+
reset-gpios = <&pca9670 0 GPIO_ACTIVE_LOW>;
142+
vci-supply = <&vcc2v8_video>;
143+
144+
port {
145+
mipi_in_panel: endpoint {
146+
remote-endpoint = <&mipi_out_panel>;
147+
};
148+
};
149+
};
150+
};
151+
152+
&mipi_out {
153+
mipi_out_panel: endpoint {
154+
remote-endpoint = <&mipi_in_panel>;
155+
};
156+
};
157+
158+
&pinctrl {
159+
pca9670 {
160+
pca9670_resetn: pca9670-resetn {
161+
rockchip,pins = <1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
162+
};
163+
};
164+
165+
touch {
166+
touch_int: touch-int {
167+
rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
168+
};
169+
};
170+
};

0 commit comments

Comments
 (0)