1 // SPDX-License-Identifier: GPL-2.0
2 #include "qcom-msm8974pro.dtsi"
3 #include "qcom-pm8841.dtsi"
4 #include "qcom-pm8941.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
10 compatible = "oneplus,bacon", "qcom,msm8974pro", "qcom,msm8974";
11 chassis-type = "handset";
12 qcom,msm-id = <194 0x10000>;
13 qcom,board-id = <8 0>;
16 serial0 = &blsp1_uart2;
20 stdout-path = "serial0:115200n8";
24 compatible = "gpio-keys";
26 pinctrl-0 = <&gpio_keys_default>, <&gpio_hall_sensor_default>;
27 pinctrl-names = "default";
30 label = "Volume Down";
31 gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_VOLUMEDOWN>;
34 debounce-interval = <15>;
39 gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_VOLUMEUP>;
42 debounce-interval = <15>;
46 label = "Hall Effect Sensor";
47 gpios = <&tlmm 68 GPIO_ACTIVE_LOW>;
48 linux,input-type = <EV_SW>;
49 linux,code = <SW_LID>;
51 debounce-interval = <150>;
60 compatible = "ti,bq27541";
62 power-supplies = <&bq24196_charger>;
70 compatible = "syna,rmi4-i2c";
73 syna,startup-delay-ms = <100>;
75 interrupts-extended = <&tlmm 61 IRQ_TYPE_EDGE_FALLING>;
76 vdd-supply = <&pm8941_l22>;
77 vio-supply = <&pm8941_lvs3>;
79 pinctrl-names = "default";
80 pinctrl-0 = <&touch_default_state>;
87 syna,nosleep-mode = <1>;
92 syna,sensor-type = <1>;
94 * Touchscreen size is 2040x1080, y-values between
95 * 1920-2040 are used for touchkey (menu, home & back).
96 * For now clip it off so we don't get touch events
97 * outside of the display area.
99 syna,clip-y-high = <1920>;
104 compatible = "ti,lm3630a";
107 #address-cells = <1>;
113 label = "lcd-backlight";
114 default-brightness = <80>;
119 compatible = "si-en,sn3193";
122 shutdown-gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
124 #address-cells = <1>;
129 label = "red:status";
130 led-max-microamp = <17500>;
135 label = "green:status";
136 led-max-microamp = <17500>;
141 label = "blue:status";
142 led-max-microamp = <17500>;
150 bq24196_charger: charger@6b {
151 compatible = "ti,bq24196";
153 interrupts-extended = <&tlmm 31 IRQ_TYPE_EDGE_FALLING>;
163 compatible = "qcom,gcc-msm8974pro-ac";
167 qcom,rset-ohms = <800>;
168 qcom,vset-millivolts = <3200>;
174 gpio_keys_default: gpio-keys-active-state {
175 pins = "gpio2", "gpio5";
179 power-source = <PM8941_GPIO_S3>;
188 vddmx-supply = <&pm8841_s1>;
189 vddcx-supply = <&pm8841_s2>;
190 vddpx-supply = <&pm8941_s3>;
192 pinctrl-names = "default";
193 pinctrl-0 = <&wcnss_pin_a>;
198 vddxo-supply = <&pm8941_l6>;
199 vddrfa-supply = <&pm8941_l11>;
200 vddpa-supply = <&pm8941_l19>;
201 vdddig-supply = <&pm8941_s3>;
205 qcom,remote-pid = <4>;
215 cx-supply = <&pm8841_s2>;
222 compatible = "qcom,rpm-pm8841-regulators";
225 regulator-min-microvolt = <675000>;
226 regulator-max-microvolt = <1050000>;
230 regulator-min-microvolt = <875000>;
231 regulator-max-microvolt = <1050000>;
236 regulator-min-microvolt = <1050000>;
237 regulator-max-microvolt = <1050000>;
242 compatible = "qcom,rpm-pm8941-regulators";
244 vdd_l1_l3-supply = <&pm8941_s1>;
245 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
246 vdd_l4_l11-supply = <&pm8941_s1>;
247 vdd_l5_l7-supply = <&pm8941_s2>;
248 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
249 vdd_l8_l16_l18_l19-supply = <&vreg_vph_pwr>;
250 vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
251 vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
252 vdd_l21-supply = <&vreg_boost>;
255 regulator-min-microvolt = <1300000>;
256 regulator-max-microvolt = <1300000>;
263 regulator-min-microvolt = <2150000>;
264 regulator-max-microvolt = <2150000>;
270 regulator-min-microvolt = <1800000>;
271 regulator-max-microvolt = <1800000>;
272 regulator-system-load = <154000>;
276 regulator-allow-set-load;
280 regulator-min-microvolt = <1225000>;
281 regulator-max-microvolt = <1225000>;
288 regulator-min-microvolt = <1200000>;
289 regulator-max-microvolt = <1200000>;
293 regulator-min-microvolt = <1225000>;
294 regulator-max-microvolt = <1225000>;
298 regulator-min-microvolt = <1225000>;
299 regulator-max-microvolt = <1225000>;
303 regulator-min-microvolt = <1800000>;
304 regulator-max-microvolt = <1800000>;
308 regulator-min-microvolt = <1800000>;
309 regulator-max-microvolt = <1800000>;
315 regulator-min-microvolt = <1800000>;
316 regulator-max-microvolt = <1800000>;
322 regulator-min-microvolt = <1800000>;
323 regulator-max-microvolt = <1800000>;
327 regulator-min-microvolt = <1800000>;
328 regulator-max-microvolt = <2950000>;
332 regulator-min-microvolt = <1800000>;
333 regulator-max-microvolt = <2950000>;
337 regulator-min-microvolt = <1225000>;
338 regulator-max-microvolt = <1350000>;
342 regulator-min-microvolt = <1800000>;
343 regulator-max-microvolt = <1800000>;
347 regulator-allow-set-load;
351 regulator-min-microvolt = <1800000>;
352 regulator-max-microvolt = <2950000>;
358 regulator-min-microvolt = <1800000>;
359 regulator-max-microvolt = <1800000>;
363 regulator-min-microvolt = <2050000>;
364 regulator-max-microvolt = <2050000>;
368 regulator-min-microvolt = <2700000>;
369 regulator-max-microvolt = <2700000>;
373 regulator-min-microvolt = <2850000>;
374 regulator-max-microvolt = <2850000>;
378 regulator-min-microvolt = <2850000>;
379 regulator-max-microvolt = <2850000>;
383 regulator-min-microvolt = <2900000>;
384 regulator-max-microvolt = <3350000>;
388 regulator-min-microvolt = <2950000>;
389 regulator-max-microvolt = <2950000>;
391 regulator-system-load = <200000>;
392 regulator-allow-set-load;
397 regulator-min-microvolt = <2950000>;
398 regulator-max-microvolt = <2950000>;
404 regulator-min-microvolt = <3000000>;
405 regulator-max-microvolt = <3000000>;
406 regulator-allow-set-load;
410 regulator-min-microvolt = <3000000>;
411 regulator-max-microvolt = <3000000>;
415 regulator-min-microvolt = <3075000>;
416 regulator-max-microvolt = <3075000>;
421 pm8941_lvs3: lvs3 {};
426 vmmc-supply = <&pm8941_l20>;
427 vqmmc-supply = <&pm8941_s3>;
429 pinctrl-names = "default", "sleep";
430 pinctrl-0 = <&sdc1_on>;
431 pinctrl-1 = <&sdc1_off>;
437 gpio_hall_sensor_default: gpio-hall-sensor-default-state {
440 drive-strength = <8>;
444 sdc1_on: sdc1-on-state {
447 drive-strength = <4>;
452 pins = "sdc1_cmd", "sdc1_data";
453 drive-strength = <4>;
458 touch_default_state: touch-default-state {
462 drive-strength = <2>;
469 drive-strength = <2>;
474 wcnss_pin_a: wcnss-pin-active-state {
476 pins = "gpio36", "gpio37", "gpio38", "gpio39", "gpio40";
478 drive-strength = <6>;
483 pins = "gpio35", "gpio43", "gpio44";
485 drive-strength = <2>;
492 phys = <&usb_hs1_phy>;
493 phy-select = <&tcsr 0xb000 0>;
494 extcon = <&smbb>, <&usb_id>;
495 vbus-supply = <&chg_otg>;
507 v1p8-supply = <&pm8941_l6>;
508 v3p3-supply = <&pm8941_l24>;
511 qcom,init-seq = /bits/ 8 <0x1 0x64>;