1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2022, Danila Tikhonov <JIaxyga@protonmail.com>
4 * Copyright (c) 2022, Anton Bambura <jenneron@protonmail.com>
8 #include "msm8953.dtsi"
10 #include "pmi8950.dtsi"
11 #include <dt-bindings/leds/common.h>
13 /delete-node/ &adsp_fw_mem;
14 /delete-node/ &qseecom_mem;
15 /delete-node/ &wcnss_fw_mem;
18 model = "Xiaomi Mi A1";
19 compatible = "xiaomi,tissot", "qcom,msm8953";
20 chassis-type = "handset";
21 qcom,msm-id = <293 0>;
22 qcom,board-id = <0x1000b 0x00>;
25 compatible = "gpio-keys";
27 pinctrl-names = "default";
28 pinctrl-0 = <&gpio_key_default>, <&gpio_hall_sensor_default>;
31 label = "Hall Effect Sensor";
32 gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
33 linux,input-type = <EV_SW>;
34 linux,code = <SW_LID>;
40 gpios = <&tlmm 85 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_VOLUMEUP>;
46 qseecom_mem: qseecom@84a00000 {
47 reg = <0x0 0x84a00000 0x0 0x1900000>;
51 adsp_fw_mem: adsp@8d600000 {
52 reg = <0x0 0x8d600000 0x0 0x1200000>;
56 wcnss_fw_mem: wcnss@8e800000 {
57 reg = <0x0 0x8e800000 0x0 0x700000>;
62 compatible = "ramoops";
63 reg = <0x0 0x9ff00000 0x0 0x00100000>;
64 record-size = <0x1000>;
65 console-size = <0x80000>;
66 ftrace-size = <0x1000>;
71 vph_pwr: vph-pwr-regulator {
72 compatible = "regulator-fixed";
73 regulator-name = "vph_pwr";
80 vdd-supply = <&pm8953_l3>;
81 vdda-pll-supply = <&pm8953_l7>;
82 vdda-phy-dpdm-supply = <&pm8953_l13>;
90 max98927_codec: audio-codec@3a {
91 compatible = "maxim,max98927";
94 reset-gpios = <&tlmm 86 GPIO_ACTIVE_LOW>;
99 #sound-dai-cells = <0>;
103 compatible = "awinic,aw2013";
106 vcc-supply = <&pm8953_l10>;
108 #address-cells = <1>;
113 led-max-microamp = <5000>;
114 function = LED_FUNCTION_INDICATOR;
115 color = <LED_COLOR_ID_WHITE>;
124 compatible = "edt,edt-ft5406";
127 interrupt-parent = <&tlmm>;
128 interrupts = <65 IRQ_TYPE_EDGE_FALLING>;
130 pinctrl-names = "default";
131 pinctrl-0 = <&ts_int_default>;
133 reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>;
135 vcc-supply = <&pm8953_l10>;
137 touchscreen-size-x = <1080>;
138 touchscreen-size-y = <1920>;
143 linux,code = <KEY_VOLUMEDOWN>;
148 qcom,num-strings = <2>;
157 compatible = "qcom,rpm-pm8953-regulators";
159 vdd_s1-supply = <&vph_pwr>;
160 vdd_s2-supply = <&vph_pwr>;
161 vdd_s3-supply = <&vph_pwr>;
162 vdd_s4-supply = <&vph_pwr>;
163 vdd_s5-supply = <&vph_pwr>;
164 vdd_s6-supply = <&vph_pwr>;
165 vdd_s7-supply = <&vph_pwr>;
166 vdd_l1-supply = <&pm8953_s3>;
167 vdd_l2_l3-supply = <&pm8953_s3>;
168 vdd_l4_l5_l6_l7_l16_l19-supply = <&pm8953_s4>;
169 vdd_l8_l11_l12_l13_l14_l15-supply = <&vph_pwr>;
170 vdd_l9_l10_l17_l18_l22-supply = <&vph_pwr>;
173 regulator-min-microvolt = <870000>;
174 regulator-max-microvolt = <1156000>;
178 regulator-min-microvolt = <1224000>;
179 regulator-max-microvolt = <1224000>;
183 regulator-min-microvolt = <1900000>;
184 regulator-max-microvolt = <2050000>;
188 regulator-min-microvolt = <1000000>;
189 regulator-max-microvolt = <1000000>;
193 regulator-min-microvolt = <1200000>;
194 regulator-max-microvolt = <1225000>;
198 regulator-min-microvolt = <925000>;
199 regulator-max-microvolt = <925000>;
203 regulator-min-microvolt = <1800000>;
204 regulator-max-microvolt = <1800000>;
208 regulator-min-microvolt = <1800000>;
209 regulator-max-microvolt = <1800000>;
213 regulator-min-microvolt = <1800000>;
214 regulator-max-microvolt = <1900000>;
218 regulator-min-microvolt = <2900000>;
219 regulator-max-microvolt = <2900000>;
223 regulator-min-microvolt = <3300000>;
224 regulator-max-microvolt = <3300000>;
228 regulator-min-microvolt = <2850000>;
229 regulator-max-microvolt = <2850000>;
233 regulator-min-microvolt = <2950000>;
234 regulator-max-microvolt = <2950000>;
238 regulator-min-microvolt = <1800000>;
239 regulator-max-microvolt = <2950000>;
243 regulator-min-microvolt = <3125000>;
244 regulator-max-microvolt = <3125000>;
248 regulator-min-microvolt = <1800000>;
249 regulator-max-microvolt = <1800000>;
253 regulator-min-microvolt = <2750000>;
254 regulator-max-microvolt = <2850000>;
258 regulator-min-microvolt = <1200000>;
259 regulator-max-microvolt = <1350000>;
263 regulator-min-microvolt = <2800000>;
264 regulator-max-microvolt = <2800000>;
268 regulator-min-microvolt = <1200000>;
269 regulator-max-microvolt = <1225000>;
275 vmmc-supply = <&pm8953_l8>;
276 vqmmc-supply = <&pm8953_l5>;
282 vmmc-supply = <&pm8953_l11>;
283 vqmmc-supply = <&pm8953_l12>;
285 cd-gpios = <&tlmm 133 GPIO_ACTIVE_HIGH>;
287 pinctrl-names = "default", "sleep";
288 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
289 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
295 gpio-reserved-ranges = <0 4>, <16 4>, <135 4>;
297 gpio_hall_sensor_default: gpio-hall-sensor-state {
300 drive-strength = <2>;
304 ts_int_default: ts-int-default-state {
307 drive-strength = <2>;
313 pinctrl-names = "default";
314 pinctrl-0 = <&uart_console_active>;
324 dr_mode = "peripheral";