Skip to content

Commit 46495ea

Browse files
TikilyTravMurav
authored andcommitted
dts: msm8916: Clear up Vivo CDP
1 parent 41dddd5 commit 46495ea

4 files changed

Lines changed: 166 additions & 53 deletions

File tree

Documentation/devices.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@
5656
- Samsung Galaxy Tab A 8.0 (2015) - SM-T350, SM-T355, SM-T355Y, SM-T357W
5757
- Samsung Galaxy Tab A 9.7 (2015) - SM-T550, SM-T555
5858
- Samsung Galaxy Tab E 9.6 WiFi (2015) - SM-T560NU
59-
- Vivo Y13L / Y613F / Y23L (2015) - PD1304CL , PD1304CF , PD1419L (use lk1st quirky - see comment in `lk2nd/device/dts/msm8916/msm8916-vivo-pd1304.dts`)
59+
- Vivo Y13L / Y613f / Y913 - PD1304CL, PD1304CF, PD1304CV (use lk1st quirky - see comment in `lk2nd/device/dts/msm8916/msm8916-vivo-cdp-1.dts`)
60+
- Vivo Y23L / Y623 / Y923 - PD1419L, PD1419F, PD1419V (use lk1st quirky - see comment in `lk2nd/device/dts/msm8916/msm8916-vivo-cdp-1.dts`)
6061
- Vivo Y21L
62+
- Vivo Y27L / Y627 / Y927 - PD1410L, PD1410F, PD1410V (use lk1st quirky - see comment in `lk2nd/device/dts/msm8916/msm8916-vivo-cdp-1.dts`)
63+
- Vivo Y28L / Y628 / Y928 - PD1403L, PD1403F, PD1403V (use lk1st quirky - see comment in `lk2nd/device/dts/msm8916/msm8916-vivo-cdp-1.dts`)
6164
- Vivo Y31 (2015) - pd1505
6265
- Vivo Y31A (2016) - pd1505f
6366
- Vivo Y51L (2015) - pd1510
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
3+
#include <skeleton64.dtsi>
4+
#include <lk2nd.dtsi>
5+
6+
/ {
7+
qcom,msm-id = <QCOM_ID_MSM8916 0>;
8+
qcom,board-id = <QCOM_BOARD_ID_CDP 1>;
9+
};
10+
11+
/*
12+
* These are devices released by vivo in 2014-2015.
13+
* Their common feature is that they use the CDP, and the board-id is <0x01 0x01>.
14+
*
15+
* These devices are quirky devices.
16+
* Since the stock Android version on this device reports as 4.4.4, aboot is only 32-bit,
17+
* so lk1st is required, along with replacing tz and hyp.
18+
*/
19+
20+
&lk2nd {
21+
vivo-pd1304 {
22+
model = "Vivo Y13L / Y613F / Y923";
23+
compatible = "vivo,pd1304";
24+
25+
/*
26+
* Build lk1st for pd1304:
27+
* make TOOLCHAIN_PREFIX=arm-none-eabi- lk1st-msm8916 \
28+
* LK2ND_DISPLAY=nt35510s_fwvga_cmd \
29+
* LK2ND_BUNDLE_DTB=msm8916-vivo-cdp-1.dtb
30+
* LK2ND_COMPATIBLE=vivo,pd1304
31+
*/
32+
33+
lk2nd,dtb-files = "msm8916-vivo-pd1304";
34+
lk2nd,match-panel;
35+
36+
panel {
37+
compatible = "vivo,pd1304-panel", "lk2nd,panel";
38+
39+
qcom,mdss_dsi_nt35510s_fwvga_video{
40+
compatible = "mdss,nt35510s-video";
41+
touchscreen-compatible = "edt,edt-ft5306";
42+
};
43+
44+
qcom,mdss_dsi_nt35510s_fwvga_cmd {
45+
compatible = "mdss,nt35510s";
46+
touchscreen-compatible = "edt,edt-ft5306";
47+
};
48+
};
49+
50+
regulator-backlight {
51+
compatible = "regulator-fixed";
52+
gpios = <&tlmm 8 GPIO_ACTIVE_HIGH>;
53+
};
54+
};
55+
56+
vivo-pd1403{
57+
model = "Vivo Y28L / Y628 / Y928";
58+
compatible = "vivo,pd1403";
59+
60+
/*
61+
* Build lk1st for pd1403:
62+
* make TOOLCHAIN_PREFIX=arm-none-eabi- lk1st-msm8916 \
63+
* LK2ND_DISPLAY=hx8389b_qhd_video \
64+
* LK2ND_BUNDLE_DTB=msm8916-vivo-cdp-1.dtb \
65+
* LK2ND_COMPATIBLE=vivo,pd1403
66+
*/
67+
68+
lk2nd,dtb-files = "msm8916-vivo-pd1403";
69+
lk2nd,match-panel;
70+
71+
panel {
72+
compatible = "vivo,pd1403-panel", "lk2nd,panel";
73+
74+
qcom,mdss_dsi_hx8389b_qhd_video {
75+
compatible = "mdss,hx8389b";
76+
};
77+
};
78+
79+
regulator-backlight {
80+
compatible = "regulator-fixed";
81+
gpios = <&tlmm 8 GPIO_ACTIVE_HIGH>;
82+
};
83+
};
84+
85+
vivo-pd1410 {
86+
model = "Vivo Y27L / Y627 / Y927";
87+
compatible = "vivo,pd1410";
88+
89+
/*
90+
* Build lk1st for pd1410:
91+
* make TOOLCHAIN_PREFIX=arm-none-eabi- lk1st-msm8916 \
92+
* LK2ND_DISPLAY=hx8394a_720p_video \
93+
* LK2ND_BUNDLE_DTB=msm8916-vivo-cdp-1.dtb \
94+
* LK2ND_COMPATIBLE=vivo,pd1410
95+
*/
96+
97+
lk2nd,dtb-files = "msm8916-vivo-pd1410";
98+
lk2nd,match-panel;
99+
100+
panel {
101+
compatible = "vivo,pd1410-panel", "lk2nd,panel";
102+
103+
qcom,mdss_dsi_hx8394a_720p_video {
104+
compatible = "vivo,hx8394a-720p";
105+
};
106+
};
107+
108+
regulator-lcd-enp {
109+
compatible = "regulator-fixed";
110+
gpios = <&tlmm 97 GPIO_ACTIVE_HIGH>;
111+
};
112+
113+
regulator-lcd-enn {
114+
compatible = "regulator-fixed";
115+
gpios = <&tlmm 98 GPIO_ACTIVE_HIGH>;
116+
};
117+
118+
regulator-backlight {
119+
compatible = "regulator-fixed";
120+
gpios = <&tlmm 8 GPIO_ACTIVE_HIGH>;
121+
};
122+
};
123+
124+
vivo-pd1419 {
125+
model = "Vivo Y23L / Y623 / Y923";
126+
compatible = "vivo,pd1419";
127+
128+
/*
129+
* This device has two panels: nt35510s_fwvga_cmd or orise8012a_fwvga_cmd.
130+
* Replace LK2ND_DISPLAY according to the panel.
131+
*
132+
* Build lk1st for pd1419:
133+
* make TOOLCHAIN_PREFIX=arm-none-eabi- lk1st-msm8916 \
134+
* LK2ND_DISPLAY=nt35510s_fwvga_cmd \
135+
* LK2ND_BUNDLE_DTB=msm8916-vivo-cdp-1.dtb \
136+
* LK2ND_COMPATIBLE=vivo,pd1419
137+
*/
138+
139+
lk2nd,dtb-files = "msm8916-vivo-pd1419";
140+
lk2nd,match-panel;
141+
142+
panel {
143+
compatible = "vivo,pd1419-panel", "lk2nd,panel";
144+
145+
qcom,mdss_dsi_nt35510s_fwvga_cmd {
146+
compatible = "mdss,nt35510s";
147+
touchscreen-compatible = "goodix,gt928";
148+
};
149+
150+
qcom,mdss_dsi_orise8012a_fwvga_cmd {
151+
compatible = "mdss,orise8012a";
152+
touchscreen-compatible = "goodix,gt928";
153+
};
154+
};
155+
156+
regulator-backlight {
157+
compatible = "regulator-fixed";
158+
gpios = <&tlmm 8 GPIO_ACTIVE_HIGH>;
159+
};
160+
};
161+
};

lk2nd/device/dts/msm8916/msm8916-vivo-pd1304.dts

Lines changed: 0 additions & 51 deletions
This file was deleted.

lk2nd/device/dts/msm8916/rules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ QCDTBS += \
3232
$(LOCAL_DIR)/msm8916-qrd-skui.dtb \
3333
$(LOCAL_DIR)/msm8916-qrd-skut1.dtb \
3434
$(LOCAL_DIR)/msm8916-samsung.dtb \
35-
$(LOCAL_DIR)/msm8916-vivo-pd1304.dtb \
35+
$(LOCAL_DIR)/msm8916-vivo-cdp-1.dtb \
3636
$(LOCAL_DIR)/msm8916-vivo-pd1505.dtb \
3737
$(LOCAL_DIR)/msm8916-vivo-pd1505f.dtb \
3838
$(LOCAL_DIR)/msm8916-vivo-pd1510.dtb \

0 commit comments

Comments
 (0)