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 "sc7180-firmware-tfa.dtsi"
15 #include "pm6150.dtsi"
16 #include "pm6150l.dtsi"
19 model = "Qualcomm Technologies, Inc. SC7180 IDP";
20 compatible = "qcom,sc7180-idp", "qcom,sc7180";
23 bluetooth0 = &bluetooth;
30 stdout-path = "serial0:115200n8";
35 * Reserved memory changes
37 * Delete all unused memory nodes and define the peripheral memory regions
38 * required by the board dts.
42 /delete-node/ &hyp_mem;
43 /delete-node/ &xbl_mem;
44 /delete-node/ &aop_mem;
45 /delete-node/ &sec_apps_mem;
46 /delete-node/ &tz_mem;
48 /* Increase the size from 2MB to 8MB */
50 reg = <0x0 0x94600000 0x0 0x800000>;
55 atf_mem: memory@80b00000 {
56 reg = <0x0 0x80b00000 0x0 0x100000>;
60 mpss_mem: memory@86000000 {
61 reg = <0x0 0x86000000 0x0 0x8c00000>;
65 camera_mem: memory@8ec00000 {
66 reg = <0x0 0x8ec00000 0x0 0x500000>;
70 venus_mem: memory@8f600000 {
71 reg = <0 0x8f600000 0 0x500000>;
75 wlan_mem: memory@94100000 {
76 reg = <0x0 0x94100000 0x0 0x200000>;
80 mba_mem: memory@94400000 {
81 reg = <0x0 0x94400000 0x0 0x200000>;
85 mdata_mem: mpss-metadata {
86 alloc-ranges = <0x0 0xa0000000 0x0 0x20000000>;
95 compatible = "qcom,pm6150-rpmh-regulators";
99 regulator-min-microvolt = <1128000>;
100 regulator-max-microvolt = <1128000>;
103 vreg_s4a_1p0: smps4 {
104 regulator-min-microvolt = <824000>;
105 regulator-max-microvolt = <1120000>;
108 vreg_s5a_2p0: smps5 {
109 regulator-min-microvolt = <1744000>;
110 regulator-max-microvolt = <2040000>;
114 regulator-min-microvolt = <1178000>;
115 regulator-max-microvolt = <1256000>;
116 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
120 regulator-min-microvolt = <944000>;
121 regulator-max-microvolt = <1056000>;
122 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
126 regulator-min-microvolt = <968000>;
127 regulator-max-microvolt = <1064000>;
128 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
132 regulator-min-microvolt = <824000>;
133 regulator-max-microvolt = <928000>;
134 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
138 regulator-min-microvolt = <2496000>;
139 regulator-max-microvolt = <3000000>;
140 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
144 regulator-min-microvolt = <568000>;
145 regulator-max-microvolt = <648000>;
146 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
150 regulator-min-microvolt = <488000>;
151 regulator-max-microvolt = <800000>;
152 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
155 vreg_l10a_1p8: ldo10 {
156 regulator-min-microvolt = <1800000>;
157 regulator-max-microvolt = <1832000>;
158 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
161 vreg_l11a_1p8: ldo11 {
162 regulator-min-microvolt = <1696000>;
163 regulator-max-microvolt = <1904000>;
164 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
167 vreg_l12a_1p8: ldo12 {
168 regulator-min-microvolt = <1800000>;
169 regulator-max-microvolt = <1800000>;
170 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
173 vreg_l13a_1p8: ldo13 {
174 regulator-min-microvolt = <1696000>;
175 regulator-max-microvolt = <1904000>;
176 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
179 vreg_l14a_1p8: ldo14 {
180 regulator-min-microvolt = <1728000>;
181 regulator-max-microvolt = <1832000>;
182 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
185 vreg_l15a_1p8: ldo15 {
186 regulator-min-microvolt = <1696000>;
187 regulator-max-microvolt = <1904000>;
188 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
191 vreg_l16a_2p7: ldo16 {
192 regulator-min-microvolt = <2496000>;
193 regulator-max-microvolt = <3304000>;
194 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
197 vreg_l17a_3p0: ldo17 {
198 regulator-min-microvolt = <2920000>;
199 regulator-max-microvolt = <3232000>;
200 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
203 vreg_l18a_2p8: ldo18 {
204 regulator-min-microvolt = <2496000>;
205 regulator-max-microvolt = <3304000>;
206 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
209 vreg_l19a_2p9: ldo19 {
210 regulator-min-microvolt = <2960000>;
211 regulator-max-microvolt = <2960000>;
212 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
217 compatible = "qcom,pm6150l-rpmh-regulators";
220 vreg_s8c_1p3: smps8 {
221 regulator-min-microvolt = <1120000>;
222 regulator-max-microvolt = <1408000>;
226 regulator-min-microvolt = <1616000>;
227 regulator-max-microvolt = <1984000>;
228 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
232 regulator-min-microvolt = <1168000>;
233 regulator-max-microvolt = <1304000>;
234 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
238 regulator-min-microvolt = <1144000>;
239 regulator-max-microvolt = <1304000>;
240 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
244 regulator-min-microvolt = <1648000>;
245 regulator-max-microvolt = <3304000>;
246 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
250 regulator-min-microvolt = <1648000>;
251 regulator-max-microvolt = <3304000>;
252 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
256 regulator-min-microvolt = <1800000>;
257 regulator-max-microvolt = <2950000>;
258 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
262 regulator-min-microvolt = <3000000>;
263 regulator-max-microvolt = <3312000>;
264 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
268 regulator-min-microvolt = <1800000>;
269 regulator-max-microvolt = <1904000>;
270 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
274 regulator-min-microvolt = <2960000>;
275 regulator-max-microvolt = <2960000>;
276 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
279 vreg_l10c_3p3: ldo10 {
280 regulator-min-microvolt = <3000000>;
281 regulator-max-microvolt = <3400000>;
282 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
285 vreg_l11c_3p3: ldo11 {
286 regulator-min-microvolt = <3000000>;
287 regulator-max-microvolt = <3400000>;
288 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
292 regulator-min-microvolt = <3008000>;
293 regulator-max-microvolt = <3960000>;
294 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
306 vdda-supply = <&vreg_l3c_1p2>;
309 compatible = "visionox,rm69299-1080p-display";
312 vdda-supply = <&vreg_l8c_1p8>;
313 vdd3p3-supply = <&vreg_l18a_2p8>;
315 pinctrl-names = "default";
316 pinctrl-0 = <&disp_pins>;
318 reset-gpios = <&pm6150l_gpios 3 GPIO_ACTIVE_HIGH>;
321 panel0_in: endpoint {
322 remote-endpoint = <&mdss_dsi0_out>;
330 remote-endpoint = <&panel0_in>;
331 data-lanes = <0 1 2 3>;
339 vdds-supply = <&vreg_l4a_0p8>;
343 vcc-supply = <&vreg_l11a_1p8>;
348 pinctrl-names = "default";
349 pinctrl-0 = <&qspi_clk>, <&qspi_cs0>, <&qspi_data0>, <&qspi_data1>;
352 compatible = "jedec,spi-nor";
354 spi-max-frequency = <25000000>;
355 spi-tx-bus-width = <2>;
356 spi-rx-bus-width = <2>;
370 compatible = "qcom,sc7180-mss-pil";
371 reg = <0 0x04080000 0 0x4040>, <0 0x04180000 0 0x48>;
372 reg-names = "qdsp6", "rmb";
374 clocks = <&gcc GCC_MSS_CFG_AHB_CLK>,
375 <&gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>,
376 <&gcc GCC_MSS_NAV_AXI_CLK>,
377 <&gcc GCC_MSS_SNOC_AXI_CLK>,
378 <&gcc GCC_MSS_MFAB_AXIS_CLK>,
379 <&rpmhcc RPMH_CXO_CLK>;
380 clock-names = "iface", "bus", "nav", "snoc_axi", "mnoc_axi", "xo";
382 iommus = <&apps_smmu 0x461 0x0>, <&apps_smmu 0x444 0x3>;
383 memory-region = <&mba_mem>, <&mpss_mem>, <&mdata_mem>;
385 resets = <&aoss_reset AOSS_CC_MSS_RESTART>,
386 <&pdc_reset PDC_MODEM_SYNC_RESET>;
387 reset-names = "mss_restart", "pdc_reset";
389 qcom,halt-regs = <&tcsr_regs_1 0x3000 0x5000 0x4000>;
390 qcom,spare-regs = <&tcsr_regs_2 0xb3e4>;
394 /* TF-A firmware maps memory cached so mark dma-coherent to match. */
401 pinctrl-names = "default", "sleep";
402 pinctrl-0 = <&sdc1_on>;
403 pinctrl-1 = <&sdc1_off>;
404 vmmc-supply = <&vreg_l19a_2p9>;
405 vqmmc-supply = <&vreg_l12a_1p8>;
411 pinctrl-names = "default","sleep";
412 pinctrl-0 = <&sdc2_on>;
413 pinctrl-1 = <&sdc2_off>;
414 vmmc-supply = <&vreg_l9c_2p9>;
415 vqmmc-supply = <&vreg_l6c_2p9>;
417 cd-gpios = <&tlmm 69 GPIO_ACTIVE_LOW>;
423 /delete-property/interrupts;
424 interrupts-extended = <&intc GIC_SPI 604 IRQ_TYPE_LEVEL_HIGH>,
425 <&tlmm 41 IRQ_TYPE_EDGE_FALLING>;
427 pinctrl-names = "default", "sleep";
428 pinctrl-1 = <&qup_uart3_sleep>;
430 bluetooth: bluetooth {
431 compatible = "qcom,wcn3990-bt";
432 vddio-supply = <&vreg_l10a_1p8>;
433 vddxo-supply = <&vreg_l1c_1p8>;
434 vddrf-supply = <&vreg_l2c_1p3>;
435 vddch0-supply = <&vreg_l10c_3p3>;
436 max-speed = <3200000>;
454 vdd-supply = <&vreg_l4a_0p8>;
455 vdda-pll-supply = <&vreg_l11a_1p8>;
456 vdda-phy-dpdm-supply = <&vreg_l17a_3p0>;
457 qcom,imp-res-offset-value = <8>;
458 qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_15_PERCENT>;
459 qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
460 qcom,bias-ctrl-value = <0x22>;
461 qcom,charge-ctrl-value = <3>;
462 qcom,hsdisc-trim-value = <0>;
467 vdda-phy-supply = <&vreg_l3c_1p2>;
468 vdda-pll-supply = <&vreg_l4a_0p8>;
473 iommus = <&apps_smmu 0x0c42 0x0>;
479 vdd-0.8-cx-mx-supply = <&vreg_l9a_0p6>;
480 vdd-1.8-xo-supply = <&vreg_l1c_1p8>;
481 vdd-1.3-rfa-supply = <&vreg_l2c_1p3>;
482 vdd-3.3-ch0-supply = <&vreg_l10c_3p3>;
483 vdd-3.3-ch1-supply = <&vreg_l11c_3p3>;
485 iommus = <&apps_smmu 0xc2 0x1>;
489 /* PINCTRL - additions to nodes defined in sc7180.dtsi */
492 disp_pins: disp-state {
495 function = PMIC_GPIO_FUNC_FUNC1;
496 qcom,drive-strength = <PMIC_GPIO_STRENGTH_MED>;
521 drive-strength = <2>;
523 /* Has external pullup */
528 drive-strength = <2>;
530 /* Has external pullup */
535 drive-strength = <2>;
537 /* Has external pullup */
542 drive-strength = <2>;
544 /* Has external pullup */
550 * Configure a pull-down on CTS to match the pull of
551 * the Bluetooth module.
557 /* We'll drive RTS, so no pull */
558 drive-strength = <2>;
563 /* We'll drive TX, so no pull */
564 drive-strength = <2>;
570 * Configure a pull-up on RX. This is needed to avoid
571 * garbage data when the TX pin of the Bluetooth module is
572 * in tri-state (module powered off or not driving the
579 drive-strength = <2>;
584 drive-strength = <2>;
589 drive-strength = <2>;
594 drive-strength = <2>;
599 drive-strength = <2>;
604 drive-strength = <2>;
609 drive-strength = <2>;
614 drive-strength = <2>;
619 qup_uart3_sleep: qup-uart3-sleep-state {
622 * Configure a pull-down on CTS to match the pull of
623 * the Bluetooth module.
632 * Configure pull-down on RTS. As RTS is active low
633 * signal, pull it low to indicate the BT SoC that it
634 * can wakeup the system anytime from suspend state by
635 * pulling RX low (by sending wakeup bytes).
644 * Configure pull-up on TX when it isn't actively driven
645 * to prevent BT SoC from receiving garbage during sleep.
654 * Configure a pull-up on RX. This is needed to avoid
655 * garbage data when the TX pin of the Bluetooth module
656 * is floating which may cause spurious wakeups.
664 sdc1_on: sdc1-on-state {
668 drive-strength = <16>;
674 drive-strength = <10>;
680 drive-strength = <10>;
689 sdc1_off: sdc1-off-state {
693 drive-strength = <2>;
699 drive-strength = <2>;
705 drive-strength = <2>;
714 sdc2_on: sdc2-on-state {
718 drive-strength = <16>;
724 drive-strength = <10>;
730 drive-strength = <10>;
737 drive-strength = <2>;
741 sdc2_off: sdc2-off-state {
745 drive-strength = <2>;
751 drive-strength = <2>;
757 drive-strength = <2>;
764 drive-strength = <2>;