Skip to content

Commit bb510dd

Browse files
Heiko Stuebnermmind
authored andcommitted
arm64: dts: rockchip: add px30-cobra base dtsi and board variants
Cobra are Touchscreen devices built around the PX30 SoC using a variety of display options. The devices feature an EMMC, network port, usb host + OTG ports and a 720x1280 display with a touchscreen. Signed-off-by: Heiko Stuebner <[email protected]> Reviewed-by: Quentin Schulz <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent e2a6b30 commit bb510dd

File tree

6 files changed

+760
-0
lines changed

6 files changed

+760
-0
lines changed

arch/arm64/boot/dts/rockchip/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# SPDX-License-Identifier: GPL-2.0
2+
dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-cobra-ltk050h3146w-a2.dtb
3+
dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-cobra-ltk050h3146w.dtb
4+
dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-cobra-ltk050h3148w.dtb
5+
dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-cobra-ltk500hd1829.dtb
26
dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-evb.dtb
37
dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-engicam-px30-core-ctouch2.dtb
48
dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-engicam-px30-core-ctouch2-of10.dtb
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) 2025 Cherry Embedded Solutions GmbH
4+
*/
5+
6+
/dts-v1/;
7+
#include "px30-cobra.dtsi"
8+
9+
/ {
10+
model = "Theobroma Systems Cobra with LTK050H3146W-A2 Display";
11+
compatible = "tsd,px30-cobra-ltk050h3146w-a2", "tsd,px30-cobra", "rockchip,px30";
12+
};
13+
14+
&dsi {
15+
status = "okay";
16+
17+
panel@0 {
18+
compatible = "leadtek,ltk050h3146w-a2";
19+
reg = <0>;
20+
backlight = <&backlight>;
21+
iovcc-supply = <&vcc_1v8>;
22+
pinctrl-names = "default";
23+
pinctrl-0 = <&dsp_rst>;
24+
reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
25+
vci-supply = <&vcc_2v8>;
26+
27+
port {
28+
mipi_in_panel: endpoint {
29+
remote-endpoint = <&mipi_out_panel>;
30+
};
31+
};
32+
};
33+
};
34+
35+
&dsi_out {
36+
mipi_out_panel: endpoint {
37+
remote-endpoint = <&mipi_in_panel>;
38+
};
39+
};
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) 2025 Cherry Embedded Solutions GmbH
4+
*/
5+
6+
/dts-v1/;
7+
#include "px30-cobra.dtsi"
8+
9+
/ {
10+
model = "Theobroma Systems Cobra with LTK050H3146W Display";
11+
compatible = "tsd,px30-cobra-ltk050h3146w", "tsd,px30-cobra", "rockchip,px30";
12+
};
13+
14+
&dsi {
15+
status = "okay";
16+
17+
panel@0 {
18+
compatible = "leadtek,ltk050h3146w";
19+
reg = <0>;
20+
backlight = <&backlight>;
21+
iovcc-supply = <&vcc_1v8>;
22+
pinctrl-names = "default";
23+
pinctrl-0 = <&dsp_rst>;
24+
reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
25+
vci-supply = <&vcc_2v8>;
26+
27+
port {
28+
mipi_in_panel: endpoint {
29+
remote-endpoint = <&mipi_out_panel>;
30+
};
31+
};
32+
};
33+
};
34+
35+
&dsi_out {
36+
mipi_out_panel: endpoint {
37+
remote-endpoint = <&mipi_in_panel>;
38+
};
39+
};
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) 2025 Cherry Embedded Solutions GmbH
4+
*/
5+
6+
/dts-v1/;
7+
#include "px30-cobra.dtsi"
8+
9+
/ {
10+
model = "Theobroma Systems Cobra with ltk050h3148w Display";
11+
compatible = "tsd,px30-cobra-ltk050h3148w", "tsd,px30-cobra", "rockchip,px30";
12+
};
13+
14+
&dsi {
15+
status = "okay";
16+
17+
panel@0 {
18+
compatible = "leadtek,ltk050h3148w";
19+
reg = <0>;
20+
backlight = <&backlight>;
21+
iovcc-supply = <&vcc_1v8>;
22+
pinctrl-names = "default";
23+
pinctrl-0 = <&dsp_rst>;
24+
reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
25+
vci-supply = <&vcc_2v8>;
26+
27+
port {
28+
mipi_in_panel: endpoint {
29+
remote-endpoint = <&mipi_out_panel>;
30+
};
31+
};
32+
};
33+
};
34+
35+
&dsi_out {
36+
mipi_out_panel: endpoint {
37+
remote-endpoint = <&mipi_in_panel>;
38+
};
39+
};
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) 2025 Cherry Embedded Solutions GmbH
4+
*/
5+
6+
/dts-v1/;
7+
#include "px30-cobra.dtsi"
8+
9+
/ {
10+
model = "Theobroma Systems Cobra prototype with LTK500HD1829 Display";
11+
compatible = "tsd,px30-cobra-ltk500hd1829", "tsd,px30-cobra", "rockchip,px30";
12+
13+
aliases {
14+
mmc1 = &sdmmc;
15+
};
16+
};
17+
18+
&dsi {
19+
status = "okay";
20+
21+
panel@0 {
22+
compatible = "leadtek,ltk500hd1829";
23+
reg = <0>;
24+
backlight = <&backlight>;
25+
iovcc-supply = <&vcc_1v8>;
26+
pinctrl-names = "default";
27+
pinctrl-0 = <&dsp_rst>;
28+
reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
29+
vcc-supply = <&vcc_2v8>;
30+
31+
port {
32+
mipi_in_panel: endpoint {
33+
remote-endpoint = <&mipi_out_panel>;
34+
};
35+
};
36+
};
37+
};
38+
39+
&dsi_out {
40+
mipi_out_panel: endpoint {
41+
remote-endpoint = <&mipi_in_panel>;
42+
};
43+
};
44+
45+
&pinctrl {
46+
pinctrl-names = "default";
47+
pinctrl-0 = <&cobra_pin_hog>, <&cobra_proto_hog>;
48+
49+
hog {
50+
cobra_proto_hog: cobra-proto-hog {
51+
rockchip,pins =
52+
/* STUSB4500 open drain outout POWER_OK2, needs pull-up */
53+
<3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>,
54+
/* STUSB4500 open drain outout POWER_OK3, needs pull-up */
55+
<3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
56+
};
57+
};
58+
};
59+
60+
&sdmmc {
61+
bus-width = <4>;
62+
broken-cd;
63+
cap-sd-highspeed;
64+
pinctrl-names = "default";
65+
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
66+
sd-uhs-sdr12;
67+
sd-uhs-sdr25;
68+
sd-uhs-sdr50;
69+
sd-uhs-sdr104;
70+
vmmc-supply = <&vccio_sd>;
71+
vqmmc-supply = <&vccio_sd>;
72+
status = "okay";
73+
};

0 commit comments

Comments
 (0)