Skip to content

Commit dfbace8

Browse files
lsj123lsjlsjRadxaYuntian
authored andcommitted
overlay: qcom: radxa-dragon-q6a: add 8hd support
Signed-off-by: SongJun Li <[email protected]>
1 parent 3784232 commit dfbace8

File tree

2 files changed

+155
-0
lines changed

2 files changed

+155
-0
lines changed

arch/arm64/boot/dts/qcom/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dtb-$(CONFIG_ARCH_QCOM) += qcs6490-radxa-dragon-q6a-cam1-imx577.dtbo \
66
qcs6490-radxa-dragon-q6a-cam2-radxa-camera-8m-219.dtbo \
77
qcs6490-radxa-dragon-q6a-cam3-radxa-camera-8m-219.dtbo \
88
qcs6490-radxa-dragon-q6a-kvm.dtbo \
9+
qcs6490-radxa-dragon-q6a-radxa-display-8hd.dtbo \
910
qcs6490-radxa-dragon-q6a-radxa-display-10fhd.dtbo \
1011
qcs6490-radxa-dragon-q6a-uart6-flowctl.dtbo \
1112
qcs6490-radxa-dragon-q6a-uart6.dtbo \
Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/*
3+
* Copyright (c) 2025 Radxa Computer (Shenzhen) Co., Ltd.
4+
*/
5+
6+
/dts-v1/;
7+
/plugin/;
8+
9+
#include <dt-bindings/gpio/gpio.h>
10+
#include <dt-bindings/interrupt-controller/irq.h>
11+
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
12+
#include <dt-bindings/pwm/pwm.h>
13+
14+
/ {
15+
metadata {
16+
title = "Enable Radxa Display 8HD AD002";
17+
compatible = "radxa,dragon-q6a";
18+
category = "display";
19+
exclusive = "mdss_dsi";
20+
description = "Enable Radxa Display 8HD AD002.";
21+
};
22+
};
23+
24+
&{/} {
25+
vcc_3v3_lcd: vcc-3v3-lcd-regulator {
26+
compatible = "regulator-fixed";
27+
regulator-name = "vcc_3v3";
28+
regulator-min-microvolt = <3300000>;
29+
regulator-max-microvolt = <3300000>;
30+
gpio = <&tlmm 80 GPIO_ACTIVE_HIGH>;
31+
enable-active-high;
32+
vin-supply = <&vcc_3v3>;
33+
};
34+
35+
backlight_dsi: backlight-dsi {
36+
compatible = "pwm-backlight";
37+
pwms = <&pm8350c_pwm 3 50000>;
38+
enable-gpios = <&pm8350c_gpios 8 GPIO_ACTIVE_HIGH>;
39+
pinctrl-names = "default";
40+
pinctrl-0 = <&lcd_bl_pwm>;
41+
brightness-levels = <255 0>;
42+
num-interpolated-steps = <255>;
43+
default-brightness-level = <250>;
44+
};
45+
};
46+
47+
&mdss {
48+
status = "okay";
49+
};
50+
51+
&mdss_dsi {
52+
vdda-supply = <&vreg_l6b_1p2>;
53+
#address-cells = <1>;
54+
#size-cells = <0>;
55+
56+
status = "okay";
57+
58+
panel: panel@0 {
59+
status = "okay";
60+
compatible = "radxa,display-8hd-ad002";
61+
reg = <0>;
62+
backlight = <&backlight_dsi>;
63+
64+
vdd-supply = <&vcc_3v3_lcd>;
65+
vccio-supply = <&vcc_1v8>;
66+
reset-gpios = <&tlmm 44 GPIO_ACTIVE_HIGH>;
67+
pinctrl-names = "default";
68+
pinctrl-0 = <&lcd_panel_reset>;
69+
70+
ports {
71+
#address-cells = <1>;
72+
#size-cells = <0>;
73+
74+
port@0 {
75+
reg = <0>;
76+
panel_in_dsi1: endpoint {
77+
remote-endpoint = <&mdss_dsi0_out>;
78+
};
79+
};
80+
};
81+
};
82+
};
83+
84+
&mdss_dsi0_out {
85+
remote-endpoint = <&panel_in_dsi1>;
86+
data-lanes = <0 1 2 3>;
87+
};
88+
89+
&mdss_dsi_phy {
90+
vdds-supply = <&vreg_l10c_0p88>;
91+
status = "okay";
92+
};
93+
94+
&qupv3_id_1 {
95+
status = "okay";
96+
};
97+
98+
&i2c13 {
99+
clock-frequency = <100000>;
100+
#address-cells = <1>;
101+
#size-cells = <0>;
102+
103+
status = "okay";
104+
105+
touchscreen@14 {
106+
compatible = "goodix,gt911";
107+
reg = <0x14>;
108+
interrupt-parent = <&tlmm>;
109+
interrupts = <81 IRQ_TYPE_LEVEL_HIGH>;
110+
irq-gpios = <&tlmm 81 GPIO_ACTIVE_HIGH>;
111+
pinctrl-0 = <&ts_int_conn>, <&ts_rst_conn>;
112+
pinctrl-names = "default";
113+
reset-gpios = <&tlmm 105 GPIO_ACTIVE_HIGH>;
114+
touchscreen-size-x = <800>;
115+
touchscreen-size-y = <1280>;
116+
};
117+
};
118+
119+
&tlmm {
120+
lcd_panel_reset: lcd-panel-reset {
121+
pins = "gpio44";
122+
function = "gpio";
123+
drive-strength = <8>;
124+
bias-disable;
125+
};
126+
127+
ts_int_conn: ts-int-conn-state {
128+
pins = "gpio81";
129+
function = "gpio";
130+
bias-disable;
131+
};
132+
133+
ts_rst_conn: ts-rst-conn-state {
134+
pins = "gpio105";
135+
function = "gpio";
136+
drive-strength = <2>;
137+
bias-disable;
138+
};
139+
};
140+
141+
&pm8350c_gpios {
142+
lcd_bl_pwm: dsi-lcd-bl-pwm-state {
143+
pins = "gpio8";
144+
function = "func1";
145+
bias-disable;
146+
qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
147+
output-low;
148+
power-source = <0>;
149+
};
150+
};
151+
152+
&pm8350c_pwm {
153+
status = "okay";
154+
};

0 commit comments

Comments
 (0)