Skip to content

Commit 3467c55

Browse files
committed
ARM: dts: rockchip: rk3288 re-name dts files
Intent to keep same dts with upstream version, this patch does: 1. restore rk3288-evb-act8846.dts, keep without android configurations. 2. add char of "-android-" to android dts files. Change-Id: Ic063f1187160f88e9ec8a779749ff7b17cfac9e8 Signed-off-by: Jianqun Xu <[email protected]>
1 parent 870dcb5 commit 3467c55

File tree

4 files changed

+138
-48
lines changed

4 files changed

+138
-48
lines changed

arch/arm/boot/dts/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,10 +522,10 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
522522
rk3229-echo-v10.dtb \
523523
rk3229-evb.dtb \
524524
rk3229-gva-sdk.dtb \
525-
rk3288-evb-act8846-edp.dtb \
525+
rk3288-evb-act8846.dtb \
526+
rk3288-evb-android-rk818-edp.dtb \
527+
rk3288-evb-android-rk818-mipi.dtb \
526528
rk3288-evb-rk808.dtb \
527-
rk3288-evb-rk818-edp.dtb \
528-
rk3288-evb-rk818-mipi.dtb \
529529
rk3288-fennec.dtb \
530530
rk3288-firefly-beta.dtb \
531531
rk3288-firefly.dtb \

arch/arm/boot/dts/rk3288-evb-act8846-edp.dts renamed to arch/arm/boot/dts/rk3288-evb-act8846.dts

Lines changed: 133 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,109 @@
4040

4141
/dts-v1/;
4242
#include "rk3288-evb.dtsi"
43-
#include "rk3288-android.dtsi"
4443

4544
/ {
4645
compatible = "rockchip,rk3288-evb-act8846", "rockchip,rk3288";
4746

47+
backlight: backlight {
48+
compatible = "pwm-backlight";
49+
brightness-levels = <
50+
0 1 2 3 4 5 6 7
51+
8 9 10 11 12 13 14 15
52+
16 17 18 19 20 21 22 23
53+
24 25 26 27 28 29 30 31
54+
32 33 34 35 36 37 38 39
55+
40 41 42 43 44 45 46 47
56+
48 49 50 51 52 53 54 55
57+
56 57 58 59 60 61 62 63
58+
64 65 66 67 68 69 70 71
59+
72 73 74 75 76 77 78 79
60+
80 81 82 83 84 85 86 87
61+
88 89 90 91 92 93 94 95
62+
96 97 98 99 100 101 102 103
63+
104 105 106 107 108 109 110 111
64+
112 113 114 115 116 117 118 119
65+
120 121 122 123 124 125 126 127
66+
128 129 130 131 132 133 134 135
67+
136 137 138 139 140 141 142 143
68+
144 145 146 147 148 149 150 151
69+
152 153 154 155 156 157 158 159
70+
160 161 162 163 164 165 166 167
71+
168 169 170 171 172 173 174 175
72+
176 177 178 179 180 181 182 183
73+
184 185 186 187 188 189 190 191
74+
192 193 194 195 196 197 198 199
75+
200 201 202 203 204 205 206 207
76+
208 209 210 211 212 213 214 215
77+
216 217 218 219 220 221 222 223
78+
224 225 226 227 228 229 230 231
79+
232 233 234 235 236 237 238 239
80+
240 241 242 243 244 245 246 247
81+
248 249 250 251 252 253 254 255>;
82+
default-brightness-level = <128>;
83+
enable-gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>;
84+
pinctrl-names = "default";
85+
pinctrl-0 = <&bl_en>;
86+
pwms = <&pwm0 0 1000000 PWM_POLARITY_INVERTED>;
87+
};
88+
89+
adc-keys {
90+
compatible = "adc-keys";
91+
io-channels = <&saradc 1>;
92+
io-channel-names = "buttons";
93+
poll-interval = <100>;
94+
keyup-threshold-microvolt = <1800000>;
95+
96+
button-up {
97+
label = "Volume Up";
98+
linux,code = <KEY_VOLUMEUP>;
99+
press-threshold-microvolt = <100000>;
100+
};
101+
102+
button-down {
103+
label = "Volume Down";
104+
linux,code = <KEY_VOLUMEDOWN>;
105+
press-threshold-microvolt = <300000>;
106+
};
107+
108+
menu {
109+
label = "Menu";
110+
linux,code = <KEY_MENU>;
111+
press-threshold-microvolt = <640000>;
112+
};
113+
114+
esc {
115+
label = "Esc";
116+
linux,code = <KEY_ESC>;
117+
press-threshold-microvolt = <1000000>;
118+
};
119+
120+
home {
121+
label = "Home";
122+
linux,code = <KEY_HOME>;
123+
press-threshold-microvolt = <1300000>;
124+
};
125+
};
126+
127+
gpio-keys {
128+
compatible = "gpio-keys";
129+
#address-cells = <1>;
130+
#size-cells = <0>;
131+
autorepeat;
132+
133+
pinctrl-names = "default";
134+
pinctrl-0 = <&pwrbtn>;
135+
136+
button@0 {
137+
gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
138+
linux,code = <116>;
139+
label = "GPIO Key Power";
140+
linux,input-type = <1>;
141+
gpio-key,wakeup = <1>;
142+
debounce-interval = <100>;
143+
};
144+
};
145+
48146
sdio_pwrseq: sdio-pwrseq {
49147
compatible = "mmc-pwrseq-simple";
50148
clocks = <&hym8563>;
@@ -89,15 +187,24 @@
89187
&edp {
90188
vcc-supply = <&vdd10_lcd>;
91189
vccio-supply = <&vcc18_lcd>;
190+
status = "okay";
92191
};
93192

94-
&gpu {
193+
&edp_phy {
95194
status = "okay";
96-
mali-supply = <&vdd_gpu>;
97195
};
98196

99-
&hdmi_analog_sound {
197+
&edp_panel {
198+
status = "okay";
199+
compatible ="lg,lp079qx1-sp0v", "simple-panel";
200+
backlight = <&backlight>;
201+
enable-gpios = <&gpio7 4 GPIO_ACTIVE_HIGH>;
202+
pinctrl-0 = <&lcd_cs>;
203+
};
204+
205+
&gpu {
100206
status = "okay";
207+
mali-supply = <&vdd_gpu>;
101208
};
102209

103210
&i2c0 {
@@ -250,43 +357,6 @@
250357
};
251358
};
252359

253-
&edp {
254-
status = "okay";
255-
};
256-
257-
&edp_panel {
258-
compatible ="lg,lp079qx1-sp0v", "simple-panel";
259-
enable-gpios = <&gpio7 4 GPIO_ACTIVE_HIGH>;
260-
pinctrl-0 = <&lcd_cs>;
261-
power-supply = <&vcc_lcd>;
262-
delay,prepare = <120>;
263-
status = "okay";
264-
265-
disp_timings: display-timings {
266-
native-mode = <&timing0>;
267-
268-
timing0: timing0 {
269-
clock-frequency = <200000000>;
270-
hactive = <1536>;
271-
vactive = <2048>;
272-
hfront-porch = <12>;
273-
hsync-len = <16>;
274-
hback-porch = <48>;
275-
vfront-porch = <8>;
276-
vsync-len = <4>;
277-
vback-porch = <8>;
278-
hsync-active = <0>;
279-
vsync-active = <0>;
280-
de-active = <0>;
281-
pixelclk-active = <0>;
282-
};
283-
};
284-
};
285-
286-
&edp_phy {
287-
status = "okay";
288-
};
289-
290360
&i2c1 {
291361
status = "okay";
292362
clock-frequency = <400000>;
@@ -309,11 +379,31 @@
309379
};
310380
};
311381

312-
&lvds_panel {
313-
power-supply = <&vcc_lcd>;
382+
&rga {
383+
status = "okay";
384+
};
385+
386+
&sound {
387+
status = "okay";
388+
};
389+
390+
&uart2 {
391+
status = "okay";
314392
};
315393

316394
&pinctrl {
395+
backlight {
396+
bl_en: bl-en {
397+
rockchip,pins = <7 2 RK_FUNC_GPIO &pcfg_pull_none>;
398+
};
399+
};
400+
401+
buttons {
402+
pwrbtn: pwrbtn {
403+
rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
404+
};
405+
};
406+
317407
lcd {
318408
lcd_en: lcd-en {
319409
rockchip,pins = <7 3 RK_FUNC_GPIO &pcfg_pull_none>;

arch/arm/boot/dts/rk3288-evb-rk818-edp.dts renamed to arch/arm/boot/dts/rk3288-evb-android-rk818-edp.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#include "rk3288-android.dtsi"
4646

4747
/ {
48-
compatible = "rockchip,rk3288-evb-rk818", "rockchip,rk3288";
48+
compatible = "rockchip,rk3288-evb-android-rk818", "rockchip,rk3288";
4949

5050
sdio_pwrseq: sdio-pwrseq {
5151
compatible = "mmc-pwrseq-simple";

arch/arm/boot/dts/rk3288-evb-rk818-mipi.dts renamed to arch/arm/boot/dts/rk3288-evb-android-rk818-mipi.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#include "rk3288-android.dtsi"
4646

4747
/ {
48-
compatible = "rockchip,rk3288-evb-rk818", "rockchip,rk3288";
48+
compatible = "rockchip,rk3288-evb-android-rk818", "rockchip,rk3288";
4949

5050
sdio_pwrseq: sdio-pwrseq {
5151
compatible = "mmc-pwrseq-simple";

0 commit comments

Comments
 (0)