1 // SPDX-License-Identifier: BSD-3-Clause
3 * sc7280 IDP board device tree source (common between SKU1 and SKU2)
5 * Copyright (c) 2021, The Linux Foundation. All rights reserved.
8 #include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h>
9 #include <dt-bindings/input/linux-event-codes.h>
10 #include "sc7280.dtsi"
11 #include "pm7325.dtsi"
12 #include "pm8350c.dtsi"
13 #include "pmk8350.dtsi"
15 #include "sc7280-chrome-common.dtsi"
19 bluetooth0 = &bluetooth;
24 compatible = "gpio-keys";
27 pinctrl-names = "default";
28 pinctrl-0 = <&key_vol_up_default>;
32 gpios = <&pm7325_gpios 6 GPIO_ACTIVE_LOW>;
33 linux,input-type = <1>;
34 linux,code = <KEY_VOLUMEUP>;
36 debounce-interval = <15>;
41 nvme_3v3_regulator: nvme-3v3-regulator {
42 compatible = "regulator-fixed";
43 regulator-name = "VLDO_3V3";
45 regulator-min-microvolt = <3300000>;
46 regulator-max-microvolt = <3300000>;
49 pinctrl-names = "default";
50 pinctrl-0 = <&nvme_pwren>;
56 compatible = "qcom,pm7325-rpmh-regulators";
60 regulator-min-microvolt = <1856000>;
61 regulator-max-microvolt = <2040000>;
65 regulator-min-microvolt = <535000>;
66 regulator-max-microvolt = <1120000>;
70 regulator-min-microvolt = <1256000>;
71 regulator-max-microvolt = <1500000>;
75 regulator-min-microvolt = <825000>;
76 regulator-max-microvolt = <925000>;
80 regulator-min-microvolt = <2700000>;
81 regulator-max-microvolt = <3544000>;
85 regulator-min-microvolt = <1140000>;
86 regulator-max-microvolt = <1260000>;
90 regulator-min-microvolt = <2960000>;
91 regulator-max-microvolt = <2960000>;
95 regulator-min-microvolt = <870000>;
96 regulator-max-microvolt = <970000>;
100 regulator-min-microvolt = <1080000>;
101 regulator-max-microvolt = <1304000>;
104 vreg_l11b_1p7: ldo11 {
105 regulator-min-microvolt = <1504000>;
106 regulator-max-microvolt = <2000000>;
109 vreg_l12b_0p8: ldo12 {
110 regulator-min-microvolt = <751000>;
111 regulator-max-microvolt = <824000>;
114 vreg_l13b_0p8: ldo13 {
115 regulator-min-microvolt = <530000>;
116 regulator-max-microvolt = <824000>;
119 vreg_l14b_1p2: ldo14 {
120 regulator-min-microvolt = <1080000>;
121 regulator-max-microvolt = <1304000>;
124 vreg_l15b_0p8: ldo15 {
125 regulator-min-microvolt = <765000>;
126 regulator-max-microvolt = <1020000>;
129 vreg_l16b_1p2: ldo16 {
130 regulator-min-microvolt = <1100000>;
131 regulator-max-microvolt = <1300000>;
134 vreg_l17b_1p8: ldo17 {
135 regulator-min-microvolt = <1700000>;
136 regulator-max-microvolt = <1900000>;
139 vreg_l18b_1p8: ldo18 {
140 regulator-min-microvolt = <1800000>;
141 regulator-max-microvolt = <2000000>;
144 vreg_l19b_1p8: ldo19 {
145 regulator-min-microvolt = <1800000>;
146 regulator-max-microvolt = <1800000>;
151 compatible = "qcom,pm8350c-rpmh-regulators";
154 vreg_s1c_2p2: smps1 {
155 regulator-min-microvolt = <2190000>;
156 regulator-max-microvolt = <2210000>;
159 vreg_s9c_1p0: smps9 {
160 regulator-min-microvolt = <1010000>;
161 regulator-max-microvolt = <1170000>;
165 regulator-min-microvolt = <1800000>;
166 regulator-max-microvolt = <1980000>;
170 regulator-min-microvolt = <1620000>;
171 regulator-max-microvolt = <1980000>;
175 regulator-min-microvolt = <2800000>;
176 regulator-max-microvolt = <3540000>;
180 regulator-min-microvolt = <1620000>;
181 regulator-max-microvolt = <3300000>;
185 regulator-min-microvolt = <1620000>;
186 regulator-max-microvolt = <3300000>;
190 regulator-min-microvolt = <1800000>;
191 regulator-max-microvolt = <2950000>;
195 regulator-min-microvolt = <3000000>;
196 regulator-max-microvolt = <3544000>;
200 regulator-min-microvolt = <1620000>;
201 regulator-max-microvolt = <2000000>;
205 regulator-min-microvolt = <2960000>;
206 regulator-max-microvolt = <2960000>;
209 vreg_l10c_0p8: ldo10 {
210 regulator-min-microvolt = <720000>;
211 regulator-max-microvolt = <1050000>;
214 vreg_l11c_2p8: ldo11 {
215 regulator-min-microvolt = <2800000>;
216 regulator-max-microvolt = <3544000>;
219 vreg_l12c_1p8: ldo12 {
220 regulator-min-microvolt = <1650000>;
221 regulator-max-microvolt = <2000000>;
224 vreg_l13c_3p0: ldo13 {
225 regulator-min-microvolt = <2700000>;
226 regulator-max-microvolt = <3544000>;
230 regulator-min-microvolt = <3008000>;
231 regulator-max-microvolt = <3960000>;
251 perst-gpio = <&tlmm 2 GPIO_ACTIVE_LOW>;
253 vddpe-3v3-supply = <&nvme_3v3_regulator>;
255 pinctrl-names = "default";
256 pinctrl-0 = <&pcie1_reset_n>, <&pcie1_wake_n>;
262 vdda-phy-supply = <&vreg_l10c_0p8>;
263 vdda-pll-supply = <&vreg_l6b_1p2>;
268 reg = <PMK8350_ADC7_DIE_TEMP>;
269 label = "pmk8350_die_temp";
270 qcom,pre-scaling = <1 1>;
275 vcc-supply = <&vreg_l1c_1p8>;
293 vmmc-supply = <&vreg_l7b_2p9>;
294 vqmmc-supply = <&vreg_l19b_1p8>;
300 pinctrl-0 = <&sdc2_clk>, <&sdc2_cmd>, <&sdc2_data>, <&sd_cd>;
301 pinctrl-1 = <&sdc2_clk_sleep>, <&sdc2_cmd_sleep>, <&sdc2_data_sleep>, <&sd_cd>;
303 vmmc-supply = <&vreg_l9c_2p9>;
304 vqmmc-supply = <&vreg_l6c_2p9>;
306 cd-gpios = <&tlmm 91 GPIO_ACTIVE_LOW>;
310 compatible = "qcom,geni-debug-uart";
325 vdda-pll-supply = <&vreg_l10c_0p8>;
326 vdda33-supply = <&vreg_l2b_3p0>;
327 vdda18-supply = <&vreg_l1c_1p8>;
333 vdda-phy-supply = <&vreg_l6b_1p2>;
334 vdda-pll-supply = <&vreg_l1b_0p8>;
340 /delete-property/interrupts;
341 interrupts-extended = <&intc GIC_SPI 608 IRQ_TYPE_LEVEL_HIGH>,
342 <&tlmm 31 IRQ_TYPE_EDGE_FALLING>;
343 pinctrl-names = "default", "sleep";
344 pinctrl-1 = <&qup_uart7_sleep_cts>, <&qup_uart7_sleep_rts>, <&qup_uart7_sleep_tx>, <&qup_uart7_sleep_rx>;
346 bluetooth: bluetooth {
347 compatible = "qcom,wcn6750-bt";
348 pinctrl-names = "default";
349 pinctrl-0 = <&bt_en>, <&sw_ctrl>;
350 enable-gpios = <&tlmm 85 GPIO_ACTIVE_HIGH>;
351 swctrl-gpios = <&tlmm 86 GPIO_ACTIVE_HIGH>;
352 vddaon-supply = <&vreg_s7b_0p9>;
353 vddbtcxmx-supply = <&vreg_s7b_0p9>;
354 vddrfacmn-supply = <&vreg_s7b_0p9>;
355 vddrfa0p8-supply = <&vreg_s7b_0p9>;
356 vddrfa1p7-supply = <&vreg_s1b_1p8>;
357 vddrfa1p2-supply = <&vreg_s8b_1p2>;
358 vddrfa2p2-supply = <&vreg_s1c_2p2>;
359 vddasd-supply = <&vreg_l11c_2p8>;
360 max-speed = <3200000>;
364 /* PINCTRL - additions to nodes defined in sc7280.dtsi */
371 key_vol_up_default: key-vol-up-default {
377 qcom,drive-strength = <3>;
383 drive-strength = <2>;
395 /* High-Z when no transfers; nice to park the lines */
400 drive-strength = <2>;
405 drive-strength = <2>;
411 * Configure a bias-bus-hold on CTS to lower power
412 * usage when Bluetooth is turned off. Bus hold will
413 * maintain a low power state regardless of whether
414 * the Bluetooth module drives the pin in either
415 * direction or leaves the pin fully unpowered.
421 /* We'll drive RTS, so no pull */
422 drive-strength = <2>;
427 /* We'll drive TX, so no pull */
428 drive-strength = <2>;
434 * Configure a pull-up on RX. This is needed to avoid
435 * garbage data when the TX pin of the Bluetooth module is
436 * in tri-state (module powered off or not driving the
444 drive-strength = <16>;
449 drive-strength = <10>;
454 drive-strength = <10>;
463 drive-strength = <16>;
468 drive-strength = <10>;
473 drive-strength = <10>;
484 nvme_pwren: nvme-pwren {
488 pcie1_reset_n: pcie1-reset-n {
492 drive-strength = <16>;
497 pcie1_wake_n: pcie1-wake-n {
501 drive-strength = <2>;
505 qup_uart7_sleep_cts: qup-uart7-sleep-cts {
509 * Configure a bias-bus-hold on CTS to lower power
510 * usage when Bluetooth is turned off. Bus hold will
511 * maintain a low power state regardless of whether
512 * the Bluetooth module drives the pin in either
513 * direction or leaves the pin fully unpowered.
518 qup_uart7_sleep_rts: qup-uart7-sleep-rts {
522 * Configure pull-down on RTS. As RTS is active low
523 * signal, pull it low to indicate the BT SoC that it
524 * can wakeup the system anytime from suspend state by
525 * pulling RX low (by sending wakeup bytes).
530 qup_uart7_sleep_tx: qup-uart7-sleep-tx {
534 * Configure pull-up on TX when it isn't actively driven
535 * to prevent BT SoC from receiving garbage during sleep.
540 qup_uart7_sleep_rx: qup-uart7-sleep-rx {
544 * Configure a pull-up on RX. This is needed to avoid
545 * garbage data when the TX pin of the Bluetooth module
546 * is floating which may cause spurious wakeups.
571 iommus = <&apps_smmu 0x1c02 0x1>;