| // SPDX-License-Identifier: BSD-3-Clause |
| /* |
| * sc7280 IDP board device tree source (common between SKU1 and SKU2) |
| * |
| * Copyright (c) 2021, The Linux Foundation. All rights reserved. |
| */ |
| |
| #include <dt-bindings/gpio/gpio.h> |
| #include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h> |
| #include <dt-bindings/input/linux-event-codes.h> |
| #include "sc7280.dtsi" |
| #include "pm7325.dtsi" |
| #include "pm8350c.dtsi" |
| #include "pmk8350.dtsi" |
| |
| / { |
| gpio-keys { |
| compatible = "gpio-keys"; |
| label = "gpio-keys"; |
| |
| pinctrl-names = "default"; |
| pinctrl-0 = <&key_vol_up_default>; |
| |
| volume-up { |
| label = "volume_up"; |
| gpios = <&pm7325_gpios 6 GPIO_ACTIVE_LOW>; |
| linux,input-type = <1>; |
| linux,code = <KEY_VOLUMEUP>; |
| gpio-key,wakeup; |
| debounce-interval = <15>; |
| linux,can-disable; |
| }; |
| }; |
| |
| nvme_3v3_regulator: nvme-3v3-regulator { |
| compatible = "regulator-fixed"; |
| regulator-name = "VLDO_3V3"; |
| |
| regulator-min-microvolt = <3300000>; |
| regulator-max-microvolt = <3300000>; |
| |
| enable-active-high; |
| pinctrl-names = "default"; |
| pinctrl-0 = <&nvme_pwren>; |
| }; |
| }; |
| |
| /* |
| * Reserved memory changes |
| * |
| * Delete all unused memory nodes and define the peripheral memory regions |
| * required by the board dts. |
| * |
| */ |
| |
| /delete-node/ &hyp_mem; |
| /delete-node/ &xbl_mem; |
| /delete-node/ &reserved_xbl_uefi_log; |
| /delete-node/ &sec_apps_mem; |
| |
| /* Increase the size from 2.5MB to 8MB */ |
| &rmtfs_mem { |
| reg = <0x0 0x9c900000 0x0 0x800000>; |
| }; |
| |
| / { |
| reserved-memory { |
| adsp_mem: memory@86700000 { |
| reg = <0x0 0x86700000 0x0 0x2800000>; |
| no-map; |
| }; |
| |
| camera_mem: memory@8ad00000 { |
| reg = <0x0 0x8ad00000 0x0 0x500000>; |
| no-map; |
| }; |
| |
| venus_mem: memory@8b200000 { |
| reg = <0x0 0x8b200000 0x0 0x500000>; |
| no-map; |
| }; |
| |
| mpss_mem: memory@8b800000 { |
| reg = <0x0 0x8b800000 0x0 0xf600000>; |
| no-map; |
| }; |
| |
| wpss_mem: memory@9ae00000 { |
| reg = <0x0 0x9ae00000 0x0 0x1900000>; |
| no-map; |
| }; |
| |
| mba_mem: memory@9c700000 { |
| reg = <0x0 0x9c700000 0x0 0x200000>; |
| no-map; |
| }; |
| }; |
| }; |
| |
| &apps_rsc { |
| pm7325-regulators { |
| compatible = "qcom,pm7325-rpmh-regulators"; |
| qcom,pmic-id = "b"; |
| |
| vreg_s1b_1p8: smps1 { |
| regulator-min-microvolt = <1856000>; |
| regulator-max-microvolt = <2040000>; |
| }; |
| |
| vreg_s7b_0p9: smps7 { |
| regulator-min-microvolt = <535000>; |
| regulator-max-microvolt = <1120000>; |
| }; |
| |
| vreg_s8b_1p2: smps8 { |
| regulator-min-microvolt = <1256000>; |
| regulator-max-microvolt = <1500000>; |
| }; |
| |
| vreg_l1b_0p8: ldo1 { |
| regulator-min-microvolt = <825000>; |
| regulator-max-microvolt = <925000>; |
| }; |
| |
| vreg_l2b_3p0: ldo2 { |
| regulator-min-microvolt = <2700000>; |
| regulator-max-microvolt = <3544000>; |
| }; |
| |
| vreg_l6b_1p2: ldo6 { |
| regulator-min-microvolt = <1140000>; |
| regulator-max-microvolt = <1260000>; |
| }; |
| |
| vreg_l7b_2p9: ldo7 { |
| regulator-min-microvolt = <2960000>; |
| regulator-max-microvolt = <2960000>; |
| }; |
| |
| vreg_l8b_0p9: ldo8 { |
| regulator-min-microvolt = <870000>; |
| regulator-max-microvolt = <970000>; |
| }; |
| |
| vreg_l9b_1p2: ldo9 { |
| regulator-min-microvolt = <1080000>; |
| regulator-max-microvolt = <1304000>; |
| }; |
| |
| vreg_l11b_1p7: ldo11 { |
| regulator-min-microvolt = <1504000>; |
| regulator-max-microvolt = <2000000>; |
| }; |
| |
| vreg_l12b_0p8: ldo12 { |
| regulator-min-microvolt = <751000>; |
| regulator-max-microvolt = <824000>; |
| }; |
| |
| vreg_l13b_0p8: ldo13 { |
| regulator-min-microvolt = <530000>; |
| regulator-max-microvolt = <824000>; |
| }; |
| |
| vreg_l14b_1p2: ldo14 { |
| regulator-min-microvolt = <1080000>; |
| regulator-max-microvolt = <1304000>; |
| }; |
| |
| vreg_l15b_0p8: ldo15 { |
| regulator-min-microvolt = <765000>; |
| regulator-max-microvolt = <1020000>; |
| }; |
| |
| vreg_l16b_1p2: ldo16 { |
| regulator-min-microvolt = <1100000>; |
| regulator-max-microvolt = <1300000>; |
| }; |
| |
| vreg_l17b_1p8: ldo17 { |
| regulator-min-microvolt = <1700000>; |
| regulator-max-microvolt = <1900000>; |
| }; |
| |
| vreg_l18b_1p8: ldo18 { |
| regulator-min-microvolt = <1800000>; |
| regulator-max-microvolt = <2000000>; |
| }; |
| |
| vreg_l19b_1p8: ldo19 { |
| regulator-min-microvolt = <1800000>; |
| regulator-max-microvolt = <1800000>; |
| }; |
| }; |
| |
| pm8350c-regulators { |
| compatible = "qcom,pm8350c-rpmh-regulators"; |
| qcom,pmic-id = "c"; |
| |
| vreg_s1c_2p2: smps1 { |
| regulator-min-microvolt = <2190000>; |
| regulator-max-microvolt = <2210000>; |
| }; |
| |
| vreg_s9c_1p0: smps9 { |
| regulator-min-microvolt = <1010000>; |
| regulator-max-microvolt = <1170000>; |
| }; |
| |
| vreg_l1c_1p8: ldo1 { |
| regulator-min-microvolt = <1800000>; |
| regulator-max-microvolt = <1980000>; |
| }; |
| |
| vreg_l2c_1p8: ldo2 { |
| regulator-min-microvolt = <1620000>; |
| regulator-max-microvolt = <1980000>; |
| }; |
| |
| vreg_l3c_3p0: ldo3 { |
| regulator-min-microvolt = <2800000>; |
| regulator-max-microvolt = <3540000>; |
| }; |
| |
| vreg_l4c_1p8: ldo4 { |
| regulator-min-microvolt = <1620000>; |
| regulator-max-microvolt = <3300000>; |
| }; |
| |
| vreg_l5c_1p8: ldo5 { |
| regulator-min-microvolt = <1620000>; |
| regulator-max-microvolt = <3300000>; |
| }; |
| |
| vreg_l6c_2p9: ldo6 { |
| regulator-min-microvolt = <1800000>; |
| regulator-max-microvolt = <2950000>; |
| }; |
| |
| vreg_l7c_3p0: ldo7 { |
| regulator-min-microvolt = <3000000>; |
| regulator-max-microvolt = <3544000>; |
| }; |
| |
| vreg_l8c_1p8: ldo8 { |
| regulator-min-microvolt = <1620000>; |
| regulator-max-microvolt = <2000000>; |
| }; |
| |
| vreg_l9c_2p9: ldo9 { |
| regulator-min-microvolt = <2960000>; |
| regulator-max-microvolt = <2960000>; |
| }; |
| |
| vreg_l10c_0p8: ldo10 { |
| regulator-min-microvolt = <720000>; |
| regulator-max-microvolt = <1050000>; |
| }; |
| |
| vreg_l11c_2p8: ldo11 { |
| regulator-min-microvolt = <2800000>; |
| regulator-max-microvolt = <3544000>; |
| }; |
| |
| vreg_l12c_1p8: ldo12 { |
| regulator-min-microvolt = <1650000>; |
| regulator-max-microvolt = <2000000>; |
| }; |
| |
| vreg_l13c_3p0: ldo13 { |
| regulator-min-microvolt = <2700000>; |
| regulator-max-microvolt = <3544000>; |
| }; |
| |
| vreg_bob: bob { |
| regulator-min-microvolt = <3008000>; |
| regulator-max-microvolt = <3960000>; |
| }; |
| }; |
| }; |
| |
| &ipa { |
| status = "okay"; |
| modem-init; |
| }; |
| |
| &pcie1 { |
| status = "okay"; |
| perst-gpio = <&tlmm 2 GPIO_ACTIVE_LOW>; |
| |
| vddpe-3v3-supply = <&nvme_3v3_regulator>; |
| |
| pinctrl-names = "default"; |
| pinctrl-0 = <&pcie1_reset_n>, <&pcie1_wake_n>; |
| }; |
| |
| &pcie1_phy { |
| status = "okay"; |
| |
| vdda-phy-supply = <&vreg_l10c_0p8>; |
| vdda-pll-supply = <&vreg_l6b_1p2>; |
| }; |
| |
| &pmk8350_vadc { |
| pmk8350_die_temp { |
| reg = <PMK8350_ADC7_DIE_TEMP>; |
| label = "pmk8350_die_temp"; |
| qcom,pre-scaling = <1 1>; |
| }; |
| }; |
| |
| &qfprom { |
| vcc-supply = <&vreg_l1c_1p8>; |
| }; |
| |
| &qspi { |
| status = "okay"; |
| pinctrl-names = "default"; |
| pinctrl-0 = <&qspi_clk>, <&qspi_cs0>, <&qspi_data01>; |
| |
| flash@0 { |
| compatible = "jedec,spi-nor"; |
| reg = <0>; |
| spi-max-frequency = <37500000>; |
| spi-tx-bus-width = <2>; |
| spi-rx-bus-width = <2>; |
| }; |
| }; |
| |
| &qupv3_id_0 { |
| status = "okay"; |
| }; |
| |
| &qupv3_id_1 { |
| status = "okay"; |
| }; |
| |
| &remoteproc_mpss { |
| status = "okay"; |
| compatible = "qcom,sc7280-mss-pil"; |
| iommus = <&apps_smmu 0x124 0x0>, <&apps_smmu 0x488 0x7>; |
| memory-region = <&mba_mem &mpss_mem>; |
| }; |
| |
| &sdhc_1 { |
| status = "okay"; |
| |
| pinctrl-names = "default", "sleep"; |
| pinctrl-0 = <&sdc1_on>; |
| pinctrl-1 = <&sdc1_off>; |
| |
| non-removable; |
| no-sd; |
| no-sdio; |
| |
| vmmc-supply = <&vreg_l7b_2p9>; |
| vqmmc-supply = <&vreg_l19b_1p8>; |
| }; |
| |
| &sdhc_2 { |
| status = "okay"; |
| |
| pinctrl-names = "default", "sleep"; |
| pinctrl-0 = <&sdc2_on>; |
| pinctrl-1 = <&sdc2_off>; |
| |
| vmmc-supply = <&vreg_l9c_2p9>; |
| vqmmc-supply = <&vreg_l6c_2p9>; |
| |
| cd-gpios = <&tlmm 91 GPIO_ACTIVE_LOW>; |
| }; |
| |
| &uart5 { |
| compatible = "qcom,geni-debug-uart"; |
| status = "okay"; |
| }; |
| |
| &usb_1 { |
| status = "okay"; |
| }; |
| |
| &usb_1_dwc3 { |
| dr_mode = "host"; |
| }; |
| |
| &usb_1_hsphy { |
| status = "okay"; |
| |
| vdda-pll-supply = <&vreg_l10c_0p8>; |
| vdda33-supply = <&vreg_l2b_3p0>; |
| vdda18-supply = <&vreg_l1c_1p8>; |
| }; |
| |
| &usb_1_qmpphy { |
| status = "okay"; |
| |
| vdda-phy-supply = <&vreg_l6b_1p2>; |
| vdda-pll-supply = <&vreg_l1b_0p8>; |
| }; |
| |
| &usb_2 { |
| status = "okay"; |
| }; |
| |
| &usb_2_dwc3 { |
| dr_mode = "peripheral"; |
| }; |
| |
| &usb_2_hsphy { |
| status = "okay"; |
| |
| vdda-pll-supply = <&vreg_l10c_0p8>; |
| vdda33-supply = <&vreg_l2b_3p0>; |
| vdda18-supply = <&vreg_l1c_1p8>; |
| }; |
| |
| &uart7 { |
| status = "okay"; |
| |
| /delete-property/interrupts; |
| interrupts-extended = <&intc GIC_SPI 608 IRQ_TYPE_LEVEL_HIGH>, |
| <&tlmm 31 IRQ_TYPE_EDGE_FALLING>; |
| pinctrl-names = "default", "sleep"; |
| pinctrl-1 = <&qup_uart7_sleep_cts>, <&qup_uart7_sleep_rts>, <&qup_uart7_sleep_tx>, <&qup_uart7_sleep_rx>; |
| }; |
| |
| /* PINCTRL - additions to nodes defined in sc7280.dtsi */ |
| |
| &pm7325_gpios { |
| key_vol_up_default: key-vol-up-default { |
| pins = "gpio6"; |
| function = "normal"; |
| input-enable; |
| bias-pull-up; |
| power-source = <0>; |
| qcom,drive-strength = <3>; |
| }; |
| }; |
| |
| &qspi_cs0 { |
| bias-disable; |
| }; |
| |
| &qspi_clk { |
| bias-disable; |
| }; |
| |
| &qspi_data01 { |
| /* High-Z when no transfers; nice to park the lines */ |
| bias-pull-up; |
| }; |
| |
| &qup_uart5_tx { |
| drive-strength = <2>; |
| bias-disable; |
| }; |
| |
| &qup_uart5_rx { |
| drive-strength = <2>; |
| bias-pull-up; |
| }; |
| |
| &qup_uart7_cts { |
| /* |
| * Configure a pull-down on CTS to match the pull of |
| * the Bluetooth module. |
| */ |
| bias-pull-down; |
| }; |
| |
| &qup_uart7_rts { |
| /* We'll drive RTS, so no pull */ |
| drive-strength = <2>; |
| bias-disable; |
| }; |
| |
| &qup_uart7_tx { |
| /* We'll drive TX, so no pull */ |
| drive-strength = <2>; |
| bias-disable; |
| }; |
| |
| &qup_uart7_rx { |
| /* |
| * Configure a pull-up on RX. This is needed to avoid |
| * garbage data when the TX pin of the Bluetooth module is |
| * in tri-state (module powered off or not driving the |
| * signal yet). |
| */ |
| bias-pull-up; |
| }; |
| |
| &tlmm { |
| nvme_pwren: nvme-pwren { |
| function = "gpio"; |
| }; |
| |
| pcie1_reset_n: pcie1-reset-n { |
| pins = "gpio2"; |
| function = "gpio"; |
| |
| drive-strength = <16>; |
| output-low; |
| bias-disable; |
| }; |
| |
| pcie1_wake_n: pcie1-wake-n { |
| pins = "gpio3"; |
| function = "gpio"; |
| |
| drive-strength = <2>; |
| bias-pull-up; |
| }; |
| |
| qup_uart7_sleep_cts: qup-uart7-sleep-cts { |
| pins = "gpio28"; |
| function = "gpio"; |
| /* |
| * Configure a pull-down on CTS to match the pull of |
| * the Bluetooth module. |
| */ |
| bias-pull-down; |
| }; |
| |
| qup_uart7_sleep_rts: qup-uart7-sleep-rts { |
| pins = "gpio29"; |
| function = "gpio"; |
| /* |
| * Configure pull-down on RTS. As RTS is active low |
| * signal, pull it low to indicate the BT SoC that it |
| * can wakeup the system anytime from suspend state by |
| * pulling RX low (by sending wakeup bytes). |
| */ |
| bias-pull-down; |
| }; |
| |
| qup_uart7_sleep_tx: qup-uart7-sleep-tx { |
| pins = "gpio30"; |
| function = "gpio"; |
| /* |
| * Configure pull-up on TX when it isn't actively driven |
| * to prevent BT SoC from receiving garbage during sleep. |
| */ |
| bias-pull-up; |
| }; |
| |
| qup_uart7_sleep_rx: qup-uart7-sleep-rx { |
| pins = "gpio31"; |
| function = "gpio"; |
| /* |
| * Configure a pull-up on RX. This is needed to avoid |
| * garbage data when the TX pin of the Bluetooth module |
| * is floating which may cause spurious wakeups. |
| */ |
| bias-pull-up; |
| }; |
| }; |
| |
| &sdc1_on { |
| clk { |
| bias-disable; |
| drive-strength = <16>; |
| }; |
| |
| cmd { |
| bias-pull-up; |
| drive-strength = <10>; |
| }; |
| |
| data { |
| bias-pull-up; |
| drive-strength = <10>; |
| }; |
| |
| rclk { |
| bias-pull-down; |
| }; |
| }; |
| |
| &sdc2_on { |
| clk { |
| bias-disable; |
| drive-strength = <16>; |
| }; |
| |
| cmd { |
| bias-pull-up; |
| drive-strength = <10>; |
| }; |
| |
| data { |
| bias-pull-up; |
| drive-strength = <10>; |
| }; |
| |
| sd-cd { |
| pins = "gpio91"; |
| bias-pull-up; |
| }; |
| }; |