1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2020, Konrad Dybcio
8 #include "msm8992.dtsi"
10 #include "pmi8994.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/gpio-keys.h>
15 model = "Xiaomi Mi 4C";
16 compatible = "xiaomi,libra", "qcom,msm8992";
17 /* required for bootloader to select correct board */
18 qcom,msm-id = <251 0 252 0>;
19 qcom,pmic-id = <65545 65546 0 0>;
20 qcom,board-id = <12 0>;
22 /* This enables graphical output via bootloader-enabled display */
24 bootargs = "earlycon=tty0 console=tty0";
30 framebuffer0: framebuffer@3404000 {
32 compatible = "simple-framebuffer";
33 reg = <0 0x3404000 0 (1080 * 1920 * 3)>;
36 stride = <(1080 * 3)>;
42 compatible = "gpio-keys";
43 input-name = "gpio-keys";
50 gpios = <&pm8994_gpios 3 GPIO_ACTIVE_LOW>;
51 linux,input-type = <1>;
52 linux,code = <KEY_VOLUMEUP>;
54 debounce-interval = <15>;
63 /* This is for getting crash logs using Android downstream kernels */
65 compatible = "ramoops";
66 reg = <0x0 0xdfc00000 0x0 0x40000>;
67 console-size = <0x10000>;
68 record-size = <0x10000>;
69 ftrace-size = <0x10000>;
70 pmsg-size = <0x20000>;
73 continuous_splash: framebuffer@3401000{
74 reg = <0x0 0x3401000 0x0 0x2200000>;
78 dfps_data_mem: dfps_data_mem@3400000 {
79 reg = <0x0 0x3400000 0x0 0x1000>;
83 peripheral_region: peripheral_region@7400000 {
84 reg = <0x0 0x7400000 0x0 0x1c00000>;
88 modem_region: modem_region@9000000 {
89 reg = <0x0 0x9000000 0x0 0x5a00000>;
93 tzapp: modem_region@ea00000 {
94 reg = <0x0 0xea00000 0x0 0x1900000>;
103 /* Atmel or Synaptics touchscreen */
109 /* Silabs si4705 FM transmitter */
116 * TI USB320 Type-C controller,
117 * Pericom 30216a USB (de)mux switch
124 /* cm36686 proximity and ambient light sensor */
130 /* ST lsm6db0 gyro/accelerometer */
139 compatible = "qcom,rpm-pm8994-regulators";
141 vdd_l1-supply = <&pm8994_s7>;
142 vdd_l2_26_28-supply = <&pm8994_s3>;
143 vdd_l3_11-supply = <&pm8994_s3>;
144 vdd_l4_27_31-supply = <&pm8994_s3>;
145 vdd_l5_7-supply = <&pm8994_s3>;
146 vdd_l6_12_32-supply = <&pm8994_s5>;
147 vdd_l8_16_30-supply = <&vreg_vph_pwr>;
148 vdd_l9_10_18_22-supply = <&vreg_vph_pwr>;
149 vdd_l13_19_23_24-supply = <&vreg_vph_pwr>;
150 vdd_l14_15-supply = <&pm8994_s5>;
151 vdd_l17_29-supply = <&vreg_vph_pwr>;
152 vdd_l20_21-supply = <&vreg_vph_pwr>;
153 vdd_l25-supply = <&pm8994_s5>;
154 vdd_lvs1_2 = <&pm8994_s4>;
167 regulator-min-microvolt = <1300000>;
168 regulator-max-microvolt = <1300000>;
172 regulator-min-microvolt = <1800000>;
173 regulator-max-microvolt = <1800000>;
174 regulator-allow-set-load;
176 regulator-system-load = <325000>;
180 regulator-min-microvolt = <2150000>;
181 regulator-max-microvolt = <2150000>;
185 regulator-min-microvolt = <1000000>;
186 regulator-max-microvolt = <1000000>;
190 regulator-min-microvolt = <1000000>;
191 regulator-max-microvolt = <1000000>;
195 regulator-min-microvolt = <1250000>;
196 regulator-max-microvolt = <1250000>;
200 regulator-min-microvolt = <1200000>;
201 regulator-max-microvolt = <1200000>;
205 regulator-min-microvolt = <1225000>;
206 regulator-max-microvolt = <1225000>;
215 regulator-min-microvolt = <1800000>;
216 regulator-max-microvolt = <1800000>;
225 regulator-min-microvolt = <1800000>;
226 regulator-max-microvolt = <1800000>;
230 regulator-min-microvolt = <1800000>;
231 regulator-max-microvolt = <1800000>;
235 regulator-min-microvolt = <1800000>;
236 regulator-max-microvolt = <1800000>;
240 regulator-min-microvolt = <1200000>;
241 regulator-max-microvolt = <1200000>;
245 regulator-min-microvolt = <1800000>;
246 regulator-max-microvolt = <1800000>;
250 regulator-min-microvolt = <1800000>;
251 regulator-max-microvolt = <2950000>;
255 regulator-min-microvolt = <1800000>;
256 regulator-max-microvolt = <1800000>;
260 regulator-min-microvolt = <1800000>;
261 regulator-max-microvolt = <1800000>;
265 regulator-min-microvolt = <2700000>;
266 regulator-max-microvolt = <2700000>;
270 regulator-min-microvolt = <2700000>;
271 regulator-max-microvolt = <2700000>;
275 regulator-min-microvolt = <2850000>;
276 regulator-max-microvolt = <2850000>;
281 regulator-min-microvolt = <2800000>;
282 regulator-max-microvolt = <2800000>;
286 regulator-min-microvolt = <2950000>;
287 regulator-max-microvolt = <2950000>;
290 regulator-allow-set-load;
291 regulator-system-load = <570000>;
295 regulator-min-microvolt = <2950000>;
296 regulator-max-microvolt = <2950000>;
301 regulator-min-microvolt = <3000000>;
302 regulator-max-microvolt = <3000000>;
306 regulator-min-microvolt = <2800000>;
307 regulator-max-microvolt = <2800000>;
311 regulator-min-microvolt = <3075000>;
312 regulator-max-microvolt = <3150000>;
316 regulator-min-microvolt = <1000000>;
317 regulator-max-microvolt = <1000000>;
321 regulator-min-microvolt = <987500>;
322 regulator-max-microvolt = <987500>;
327 regulator-min-microvolt = <1050000>;
328 regulator-max-microvolt = <1050000>;
332 regulator-min-microvolt = <1000000>;
333 regulator-max-microvolt = <1000000>;
337 regulator-min-microvolt = <2800000>;
338 regulator-max-microvolt = <2800000>;
342 regulator-min-microvolt = <1800000>;
343 regulator-max-microvolt = <1800000>;
347 regulator-min-microvolt = <1262500>;
348 regulator-max-microvolt = <1262500>;
352 regulator-min-microvolt = <1800000>;
353 regulator-max-microvolt = <1800000>;
362 vmmc-supply = <&pm8994_l20>;
363 vqmmc-supply = <&pm8994_s4>;