15956d97fSEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause 25956d97fSEmmanuel Vadot/* 35956d97fSEmmanuel Vadot * Copyright (C) 2021, Microsoft Corporation 45956d97fSEmmanuel Vadot */ 55956d97fSEmmanuel Vadot 65956d97fSEmmanuel Vadot/dts-v1/; 75956d97fSEmmanuel Vadot 85956d97fSEmmanuel Vadot#include <dt-bindings/regulator/qcom,rpmh-regulator.h> 95956d97fSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 105956d97fSEmmanuel Vadot#include "sm8150.dtsi" 115956d97fSEmmanuel Vadot#include "pm8150.dtsi" 125956d97fSEmmanuel Vadot#include "pm8150b.dtsi" 135956d97fSEmmanuel Vadot#include "pm8150l.dtsi" 145956d97fSEmmanuel Vadot 155956d97fSEmmanuel Vadot/ { 165956d97fSEmmanuel Vadot model = "Microsoft Surface Duo"; 175956d97fSEmmanuel Vadot compatible = "microsoft,surface-duo", "qcom,sm8150"; 188cc087a1SEmmanuel Vadot chassis-type = "handset"; 195956d97fSEmmanuel Vadot 205956d97fSEmmanuel Vadot aliases { 215956d97fSEmmanuel Vadot serial0 = &uart2; 225956d97fSEmmanuel Vadot }; 235956d97fSEmmanuel Vadot 245956d97fSEmmanuel Vadot chosen { 255956d97fSEmmanuel Vadot stdout-path = "serial0:115200n8"; 265956d97fSEmmanuel Vadot }; 275956d97fSEmmanuel Vadot 285956d97fSEmmanuel Vadot vph_pwr: vph-pwr-regulator { 295956d97fSEmmanuel Vadot compatible = "regulator-fixed"; 305956d97fSEmmanuel Vadot regulator-name = "vph_pwr"; 315956d97fSEmmanuel Vadot regulator-min-microvolt = <3700000>; 325956d97fSEmmanuel Vadot regulator-max-microvolt = <3700000>; 335956d97fSEmmanuel Vadot }; 345956d97fSEmmanuel Vadot 355956d97fSEmmanuel Vadot /* 365956d97fSEmmanuel Vadot * Apparently RPMh does not provide support for PM8150 S4 because it 375956d97fSEmmanuel Vadot * is always-on; model it as a fixed regulator. 385956d97fSEmmanuel Vadot */ 395956d97fSEmmanuel Vadot vreg_s4a_1p8: pm8150-s4 { 405956d97fSEmmanuel Vadot compatible = "regulator-fixed"; 415956d97fSEmmanuel Vadot regulator-name = "vreg_s4a_1p8"; 425956d97fSEmmanuel Vadot 435956d97fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 445956d97fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 455956d97fSEmmanuel Vadot 465956d97fSEmmanuel Vadot regulator-always-on; 475956d97fSEmmanuel Vadot regulator-boot-on; 485956d97fSEmmanuel Vadot 495956d97fSEmmanuel Vadot vin-supply = <&vph_pwr>; 505956d97fSEmmanuel Vadot }; 515956d97fSEmmanuel Vadot 52b97ee269SEmmanuel Vadot gpio-keys { 535956d97fSEmmanuel Vadot compatible = "gpio-keys"; 545956d97fSEmmanuel Vadot 55b97ee269SEmmanuel Vadot key-vol-up { 565956d97fSEmmanuel Vadot label = "Volume Up"; 575956d97fSEmmanuel Vadot gpios = <&pm8150_gpios 6 GPIO_ACTIVE_LOW>; 585956d97fSEmmanuel Vadot linux,code = <KEY_VOLUMEUP>; 595956d97fSEmmanuel Vadot }; 605956d97fSEmmanuel Vadot }; 615956d97fSEmmanuel Vadot}; 625956d97fSEmmanuel Vadot 635956d97fSEmmanuel Vadot&apps_rsc { 64*cb7aa33aSEmmanuel Vadot regulators-0 { 655956d97fSEmmanuel Vadot compatible = "qcom,pm8150-rpmh-regulators"; 665956d97fSEmmanuel Vadot qcom,pmic-id = "a"; 675956d97fSEmmanuel Vadot 685956d97fSEmmanuel Vadot vdd-s1-supply = <&vph_pwr>; 695956d97fSEmmanuel Vadot vdd-s2-supply = <&vph_pwr>; 705956d97fSEmmanuel Vadot vdd-s3-supply = <&vph_pwr>; 715956d97fSEmmanuel Vadot vdd-s4-supply = <&vph_pwr>; 725956d97fSEmmanuel Vadot vdd-s5-supply = <&vph_pwr>; 735956d97fSEmmanuel Vadot vdd-s6-supply = <&vph_pwr>; 745956d97fSEmmanuel Vadot vdd-s7-supply = <&vph_pwr>; 755956d97fSEmmanuel Vadot vdd-s8-supply = <&vph_pwr>; 765956d97fSEmmanuel Vadot vdd-s9-supply = <&vph_pwr>; 775956d97fSEmmanuel Vadot vdd-s10-supply = <&vph_pwr>; 785956d97fSEmmanuel Vadot 795956d97fSEmmanuel Vadot vdd-l1-l8-l11-supply = <&vreg_s6a_0p9>; 805956d97fSEmmanuel Vadot vdd-l2-l10-supply = <&vreg_bob>; 815956d97fSEmmanuel Vadot vdd-l3-l4-l5-l18-supply = <&vreg_s6a_0p9>; 825956d97fSEmmanuel Vadot vdd-l6-l9-supply = <&vreg_s8c_1p3>; 835956d97fSEmmanuel Vadot vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p0>; 845956d97fSEmmanuel Vadot vdd-l13-l16-l17-supply = <&vreg_bob>; 855956d97fSEmmanuel Vadot 865956d97fSEmmanuel Vadot vreg_s5a_2p0: smps5 { 875956d97fSEmmanuel Vadot regulator-min-microvolt = <1904000>; 885956d97fSEmmanuel Vadot regulator-max-microvolt = <2000000>; 895956d97fSEmmanuel Vadot }; 905956d97fSEmmanuel Vadot 915956d97fSEmmanuel Vadot vreg_s6a_0p9: smps6 { 925956d97fSEmmanuel Vadot regulator-min-microvolt = <920000>; 935956d97fSEmmanuel Vadot regulator-max-microvolt = <1128000>; 945956d97fSEmmanuel Vadot }; 955956d97fSEmmanuel Vadot 965956d97fSEmmanuel Vadot vdda_wcss_pll: 975956d97fSEmmanuel Vadot vreg_l1a_0p75: ldo1 { 985956d97fSEmmanuel Vadot regulator-min-microvolt = <752000>; 995956d97fSEmmanuel Vadot regulator-max-microvolt = <752000>; 1005956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 1015956d97fSEmmanuel Vadot }; 1025956d97fSEmmanuel Vadot 1035956d97fSEmmanuel Vadot vdd_pdphy: 1045956d97fSEmmanuel Vadot vdda_usb_hs_3p1: 1055956d97fSEmmanuel Vadot vreg_l2a_3p1: ldo2 { 1065956d97fSEmmanuel Vadot regulator-min-microvolt = <3072000>; 1075956d97fSEmmanuel Vadot regulator-max-microvolt = <3072000>; 1085956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 1095956d97fSEmmanuel Vadot }; 1105956d97fSEmmanuel Vadot 1115956d97fSEmmanuel Vadot vreg_l3a_0p8: ldo3 { 1125956d97fSEmmanuel Vadot regulator-min-microvolt = <480000>; 1135956d97fSEmmanuel Vadot regulator-max-microvolt = <932000>; 1145956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 1155956d97fSEmmanuel Vadot }; 1165956d97fSEmmanuel Vadot 1175956d97fSEmmanuel Vadot vdd_usb_hs_core: 1185956d97fSEmmanuel Vadot vdda_csi_0_0p9: 1195956d97fSEmmanuel Vadot vdda_csi_1_0p9: 1205956d97fSEmmanuel Vadot vdda_csi_2_0p9: 1215956d97fSEmmanuel Vadot vdda_csi_3_0p9: 1225956d97fSEmmanuel Vadot vdda_dsi_0_0p9: 1235956d97fSEmmanuel Vadot vdda_dsi_1_0p9: 1245956d97fSEmmanuel Vadot vdda_dsi_0_pll_0p9: 1255956d97fSEmmanuel Vadot vdda_dsi_1_pll_0p9: 1265956d97fSEmmanuel Vadot vdda_pcie_1ln_core: 1275956d97fSEmmanuel Vadot vdda_pcie_2ln_core: 1285956d97fSEmmanuel Vadot vdda_pll_hv_cc_ebi01: 1295956d97fSEmmanuel Vadot vdda_pll_hv_cc_ebi23: 1305956d97fSEmmanuel Vadot vdda_qrefs_0p875_5: 1315956d97fSEmmanuel Vadot vdda_sp_sensor: 1325956d97fSEmmanuel Vadot vdda_ufs_2ln_core_1: 1335956d97fSEmmanuel Vadot vdda_ufs_2ln_core_2: 1345956d97fSEmmanuel Vadot vdda_usb_ss_dp_core_1: 1355956d97fSEmmanuel Vadot vdda_usb_ss_dp_core_2: 1365956d97fSEmmanuel Vadot vdda_qlink_lv: 1375956d97fSEmmanuel Vadot vdda_qlink_lv_ck: 1385956d97fSEmmanuel Vadot vreg_l5a_0p875: ldo5 { 1395956d97fSEmmanuel Vadot regulator-min-microvolt = <880000>; 1405956d97fSEmmanuel Vadot regulator-max-microvolt = <880000>; 1415956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 1425956d97fSEmmanuel Vadot }; 1435956d97fSEmmanuel Vadot 1445956d97fSEmmanuel Vadot vreg_l6a_1p2: ldo6 { 1455956d97fSEmmanuel Vadot regulator-min-microvolt = <1200000>; 1465956d97fSEmmanuel Vadot regulator-max-microvolt = <1200000>; 1475956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 1485956d97fSEmmanuel Vadot }; 1495956d97fSEmmanuel Vadot 1505956d97fSEmmanuel Vadot vreg_l7a_1p8: ldo7 { 1515956d97fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 1525956d97fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 1535956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 1545956d97fSEmmanuel Vadot }; 1555956d97fSEmmanuel Vadot 1565956d97fSEmmanuel Vadot vddpx_10: 1575956d97fSEmmanuel Vadot vreg_l9a_1p2: ldo9 { 1585956d97fSEmmanuel Vadot regulator-min-microvolt = <1200000>; 1595956d97fSEmmanuel Vadot regulator-max-microvolt = <1200000>; 1605956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 1615956d97fSEmmanuel Vadot }; 1625956d97fSEmmanuel Vadot 1635956d97fSEmmanuel Vadot vreg_l10a_2p5: ldo10 { 1645956d97fSEmmanuel Vadot regulator-min-microvolt = <2504000>; 1655956d97fSEmmanuel Vadot regulator-max-microvolt = <2960000>; 1665956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 1675956d97fSEmmanuel Vadot }; 1685956d97fSEmmanuel Vadot 1695956d97fSEmmanuel Vadot vreg_l11a_0p8: ldo11 { 1705956d97fSEmmanuel Vadot regulator-min-microvolt = <800000>; 1715956d97fSEmmanuel Vadot regulator-max-microvolt = <800000>; 1725956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 1735956d97fSEmmanuel Vadot }; 1745956d97fSEmmanuel Vadot 1755956d97fSEmmanuel Vadot vdd_qfprom: 1765956d97fSEmmanuel Vadot vdd_qfprom_sp: 1775956d97fSEmmanuel Vadot vdda_apc_cs_1p8: 1785956d97fSEmmanuel Vadot vdda_gfx_cs_1p8: 1795956d97fSEmmanuel Vadot vdda_usb_hs_1p8: 1805956d97fSEmmanuel Vadot vdda_qrefs_vref_1p8: 1815956d97fSEmmanuel Vadot vddpx_10_a: 1825956d97fSEmmanuel Vadot vreg_l12a_1p8: ldo12 { 1835956d97fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 1845956d97fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 1855956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 1865956d97fSEmmanuel Vadot }; 1875956d97fSEmmanuel Vadot 1885956d97fSEmmanuel Vadot vreg_l13a_2p7: ldo13 { 1895956d97fSEmmanuel Vadot regulator-min-microvolt = <2704000>; 1905956d97fSEmmanuel Vadot regulator-max-microvolt = <2704000>; 1915956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 1925956d97fSEmmanuel Vadot }; 1935956d97fSEmmanuel Vadot 1945956d97fSEmmanuel Vadot vreg_l14a_1p8: ldo14 { 1955956d97fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 1965956d97fSEmmanuel Vadot regulator-max-microvolt = <1880000>; 1975956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 1985956d97fSEmmanuel Vadot }; 1995956d97fSEmmanuel Vadot 2005956d97fSEmmanuel Vadot vreg_l15a_1p7: ldo15 { 2015956d97fSEmmanuel Vadot regulator-min-microvolt = <1704000>; 2025956d97fSEmmanuel Vadot regulator-max-microvolt = <1704000>; 2035956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 2045956d97fSEmmanuel Vadot }; 2055956d97fSEmmanuel Vadot 2065956d97fSEmmanuel Vadot vreg_l16a_2p7: ldo16 { 2075956d97fSEmmanuel Vadot regulator-min-microvolt = <2704000>; 2085956d97fSEmmanuel Vadot regulator-max-microvolt = <2960000>; 2095956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 2105956d97fSEmmanuel Vadot }; 2115956d97fSEmmanuel Vadot 2125956d97fSEmmanuel Vadot vreg_l17a_3p0: ldo17 { 2135956d97fSEmmanuel Vadot regulator-min-microvolt = <2856000>; 2145956d97fSEmmanuel Vadot regulator-max-microvolt = <3008000>; 2155956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 2165956d97fSEmmanuel Vadot }; 2175956d97fSEmmanuel Vadot }; 2185956d97fSEmmanuel Vadot 219*cb7aa33aSEmmanuel Vadot regulators-1 { 2205956d97fSEmmanuel Vadot compatible = "qcom,pm8150l-rpmh-regulators"; 2215956d97fSEmmanuel Vadot qcom,pmic-id = "c"; 2225956d97fSEmmanuel Vadot 2235956d97fSEmmanuel Vadot vdd-s1-supply = <&vph_pwr>; 2245956d97fSEmmanuel Vadot vdd-s2-supply = <&vph_pwr>; 2255956d97fSEmmanuel Vadot vdd-s3-supply = <&vph_pwr>; 2265956d97fSEmmanuel Vadot vdd-s4-supply = <&vph_pwr>; 2275956d97fSEmmanuel Vadot vdd-s5-supply = <&vph_pwr>; 2285956d97fSEmmanuel Vadot vdd-s6-supply = <&vph_pwr>; 2295956d97fSEmmanuel Vadot vdd-s7-supply = <&vph_pwr>; 2305956d97fSEmmanuel Vadot vdd-s8-supply = <&vph_pwr>; 2315956d97fSEmmanuel Vadot 2325956d97fSEmmanuel Vadot vdd-l1-l8-supply = <&vreg_s4a_1p8>; 2335956d97fSEmmanuel Vadot vdd-l2-l3-supply = <&vreg_s8c_1p3>; 2345956d97fSEmmanuel Vadot vdd-l4-l5-l6-supply = <&vreg_bob>; 2355956d97fSEmmanuel Vadot vdd-l7-l11-supply = <&vreg_bob>; 2365956d97fSEmmanuel Vadot vdd-l9-l10-supply = <&vreg_bob>; 2375956d97fSEmmanuel Vadot 2385956d97fSEmmanuel Vadot vdd-bob-supply = <&vph_pwr>; 2395956d97fSEmmanuel Vadot vdd-flash-supply = <&vreg_bob>; 2405956d97fSEmmanuel Vadot vdd-rgb-supply = <&vreg_bob>; 2415956d97fSEmmanuel Vadot 2425956d97fSEmmanuel Vadot vreg_bob: bob { 2435956d97fSEmmanuel Vadot regulator-min-microvolt = <3008000>; 2445956d97fSEmmanuel Vadot regulator-max-microvolt = <4000000>; 2455956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>; 2465956d97fSEmmanuel Vadot regulator-allow-bypass; 2475956d97fSEmmanuel Vadot }; 2485956d97fSEmmanuel Vadot 2495956d97fSEmmanuel Vadot vreg_s8c_1p3: smps8 { 2505956d97fSEmmanuel Vadot regulator-min-microvolt = <1352000>; 2515956d97fSEmmanuel Vadot regulator-max-microvolt = <1352000>; 2525956d97fSEmmanuel Vadot }; 2535956d97fSEmmanuel Vadot 2545956d97fSEmmanuel Vadot vreg_l1c_1p8: ldo1 { 2555956d97fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 2565956d97fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 2575956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 2585956d97fSEmmanuel Vadot }; 2595956d97fSEmmanuel Vadot 2605956d97fSEmmanuel Vadot vdda_wcss_adcdac_1: 2615956d97fSEmmanuel Vadot vdda_wcss_adcdac_22: 2625956d97fSEmmanuel Vadot vreg_l2c_1p3: ldo2 { 2635956d97fSEmmanuel Vadot regulator-min-microvolt = <1304000>; 2645956d97fSEmmanuel Vadot regulator-max-microvolt = <1304000>; 2655956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 2665956d97fSEmmanuel Vadot }; 2675956d97fSEmmanuel Vadot 2685956d97fSEmmanuel Vadot vdda_hv_ebi0: 2695956d97fSEmmanuel Vadot vdda_hv_ebi1: 2705956d97fSEmmanuel Vadot vdda_hv_ebi2: 2715956d97fSEmmanuel Vadot vdda_hv_ebi3: 2725956d97fSEmmanuel Vadot vdda_hv_refgen0: 2735956d97fSEmmanuel Vadot vdda_qlink_hv_ck: 2745956d97fSEmmanuel Vadot vreg_l3c_1p2: ldo3 { 2755956d97fSEmmanuel Vadot regulator-min-microvolt = <1200000>; 2765956d97fSEmmanuel Vadot regulator-max-microvolt = <1200000>; 2775956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 2785956d97fSEmmanuel Vadot }; 2795956d97fSEmmanuel Vadot 2805956d97fSEmmanuel Vadot vddpx_5: 2815956d97fSEmmanuel Vadot vreg_l4c_1p8: ldo4 { 2825956d97fSEmmanuel Vadot regulator-min-microvolt = <1704000>; 2835956d97fSEmmanuel Vadot regulator-max-microvolt = <2928000>; 2845956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 2855956d97fSEmmanuel Vadot }; 2865956d97fSEmmanuel Vadot 2875956d97fSEmmanuel Vadot vddpx_6: 2885956d97fSEmmanuel Vadot vreg_l5c_1p8: ldo5 { 2895956d97fSEmmanuel Vadot regulator-min-microvolt = <1704000>; 2905956d97fSEmmanuel Vadot regulator-max-microvolt = <2928000>; 2915956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 2925956d97fSEmmanuel Vadot }; 2935956d97fSEmmanuel Vadot 2945956d97fSEmmanuel Vadot vddpx_2: 2955956d97fSEmmanuel Vadot vreg_l6c_2p9: ldo6 { 2965956d97fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 2975956d97fSEmmanuel Vadot regulator-max-microvolt = <2960000>; 2985956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 2995956d97fSEmmanuel Vadot }; 3005956d97fSEmmanuel Vadot 3015956d97fSEmmanuel Vadot vreg_l7c_3p0: ldo7 { 3025956d97fSEmmanuel Vadot regulator-min-microvolt = <2856000>; 3035956d97fSEmmanuel Vadot regulator-max-microvolt = <3104000>; 3045956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 3055956d97fSEmmanuel Vadot }; 3065956d97fSEmmanuel Vadot 3075956d97fSEmmanuel Vadot vreg_l8c_1p8: ldo8 { 3085956d97fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 3095956d97fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 3105956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 3115956d97fSEmmanuel Vadot }; 3125956d97fSEmmanuel Vadot 3135956d97fSEmmanuel Vadot vreg_l9c_2p9: ldo9 { 3145956d97fSEmmanuel Vadot regulator-min-microvolt = <2704000>; 3155956d97fSEmmanuel Vadot regulator-max-microvolt = <2960000>; 3165956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 3175956d97fSEmmanuel Vadot }; 3185956d97fSEmmanuel Vadot 3195956d97fSEmmanuel Vadot vreg_l10c_3p3: ldo10 { 3205956d97fSEmmanuel Vadot regulator-min-microvolt = <3000000>; 3215956d97fSEmmanuel Vadot regulator-max-microvolt = <3312000>; 3225956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 3235956d97fSEmmanuel Vadot }; 3245956d97fSEmmanuel Vadot 3255956d97fSEmmanuel Vadot vreg_l11c_3p3: ldo11 { 3265956d97fSEmmanuel Vadot regulator-min-microvolt = <3000000>; 3275956d97fSEmmanuel Vadot regulator-max-microvolt = <3312000>; 3285956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 3295956d97fSEmmanuel Vadot }; 3305956d97fSEmmanuel Vadot }; 3315956d97fSEmmanuel Vadot 332*cb7aa33aSEmmanuel Vadot regulators-2 { 3335956d97fSEmmanuel Vadot compatible = "qcom,pm8009-rpmh-regulators"; 3345956d97fSEmmanuel Vadot qcom,pmic-id = "f"; 3355956d97fSEmmanuel Vadot 3365956d97fSEmmanuel Vadot vdd-s1-supply = <&vph_pwr>; 3375956d97fSEmmanuel Vadot vdd-s2-supply = <&vreg_bob>; 3385956d97fSEmmanuel Vadot 3395956d97fSEmmanuel Vadot vdd-l2-supply = <&vreg_s8c_1p3>; 3405956d97fSEmmanuel Vadot vdd-l5-l6-supply = <&vreg_bob>; 3415956d97fSEmmanuel Vadot 3425956d97fSEmmanuel Vadot vreg_l2f_1p2: ldo2 { 3435956d97fSEmmanuel Vadot regulator-min-microvolt = <1200000>; 3445956d97fSEmmanuel Vadot regulator-max-microvolt = <1200000>; 3455956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 3465956d97fSEmmanuel Vadot }; 3475956d97fSEmmanuel Vadot 3485956d97fSEmmanuel Vadot vreg_l5f_2p85: ldo5 { 3495956d97fSEmmanuel Vadot regulator-min-microvolt = <2800000>; 3505956d97fSEmmanuel Vadot regulator-max-microvolt = <2800000>; 3515956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 3525956d97fSEmmanuel Vadot }; 3535956d97fSEmmanuel Vadot 3545956d97fSEmmanuel Vadot vreg_l6f_2p85: ldo6 { 3555956d97fSEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 3565956d97fSEmmanuel Vadot regulator-min-microvolt = <2856000>; 3575956d97fSEmmanuel Vadot regulator-max-microvolt = <2856000>; 3585956d97fSEmmanuel Vadot }; 3595956d97fSEmmanuel Vadot }; 3605956d97fSEmmanuel Vadot}; 3615956d97fSEmmanuel Vadot 3625956d97fSEmmanuel Vadot&i2c1 { 3635956d97fSEmmanuel Vadot status = "okay"; 3645956d97fSEmmanuel Vadot clock-frequency = <400000>; 3655956d97fSEmmanuel Vadot 3665956d97fSEmmanuel Vadot bq27742@55 { 3675956d97fSEmmanuel Vadot compatible = "ti,bq27742"; 3685956d97fSEmmanuel Vadot reg = <0x55>; 3695956d97fSEmmanuel Vadot }; 3705956d97fSEmmanuel Vadot 3715956d97fSEmmanuel Vadot da7280@4a { 3725956d97fSEmmanuel Vadot compatible = "dlg,da7280"; 3735956d97fSEmmanuel Vadot reg = <0x4a>; 3745956d97fSEmmanuel Vadot interrupts-extended = <&tlmm 42 IRQ_TYPE_LEVEL_LOW>; 3755956d97fSEmmanuel Vadot pinctrl-names = "da7280_default"; 3765956d97fSEmmanuel Vadot pinctrl-0 = <&da7280_intr_default>; 3775956d97fSEmmanuel Vadot 3785956d97fSEmmanuel Vadot dlg,actuator-type = "LRA"; 3795956d97fSEmmanuel Vadot dlg,dlg,const-op-mode = <1>; 3805956d97fSEmmanuel Vadot dlg,dlg,periodic-op-mode = <1>; 3815956d97fSEmmanuel Vadot dlg,nom-microvolt = <2000000>; 3825956d97fSEmmanuel Vadot dlg,abs-max-microvolt = <2000000>; 3835956d97fSEmmanuel Vadot dlg,imax-microamp = <129000>; 3845956d97fSEmmanuel Vadot dlg,resonant-freq-hz = <180>; 3855956d97fSEmmanuel Vadot dlg,impd-micro-ohms = <14300000>; 3865956d97fSEmmanuel Vadot dlg,freq-track-enable; 3875956d97fSEmmanuel Vadot dlg,bemf-sens-enable; 3885956d97fSEmmanuel Vadot dlg,mem-array = < 3895956d97fSEmmanuel Vadot 0x06 0x08 0x10 0x11 0x12 0x13 0x14 0x15 0x1c 0x2a 3905956d97fSEmmanuel Vadot 0x33 0x3c 0x42 0x4b 0x4c 0x4e 0x17 0x19 0x27 0x29 3915956d97fSEmmanuel Vadot 0x17 0x19 0x03 0x84 0x5e 0x04 0x08 0x84 0x5d 0x01 3925956d97fSEmmanuel Vadot 0x84 0x5e 0x02 0x00 0xa4 0x5d 0x03 0x84 0x5e 0x06 3935956d97fSEmmanuel Vadot 0x08 0x84 0x5d 0x05 0x84 0x5d 0x06 0x84 0x5e 0x08 3945956d97fSEmmanuel Vadot 0x84 0x5e 0x05 0x8c 0x5e 0x24 0x84 0x5f 0x10 0x84 3955956d97fSEmmanuel Vadot 0x5e 0x05 0x84 0x5e 0x08 0x84 0x5f 0x01 0x8c 0x5e 3965956d97fSEmmanuel Vadot 0x04 0x84 0x5e 0x08 0x84 0x5f 0x11 0x19 0x88 0x00 3975956d97fSEmmanuel Vadot 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 3985956d97fSEmmanuel Vadot 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 3995956d97fSEmmanuel Vadot >; 4005956d97fSEmmanuel Vadot }; 4015956d97fSEmmanuel Vadot 4025956d97fSEmmanuel Vadot /* SMB1381 @ 0x44 */ 4035956d97fSEmmanuel Vadot /* MAX34417 @ 0x1c */ 4045956d97fSEmmanuel Vadot}; 4055956d97fSEmmanuel Vadot 4065956d97fSEmmanuel Vadot&i2c4 { 4075956d97fSEmmanuel Vadot status = "okay"; 4085956d97fSEmmanuel Vadot clock-frequency = <400000>; 4095956d97fSEmmanuel Vadot 4105956d97fSEmmanuel Vadot /* SMB1355 @ 0x0c */ 4115956d97fSEmmanuel Vadot /* SMB1390 @ 0x10 */ 4125956d97fSEmmanuel Vadot}; 4135956d97fSEmmanuel Vadot 4145956d97fSEmmanuel Vadot&i2c17 { 4155956d97fSEmmanuel Vadot status = "okay"; 4165956d97fSEmmanuel Vadot clock-frequency = <400000>; 4175956d97fSEmmanuel Vadot 4185956d97fSEmmanuel Vadot bq27742@55 { 4195956d97fSEmmanuel Vadot compatible = "ti,bq27742"; 4205956d97fSEmmanuel Vadot reg = <0x55>; 4215956d97fSEmmanuel Vadot }; 4225956d97fSEmmanuel Vadot}; 4235956d97fSEmmanuel Vadot 4245956d97fSEmmanuel Vadot&i2c19 { 4255956d97fSEmmanuel Vadot status = "okay"; 4265956d97fSEmmanuel Vadot clock-frequency = <400000>; 4275956d97fSEmmanuel Vadot 4285956d97fSEmmanuel Vadot /* MAX34417 @ 0x12 */ 4295956d97fSEmmanuel Vadot /* MAX34417 @ 0x1a */ 4305956d97fSEmmanuel Vadot /* MAX34417 @ 0x1e */ 4315956d97fSEmmanuel Vadot}; 4325956d97fSEmmanuel Vadot 433c9ccf3a3SEmmanuel Vadot&pon_pwrkey { 4345956d97fSEmmanuel Vadot status = "okay"; 4355956d97fSEmmanuel Vadot}; 4365956d97fSEmmanuel Vadot 4375956d97fSEmmanuel Vadot&qupv3_id_0 { 4385956d97fSEmmanuel Vadot status = "okay"; 4395956d97fSEmmanuel Vadot}; 4405956d97fSEmmanuel Vadot 4415956d97fSEmmanuel Vadot&qupv3_id_1 { 4425956d97fSEmmanuel Vadot status = "okay"; 4435956d97fSEmmanuel Vadot}; 4445956d97fSEmmanuel Vadot 4455956d97fSEmmanuel Vadot&qupv3_id_2 { 4465956d97fSEmmanuel Vadot status = "okay"; 4475956d97fSEmmanuel Vadot}; 4485956d97fSEmmanuel Vadot 4495956d97fSEmmanuel Vadot&remoteproc_adsp { 4505956d97fSEmmanuel Vadot status = "okay"; 4515956d97fSEmmanuel Vadot firmware-name = "qcom/sm8150/microsoft/adsp.mdt"; 4525956d97fSEmmanuel Vadot}; 4535956d97fSEmmanuel Vadot 4545956d97fSEmmanuel Vadot&remoteproc_cdsp { 4555956d97fSEmmanuel Vadot status = "okay"; 4565956d97fSEmmanuel Vadot firmware-name = "qcom/sm8150/microsoft/cdsp.mdt"; 4575956d97fSEmmanuel Vadot}; 4585956d97fSEmmanuel Vadot 4595956d97fSEmmanuel Vadot&remoteproc_mpss { 4605956d97fSEmmanuel Vadot status = "okay"; 4615956d97fSEmmanuel Vadot firmware-name = "qcom/sm8150/microsoft/modem.mdt"; 4625956d97fSEmmanuel Vadot}; 4635956d97fSEmmanuel Vadot 4645956d97fSEmmanuel Vadot&remoteproc_slpi { 4655956d97fSEmmanuel Vadot status = "okay"; 4665956d97fSEmmanuel Vadot firmware-name = "qcom/sm8150/microsoft/slpi.mdt"; 4675956d97fSEmmanuel Vadot}; 4685956d97fSEmmanuel Vadot 469c9ccf3a3SEmmanuel Vadot&pon_resin { 470c9ccf3a3SEmmanuel Vadot status = "okay"; 471c9ccf3a3SEmmanuel Vadot 472c9ccf3a3SEmmanuel Vadot linux,code = <KEY_VOLUMEDOWN>; 473c9ccf3a3SEmmanuel Vadot}; 474c9ccf3a3SEmmanuel Vadot 4755956d97fSEmmanuel Vadot&tlmm { 4765956d97fSEmmanuel Vadot gpio-reserved-ranges = <126 4>; 4775956d97fSEmmanuel Vadot 4788bab661aSEmmanuel Vadot da7280_intr_default: da7280-intr-default-state { 4795956d97fSEmmanuel Vadot pins = "gpio42"; 4805956d97fSEmmanuel Vadot function = "gpio"; 4815956d97fSEmmanuel Vadot bias-pull-up; 4825956d97fSEmmanuel Vadot }; 4835956d97fSEmmanuel Vadot}; 4845956d97fSEmmanuel Vadot 4855956d97fSEmmanuel Vadot&uart2 { 4865956d97fSEmmanuel Vadot status = "okay"; 4875956d97fSEmmanuel Vadot}; 4885956d97fSEmmanuel Vadot 4895956d97fSEmmanuel Vadot&ufs_mem_hc { 4905956d97fSEmmanuel Vadot status = "okay"; 4915956d97fSEmmanuel Vadot 4925956d97fSEmmanuel Vadot reset-gpios = <&tlmm 175 GPIO_ACTIVE_LOW>; 4935956d97fSEmmanuel Vadot 4945956d97fSEmmanuel Vadot vcc-supply = <&vreg_l10a_2p5>; 4955956d97fSEmmanuel Vadot vcc-max-microamp = <750000>; 4965956d97fSEmmanuel Vadot vccq-supply = <&vreg_l9a_1p2>; 4975956d97fSEmmanuel Vadot vccq-max-microamp = <700000>; 4985956d97fSEmmanuel Vadot vccq2-supply = <&vreg_s4a_1p8>; 4995956d97fSEmmanuel Vadot vccq2-max-microamp = <750000>; 5005956d97fSEmmanuel Vadot}; 5015956d97fSEmmanuel Vadot 5025956d97fSEmmanuel Vadot&ufs_mem_phy { 5035956d97fSEmmanuel Vadot status = "okay"; 5045956d97fSEmmanuel Vadot 5055956d97fSEmmanuel Vadot vdda-phy-supply = <&vdda_ufs_2ln_core_1>; 5065956d97fSEmmanuel Vadot vdda-pll-supply = <&vreg_l3c_1p2>; 5075956d97fSEmmanuel Vadot}; 5085956d97fSEmmanuel Vadot 5095956d97fSEmmanuel Vadot&usb_1_hsphy { 5105956d97fSEmmanuel Vadot status = "okay"; 5115956d97fSEmmanuel Vadot vdda-pll-supply = <&vdd_usb_hs_core>; 5125956d97fSEmmanuel Vadot vdda33-supply = <&vdda_usb_hs_3p1>; 5135956d97fSEmmanuel Vadot vdda18-supply = <&vdda_usb_hs_1p8>; 5145956d97fSEmmanuel Vadot}; 5155956d97fSEmmanuel Vadot 5165956d97fSEmmanuel Vadot&usb_1_qmpphy { 5175956d97fSEmmanuel Vadot status = "okay"; 5185956d97fSEmmanuel Vadot vdda-phy-supply = <&vreg_l3c_1p2>; 5195956d97fSEmmanuel Vadot vdda-pll-supply = <&vdda_usb_ss_dp_core_1>; 5205956d97fSEmmanuel Vadot}; 5215956d97fSEmmanuel Vadot 5225956d97fSEmmanuel Vadot&usb_1 { 5235956d97fSEmmanuel Vadot status = "okay"; 5245956d97fSEmmanuel Vadot}; 5255956d97fSEmmanuel Vadot 5265956d97fSEmmanuel Vadot&usb_1_dwc3 { 5275956d97fSEmmanuel Vadot dr_mode = "peripheral"; 5285956d97fSEmmanuel Vadot}; 5295956d97fSEmmanuel Vadot 5305956d97fSEmmanuel Vadot&wifi { 5315956d97fSEmmanuel Vadot status = "okay"; 5325956d97fSEmmanuel Vadot 5335956d97fSEmmanuel Vadot vdd-0.8-cx-mx-supply = <&vdda_wcss_pll>; 5345956d97fSEmmanuel Vadot vdd-1.8-xo-supply = <&vreg_l7a_1p8>; 5355956d97fSEmmanuel Vadot vdd-1.3-rfa-supply = <&vdda_wcss_adcdac_1>; 5365956d97fSEmmanuel Vadot vdd-3.3-ch0-supply = <&vreg_l11c_3p3>; 5375956d97fSEmmanuel Vadot}; 538