xref: /openbmc/linux/scripts/dtc/include-prefixes/arm64/qcom/sm8350-mtp.dts (revision c900529f3d9161bfde5cca0754f83b4d3c3e0220)
10684074aSVinod Koul// SPDX-License-Identifier: BSD-3-Clause
20684074aSVinod Koul/*
30684074aSVinod Koul * Copyright (c) 2020, Linaro Limited
40684074aSVinod Koul */
50684074aSVinod Koul
60684074aSVinod Koul/dts-v1/;
70684074aSVinod Koul
80684074aSVinod Koul#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
90684074aSVinod Koul#include "sm8350.dtsi"
10f67cc6a9SVinod Koul#include "pm8350.dtsi"
11f67cc6a9SVinod Koul#include "pm8350b.dtsi"
12f67cc6a9SVinod Koul#include "pm8350c.dtsi"
13f67cc6a9SVinod Koul#include "pmk8350.dtsi"
14f67cc6a9SVinod Koul#include "pmr735a.dtsi"
15f67cc6a9SVinod Koul#include "pmr735b.dtsi"
160684074aSVinod Koul
170684074aSVinod Koul/ {
180684074aSVinod Koul	model = "Qualcomm Technologies, Inc. sm8350 MTP";
190684074aSVinod Koul	compatible = "qcom,sm8350-mtp", "qcom,sm8350";
20*46b17dfdSNeil Armstrong	chassis-type = "handset";
210684074aSVinod Koul
220684074aSVinod Koul	aliases {
230684074aSVinod Koul		serial0 = &uart2;
240684074aSVinod Koul	};
250684074aSVinod Koul
260684074aSVinod Koul	chosen {
270684074aSVinod Koul		stdout-path = "serial0:115200n8";
280684074aSVinod Koul	};
290684074aSVinod Koul
300684074aSVinod Koul	vph_pwr: vph-pwr-regulator {
310684074aSVinod Koul		compatible = "regulator-fixed";
320684074aSVinod Koul		regulator-name = "vph_pwr";
330684074aSVinod Koul		regulator-min-microvolt = <3700000>;
340684074aSVinod Koul		regulator-max-microvolt = <3700000>;
350684074aSVinod Koul
360684074aSVinod Koul		regulator-always-on;
370684074aSVinod Koul		regulator-boot-on;
380684074aSVinod Koul	};
390684074aSVinod Koul};
400684074aSVinod Koul
41da97c882SVinod Koul&adsp {
42da97c882SVinod Koul	status = "okay";
43da97c882SVinod Koul	firmware-name = "qcom/sm8350/adsp.mbn";
44da97c882SVinod Koul};
45da97c882SVinod Koul
460684074aSVinod Koul&apps_rsc {
470223fe2bSKrzysztof Kozlowski	regulators-0 {
480684074aSVinod Koul		compatible = "qcom,pm8350-rpmh-regulators";
490684074aSVinod Koul		qcom,pmic-id = "b";
500684074aSVinod Koul
510684074aSVinod Koul		vdd-s1-supply = <&vph_pwr>;
520684074aSVinod Koul		vdd-s2-supply = <&vph_pwr>;
530684074aSVinod Koul		vdd-s3-supply = <&vph_pwr>;
540684074aSVinod Koul		vdd-s4-supply = <&vph_pwr>;
550684074aSVinod Koul		vdd-s5-supply = <&vph_pwr>;
560684074aSVinod Koul		vdd-s6-supply = <&vph_pwr>;
570684074aSVinod Koul		vdd-s7-supply = <&vph_pwr>;
580684074aSVinod Koul		vdd-s8-supply = <&vph_pwr>;
590684074aSVinod Koul		vdd-s9-supply = <&vph_pwr>;
600684074aSVinod Koul		vdd-s10-supply = <&vph_pwr>;
610684074aSVinod Koul		vdd-s11-supply = <&vph_pwr>;
620684074aSVinod Koul		vdd-s12-supply = <&vph_pwr>;
630684074aSVinod Koul
640684074aSVinod Koul		vdd-l1-l4-supply = <&vreg_s11b_0p95>;
650684074aSVinod Koul		vdd-l2-l7-supply = <&vreg_bob>;
660684074aSVinod Koul		vdd-l3-l5-supply = <&vreg_bob>;
670684074aSVinod Koul		vdd-l6-l9-l10-supply = <&vreg_s11b_0p95>;
680684074aSVinod Koul		vdd-l8-supply = <&vreg_s2c_0p8>;
690684074aSVinod Koul
700684074aSVinod Koul		vreg_s10b_1p8: smps10 {
712fc19af6SVinod Koul			regulator-name = "vreg_s10b_1p8";
720684074aSVinod Koul			regulator-min-microvolt = <1800000>;
730684074aSVinod Koul			regulator-max-microvolt = <1800000>;
740684074aSVinod Koul		};
750684074aSVinod Koul
760684074aSVinod Koul		vreg_s11b_0p95: smps11 {
772fc19af6SVinod Koul			regulator-name = "vreg_s11b_0p95";
780684074aSVinod Koul			regulator-min-microvolt = <752000>;
790684074aSVinod Koul			regulator-max-microvolt = <1000000>;
800684074aSVinod Koul		};
810684074aSVinod Koul
820684074aSVinod Koul		vreg_s12b_1p25: smps12 {
832fc19af6SVinod Koul			regulator-name = "vreg_s12b_1p25";
840684074aSVinod Koul			regulator-min-microvolt = <1224000>;
850684074aSVinod Koul			regulator-max-microvolt = <1360000>;
860684074aSVinod Koul		};
870684074aSVinod Koul
880684074aSVinod Koul		vreg_l1b_0p88: ldo1 {
892fc19af6SVinod Koul			regulator-name = "vreg_l1b_0p88";
900684074aSVinod Koul			regulator-min-microvolt = <912000>;
910684074aSVinod Koul			regulator-max-microvolt = <920000>;
920684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
930684074aSVinod Koul		};
940684074aSVinod Koul
950684074aSVinod Koul		vreg_l2b_3p07: ldo2 {
962fc19af6SVinod Koul			regulator-name = "vreg_l2b_3p07";
970684074aSVinod Koul			regulator-min-microvolt = <3072000>;
980684074aSVinod Koul			regulator-max-microvolt = <3072000>;
990684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
1000684074aSVinod Koul		};
1010684074aSVinod Koul
1020684074aSVinod Koul		vreg_l3b_0p9: ldo3 {
1032fc19af6SVinod Koul			regulator-name = "vreg_l3b_0p9";
1040684074aSVinod Koul			regulator-min-microvolt = <904000>;
1050684074aSVinod Koul			regulator-max-microvolt = <904000>;
1060684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
1070684074aSVinod Koul		};
1080684074aSVinod Koul
1090684074aSVinod Koul		vreg_l5b_0p88: ldo5 {
1102fc19af6SVinod Koul			regulator-name = "vreg_l3b_0p9";
1110684074aSVinod Koul			regulator-min-microvolt = <880000>;
1120684074aSVinod Koul			regulator-max-microvolt = <888000>;
1130684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
1140684074aSVinod Koul		};
1150684074aSVinod Koul
1160684074aSVinod Koul		vreg_l6b_1p2: ldo6 {
1172fc19af6SVinod Koul			regulator-name = "vreg_l6b_1p2";
1180684074aSVinod Koul			regulator-min-microvolt = <1200000>;
1190684074aSVinod Koul			regulator-max-microvolt = <1208000>;
1200684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
1210684074aSVinod Koul		};
1220684074aSVinod Koul
1230684074aSVinod Koul		vreg_l7b_2p96: ldo7 {
1242fc19af6SVinod Koul			regulator-name = "vreg_l7b_2p96";
1250684074aSVinod Koul			regulator-min-microvolt = <2400000>;
1260684074aSVinod Koul			regulator-max-microvolt = <3008000>;
1270684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
1280684074aSVinod Koul		};
1290684074aSVinod Koul
1300684074aSVinod Koul		vreg_l9b_1p2: ldo9 {
1312fc19af6SVinod Koul			regulator-name = "vreg_l9b_1p2";
1320684074aSVinod Koul			regulator-min-microvolt = <1200000>;
1330684074aSVinod Koul			regulator-max-microvolt = <1200000>;
1340684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
1350684074aSVinod Koul		};
1360684074aSVinod Koul	};
1370684074aSVinod Koul
1380223fe2bSKrzysztof Kozlowski	regulators-1 {
1390684074aSVinod Koul		compatible = "qcom,pm8350c-rpmh-regulators";
1400684074aSVinod Koul		qcom,pmic-id = "c";
1410684074aSVinod Koul
1420684074aSVinod Koul		vdd-s1-supply = <&vph_pwr>;
1430684074aSVinod Koul		vdd-s2-supply = <&vph_pwr>;
1440684074aSVinod Koul		vdd-s3-supply = <&vph_pwr>;
1450684074aSVinod Koul		vdd-s4-supply = <&vph_pwr>;
1460684074aSVinod Koul		vdd-s5-supply = <&vph_pwr>;
1470684074aSVinod Koul		vdd-s6-supply = <&vph_pwr>;
1480684074aSVinod Koul		vdd-s7-supply = <&vph_pwr>;
1490684074aSVinod Koul		vdd-s8-supply = <&vph_pwr>;
1500684074aSVinod Koul		vdd-s9-supply = <&vph_pwr>;
1510684074aSVinod Koul		vdd-s10-supply = <&vph_pwr>;
1520684074aSVinod Koul
1530684074aSVinod Koul		vdd-l1-l12-supply = <&vreg_s1c_1p86>;
1540684074aSVinod Koul		vdd-l2-l8-supply = <&vreg_s1c_1p86>;
1550684074aSVinod Koul		vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob>;
1560684074aSVinod Koul		vdd-l6-l9-l11-supply = <&vreg_bob>;
1570684074aSVinod Koul		vdd-l10-supply = <&vreg_s12b_1p25>;
1580684074aSVinod Koul
1590684074aSVinod Koul		vdd-bob-supply = <&vph_pwr>;
1600684074aSVinod Koul
1610684074aSVinod Koul		vreg_s1c_1p86: smps1 {
1622fc19af6SVinod Koul			regulator-name = "vreg_s1c_1p86";
1630684074aSVinod Koul			regulator-min-microvolt = <1800000>;
1640684074aSVinod Koul			regulator-max-microvolt = <1952000>;
1650684074aSVinod Koul		};
1660684074aSVinod Koul
1670684074aSVinod Koul		vreg_s2c_0p8: smps2 {
1682fc19af6SVinod Koul			regulator-name = "vreg_s2c_0p8";
1690684074aSVinod Koul			regulator-min-microvolt = <640000>;
1700684074aSVinod Koul			regulator-max-microvolt = <1000000>;
1710684074aSVinod Koul		};
1720684074aSVinod Koul
1730684074aSVinod Koul		vreg_s10c_1p05: smps10 {
1742fc19af6SVinod Koul			regulator-name = "vreg_s10c_1p05";
1750684074aSVinod Koul			regulator-min-microvolt = <1048000>;
1760684074aSVinod Koul			regulator-max-microvolt = <1128000>;
1770684074aSVinod Koul		};
1780684074aSVinod Koul
1790684074aSVinod Koul		vreg_bob: bob {
1802fc19af6SVinod Koul			regulator-name = "vreg_bob";
1810684074aSVinod Koul			regulator-min-microvolt = <3008000>;
1820684074aSVinod Koul			regulator-max-microvolt = <3960000>;
1830684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
1840684074aSVinod Koul		};
1850684074aSVinod Koul
1860684074aSVinod Koul		vreg_l1c_1p8: ldo1 {
1872fc19af6SVinod Koul			regulator-name = "vreg_l1c_1p8";
1880684074aSVinod Koul			regulator-min-microvolt = <1800000>;
1890684074aSVinod Koul			regulator-max-microvolt = <1800000>;
1900684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
1910684074aSVinod Koul		};
1920684074aSVinod Koul
1930684074aSVinod Koul		vreg_l2c_1p8: ldo2 {
1942fc19af6SVinod Koul			regulator-name = "vreg_l2c_1p8";
1950684074aSVinod Koul			regulator-min-microvolt = <1800000>;
1960684074aSVinod Koul			regulator-max-microvolt = <1800000>;
1970684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
1980684074aSVinod Koul		};
1990684074aSVinod Koul
2000684074aSVinod Koul		vreg_l3c_3p0: ldo3 {
2012fc19af6SVinod Koul			regulator-name = "vreg_l3c_3p0";
2020684074aSVinod Koul			regulator-min-microvolt = <3008000>;
2030684074aSVinod Koul			regulator-max-microvolt = <3008000>;
2040684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
2050684074aSVinod Koul		};
2060684074aSVinod Koul
2070684074aSVinod Koul		vreg_l4c_uim1: ldo4 {
2082fc19af6SVinod Koul			regulator-name = "vreg_l4c_uim1";
2090684074aSVinod Koul			regulator-min-microvolt = <1704000>;
2100684074aSVinod Koul			regulator-max-microvolt = <3000000>;
2110684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
2120684074aSVinod Koul		};
2130684074aSVinod Koul
2140684074aSVinod Koul		vreg_l5c_uim2: ldo5 {
2152fc19af6SVinod Koul			regulator-name = "vreg_l5c_uim2";
2160684074aSVinod Koul			regulator-min-microvolt = <1704000>;
2170684074aSVinod Koul			regulator-max-microvolt = <3000000>;
2180684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
2190684074aSVinod Koul		};
2200684074aSVinod Koul
2210684074aSVinod Koul		vreg_l6c_1p8: ldo6 {
2222fc19af6SVinod Koul			regulator-name = "vreg_l6c_1p8";
2230684074aSVinod Koul			regulator-min-microvolt = <1800000>;
2240684074aSVinod Koul			regulator-max-microvolt = <2960000>;
2250684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
2260684074aSVinod Koul		};
2270684074aSVinod Koul
2280684074aSVinod Koul		vreg_l7c_3p0: ldo7 {
2292fc19af6SVinod Koul			regulator-name = "vreg_l7c_3p0";
2300684074aSVinod Koul			regulator-min-microvolt = <3008000>;
2310684074aSVinod Koul			regulator-max-microvolt = <3008000>;
2320684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
2330684074aSVinod Koul		};
2340684074aSVinod Koul
2350684074aSVinod Koul		vreg_l8c_1p8: ldo8 {
2362fc19af6SVinod Koul			regulator-name = "vreg_l8c_1p8";
2370684074aSVinod Koul			regulator-min-microvolt = <1800000>;
2380684074aSVinod Koul			regulator-max-microvolt = <1800000>;
2390684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
2400684074aSVinod Koul		};
2410684074aSVinod Koul
2420684074aSVinod Koul		vreg_l9c_2p96: ldo9 {
2432fc19af6SVinod Koul			regulator-name = "vreg_l9c_2p96";
2440684074aSVinod Koul			regulator-min-microvolt = <2960000>;
2450684074aSVinod Koul			regulator-max-microvolt = <3008000>;
2460684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
2470684074aSVinod Koul		};
2480684074aSVinod Koul
2490684074aSVinod Koul		vreg_l10c_1p2: ldo10 {
2502fc19af6SVinod Koul			regulator-name = "vreg_l10c_1p2";
2510684074aSVinod Koul			regulator-min-microvolt = <1200000>;
2520684074aSVinod Koul			regulator-max-microvolt = <1200000>;
2530684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
2540684074aSVinod Koul		};
2550684074aSVinod Koul
2560684074aSVinod Koul		vreg_l11c_2p96: ldo11 {
2572fc19af6SVinod Koul			regulator-name = "vreg_l11c_2p96";
2580684074aSVinod Koul			regulator-min-microvolt = <2400000>;
2590684074aSVinod Koul			regulator-max-microvolt = <3008000>;
2600684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
2610684074aSVinod Koul		};
2620684074aSVinod Koul
2630684074aSVinod Koul		vreg_l12c_1p8: ldo12 {
2642fc19af6SVinod Koul			regulator-name = "vreg_l12c_1p8";
2650684074aSVinod Koul			regulator-min-microvolt = <1800000>;
2660684074aSVinod Koul			regulator-max-microvolt = <2000000>;
2670684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
2680684074aSVinod Koul		};
2690684074aSVinod Koul
2700684074aSVinod Koul		vreg_l13c_3p0: ldo13 {
2712fc19af6SVinod Koul			regulator-name = "vreg_l13c_3p0";
2720684074aSVinod Koul			regulator-min-microvolt = <3000000>;
2730684074aSVinod Koul			regulator-max-microvolt = <3000000>;
2740684074aSVinod Koul			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
2750684074aSVinod Koul		};
2760684074aSVinod Koul	};
2770684074aSVinod Koul};
2780684074aSVinod Koul
279da97c882SVinod Koul&cdsp {
280da97c882SVinod Koul	status = "okay";
281da97c882SVinod Koul	firmware-name = "qcom/sm8350/cdsp.mbn";
282da97c882SVinod Koul};
283da97c882SVinod Koul
284da97c882SVinod Koul&mpss {
285da97c882SVinod Koul	status = "okay";
286da97c882SVinod Koul	firmware-name = "qcom/sm8350/modem.mbn";
287da97c882SVinod Koul};
288da97c882SVinod Koul
28912a7f71aSDouglas Anderson&pmk8350_rtc {
29012a7f71aSDouglas Anderson	status = "okay";
29112a7f71aSDouglas Anderson};
29212a7f71aSDouglas Anderson
2932dab7aacSKonrad Dybcio&pon_pwrkey {
2942dab7aacSKonrad Dybcio	status = "okay";
2952dab7aacSKonrad Dybcio};
2962dab7aacSKonrad Dybcio
2972dab7aacSKonrad Dybcio&pon_resin {
2982dab7aacSKonrad Dybcio	status = "okay";
2992dab7aacSKonrad Dybcio	linux,code = <KEY_VOLUMEDOWN>;
3002dab7aacSKonrad Dybcio};
3012dab7aacSKonrad Dybcio
30287f0b434SRobert Foss&qupv3_id_0 {
3030684074aSVinod Koul	status = "okay";
3040684074aSVinod Koul};
3050684074aSVinod Koul
306da97c882SVinod Koul&slpi {
307da97c882SVinod Koul	status = "okay";
308da97c882SVinod Koul	firmware-name = "qcom/sm8350/slpi.mbn";
309da97c882SVinod Koul};
310da97c882SVinod Koul
3110684074aSVinod Koul&tlmm {
3120684074aSVinod Koul	gpio-reserved-ranges = <52 8>;
3130684074aSVinod Koul};
3140684074aSVinod Koul
3150684074aSVinod Koul&uart2 {
3160684074aSVinod Koul	status = "okay";
3170684074aSVinod Koul};
318054b40a6SJack Pham
319694103bcSVinod Koul&ufs_mem_hc {
320694103bcSVinod Koul	status = "okay";
321694103bcSVinod Koul
322694103bcSVinod Koul	reset-gpios = <&tlmm 203 GPIO_ACTIVE_LOW>;
323694103bcSVinod Koul
324694103bcSVinod Koul	vcc-supply = <&vreg_l7b_2p96>;
325694103bcSVinod Koul	vcc-max-microamp = <800000>;
326694103bcSVinod Koul	vccq-supply = <&vreg_l9b_1p2>;
327694103bcSVinod Koul	vccq-max-microamp = <900000>;
328694103bcSVinod Koul};
329694103bcSVinod Koul
330694103bcSVinod Koul&ufs_mem_phy {
331694103bcSVinod Koul	status = "okay";
332694103bcSVinod Koul
333694103bcSVinod Koul	vdda-phy-supply = <&vreg_l5b_0p88>;
334694103bcSVinod Koul	vdda-pll-supply = <&vreg_l6b_1p2>;
335694103bcSVinod Koul};
336694103bcSVinod Koul
337054b40a6SJack Pham&usb_1 {
338054b40a6SJack Pham	status = "okay";
339054b40a6SJack Pham};
340054b40a6SJack Pham
341054b40a6SJack Pham&usb_1_dwc3 {
342054b40a6SJack Pham	dr_mode = "peripheral";
343054b40a6SJack Pham};
344054b40a6SJack Pham
345054b40a6SJack Pham&usb_1_hsphy {
346054b40a6SJack Pham	status = "okay";
347054b40a6SJack Pham
348054b40a6SJack Pham	vdda-pll-supply = <&vreg_l5b_0p88>;
349054b40a6SJack Pham	vdda18-supply = <&vreg_l1c_1p8>;
350054b40a6SJack Pham	vdda33-supply = <&vreg_l2b_3p07>;
351054b40a6SJack Pham};
352054b40a6SJack Pham
353054b40a6SJack Pham&usb_1_qmpphy {
354054b40a6SJack Pham	status = "okay";
355054b40a6SJack Pham
356054b40a6SJack Pham	vdda-phy-supply = <&vreg_l6b_1p2>;
357054b40a6SJack Pham	vdda-pll-supply = <&vreg_l1b_0p88>;
358054b40a6SJack Pham};
359054b40a6SJack Pham
360054b40a6SJack Pham&usb_2 {
361054b40a6SJack Pham	status = "okay";
362054b40a6SJack Pham};
363054b40a6SJack Pham
364054b40a6SJack Pham&usb_2_hsphy {
365054b40a6SJack Pham	status = "okay";
366054b40a6SJack Pham
367054b40a6SJack Pham	vdda-pll-supply = <&vreg_l5b_0p88>;
368054b40a6SJack Pham	vdda18-supply = <&vreg_l1c_1p8>;
369054b40a6SJack Pham	vdda33-supply = <&vreg_l2b_3p07>;
370054b40a6SJack Pham};
371054b40a6SJack Pham
372054b40a6SJack Pham&usb_2_qmpphy {
373054b40a6SJack Pham	status = "okay";
374054b40a6SJack Pham
375054b40a6SJack Pham	vdda-phy-supply = <&vreg_l6b_1p2>;
376054b40a6SJack Pham	vdda-pll-supply = <&vreg_l5b_0p88>;
377054b40a6SJack Pham};
378adfea97eSAlex Elder
379adfea97eSAlex Elder&ipa {
380a9a9e857SAlex Elder	qcom,gsi-loader = "self";
381adfea97eSAlex Elder	memory-region = <&pil_ipa_fw_mem>;
382a9a9e857SAlex Elder	status = "okay";
383adfea97eSAlex Elder};
384