1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * sc7280 Qcard device tree source
5 * Qcard PCB has the processor, RAM, eMMC (if stuffed), and eDP connector (if
6 * stuffed) on it. This device tree tries to encapsulate all the things that
7 * all boards using Qcard will have in common. Given that there are stuffing
8 * options, some things may be left with status "disabled" and enabled in
9 * the actual board device tree files.
11 * Copyright 2022 Google LLC.
14 #include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h>
15 #include <dt-bindings/iio/qcom,spmi-adc7-pmr735a.h>
16 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
17 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
19 #include "sc7280.dtsi"
21 /* PMICs depend on spmi_bus label and so must come after SoC */
22 #include "pm7325.dtsi"
23 #include "pm8350c.dtsi"
24 #include "pmk8350.dtsi"
28 bluetooth0 = &bluetooth;
34 wcd9385: audio-codec-1 {
35 compatible = "qcom,wcd9385-codec";
36 pinctrl-names = "default", "sleep";
37 pinctrl-0 = <&wcd_reset_n>, <&us_euro_hs_sel>;
38 pinctrl-1 = <&wcd_reset_n_sleep>, <&us_euro_hs_sel>;
40 reset-gpios = <&tlmm 83 GPIO_ACTIVE_LOW>;
41 us-euro-gpios = <&tlmm 81 GPIO_ACTIVE_HIGH>;
43 qcom,rx-device = <&wcd_rx>;
44 qcom,tx-device = <&wcd_tx>;
46 vdd-rxtx-supply = <&vreg_l18b_1p8>;
47 vdd-io-supply = <&vreg_l18b_1p8>;
48 vdd-buck-supply = <&vreg_l17b_1p8>;
49 vdd-mic-bias-supply = <&vreg_bob>;
51 qcom,micbias1-microvolt = <1800000>;
52 qcom,micbias2-microvolt = <1800000>;
53 qcom,micbias3-microvolt = <1800000>;
54 qcom,micbias4-microvolt = <1800000>;
56 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000
57 500000 500000 500000>;
58 qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
59 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
60 #sound-dai-cells = <1>;
65 pm8350c_pwm_backlight: backlight {
66 compatible = "pwm-backlight";
69 enable-gpios = <&pm8350c_gpios 7 GPIO_ACTIVE_HIGH>;
70 pinctrl-names = "default";
71 pinctrl-0 = <&pmic_edp_bl_en>;
72 pwms = <&pm8350c_pwm 3 65535>;
78 * Regulators are given labels corresponding to the various names
79 * they are referred to on schematics. They are also given labels
80 * corresponding to named voltage inputs on the SoC or components
81 * bundled with the SoC (like radio companion chips). We totally
82 * ignore it when one regulator is the input to another regulator.
83 * That's handled automatically by the initial config given to
84 * RPMH by the firmware.
86 * Regulators that the HLOS (High Level OS) doesn't touch at all
87 * are left out of here since they are managed elsewhere.
91 compatible = "qcom,pm7325-rpmh-regulators";
96 vreg_s1b_1p856: smps1 {
97 regulator-min-microvolt = <1856000>;
98 regulator-max-microvolt = <2040000>;
105 vreg_s7b_0p952: smps7 {
106 regulator-min-microvolt = <535000>;
107 regulator-max-microvolt = <1120000>;
112 vreg_s8b_1p256: smps8 {
113 regulator-min-microvolt = <1256000>;
114 regulator-max-microvolt = <1500000>;
117 vdd_a_usbssdp_0_core:
118 vreg_l1b_0p912: ldo1 {
119 regulator-min-microvolt = <825000>;
120 regulator-max-microvolt = <925000>;
121 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
125 vreg_l2b_3p072: ldo2 {
126 regulator-min-microvolt = <2700000>;
127 regulator-max-microvolt = <3544000>;
128 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
143 regulator-min-microvolt = <1140000>;
144 regulator-max-microvolt = <1260000>;
145 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
149 * Despite the fact that this is named to be 2.5V on the
150 * schematic, it powers eMMC which doesn't accept 2.5V
153 regulator-min-microvolt = <2960000>;
154 regulator-max-microvolt = <2960000>;
155 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
158 vreg_l17b_1p8: ldo17 {
159 regulator-min-microvolt = <1700000>;
160 regulator-max-microvolt = <1900000>;
161 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
169 vreg_l18b_1p8: ldo18 {
170 regulator-min-microvolt = <1800000>;
171 regulator-max-microvolt = <2000000>;
172 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
184 vreg_l19b_1p8: ldo19 {
185 regulator-min-microvolt = <1800000>;
186 regulator-max-microvolt = <1800000>;
187 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
192 compatible = "qcom,pm8350c-rpmh-regulators";
203 vreg_s1c_2p2: smps1 {
204 regulator-min-microvolt = <2190000>;
205 regulator-max-microvolt = <2210000>;
209 vreg_s9c_0p676: smps9 {
210 regulator-min-microvolt = <1010000>;
211 regulator-max-microvolt = <1170000>;
216 vdda_turing_q6_cs_1p8:
222 regulator-min-microvolt = <1800000>;
223 regulator-max-microvolt = <1980000>;
224 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
228 regulator-min-microvolt = <1620000>;
229 regulator-max-microvolt = <1980000>;
230 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
234 regulator-min-microvolt = <2800000>;
235 regulator-max-microvolt = <3540000>;
236 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
240 vreg_l4c_1p8_3p0: ldo4 {
241 regulator-min-microvolt = <1620000>;
242 regulator-max-microvolt = <3300000>;
243 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
247 vreg_l5c_1p8_3p0: ldo5 {
248 regulator-min-microvolt = <1620000>;
249 regulator-max-microvolt = <3300000>;
250 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
254 vreg_l6c_2p96: ldo6 {
255 regulator-min-microvolt = <1800000>;
256 regulator-max-microvolt = <2950000>;
257 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
261 regulator-min-microvolt = <3000000>;
262 regulator-max-microvolt = <3544000>;
263 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
267 regulator-min-microvolt = <1620000>;
268 regulator-max-microvolt = <2000000>;
269 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
272 vreg_l9c_2p96: ldo9 {
273 regulator-min-microvolt = <2960000>;
274 regulator-max-microvolt = <2960000>;
275 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
288 vdd_a_qlink_0_0p9_ck:
290 vdd_a_qlink_1_0p9_ck:
295 vdd_a_qrefs_0p875_4_5:
302 vreg_l10c_0p88: ldo10 {
303 regulator-min-microvolt = <720000>;
304 regulator-max-microvolt = <1050000>;
305 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
308 vreg_l11c_2p8: ldo11 {
309 regulator-min-microvolt = <2800000>;
310 regulator-max-microvolt = <3544000>;
311 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
314 vreg_l12c_1p8: ldo12 {
315 regulator-min-microvolt = <1650000>;
316 regulator-max-microvolt = <2000000>;
317 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
320 vreg_l13c_3p0: ldo13 {
321 regulator-min-microvolt = <2700000>;
322 regulator-max-microvolt = <3544000>;
323 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
330 regulator-min-microvolt = <3008000>;
331 regulator-max-microvolt = <3960000>;
332 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
337 /* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */
345 vdd-micb-supply = <&vreg_bob>;
348 /* NOTE: Not all Qcards have eDP connector stuffed */
352 compatible = "edp-panel";
354 backlight = <&pm8350c_pwm_backlight>;
357 #address-cells = <1>;
361 edp_panel_in: endpoint {
362 remote-endpoint = <&mdss_edp_out>;
371 remote-endpoint = <&edp_panel_in>;
375 vdda-pll-supply = <&vdd_a_edp_0_0p9>;
376 vdda-phy-supply = <&vdd_a_edp_0_1p2>;
380 vdda-phy-supply = <&vreg_l10c_0p88>;
381 vdda-pll-supply = <&vreg_l6b_1p2>;
385 pinctrl-names = "default";
386 pinctrl-0 = <&pmic_edp_bl_pwm>;
391 reg = <PMK8350_ADC7_DIE_TEMP>;
392 label = "pmk8350_die_temp";
393 qcom,pre-scaling = <1 1>;
396 pmr735a-die-temp@403 {
397 reg = <PMR735A_ADC7_DIE_TEMP>;
398 label = "pmr735a_die_temp";
399 qcom,pre-scaling = <1 1>;
404 vcc-supply = <&vdd_qfprom>;
407 /* For eMMC. NOTE: not all Qcards have eMMC stuffed */
409 vmmc-supply = <&vreg_l7b_2p5>;
410 vqmmc-supply = <&vreg_l19b_1p8>;
419 compatible = "sdw20217010d00";
421 qcom,rx-port-mapping = <1 2 3 4 5>;
427 compatible = "sdw20217010d00";
429 qcom,tx-port-mapping = <1 2 3 4>;
434 compatible = "qcom,geni-debug-uart";
438 mos_bt_uart: &uart7 {
441 /delete-property/ interrupts;
442 interrupts-extended = <&intc GIC_SPI 608 IRQ_TYPE_LEVEL_HIGH>,
443 <&tlmm 31 IRQ_TYPE_EDGE_FALLING>;
444 pinctrl-names = "default", "sleep";
445 pinctrl-1 = <&qup_uart7_sleep_cts>, <&qup_uart7_sleep_rts>, <&qup_uart7_sleep_tx>, <&qup_uart7_sleep_rx>;
447 bluetooth: bluetooth {
448 compatible = "qcom,wcn6750-bt";
449 pinctrl-names = "default";
450 pinctrl-0 = <&mos_bt_en>;
451 enable-gpios = <&tlmm 85 GPIO_ACTIVE_HIGH>;
452 swctrl-gpios = <&tlmm 86 GPIO_ACTIVE_HIGH>;
453 vddaon-supply = <&vreg_s7b_0p952>;
454 vddbtcxmx-supply = <&vreg_s7b_0p952>;
455 vddrfacmn-supply = <&vreg_s7b_0p952>;
456 vddrfa0p8-supply = <&vreg_s7b_0p952>;
457 vddrfa1p7-supply = <&vdd19_pmu_rfa_i>;
458 vddrfa1p2-supply = <&vdd13_pmu_rfa_i>;
459 vddrfa2p2-supply = <&vreg_s1c_2p2>;
460 vddasd-supply = <&vreg_l11c_2p8>;
461 vddio-supply = <&vreg_l18b_1p8>;
462 max-speed = <3200000>;
467 vdda-pll-supply = <&vdd_a_usbhs_core>;
468 vdda33-supply = <&vdd_a_usbhs_3p1>;
469 vdda18-supply = <&vdd_a_usbhs_1p8>;
473 vdda-phy-supply = <&vdd_a_usbssdp_0_1p2>;
474 vdda-pll-supply = <&vdd_a_usbssdp_0_core>;
478 vdda-pll-supply = <&vdd_a_usbhs_core>;
479 vdda33-supply = <&vdd_a_usbhs_3p1>;
480 vdda18-supply = <&vdd_a_usbhs_1p8>;
484 * PINCTRL - ADDITIONS TO NODES IN PARENT DEVICE TREE FILES
486 * NOTE: In general if pins leave the Qcard then the pinctrl goes in the
487 * baseboard or board device tree, not here.
490 /* No external pull for eDP HPD, so set the internal one. */
498 * Technically this i2c bus actually leaves the Qcard, but it leaves directly
499 * via the eDP connector (it doesn't hit the baseboard). The external pulls
502 &qup_i2c13_data_clk {
503 /* Has external pull */
505 drive-strength = <2>;
508 /* For mos_bt_uart */
511 * Configure a bias-bus-hold on CTS to lower power
512 * usage when Bluetooth is turned off. Bus hold will
513 * maintain a low power state regardless of whether
514 * the Bluetooth module drives the pin in either
515 * direction or leaves the pin fully unpowered.
520 /* For mos_bt_uart */
522 /* We'll drive RTS, so no pull */
524 drive-strength = <2>;
527 /* For mos_bt_uart */
529 /* We'll drive TX, so no pull */
531 drive-strength = <2>;
534 /* For mos_bt_uart */
537 * Configure a pull-up on RX. This is needed to avoid
538 * garbage data when the TX pin of the Bluetooth module is
539 * in tri-state (module powered off or not driving the
545 /* eMMC, if stuffed, is straight on the Qcard */
548 drive-strength = <16>;
553 drive-strength = <10>;
558 drive-strength = <10>;
568 * This has entries that are defined by Qcard even if they go to the main
569 * board. In cases where the pulls may be board dependent we defer those
570 * settings to the board device tree. Drive strengths tend to be assinged here
571 * but could conceivably be overwridden by board device trees.
575 pmic_edp_bl_en: pmic-edp-bl-en-state {
579 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
581 /* Force backlight to be disabled to match state at boot. */
585 pmic_edp_bl_pwm: pmic-edp-bl-pwm-state {
589 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
596 mos_bt_en: mos-bt-en-pins {
599 drive-strength = <2>;
603 /* For mos_bt_uart */
604 qup_uart7_sleep_cts: qup-uart7-sleep-cts-pins {
608 * Configure a bias-bus-hold on CTS to lower power
609 * usage when Bluetooth is turned off. Bus hold will
610 * maintain a low power state regardless of whether
611 * the Bluetooth module drives the pin in either
612 * direction or leaves the pin fully unpowered.
617 /* For mos_bt_uart */
618 qup_uart7_sleep_rts: qup-uart7-sleep-rts-pins {
622 * Configure pull-down on RTS. As RTS is active low
623 * signal, pull it low to indicate the BT SoC that it
624 * can wakeup the system anytime from suspend state by
625 * pulling RX low (by sending wakeup bytes).
630 /* For mos_bt_uart */
631 qup_uart7_sleep_rx: qup-uart7-sleep-rx-pins {
635 * Configure a pull-up on RX. This is needed to avoid
636 * garbage data when the TX pin of the Bluetooth module
637 * is floating which may cause spurious wakeups.
642 /* For mos_bt_uart */
643 qup_uart7_sleep_tx: qup-uart7-sleep-tx-pins {
647 * Configure pull-up on TX when it isn't actively driven
648 * to prevent BT SoC from receiving garbage during sleep.
653 ts_int_conn: ts-int-conn-pins {
659 ts_rst_conn: ts-rst-conn-pins {
662 drive-strength = <2>;
665 us_euro_hs_sel: us-euro-hs-sel {
669 drive-strength = <2>;
672 wcd_reset_n: wcd-reset-n {
675 drive-strength = <8>;
678 wcd_reset_n_sleep: wcd-reset-n-sleep {
681 drive-strength = <8>;