1 // SPDX-License-Identifier: BSD-3-Clause
3 * SC7180 IDP board device tree source
5 * Copyright (c) 2019, The Linux Foundation. All rights reserved.
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
12 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
13 #include "sc7180.dtsi"
14 #include "pm6150.dtsi"
15 #include "pm6150l.dtsi"
18 model = "Qualcomm Technologies, Inc. SC7180 IDP";
19 compatible = "qcom,sc7180-idp", "qcom,sc7180";
22 bluetooth0 = &bluetooth;
29 stdout-path = "serial0:115200n8";
34 * Reserved memory changes
36 * Delete all unused memory nodes and define the peripheral memory regions
37 * required by the board dts.
41 /delete-node/ &hyp_mem;
42 /delete-node/ &xbl_mem;
43 /delete-node/ &aop_mem;
44 /delete-node/ &sec_apps_mem;
45 /delete-node/ &tz_mem;
47 /* Increase the size from 2MB to 8MB */
49 reg = <0x0 0x94600000 0x0 0x800000>;
54 atf_mem: memory@80b00000 {
55 reg = <0x0 0x80b00000 0x0 0x100000>;
59 mpss_mem: memory@86000000 {
60 reg = <0x0 0x86000000 0x0 0x8c00000>;
64 camera_mem: memory@8ec00000 {
65 reg = <0x0 0x8ec00000 0x0 0x500000>;
69 venus_mem: memory@8f600000 {
70 reg = <0 0x8f600000 0 0x500000>;
74 wlan_mem: memory@94100000 {
75 reg = <0x0 0x94100000 0x0 0x200000>;
79 mba_mem: memory@94400000 {
80 reg = <0x0 0x94400000 0x0 0x200000>;
84 mdata_mem: mpss-metadata {
85 alloc-ranges = <0x0 0xa0000000 0x0 0x20000000>;
94 compatible = "qcom,pm6150-rpmh-regulators";
98 regulator-min-microvolt = <1128000>;
99 regulator-max-microvolt = <1128000>;
102 vreg_s4a_1p0: smps4 {
103 regulator-min-microvolt = <824000>;
104 regulator-max-microvolt = <1120000>;
107 vreg_s5a_2p0: smps5 {
108 regulator-min-microvolt = <1744000>;
109 regulator-max-microvolt = <2040000>;
113 regulator-min-microvolt = <1178000>;
114 regulator-max-microvolt = <1256000>;
115 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
119 regulator-min-microvolt = <944000>;
120 regulator-max-microvolt = <1056000>;
121 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
125 regulator-min-microvolt = <968000>;
126 regulator-max-microvolt = <1064000>;
127 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
131 regulator-min-microvolt = <824000>;
132 regulator-max-microvolt = <928000>;
133 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
137 regulator-min-microvolt = <2496000>;
138 regulator-max-microvolt = <3000000>;
139 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
143 regulator-min-microvolt = <568000>;
144 regulator-max-microvolt = <648000>;
145 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
149 regulator-min-microvolt = <488000>;
150 regulator-max-microvolt = <800000>;
151 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
154 vreg_l10a_1p8: ldo10 {
155 regulator-min-microvolt = <1800000>;
156 regulator-max-microvolt = <1832000>;
157 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
160 vreg_l11a_1p8: ldo11 {
161 regulator-min-microvolt = <1696000>;
162 regulator-max-microvolt = <1904000>;
163 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
166 vreg_l12a_1p8: ldo12 {
167 regulator-min-microvolt = <1800000>;
168 regulator-max-microvolt = <1800000>;
169 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
172 vreg_l13a_1p8: ldo13 {
173 regulator-min-microvolt = <1696000>;
174 regulator-max-microvolt = <1904000>;
175 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
178 vreg_l14a_1p8: ldo14 {
179 regulator-min-microvolt = <1728000>;
180 regulator-max-microvolt = <1832000>;
181 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
184 vreg_l15a_1p8: ldo15 {
185 regulator-min-microvolt = <1696000>;
186 regulator-max-microvolt = <1904000>;
187 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
190 vreg_l16a_2p7: ldo16 {
191 regulator-min-microvolt = <2496000>;
192 regulator-max-microvolt = <3304000>;
193 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
196 vreg_l17a_3p0: ldo17 {
197 regulator-min-microvolt = <2920000>;
198 regulator-max-microvolt = <3232000>;
199 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
202 vreg_l18a_2p8: ldo18 {
203 regulator-min-microvolt = <2496000>;
204 regulator-max-microvolt = <3304000>;
205 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
208 vreg_l19a_2p9: ldo19 {
209 regulator-min-microvolt = <2960000>;
210 regulator-max-microvolt = <2960000>;
211 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
216 compatible = "qcom,pm6150l-rpmh-regulators";
219 vreg_s8c_1p3: smps8 {
220 regulator-min-microvolt = <1120000>;
221 regulator-max-microvolt = <1408000>;
225 regulator-min-microvolt = <1616000>;
226 regulator-max-microvolt = <1984000>;
227 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
231 regulator-min-microvolt = <1168000>;
232 regulator-max-microvolt = <1304000>;
233 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
237 regulator-min-microvolt = <1144000>;
238 regulator-max-microvolt = <1304000>;
239 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
243 regulator-min-microvolt = <1648000>;
244 regulator-max-microvolt = <3304000>;
245 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
249 regulator-min-microvolt = <1648000>;
250 regulator-max-microvolt = <3304000>;
251 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
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 = <3312000>;
263 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
267 regulator-min-microvolt = <1800000>;
268 regulator-max-microvolt = <1904000>;
269 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
273 regulator-min-microvolt = <2960000>;
274 regulator-max-microvolt = <2960000>;
275 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
278 vreg_l10c_3p3: ldo10 {
279 regulator-min-microvolt = <3000000>;
280 regulator-max-microvolt = <3400000>;
281 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
284 vreg_l11c_3p3: ldo11 {
285 regulator-min-microvolt = <3000000>;
286 regulator-max-microvolt = <3400000>;
287 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
291 regulator-min-microvolt = <3008000>;
292 regulator-max-microvolt = <3960000>;
293 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
305 vdda-supply = <&vreg_l3c_1p2>;
308 compatible = "visionox,rm69299-1080p-display";
311 vdda-supply = <&vreg_l8c_1p8>;
312 vdd3p3-supply = <&vreg_l18a_2p8>;
314 pinctrl-names = "default";
315 pinctrl-0 = <&disp_pins>;
317 reset-gpios = <&pm6150l_gpios 3 GPIO_ACTIVE_HIGH>;
320 panel0_in: endpoint {
321 remote-endpoint = <&mdss_dsi0_out>;
329 remote-endpoint = <&panel0_in>;
330 data-lanes = <0 1 2 3>;
338 vdds-supply = <&vreg_l4a_0p8>;
342 vcc-supply = <&vreg_l11a_1p8>;
347 pinctrl-names = "default";
348 pinctrl-0 = <&qspi_clk>, <&qspi_cs0>, <&qspi_data0>, <&qspi_data1>;
351 compatible = "jedec,spi-nor";
353 spi-max-frequency = <25000000>;
354 spi-tx-bus-width = <2>;
355 spi-rx-bus-width = <2>;
369 compatible = "qcom,sc7180-mss-pil";
370 reg = <0 0x04080000 0 0x4040>, <0 0x04180000 0 0x48>;
371 reg-names = "qdsp6", "rmb";
373 clocks = <&gcc GCC_MSS_CFG_AHB_CLK>,
374 <&gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>,
375 <&gcc GCC_MSS_NAV_AXI_CLK>,
376 <&gcc GCC_MSS_SNOC_AXI_CLK>,
377 <&gcc GCC_MSS_MFAB_AXIS_CLK>,
378 <&rpmhcc RPMH_CXO_CLK>;
379 clock-names = "iface", "bus", "nav", "snoc_axi", "mnoc_axi", "xo";
381 iommus = <&apps_smmu 0x461 0x0>, <&apps_smmu 0x444 0x3>;
382 memory-region = <&mba_mem>, <&mpss_mem>, <&mdata_mem>;
384 resets = <&aoss_reset AOSS_CC_MSS_RESTART>,
385 <&pdc_reset PDC_MODEM_SYNC_RESET>;
386 reset-names = "mss_restart", "pdc_reset";
388 qcom,halt-regs = <&tcsr_regs_1 0x3000 0x5000 0x4000>;
389 qcom,spare-regs = <&tcsr_regs_2 0xb3e4>;
393 /* TF-A firmware maps memory cached so mark dma-coherent to match. */
400 pinctrl-names = "default", "sleep";
401 pinctrl-0 = <&sdc1_on>;
402 pinctrl-1 = <&sdc1_off>;
403 vmmc-supply = <&vreg_l19a_2p9>;
404 vqmmc-supply = <&vreg_l12a_1p8>;
410 pinctrl-names = "default","sleep";
411 pinctrl-0 = <&sdc2_on>;
412 pinctrl-1 = <&sdc2_off>;
413 vmmc-supply = <&vreg_l9c_2p9>;
414 vqmmc-supply = <&vreg_l6c_2p9>;
416 cd-gpios = <&tlmm 69 GPIO_ACTIVE_LOW>;
422 /delete-property/interrupts;
423 interrupts-extended = <&intc GIC_SPI 604 IRQ_TYPE_LEVEL_HIGH>,
424 <&tlmm 41 IRQ_TYPE_EDGE_FALLING>;
426 pinctrl-names = "default", "sleep";
427 pinctrl-1 = <&qup_uart3_sleep>;
429 bluetooth: bluetooth {
430 compatible = "qcom,wcn3990-bt";
431 vddio-supply = <&vreg_l10a_1p8>;
432 vddxo-supply = <&vreg_l1c_1p8>;
433 vddrf-supply = <&vreg_l2c_1p3>;
434 vddch0-supply = <&vreg_l10c_3p3>;
435 max-speed = <3200000>;
453 vdd-supply = <&vreg_l4a_0p8>;
454 vdda-pll-supply = <&vreg_l11a_1p8>;
455 vdda-phy-dpdm-supply = <&vreg_l17a_3p0>;
456 qcom,imp-res-offset-value = <8>;
457 qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_15_PERCENT>;
458 qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
459 qcom,bias-ctrl-value = <0x22>;
460 qcom,charge-ctrl-value = <3>;
461 qcom,hsdisc-trim-value = <0>;
466 vdda-phy-supply = <&vreg_l3c_1p2>;
467 vdda-pll-supply = <&vreg_l4a_0p8>;
472 iommus = <&apps_smmu 0x0c42 0x0>;
478 vdd-0.8-cx-mx-supply = <&vreg_l9a_0p6>;
479 vdd-1.8-xo-supply = <&vreg_l1c_1p8>;
480 vdd-1.3-rfa-supply = <&vreg_l2c_1p3>;
481 vdd-3.3-ch0-supply = <&vreg_l10c_3p3>;
482 vdd-3.3-ch1-supply = <&vreg_l11c_3p3>;
484 iommus = <&apps_smmu 0xc2 0x1>;
488 /* PINCTRL - additions to nodes defined in sc7180.dtsi */
491 disp_pins: disp-state {
494 function = PMIC_GPIO_FUNC_FUNC1;
495 qcom,drive-strength = <PMIC_GPIO_STRENGTH_MED>;
520 drive-strength = <2>;
522 /* Has external pullup */
527 drive-strength = <2>;
529 /* Has external pullup */
534 drive-strength = <2>;
536 /* Has external pullup */
541 drive-strength = <2>;
543 /* Has external pullup */
549 * Configure a pull-down on CTS to match the pull of
550 * the Bluetooth module.
556 /* We'll drive RTS, so no pull */
557 drive-strength = <2>;
562 /* We'll drive TX, so no pull */
563 drive-strength = <2>;
569 * Configure a pull-up on RX. This is needed to avoid
570 * garbage data when the TX pin of the Bluetooth module is
571 * in tri-state (module powered off or not driving the
578 drive-strength = <2>;
583 drive-strength = <2>;
588 drive-strength = <2>;
593 drive-strength = <2>;
598 drive-strength = <2>;
603 drive-strength = <2>;
608 drive-strength = <2>;
613 drive-strength = <2>;
618 qup_uart3_sleep: qup-uart3-sleep-state {
621 * Configure a pull-down on CTS to match the pull of
622 * the Bluetooth module.
631 * Configure pull-down on RTS. As RTS is active low
632 * signal, pull it low to indicate the BT SoC that it
633 * can wakeup the system anytime from suspend state by
634 * pulling RX low (by sending wakeup bytes).
643 * Configure pull-up on TX when it isn't actively driven
644 * to prevent BT SoC from receiving garbage during sleep.
653 * Configure a pull-up on RX. This is needed to avoid
654 * garbage data when the TX pin of the Bluetooth module
655 * is floating which may cause spurious wakeups.
663 sdc1_on: sdc1-on-state {
667 drive-strength = <16>;
673 drive-strength = <10>;
679 drive-strength = <10>;
688 sdc1_off: sdc1-off-state {
692 drive-strength = <2>;
698 drive-strength = <2>;
704 drive-strength = <2>;
713 sdc2_on: sdc2-on-state {
717 drive-strength = <16>;
723 drive-strength = <10>;
729 drive-strength = <10>;
736 drive-strength = <2>;
740 sdc2_off: sdc2-off-state {
744 drive-strength = <2>;
750 drive-strength = <2>;
756 drive-strength = <2>;
763 drive-strength = <2>;