1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2021, AngeloGioacchino Del Regno
4 * <angelogioacchino.delregno@somainline.org>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
12 #include "msm8998.dtsi"
13 #include "pm8005.dtsi"
14 #include "pm8998.dtsi"
15 #include "pmi8998.dtsi"
18 model = "F(x)tec Pro1 (QX1000)";
19 compatible = "fxtec,pro1", "qcom,msm8998";
20 chassis-type = "handset";
21 qcom,board-id = <0x02000b 0x10>;
24 serial0 = &blsp2_uart1;
25 serial1 = &blsp1_uart3;
29 * Until we hook up type-c detection, we
30 * have to stick with this. But it works.
32 extcon_usb: extcon-usb {
33 compatible = "linux,extcon-usb-gpio";
34 id-gpio = <&tlmm 38 GPIO_ACTIVE_HIGH>;
38 compatible = "gpio-keys";
39 label = "Hall sensors";
40 pinctrl-names = "default";
41 pinctrl-0 = <&hall_sensor1_default>;
44 label = "Keyboard Hall Sensor";
45 gpios = <&tlmm 124 GPIO_ACTIVE_HIGH>;
46 debounce-interval = <15>;
48 linux,input-type = <EV_SW>;
49 linux,code = <SW_KEYPAD_SLIDE>;
54 compatible = "gpio-keys";
55 label = "Keyboard extra keys";
56 pinctrl-names = "default";
57 pinctrl-0 = <&gpio_kb_pins_extra>;
61 gpios = <&tlmm 21 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_HOMEPAGE>;
63 debounce-interval = <15>;
69 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_FN>;
71 debounce-interval = <15>;
76 label = "Super Right";
77 gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_FN>;
79 debounce-interval = <15>;
85 gpios = <&tlmm 114 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_RIGHTSHIFT>;
87 debounce-interval = <15>;
93 gpios = <&tlmm 128 GPIO_ACTIVE_LOW>;
94 linux,code = <KEY_LEFTCTRL>;
95 debounce-interval = <15>;
101 gpios = <&tlmm 129 GPIO_ACTIVE_LOW>;
102 linux,code = <KEY_LEFTALT>;
103 debounce-interval = <15>;
109 compatible = "gpio-keys";
110 label = "Side buttons";
111 pinctrl-names = "default";
112 pinctrl-0 = <&vol_up_pin_a>, <&cam_focus_pin_a>,
113 <&cam_snapshot_pin_a>;
116 gpios = <&pm8998_gpio 6 GPIO_ACTIVE_LOW>;
117 linux,input-type = <EV_KEY>;
118 linux,code = <KEY_VOLUMEUP>;
120 debounce-interval = <15>;
123 button-camera-snapshot {
124 label = "Camera Snapshot";
125 gpios = <&pm8998_gpio 7 GPIO_ACTIVE_LOW>;
126 linux,input-type = <EV_KEY>;
127 linux,code = <KEY_CAMERA>;
128 debounce-interval = <15>;
131 button-camera-focus {
132 label = "Camera Focus";
133 gpios = <&pm8998_gpio 8 GPIO_ACTIVE_LOW>;
134 linux,input-type = <EV_KEY>;
135 linux,code = <KEY_CAMERA_FOCUS>;
136 debounce-interval = <15>;
141 compatible = "gpio-leds";
144 color = <LED_COLOR_ID_WHITE>;
145 default-state = "off";
146 function = LED_FUNCTION_KBD_BACKLIGHT;
147 gpios = <&tlmm 16 GPIO_ACTIVE_HIGH>;
148 label = "white:kbd_backlight";
149 retain-state-suspended;
153 color = <LED_COLOR_ID_YELLOW>;
154 default-state = "off";
155 function = LED_FUNCTION_CAPSLOCK;
156 gpios = <&tlmm 26 GPIO_ACTIVE_HIGH>;
157 label = "yellow:capslock";
158 linux,default-trigger = "kbd-capslock";
163 cont_splash_mem: memory@9d400000 {
164 reg = <0x0 0x9d400000 0x0 0x2000000>;
168 zap_shader_region: memory@f6400000 {
169 compatible = "shared-dma-pool";
170 reg = <0x0 0xf6400000 0x0 0x2000>;
175 compatible = "ramoops";
176 reg = <0x0 0xffc00000 0x0 0x100000>;
177 console-size = <0x60000>;
179 ftrace-size = <0x10000>;
180 pmsg-size = <0x20000>;
181 record-size = <0x10000>;
185 ts_vio_vreg: ts-vio-vreg {
186 compatible = "regulator-fixed";
187 regulator-name = "ts_vio_reg";
188 startup-delay-us = <2>;
190 gpio = <&tlmm 81 GPIO_ACTIVE_HIGH>;
191 pinctrl-names = "default";
192 pinctrl-0 = <&ts_vio_default>;
196 vph_pwr: vph-pwr-regulator {
197 compatible = "regulator-fixed";
198 regulator-name = "vph_pwr";
208 compatible = "qcom,wcn3990-bt";
210 vddio-supply = <&vreg_s4a_1p8>;
211 vddxo-supply = <&vreg_l7a_1p8>;
212 vddrf-supply = <&vreg_l17a_1p3>;
213 vddch0-supply = <&vreg_l25a_3p3>;
214 max-speed = <3200000>;
220 /delete-property/ bias-disable;
222 * Configure a pull-up on 45 (RX). This is needed to
223 * avoid garbage data when the TX pin of the Bluetooth
224 * module is in tri-state (module powered off or not
225 * driving the signal yet).
231 /delete-property/ bias-disable;
233 * Configure a pull-down on 47 (CTS) to match the pull
234 * of the Bluetooth module.
248 compatible = "goodix,gt9286";
250 interrupt-parent = <&tlmm>;
251 interrupts = <125 IRQ_TYPE_LEVEL_LOW>;
252 reset-gpios = <&tlmm 89 GPIO_ACTIVE_HIGH>;
253 AVDD28-supply = <&vreg_l28_3p0>;
254 VDDIO-supply = <&ts_vio_vreg>;
255 pinctrl-names = "active";
256 pinctrl-0 = <&ts_rst_n>, <&ts_int_n>;
313 // FIXME: Figure out why clock late_initcall crashes the board with
319 // FIXME: Figure out why clock late_initcall crashes the board with
333 vdd_s1-supply = <&vph_pwr>;
335 pm8005_s1: s1 { /* VDD_GFX supply */
336 regulator-min-microvolt = <524000>;
337 regulator-max-microvolt = <1100000>;
338 regulator-enable-ramp-delay = <500>;
340 /* Hack until we rig up the gpu consumer */
346 vol_up_pin_a: vol-up-active-state {
351 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
354 cam_focus_pin_a: cam-focus-btn-active-state {
359 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
362 cam_snapshot_pin_a: cam-snapshot-btn-active-state {
367 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
373 compatible = "qcom,pm8941-resin";
374 interrupts = <GIC_SPI 0x8 1 IRQ_TYPE_EDGE_BOTH>;
377 linux,code = <KEY_VOLUMEDOWN>;
384 vdda-pll-supply = <&vreg_l12a_1p8>;
385 vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
394 compatible = "qcom,rpm-pm8998-regulators";
396 vdd_s1-supply = <&vph_pwr>;
397 vdd_s2-supply = <&vph_pwr>;
398 vdd_s3-supply = <&vph_pwr>;
399 vdd_s4-supply = <&vph_pwr>;
400 vdd_s5-supply = <&vph_pwr>;
401 vdd_s6-supply = <&vph_pwr>;
402 vdd_s7-supply = <&vph_pwr>;
403 vdd_s8-supply = <&vph_pwr>;
404 vdd_s9-supply = <&vph_pwr>;
405 vdd_s10-supply = <&vph_pwr>;
406 vdd_s11-supply = <&vph_pwr>;
407 vdd_s12-supply = <&vph_pwr>;
408 vdd_s13-supply = <&vph_pwr>;
409 vdd_l1_l27-supply = <&vreg_s7a_1p025>;
410 vdd_l2_l8_l17-supply = <&vreg_s3a_1p35>;
411 vdd_l3_l11-supply = <&vreg_s7a_1p025>;
412 vdd_l4_l5-supply = <&vreg_s7a_1p025>;
413 vdd_l6-supply = <&vreg_s5a_2p04>;
414 vdd_l7_l12_l14_l15-supply = <&vreg_s5a_2p04>;
415 vdd_l9-supply = <&vreg_bob>;
416 vdd_l10_l23_l25-supply = <&vreg_bob>;
417 vdd_l13_l19_l21-supply = <&vreg_bob>;
418 vdd_l16_l28-supply = <&vreg_bob>;
419 vdd_l18_l22-supply = <&vreg_bob>;
420 vdd_l20_l24-supply = <&vreg_bob>;
421 vdd_l26-supply = <&vreg_s3a_1p35>;
422 vdd_lvs1_lvs2-supply = <&vreg_s4a_1p8>;
425 regulator-min-microvolt = <1352000>;
426 regulator-max-microvolt = <1352000>;
430 regulator-min-microvolt = <1800000>;
431 regulator-max-microvolt = <1800000>;
432 regulator-allow-set-load;
436 regulator-min-microvolt = <1904000>;
437 regulator-max-microvolt = <2040000>;
441 regulator-min-microvolt = <900000>;
442 regulator-max-microvolt = <1028000>;
446 regulator-min-microvolt = <880000>;
447 regulator-max-microvolt = <880000>;
451 regulator-min-microvolt = <1200000>;
452 regulator-max-microvolt = <1200000>;
456 regulator-min-microvolt = <1000000>;
457 regulator-max-microvolt = <1000000>;
461 regulator-min-microvolt = <800000>;
462 regulator-max-microvolt = <800000>;
466 regulator-min-microvolt = <1808000>;
467 regulator-max-microvolt = <1808000>;
471 regulator-min-microvolt = <1800000>;
472 regulator-max-microvolt = <1800000>;
476 regulator-min-microvolt = <1200000>;
477 regulator-max-microvolt = <1200000>;
481 regulator-min-microvolt = <1808000>;
482 regulator-max-microvolt = <2960000>;
486 regulator-min-microvolt = <1808000>;
487 regulator-max-microvolt = <2960000>;
491 regulator-min-microvolt = <1000000>;
492 regulator-max-microvolt = <1000000>;
496 regulator-min-microvolt = <1800000>;
497 regulator-max-microvolt = <1800000>;
500 vreg_l13a_2p95: l13 {
501 regulator-min-microvolt = <1808000>;
502 regulator-max-microvolt = <2960000>;
505 vreg_l14a_1p88: l14 {
506 regulator-min-microvolt = <1880000>;
507 regulator-max-microvolt = <1880000>;
511 regulator-min-microvolt = <1800000>;
512 regulator-max-microvolt = <1800000>;
516 regulator-min-microvolt = <2704000>;
517 regulator-max-microvolt = <2704000>;
521 regulator-min-microvolt = <1304000>;
522 regulator-max-microvolt = <1304000>;
526 regulator-min-microvolt = <2704000>;
527 regulator-max-microvolt = <2704000>;
531 regulator-min-microvolt = <3008000>;
532 regulator-max-microvolt = <3008000>;
535 vreg_l20a_2p95: l20 {
536 regulator-min-microvolt = <2960000>;
537 regulator-max-microvolt = <2960000>;
538 regulator-allow-set-load;
541 vreg_l21a_2p95: l21 {
542 regulator-min-microvolt = <2960000>;
543 regulator-max-microvolt = <2960000>;
544 regulator-system-load = <800000>;
545 regulator-allow-set-load;
548 vreg_l22a_2p85: l22 {
549 regulator-min-microvolt = <2864000>;
550 regulator-max-microvolt = <2864000>;
554 regulator-min-microvolt = <3312000>;
555 regulator-max-microvolt = <3312000>;
558 vreg_l24a_3p075: l24 {
559 regulator-min-microvolt = <3088000>;
560 regulator-max-microvolt = <3088000>;
564 regulator-min-microvolt = <3104000>;
565 regulator-max-microvolt = <3312000>;
569 regulator-min-microvolt = <1200000>;
570 regulator-max-microvolt = <1200000>;
571 regulator-allow-set-load;
575 regulator-min-microvolt = <3008000>;
576 regulator-max-microvolt = <3008000>;
579 vreg_lvs1a_1p8: lvs1 {
580 regulator-min-microvolt = <1800000>;
581 regulator-max-microvolt = <1800000>;
584 vreg_lvs2a_1p8: lvs2 {
585 regulator-min-microvolt = <1800000>;
586 regulator-max-microvolt = <1800000>;
592 compatible = "qcom,rpm-pmi8998-regulators";
594 vdd_bob-supply = <&vph_pwr>;
597 regulator-min-microvolt = <3312000>;
598 regulator-max-microvolt = <3600000>;
616 gpio-reserved-ranges = <0 4>;
618 mdp_vsync_n: mdp-vsync-n {
620 function = "mdp_vsync_a";
622 drive-strength = <2>;
625 gpio_kb_pins_extra: gpio-kb-pins-extra {
626 pins = "gpio21", "gpio32", "gpio33", "gpio114",
627 "gpio128", "gpio129";
629 drive-strength = <2>;
633 ts_vio_default: ts-vio-def {
637 drive-strength = <2>;
644 drive-strength = <8>;
647 hall_sensor1_default: hall-sensor1-def {
651 drive-strength = <2>;
659 drive-strength = <8>;
665 cd-gpios = <&tlmm 95 GPIO_ACTIVE_LOW>;
667 vmmc-supply = <&vreg_l21a_2p95>;
668 vqmmc-supply = <&vreg_l13a_2p95>;
670 pinctrl-names = "default", "sleep";
671 pinctrl-0 = <&sdc2_on &sdc2_cd>;
672 pinctrl-1 = <&sdc2_off &sdc2_cd>;
681 vcc-supply = <&vreg_l20a_2p95>;
682 vccq-supply = <&vreg_l26a_1p2>;
683 vccq2-supply = <&vreg_s4a_1p8>;
684 vcc-max-microamp = <750000>;
685 vccq-max-microamp = <560000>;
686 vccq2-max-microamp = <750000>;
691 vdda-phy-supply = <&vreg_l1a_0p875>;
692 vdda-pll-supply = <&vreg_l2a_1p2>;
693 vddp-ref-clk-supply = <&vreg_l26a_1p2>;
701 dr_mode = "peripheral";
702 extcon = <&extcon_usb>;
708 vdda-phy-supply = <&vreg_l1a_0p875>;
709 vdda-pll-supply = <&vreg_l2a_1p2>;
712 /* GT9286 analog supply */
714 regulator-min-microvolt = <2800000>;
715 regulator-max-microvolt = <2800000>;
721 vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>;
722 vdd-1.8-xo-supply = <&vreg_l7a_1p8>;
723 vdd-1.3-rfa-supply = <&vreg_l17a_1p3>;
724 vdd-3.3-ch0-supply = <&vreg_l25a_3p3>;