18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 28c2ecf20Sopenharmony_ci/* Copyright (c) 2015, LGE Inc. All rights reserved. 38c2ecf20Sopenharmony_ci * Copyright (c) 2016, The Linux Foundation. All rights reserved. 48c2ecf20Sopenharmony_ci * Copyright (c) 2021, Petr Vorel <petr.vorel@gmail.com> 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci/dts-v1/; 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#include "msm8992.dtsi" 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci/ { 128c2ecf20Sopenharmony_ci model = "LG Nexus 5X"; 138c2ecf20Sopenharmony_ci compatible = "lg,bullhead", "qcom,msm8992"; 148c2ecf20Sopenharmony_ci /* required for bootloader to select correct board */ 158c2ecf20Sopenharmony_ci qcom,msm-id = <251 0>, <252 0>; 168c2ecf20Sopenharmony_ci qcom,board-id = <0xb64 0>; 178c2ecf20Sopenharmony_ci qcom,pmic-id = <0x10009 0x1000A 0x0 0x0>; 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci /* Bullhead firmware doesn't support PSCI */ 208c2ecf20Sopenharmony_ci /delete-node/ psci; 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci aliases { 238c2ecf20Sopenharmony_ci serial0 = &blsp1_uart2; 248c2ecf20Sopenharmony_ci }; 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci chosen { 278c2ecf20Sopenharmony_ci stdout-path = "serial0:115200n8"; 288c2ecf20Sopenharmony_ci }; 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci reserved-memory { 318c2ecf20Sopenharmony_ci #address-cells = <2>; 328c2ecf20Sopenharmony_ci #size-cells = <2>; 338c2ecf20Sopenharmony_ci ranges; 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci ramoops@1ff00000 { 368c2ecf20Sopenharmony_ci compatible = "ramoops"; 378c2ecf20Sopenharmony_ci reg = <0x0 0x1ff00000 0x0 0x40000>; 388c2ecf20Sopenharmony_ci console-size = <0x10000>; 398c2ecf20Sopenharmony_ci record-size = <0x10000>; 408c2ecf20Sopenharmony_ci ftrace-size = <0x10000>; 418c2ecf20Sopenharmony_ci pmsg-size = <0x20000>; 428c2ecf20Sopenharmony_ci }; 438c2ecf20Sopenharmony_ci }; 448c2ecf20Sopenharmony_ci}; 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci&blsp1_uart2 { 478c2ecf20Sopenharmony_ci status = "okay"; 488c2ecf20Sopenharmony_ci}; 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci&rpm_requests { 518c2ecf20Sopenharmony_ci pm8994-regulators { 528c2ecf20Sopenharmony_ci compatible = "qcom,rpm-pm8994-regulators"; 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci vdd_l1-supply = <&pm8994_s1>; 558c2ecf20Sopenharmony_ci vdd_l2_26_28-supply = <&pm8994_s3>; 568c2ecf20Sopenharmony_ci vdd_l3_11-supply = <&pm8994_s3>; 578c2ecf20Sopenharmony_ci vdd_l4_27_31-supply = <&pm8994_s3>; 588c2ecf20Sopenharmony_ci vdd_l5_7-supply = <&pm8994_s3>; 598c2ecf20Sopenharmony_ci vdd_l6_12_32-supply = <&pm8994_s5>; 608c2ecf20Sopenharmony_ci vdd_l8_16_30-supply = <&vreg_vph_pwr>; 618c2ecf20Sopenharmony_ci vdd_l9_10_18_22-supply = <&vreg_vph_pwr>; 628c2ecf20Sopenharmony_ci vdd_l13_19_23_24-supply = <&vreg_vph_pwr>; 638c2ecf20Sopenharmony_ci vdd_l14_15-supply = <&pm8994_s5>; 648c2ecf20Sopenharmony_ci vdd_l17_29-supply = <&vreg_vph_pwr>; 658c2ecf20Sopenharmony_ci vdd_l20_21-supply = <&vreg_vph_pwr>; 668c2ecf20Sopenharmony_ci vdd_l25-supply = <&pm8994_s5>; 678c2ecf20Sopenharmony_ci vdd_lvs1_2-supply = <&pm8994_s4>; 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ci pm8994_s1: s1 { 708c2ecf20Sopenharmony_ci regulator-min-microvolt = <800000>; 718c2ecf20Sopenharmony_ci regulator-max-microvolt = <800000>; 728c2ecf20Sopenharmony_ci }; 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ci pm8994_s2: s2 { 758c2ecf20Sopenharmony_ci /* TODO */ 768c2ecf20Sopenharmony_ci }; 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ci pm8994_s3: s3 { 798c2ecf20Sopenharmony_ci regulator-min-microvolt = <1300000>; 808c2ecf20Sopenharmony_ci regulator-max-microvolt = <1300000>; 818c2ecf20Sopenharmony_ci }; 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ci pm8994_s4: s4 { 848c2ecf20Sopenharmony_ci regulator-min-microvolt = <1800000>; 858c2ecf20Sopenharmony_ci regulator-max-microvolt = <1800000>; 868c2ecf20Sopenharmony_ci regulator-allow-set-load; 878c2ecf20Sopenharmony_ci regulator-system-load = <325000>; 888c2ecf20Sopenharmony_ci }; 898c2ecf20Sopenharmony_ci 908c2ecf20Sopenharmony_ci pm8994_s5: s5 { 918c2ecf20Sopenharmony_ci regulator-min-microvolt = <2150000>; 928c2ecf20Sopenharmony_ci regulator-max-microvolt = <2150000>; 938c2ecf20Sopenharmony_ci }; 948c2ecf20Sopenharmony_ci 958c2ecf20Sopenharmony_ci pm8994_s7: s7 { 968c2ecf20Sopenharmony_ci regulator-min-microvolt = <1000000>; 978c2ecf20Sopenharmony_ci regulator-max-microvolt = <1000000>; 988c2ecf20Sopenharmony_ci }; 998c2ecf20Sopenharmony_ci 1008c2ecf20Sopenharmony_ci pm8994_l1: l1 { 1018c2ecf20Sopenharmony_ci regulator-min-microvolt = <1000000>; 1028c2ecf20Sopenharmony_ci regulator-max-microvolt = <1000000>; 1038c2ecf20Sopenharmony_ci }; 1048c2ecf20Sopenharmony_ci 1058c2ecf20Sopenharmony_ci pm8994_l2: l2 { 1068c2ecf20Sopenharmony_ci regulator-min-microvolt = <1250000>; 1078c2ecf20Sopenharmony_ci regulator-max-microvolt = <1250000>; 1088c2ecf20Sopenharmony_ci }; 1098c2ecf20Sopenharmony_ci 1108c2ecf20Sopenharmony_ci pm8994_l3: l3 { 1118c2ecf20Sopenharmony_ci regulator-min-microvolt = <1200000>; 1128c2ecf20Sopenharmony_ci regulator-max-microvolt = <1200000>; 1138c2ecf20Sopenharmony_ci }; 1148c2ecf20Sopenharmony_ci 1158c2ecf20Sopenharmony_ci pm8994_l4: l4 { 1168c2ecf20Sopenharmony_ci regulator-min-microvolt = <1225000>; 1178c2ecf20Sopenharmony_ci regulator-max-microvolt = <1225000>; 1188c2ecf20Sopenharmony_ci }; 1198c2ecf20Sopenharmony_ci 1208c2ecf20Sopenharmony_ci pm8994_l5: l5 { 1218c2ecf20Sopenharmony_ci /* TODO */ 1228c2ecf20Sopenharmony_ci }; 1238c2ecf20Sopenharmony_ci 1248c2ecf20Sopenharmony_ci pm8994_l6: l6 { 1258c2ecf20Sopenharmony_ci regulator-min-microvolt = <1800000>; 1268c2ecf20Sopenharmony_ci regulator-max-microvolt = <1800000>; 1278c2ecf20Sopenharmony_ci }; 1288c2ecf20Sopenharmony_ci 1298c2ecf20Sopenharmony_ci pm8994_l7: l7 { 1308c2ecf20Sopenharmony_ci /* TODO */ 1318c2ecf20Sopenharmony_ci }; 1328c2ecf20Sopenharmony_ci 1338c2ecf20Sopenharmony_ci pm8994_l8: l8 { 1348c2ecf20Sopenharmony_ci regulator-min-microvolt = <1800000>; 1358c2ecf20Sopenharmony_ci regulator-max-microvolt = <1800000>; 1368c2ecf20Sopenharmony_ci }; 1378c2ecf20Sopenharmony_ci 1388c2ecf20Sopenharmony_ci pm8994_l9: l9 { 1398c2ecf20Sopenharmony_ci regulator-min-microvolt = <1800000>; 1408c2ecf20Sopenharmony_ci regulator-max-microvolt = <1800000>; 1418c2ecf20Sopenharmony_ci }; 1428c2ecf20Sopenharmony_ci 1438c2ecf20Sopenharmony_ci pm8994_l10: l10 { 1448c2ecf20Sopenharmony_ci regulator-min-microvolt = <1800000>; 1458c2ecf20Sopenharmony_ci regulator-max-microvolt = <1800000>; 1468c2ecf20Sopenharmony_ci }; 1478c2ecf20Sopenharmony_ci 1488c2ecf20Sopenharmony_ci pm8994_l11: l11 { 1498c2ecf20Sopenharmony_ci regulator-min-microvolt = <1200000>; 1508c2ecf20Sopenharmony_ci regulator-max-microvolt = <1200000>; 1518c2ecf20Sopenharmony_ci }; 1528c2ecf20Sopenharmony_ci 1538c2ecf20Sopenharmony_ci pm8994_l12: l12 { 1548c2ecf20Sopenharmony_ci regulator-min-microvolt = <1800000>; 1558c2ecf20Sopenharmony_ci regulator-max-microvolt = <1800000>; 1568c2ecf20Sopenharmony_ci }; 1578c2ecf20Sopenharmony_ci 1588c2ecf20Sopenharmony_ci pm8994_l13: l13 { 1598c2ecf20Sopenharmony_ci regulator-min-microvolt = <1800000>; 1608c2ecf20Sopenharmony_ci regulator-max-microvolt = <2950000>; 1618c2ecf20Sopenharmony_ci }; 1628c2ecf20Sopenharmony_ci 1638c2ecf20Sopenharmony_ci pm8994_l14: l14 { 1648c2ecf20Sopenharmony_ci regulator-min-microvolt = <1200000>; 1658c2ecf20Sopenharmony_ci regulator-max-microvolt = <1200000>; 1668c2ecf20Sopenharmony_ci }; 1678c2ecf20Sopenharmony_ci 1688c2ecf20Sopenharmony_ci pm8994_l15: l15 { 1698c2ecf20Sopenharmony_ci regulator-min-microvolt = <1800000>; 1708c2ecf20Sopenharmony_ci regulator-max-microvolt = <1800000>; 1718c2ecf20Sopenharmony_ci }; 1728c2ecf20Sopenharmony_ci 1738c2ecf20Sopenharmony_ci pm8994_l16: l16 { 1748c2ecf20Sopenharmony_ci regulator-min-microvolt = <2700000>; 1758c2ecf20Sopenharmony_ci regulator-max-microvolt = <2700000>; 1768c2ecf20Sopenharmony_ci }; 1778c2ecf20Sopenharmony_ci 1788c2ecf20Sopenharmony_ci pm8994_l17: l17 { 1798c2ecf20Sopenharmony_ci regulator-min-microvolt = <2700000>; 1808c2ecf20Sopenharmony_ci regulator-max-microvolt = <2700000>; 1818c2ecf20Sopenharmony_ci }; 1828c2ecf20Sopenharmony_ci 1838c2ecf20Sopenharmony_ci pm8994_l18: l18 { 1848c2ecf20Sopenharmony_ci regulator-min-microvolt = <3000000>; 1858c2ecf20Sopenharmony_ci regulator-max-microvolt = <3000000>; 1868c2ecf20Sopenharmony_ci }; 1878c2ecf20Sopenharmony_ci 1888c2ecf20Sopenharmony_ci pm8994_l19: l19 { 1898c2ecf20Sopenharmony_ci regulator-min-microvolt = <1800000>; 1908c2ecf20Sopenharmony_ci regulator-max-microvolt = <1800000>; 1918c2ecf20Sopenharmony_ci }; 1928c2ecf20Sopenharmony_ci 1938c2ecf20Sopenharmony_ci pm8994_l20: l20 { 1948c2ecf20Sopenharmony_ci regulator-min-microvolt = <2950000>; 1958c2ecf20Sopenharmony_ci regulator-max-microvolt = <2950000>; 1968c2ecf20Sopenharmony_ci regulator-always-on; 1978c2ecf20Sopenharmony_ci regulator-boot-on; 1988c2ecf20Sopenharmony_ci regulator-allow-set-load; 1998c2ecf20Sopenharmony_ci regulator-system-load = <570000>; 2008c2ecf20Sopenharmony_ci }; 2018c2ecf20Sopenharmony_ci 2028c2ecf20Sopenharmony_ci pm8994_l21: l21 { 2038c2ecf20Sopenharmony_ci regulator-min-microvolt = <1800000>; 2048c2ecf20Sopenharmony_ci regulator-max-microvolt = <1800000>; 2058c2ecf20Sopenharmony_ci regulator-always-on; 2068c2ecf20Sopenharmony_ci }; 2078c2ecf20Sopenharmony_ci 2088c2ecf20Sopenharmony_ci pm8994_l22: l22 { 2098c2ecf20Sopenharmony_ci regulator-min-microvolt = <3100000>; 2108c2ecf20Sopenharmony_ci regulator-max-microvolt = <3100000>; 2118c2ecf20Sopenharmony_ci }; 2128c2ecf20Sopenharmony_ci 2138c2ecf20Sopenharmony_ci pm8994_l23: l23 { 2148c2ecf20Sopenharmony_ci regulator-min-microvolt = <2800000>; 2158c2ecf20Sopenharmony_ci regulator-max-microvolt = <2800000>; 2168c2ecf20Sopenharmony_ci }; 2178c2ecf20Sopenharmony_ci 2188c2ecf20Sopenharmony_ci pm8994_l24: l24 { 2198c2ecf20Sopenharmony_ci regulator-min-microvolt = <3075000>; 2208c2ecf20Sopenharmony_ci regulator-max-microvolt = <3150000>; 2218c2ecf20Sopenharmony_ci }; 2228c2ecf20Sopenharmony_ci 2238c2ecf20Sopenharmony_ci pm8994_l25: l25 { 2248c2ecf20Sopenharmony_ci regulator-min-microvolt = <1800000>; 2258c2ecf20Sopenharmony_ci regulator-max-microvolt = <1800000>; 2268c2ecf20Sopenharmony_ci }; 2278c2ecf20Sopenharmony_ci 2288c2ecf20Sopenharmony_ci pm8994_l26: l26 { 2298c2ecf20Sopenharmony_ci /* TODO: value from downstream 2308c2ecf20Sopenharmony_ci regulator-min-microvolt = <987500>; 2318c2ecf20Sopenharmony_ci fails to apply */ 2328c2ecf20Sopenharmony_ci }; 2338c2ecf20Sopenharmony_ci 2348c2ecf20Sopenharmony_ci pm8994_l27: l27 { 2358c2ecf20Sopenharmony_ci regulator-min-microvolt = <1050000>; 2368c2ecf20Sopenharmony_ci regulator-max-microvolt = <1050000>; 2378c2ecf20Sopenharmony_ci }; 2388c2ecf20Sopenharmony_ci 2398c2ecf20Sopenharmony_ci pm8994_l28: l28 { 2408c2ecf20Sopenharmony_ci regulator-min-microvolt = <1000000>; 2418c2ecf20Sopenharmony_ci regulator-max-microvolt = <1000000>; 2428c2ecf20Sopenharmony_ci }; 2438c2ecf20Sopenharmony_ci 2448c2ecf20Sopenharmony_ci pm8994_l29: l29 { 2458c2ecf20Sopenharmony_ci /* TODO: Unsupported voltage range. 2468c2ecf20Sopenharmony_ci regulator-min-microvolt = <2800000>; 2478c2ecf20Sopenharmony_ci regulator-max-microvolt = <2800000>; 2488c2ecf20Sopenharmony_ci qcom,init-voltage = <2800000>; 2498c2ecf20Sopenharmony_ci */ 2508c2ecf20Sopenharmony_ci }; 2518c2ecf20Sopenharmony_ci 2528c2ecf20Sopenharmony_ci pm8994_l30: l30 { 2538c2ecf20Sopenharmony_ci /* TODO: get this verified 2548c2ecf20Sopenharmony_ci regulator-min-microvolt = <1800000>; 2558c2ecf20Sopenharmony_ci regulator-max-microvolt = <1800000>; 2568c2ecf20Sopenharmony_ci qcom,init-voltage = <1800000>; 2578c2ecf20Sopenharmony_ci */ 2588c2ecf20Sopenharmony_ci }; 2598c2ecf20Sopenharmony_ci 2608c2ecf20Sopenharmony_ci pm8994_l31: l31 { 2618c2ecf20Sopenharmony_ci regulator-min-microvolt = <1262500>; 2628c2ecf20Sopenharmony_ci regulator-max-microvolt = <1262500>; 2638c2ecf20Sopenharmony_ci }; 2648c2ecf20Sopenharmony_ci 2658c2ecf20Sopenharmony_ci pm8994_l32: l32 { 2668c2ecf20Sopenharmony_ci /* TODO: get this verified 2678c2ecf20Sopenharmony_ci regulator-min-microvolt = <1800000>; 2688c2ecf20Sopenharmony_ci regulator-max-microvolt = <1800000>; 2698c2ecf20Sopenharmony_ci qcom,init-voltage = <1800000>; 2708c2ecf20Sopenharmony_ci */ 2718c2ecf20Sopenharmony_ci }; 2728c2ecf20Sopenharmony_ci }; 2738c2ecf20Sopenharmony_ci}; 2748c2ecf20Sopenharmony_ci 2758c2ecf20Sopenharmony_ci&sdhc_1 { 2768c2ecf20Sopenharmony_ci status = "okay"; 2778c2ecf20Sopenharmony_ci 2788c2ecf20Sopenharmony_ci mmc-hs400-1_8v; 2798c2ecf20Sopenharmony_ci}; 280