Skip to content

Commit f8c6bca

Browse files
author
William-Practice
committed
lk2nd: Add support for OPPO A33 (ql790)
1 parent 079f1a1 commit f8c6bca

1 file changed

Lines changed: 13 additions & 54 deletions

File tree

Lines changed: 13 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
// SPDX-License-Identifier: BSD-3-Clause
22
/*
3-
* OPPO A33 / A33m (ql790 / t86519a1) Support
3+
* OPPO A33 (ql790) device support
44
*
5-
* Hardware details:
5+
* Hardware:
66
* SoC: Qualcomm MSM8916 (Snapdragon 410)
7-
* RAM: 2GB (A33) / 1GB (A33m)
7+
* RAM: 2GB
88
* Panel: Novatek NT35521H, Dijing 4.7" 720x1280 HD video
9-
* Charger: PM8916 internal (A33) / SMB1360 external (A33m)
10-
* NFC: Yes (A33 only)
9+
* Charger: PM8916 internal
10+
* NFC: Yes
1111
*
12-
* Based on downstream CAF kernel DTS from oppo-a33-master kernel source.
13-
* Board-IDs extracted from ql790/t86519a1 DTS:
14-
* A33: <0x21010b 5>, <0x22010b 5>, <0x23010b 5>, <0x1000b 5>, <0x1000b 0>
15-
* A33m: <0x1010b 7>, <0x1000b 5>, <0x1010b 5>, <0x3010b 5>
12+
* Board-IDs from downstream CAF kernel DTS (oppo-a33-master):
13+
* <0x21010b 5>, <0x22010b 5>, <0x23010b 5>
14+
*
15+
* Note: Some board-ids from the downstream DTS (<0x1000b 5> etc.)
16+
* conflict with msm8916-qrd-skui and have been omitted.
17+
* A33m variant (t86519a1) is not supported here for the same reason.
1618
*/
1719

1820
#include <skeleton64.dtsi>
1921
#include <lk2nd.dtsi>
2022

2123
/ {
2224
qcom,msm-id = <QCOM_ID_MSM8916 0>;
23-
/ OPPO A33 (ql790) board-ids from downstream DTS /
25+
2426
qcom,board-id = <0x21010b 5>,
2527
<0x22010b 5>,
26-
<0x23010b 5>,
27-
<0x1000b 5>,
28-
<0x1000b 0>;
28+
<0x23010b 5>;
2929
};
3030

3131
&lk2nd {
@@ -49,45 +49,4 @@
4949
gpios = <&tlmm 107 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
5050
};
5151
};
52-
};
53-
54-
/* A33m variant — OPPO A33m (t86519a1)
55-
* 1GB RAM, SMB1360 external charger, no NFC, HX8394D panel
56-
*/
57-
&lk2nd {
58-
oppo_a33m: oppo-a33m {
59-
model = "OPPO A33m";
60-
compatible = "oppo,a33m", "oppo,t86519a1";
61-
lk2nd,dtb-files = "msm8916-oppo-a33m";
62-
63-
qcom,board-id = <0x1010b 7>,
64-
<0x1000b 5>,
65-
<0x1010b 5>,
66-
<0x3010b 5>;
67-
68-
panel {
69-
compatible = "oppo,a33m-panel", "lk2nd,panel";
70-
71-
qcom,mdss_dsi_hx8394d_720p_video {
72-
compatible = "oppo,ofilm-hx8394d";
73-
};
74-
qcom,mdss_dsi_hx8394d_720p_video_alt {
75-
compatible = "oppo,txd-hx8394d";
76-
};
77-
};
78-
79-
gpio-keys {
80-
compatible = "gpio-keys";
81-
82-
volume-up {
83-
lk2nd,code = <KEY_VOLUMEUP>;
84-
gpios = <&tlmm 107 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
85-
};
86-
};
87-
88-
regulator-backlight {
89-
compatible = "regulator-fixed";
90-
gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>;
91-
};
92-
};
9352
};

0 commit comments

Comments
 (0)