1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2021, Martin Botka <martin.botka@somainline.org>
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/gpio-keys.h>
12 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
15 /* required for bootloader to select correct board */
16 qcom,msm-id = <394 0x10000>; /* sm6125 v1 */
17 qcom,board-id = <34 0>;
19 model = "Sony Xperia 10 II";
20 compatible = "sony,pdx201", "qcom,sm6125";
21 chassis-type = "handset";
24 mmc0 = &sdhc_1; /* SDC1 eMMC slot */
25 mmc1 = &sdhc_2; /* SDC2 SD card slot */
33 framebuffer0: framebuffer@5c000000 {
34 compatible = "simple-framebuffer";
35 reg = <0 0x5c000000 0 (2520 * 1080 * 4)>;
38 stride = <(1080 * 4)>;
43 extcon_usb: extcon-usb {
44 compatible = "linux,extcon-usb-gpio";
45 id-gpios = <&tlmm 102 GPIO_ACTIVE_HIGH>;
49 compatible = "gpio-keys";
51 pinctrl-0 = <&vol_down_n>;
52 pinctrl-names = "default";
55 label = "Volume Down";
56 gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_VOLUMEDOWN>;
58 debounce-interval = <15>;
67 debug_mem: memory@ffb00000 {
68 reg = <0x0 0xffb00000 0x0 0xc0000>;
72 last_log_mem: memory@ffbc0000 {
73 reg = <0x0 0xffbc0000 0x0 0x80000>;
77 pstore_mem: ramoops@ffc00000 {
78 compatible = "ramoops";
79 reg = <0x0 0xffc40000 0x0 0xc0000>;
80 record-size = <0x1000>;
81 console-size = <0x40000>;
82 pmsg-size = <0x20000>;
85 cmdline_mem: memory@ffd00000 {
86 reg = <0x0 0xffd40000 0x0 0x1000>;
93 polling-delay-passive = <0>;
95 thermal-sensors = <&pm6125_adc_tm 0>;
99 temperature = <125000>;
107 polling-delay-passive = <0>;
108 polling-delay = <5000>;
109 thermal-sensors = <&pm6125_adc_tm 1>;
113 temperature = <125000>;
121 polling-delay-passive = <0>;
123 thermal-sensors = <&pm6125_adc_tm 2>;
127 temperature = <125000>;
135 polling-delay-passive = <0>;
137 thermal-sensors = <&pm6125_adc_tm 3>;
141 temperature = <125000>;
155 vdd-supply = <&pm6125_l7>;
156 vdda-pll-supply = <&pm6125_l10>;
157 vdda-phy-dpdm-supply = <&pm6125_l15>;
162 clock-frequency = <400000>;
165 /* NXP PN553 NFC @ 28 */
169 clock-frequency = <400000>;
172 /* Samsung touchscreen @ 48 */
176 clock-frequency = <1000000>;
179 /* Cirrus Logic CS35L41 boosted audio amplifier @ 40 */
187 vdda-supply = <&pm6125_l18>;
191 compatible = "samsung,sofef01-m-ams597ut01";
194 reset-gpios = <&tlmm 90 GPIO_ACTIVE_LOW>;
196 vddio-supply = <&pm6125_l12>;
198 pinctrl-0 = <&mdss_dsi_active &mdss_te_active_sleep>;
199 pinctrl-1 = <&mdss_dsi_sleep &mdss_te_active_sleep>;
200 pinctrl-names = "default", "sleep";
204 remote-endpoint = <&mdss_dsi0_out>;
211 remote-endpoint = <&panel_in>;
212 data-lanes = <0 1 2 3>;
220 pinctrl-names = "default";
221 pinctrl-0 = <&camera_flash_therm &emmc_ufs_therm &rf_pa1_therm>;
224 reg = <ADC5_AMUX_THM1_100K_PU>;
226 qcom,hw-settle-time = <200>;
227 qcom,pre-scaling = <1 1>;
228 label = "rf_pa0_therm";
232 reg = <ADC5_AMUX_THM2_100K_PU>;
234 qcom,hw-settle-time = <200>;
235 qcom,pre-scaling = <1 1>;
236 label = "quiet_therm";
240 reg = <ADC5_GPIO1_100K_PU>;
242 qcom,hw-settle-time = <200>;
243 qcom,pre-scaling = <1 1>;
244 label = "camera_flash_therm";
248 reg = <ADC5_GPIO3_100K_PU>;
250 qcom,hw-settle-time = <200>;
251 qcom,pre-scaling = <1 1>;
252 label = "emmc_ufs_therm";
256 reg = <ADC5_GPIO4_100K_PU>;
258 qcom,hw-settle-time = <200>;
259 qcom,pre-scaling = <1 1>;
260 label = "rf_pa1_therm";
269 io-channels = <&pm6125_adc ADC5_AMUX_THM1_100K_PU>;
271 qcom,hw-settle-time-us = <200>;
276 io-channels = <&pm6125_adc ADC5_AMUX_THM2_100K_PU>;
278 qcom,hw-settle-time-us = <200>;
283 io-channels = <&pm6125_adc ADC5_XO_THERM_100K_PU>;
285 qcom,hw-settle-time-us = <200>;
290 io-channels = <&pm6125_adc ADC5_GPIO4_100K_PU>;
292 qcom,hw-settle-time-us = <200>;
297 camera_flash_therm: camera-flash-therm-state {
299 function = PMIC_GPIO_FUNC_NORMAL;
303 emmc_ufs_therm: emmc-ufs-therm-state {
305 function = PMIC_GPIO_FUNC_NORMAL;
309 rf_pa1_therm: rf-pa1-therm-state {
311 function = PMIC_GPIO_FUNC_NORMAL;
322 linux,code = <KEY_VOLUMEUP>;
327 compatible = "qcom,rpm-pm6125-regulators";
329 vdd_l2_l3_l4-supply = <&pm6125_l7>;
330 vdd_l5_l15_l19_l20_l21_l22-supply = <&pm6125_l10>;
334 * S5 is VDD_MX/WCSS_MX
338 regulator-min-microvolt = <936000>;
339 regulator-max-microvolt = <1422000>;
343 regulator-min-microvolt = <1200000>;
344 regulator-max-microvolt = <1256000>;
348 regulator-min-microvolt = <1000000>;
349 regulator-max-microvolt = <1056000>;
353 regulator-min-microvolt = <1000000>;
354 regulator-max-microvolt = <1064000>;
358 regulator-min-microvolt = <872000>;
359 regulator-max-microvolt = <976000>;
363 regulator-min-microvolt = <1648000>;
364 regulator-max-microvolt = <2950000>;
365 regulator-allow-set-load;
369 regulator-min-microvolt = <576000>;
370 regulator-max-microvolt = <656000>;
374 regulator-min-microvolt = <872000>;
375 regulator-max-microvolt = <976000>;
379 regulator-min-microvolt = <400000>;
380 regulator-max-microvolt = <728000>;
384 regulator-min-microvolt = <1800000>;
385 regulator-max-microvolt = <1896000>;
389 regulator-min-microvolt = <1800000>;
390 regulator-max-microvolt = <1896000>;
394 regulator-min-microvolt = <1800000>;
395 regulator-max-microvolt = <1800000>;
396 regulator-allow-set-load;
400 regulator-min-microvolt = <1800000>;
401 regulator-max-microvolt = <1996000>;
405 regulator-min-microvolt = <1800000>;
406 regulator-max-microvolt = <1832000>;
410 regulator-min-microvolt = <1800000>;
411 regulator-max-microvolt = <1904000>;
415 regulator-min-microvolt = <3104000>;
416 regulator-max-microvolt = <3232000>;
420 regulator-min-microvolt = <1800000>;
421 regulator-max-microvolt = <1904000>;
425 regulator-min-microvolt = <1248000>;
426 regulator-max-microvolt = <1304000>;
430 regulator-min-microvolt = <1200000>;
431 regulator-max-microvolt = <1264000>;
435 regulator-min-microvolt = <1648000>;
436 regulator-max-microvolt = <2952000>;
440 regulator-min-microvolt = <1648000>;
441 regulator-max-microvolt = <2952000>;
445 regulator-min-microvolt = <2600000>;
446 regulator-max-microvolt = <2856000>;
450 regulator-min-microvolt = <2944000>;
451 regulator-max-microvolt = <2950000>;
452 regulator-allow-set-load;
456 regulator-min-microvolt = <3000000>;
457 regulator-max-microvolt = <3400000>;
461 regulator-min-microvolt = <2944000>;
462 regulator-max-microvolt = <2950000>;
463 regulator-allow-set-load;
476 drive-strength = <2>;
485 drive-strength = <2>;
491 vmmc-supply = <&pm6125_l24>;
492 vqmmc-supply = <&pm6125_l11>;
497 cd-gpios = <&tlmm 98 GPIO_ACTIVE_HIGH>;
498 vmmc-supply = <&pm6125_l22>;
499 vqmmc-supply = <&pm6125_l5>;
506 gpio-reserved-ranges = <22 2>, <28 6>;
508 vol_down_n: vol-down-n-state {
511 drive-strength = <2>;
515 mdss_te_active_sleep: mdss-te-active-sleep-state {
517 function = "mdp_vsync";
518 drive-strength = <2>;
522 mdss_dsi_active: mdss-dsi-active-state {
525 drive-strength = <8>;
529 mdss_dsi_sleep: mdss-dsi-sleep-state {
532 drive-strength = <2>;
543 extcon = <&extcon_usb>;