forked from msm8916-mainline/linux
-
Notifications
You must be signed in to change notification settings - Fork 58
/
msm8953-xiaomi-daisy.dts
269 lines (218 loc) · 4.98 KB
/
msm8953-xiaomi-daisy.dts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2022, Alejandro Tafalla
*/
/dts-v1/;
#include "msm8953-xiaomi-common.dtsi"
/delete-node/ &adsp_fw_mem;
/delete-node/ &qseecom_mem;
/delete-node/ &wcnss_fw_mem;
/ {
model = "Xiaomi Mi A2 Lite";
compatible = "xiaomi,daisy", "qcom,msm8953";
qcom,board-id = <0x1000b 0x9>;
chosen {
#address-cells = <2>;
#size-cells = <2>;
ranges;
framebuffer@90001000 {
compatible = "simple-framebuffer";
reg = <0 0x90001000 0 (1920 * 2280 * 3)>;
width = <1080>;
height = <2280>;
stride = <(1080 * 3)>;
format = "r8g8b8";
power-domains = <&gcc MDSS_GDSC>;
clocks = <&gcc GCC_MDSS_AHB_CLK>,
<&gcc GCC_MDSS_AXI_CLK>,
<&gcc GCC_MDSS_VSYNC_CLK>,
<&gcc GCC_MDSS_MDP_CLK>,
<&gcc GCC_MDSS_BYTE0_CLK>,
<&gcc GCC_MDSS_PCLK0_CLK>,
<&gcc GCC_MDSS_ESC0_CLK>;
};
};
reserved-memory {
qseecom_mem: qseecom@84a00000 {
reg = <0x0 0x84a00000 0x0 0x1900000>;
no-map;
};
adsp_fw_mem: adsp@8d600000 {
reg = <0x0 0x8d600000 0x0 0x1200000>;
no-map;
};
wcnss_fw_mem: wcnss@8e800000 {
reg = <0x0 0x8e800000 0x0 0x700000>;
no-map;
};
ramoops@9ff00000 {
compatible = "ramoops";
reg = <0x0 0x9ff00000 0x0 0x00100000>;
console-size = <0x100000>;
};
};
/*
* We bitbang on &i2c_4 because BLSP is protected by TZ as sensors are
* normally proxied via ADSP firmware. GPIOs aren't protected.
*/
i2c-sensors {
compatible = "i2c-gpio";
sda-gpios = <&tlmm 14 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
scl-gpios = <&tlmm 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
i2c-gpio,delay-us = <2>; /* ~100 kHz */
#address-cells = <1>;
#size-cells = <0>;
imu@6a {
compatible = "st,lsm6dsl";
reg = <0x6a>;
vdd-supply = <&pm8953_l10>;
vddio-supply = <&pm8953_l6>;
mount-matrix = "-1", "0", "0",
"0", "-1", "0",
"0", "0", "1";
};
};
avdd_cam_front: vreg-cam-front-avdd {
compatible = "regulator-fixed";
regulator-name = "vreg-cam-front-avdd";
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;
gpio = <&tlmm 62 GPIO_ACTIVE_HIGH>;
enable-active-high;
vin-supply = <&pm8953_l22>;
};
};
&camss {
status = "okay";
vdda-supply = <&pm8953_s3>;
ports {
port@2 {
reg = <2>;
csiphy2_ep: endpoint {
clock-lanes = <7>;
data-lanes = <0 1>;
remote-endpoint = <&front_cam_ep>;
};
};
};
};
&cci {
pinctrl-names = "default";
pinctrl-0 = <&cci0_default>,
<&cci1_default>,
<&camss_mclk0_default>,
<&camss_mclk1_default>;
status = "okay";
};
&cci_i2c1 {
camera-sensor@36 { // Front camera
compatible = "ovti,ov5675";
reg = <0x36>;
clocks = <&gcc GCC_CAMSS_MCLK1_CLK>;
pinctrl-0 = <&cam_sensor_front_default>;
pinctrl-names = "default";
reset-gpios = <&tlmm 129 GPIO_ACTIVE_LOW>;
avdd-supply= <&avdd_cam_front>;
dvdd-supply = <&pm8953_l23>;
dovdd-supply = <&pm8953_l6>;
rotation = <270>;
orientation = <0>;
status = "okay";
port {
front_cam_ep: endpoint {
data-lanes = <0 1>;
remote-endpoint = <&csiphy2_ep>;
link-frequencies = /bits/ 64 <450000000>;
};
};
};
};
&max98927_codec {
status = "okay";
reset-gpios = <&tlmm 89 GPIO_ACTIVE_LOW>;
};
&ft5406_ts {
status = "disabled";
touchscreen-size-x = <1080>;
touchscreen-size-y = <2280>;
};
>917d_ts {
status = "disabled";
touchscreen-size-x = <1080>;
touchscreen-size-y = <2280>;
};
&panel {
compatible = "xiaomi,daisy-panel";
};
&pm8953_l23 {
regulator-min-microvolt = <1200000>;
};
&battery {
charge-full-design-microamp-hours = <4000000>;
constant-charge-current-max-microamp = <1000000>;
voltage-min-design-microvolt = <3400000>;
voltage-max-design-microvolt = <4400000>;
};
&sdhc_2 {
cd-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>;
};
&sound_card {
status = "okay";
model = "xiaomi-daisy";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&cdc_pdm_lines_act
&cdc_pdm_lines_2_act
&cdc_pdm_comp_lines_act
&tlmm_pri_act
&tlmm_pri_ws_default>;
pinctrl-1 = <&cdc_pdm_lines_sus
&cdc_pdm_lines_2_sus
&cdc_pdm_comp_lines_sus
&tlmm_pri_sus
&tlmm_pri_ws_default>;
quinary-mi2s-dai-link {
link-name = "Quinary MI2S";
cpu {
sound-dai = <&q6afedai QUINARY_MI2S_RX>;
};
platform {
sound-dai = <&q6routing>;
};
codec {
sound-dai = <&max98927_codec>;
};
};
};
&spi_6 {
status = "okay";
};
&tlmm {
gpio-reserved-ranges = <0 4>, <16 4>, <135 4>;
cam_sensor_front_default: cam_sensor_front_default {
pins = "gpio129";
function = "gpio";
drive-strength = <2>;
bias-disable;
};
tlmm_pri_act: pri-tlmm-pins {
pins = "gpio88", "gpio91", "gpio93";
function = "pri_mi2s";
drive-strength = <8>;
bias-disable;
};
tlmm_pri_sus: pri-tlmm-pins {
pins = "gpio88", "gpio91", "gpio93";
function = "pri_mi2s";
drive-strength = <2>;
bias-pull-down;
};
};
&uart_0 {
pinctrl-names = "default";
pinctrl-0 = <&uart_console_active>;
status = "okay";
};
&wcd_codec {
qcom,mbhc-vthreshold-high = <91 259 488 488 488>;
qcom,mbhc-vthreshold-low = <91 259 488 488 488>;
};