Skip to content

Commit 909484f

Browse files
vamrs-fengRadxaYuntian
authored andcommitted
overlays: allwinner: cubie-a7a: add radxa display 10fhd
Signed-off-by: Feng Zhang <[email protected]>
1 parent 240e709 commit 909484f

File tree

2 files changed

+193
-1
lines changed

2 files changed

+193
-1
lines changed

arch/arm64/boot/dts/allwinner/overlays/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ dtb-$(CONFIG_ARCH_SUN60IW2) += \
2222
cubie-a7a-radxa-camera-8m-219.dtbo \
2323
cubie-a7a-radxa-camera-13m-214.dtbo \
2424
cubie-a7a-radxa-camera-4k-415.dtbo \
25-
cubie-a7a-radxa-display-8hd.dtbo
25+
cubie-a7a-radxa-display-8hd.dtbo \
26+
cubie-a7a-radxa-display-10fhd.dtbo
2627

2728
targets += $(dtb-y)
2829

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
#include <dt-bindings/gpio/gpio.h>
5+
#include <dt-bindings/gpio/sun4i-gpio.h>
6+
#include <dt-bindings/display/sunxi-lcd.h>
7+
#include <dt-bindings/interrupt-controller/irq.h>
8+
#include <dt-bindings/pwm/pwm.h>
9+
10+
/ {
11+
metadata {
12+
title = "Enable Radxa Display 10FHD";
13+
compatible = "radxa,cubie-a7a";
14+
category = "display";
15+
exclusive = "dlcd0", "dsi0", "dsi0combophy", "PD18", "PD19", "PD16", "PD17", "PD21", "PD23";
16+
description = "Enable Radxa Display 10FHD";
17+
};
18+
};
19+
20+
&{/} {
21+
backlight0: backlight0 {
22+
compatible = "pwm-backlight";
23+
status = "okay";
24+
enable-gpio = <&pio PD 23 GPIO_ACTIVE_HIGH>;
25+
brightness-levels = <
26+
0 1 2 3 4 5 6 7
27+
8 9 10 11 12 13 14 15
28+
16 17 18 19 20 21 22 23
29+
24 25 26 27 28 29 30 31
30+
32 33 34 35 36 37 38 39
31+
40 41 42 43 44 45 46 47
32+
48 49 50 51 52 53 54 55
33+
56 57 58 59 60 61 62 63
34+
64 65 66 67 68 69 70 71
35+
72 73 74 75 76 77 78 79
36+
80 81 82 83 84 85 86 87
37+
88 89 90 91 92 93 94 95
38+
96 97 98 99 100 101 102 103
39+
104 105 106 107 108 109 110 111
40+
112 113 114 115 116 117 118 119
41+
120 121 122 123 124 125 126 127
42+
128 129 130 131 132 133 134 135
43+
136 137 138 139 140 141 142 143
44+
144 145 146 147 148 149 150 151
45+
152 153 154 155 156 157 158 159
46+
160 161 162 163 164 165 166 167
47+
168 169 170 171 172 173 174 175
48+
176 177 178 179 180 181 182 183
49+
184 185 186 187 188 189 190 191
50+
192 193 194 195 196 197 198 199
51+
200 201 202 203 204 205 206 207
52+
208 209 210 211 212 213 214 215
53+
216 217 218 219 220 221 222 223
54+
224 225 226 227 228 229 230 231
55+
232 233 234 235 236 237 238 239
56+
240 241 242 243 244 245 246 247
57+
248 249 250 251 252 253 254 255>;
58+
default-brightness-level = <73>;
59+
pwms = <&pwm0 4 25000 PWM_POLARITY_INVERTED>;
60+
};
61+
62+
dsi_panel: dsi_panel@1 {
63+
compatible = "allwinner,panel-dsi";
64+
status = "okay";
65+
power-delay-ms = <10>;
66+
power0-supply = <&reg_dc1sw1>;
67+
power1-supply = <&reg_bldo2>;
68+
69+
reset-num = <1>;
70+
reset-delay-ms = <20>;
71+
reset-gpios = <&pio PD 21 GPIO_ACTIVE_HIGH>;
72+
backlight = <&backlight0>;
73+
dsi,flags = <(MIPI_DSI_MODE_VIDEO)>;
74+
dsi,lanes = <4>;
75+
dsi,format = <0>;
76+
77+
panel-init-sequence = [
78+
05 78 01 11
79+
05 00 01 29
80+
];
81+
82+
panel-exit-sequence = [
83+
05 00 01 28
84+
05 00 01 10
85+
];
86+
87+
disp_timings0: display-timings {
88+
native-mode = <&dsi1_timing0>;
89+
dsi1_timing0: timing0 {
90+
clock-frequency = <70000000>;
91+
hback-porch = <18>;
92+
hactive = <1200>;
93+
hfront-porch = <18>;
94+
hsync-len = <18>;
95+
vback-porch = <10>;
96+
vactive = <1920>;
97+
vfront-porch = <20>;
98+
vsync-len = <4>;
99+
};
100+
};
101+
102+
port {
103+
panel0_in: endpoint@0 {
104+
reg = <0>;
105+
remote-endpoint = <&panel_output_0>;
106+
};
107+
};
108+
};
109+
};
110+
111+
&dsi0combophy {
112+
status = "okay";
113+
};
114+
115+
&dlcd0 {
116+
status = "okay";
117+
};
118+
119+
&dsi0 {
120+
status = "okay";
121+
pinctrl-0 = <&dsi0_4lane_pins_a>;
122+
pinctrl-1 = <&dsi0_4lane_pins_b>;
123+
pinctrl-names = "active","sleep";
124+
125+
ports {
126+
dsi0_out: port@1{
127+
dsi_out_panel: endpoint {
128+
remote-endpoint = <&panel_input>;
129+
};
130+
};
131+
};
132+
133+
panel: panel@0 {
134+
compatible = "allwinner,virtual-panel";
135+
status = "okay";
136+
reg = <0>;
137+
ports {
138+
panel_in: port@0 {
139+
reg = <0>;
140+
panel_input: endpoint@0 {
141+
reg = <0>;
142+
remote-endpoint = <&dsi_out_panel>;
143+
};
144+
};
145+
panel_out: port@1 {
146+
reg = <1>;
147+
panel_output_0: endpoint@0 {
148+
reg = <0>;
149+
remote-endpoint = <&panel0_in>;
150+
};
151+
};
152+
};
153+
};
154+
};
155+
156+
&twi2 {
157+
clock-frequency = <400000>;
158+
pinctrl-0 = <&twi2_pins_default>;
159+
pinctrl-1 = <&twi2_pins_sleep>;
160+
pinctrl-names = "default", "sleep";
161+
/* For stability and backwards compatibility, we recommend setting ‘twi_drv_used’ to 1 */
162+
twi_drv_used = <1>;
163+
no_suspend = <1>;
164+
twi-supply = <&reg_bldo2>;
165+
status = "okay";
166+
167+
gt9271@5d {
168+
compatible = "goodix,gt9271";
169+
reg = <0x5d>;
170+
pinctrl-names = "default";
171+
interrupt-parent = <&pio>;
172+
interrupts = <PD 18 IRQ_TYPE_LEVEL_HIGH>;
173+
irq-gpios = <&pio PD 18 GPIO_ACTIVE_HIGH>;
174+
reset-gpios = <&pio PD 19 GPIO_ACTIVE_HIGH>;
175+
status = "okay";
176+
};
177+
};
178+
179+
&pio {
180+
twi2_pins_default: twi2@0 {
181+
pins = "PD16", "PD17";
182+
function = "twi2";
183+
drive-strength = <10>;
184+
bias-pull-up;
185+
};
186+
187+
twi2_pins_sleep: twi2@1 {
188+
pins = "PD16", "PD17";
189+
function = "gpio_in";
190+
};
191+
};

0 commit comments

Comments
 (0)