1b97ee269SEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2b97ee269SEmmanuel Vadot/* 3b97ee269SEmmanuel Vadot * SDM845 LG G7 / V35 (judyln / judyp) common device tree 4b97ee269SEmmanuel Vadot * 5b97ee269SEmmanuel Vadot * Copyright (c) 2022, The Linux Foundation. All rights reserved. 6b97ee269SEmmanuel Vadot */ 7b97ee269SEmmanuel Vadot 8b97ee269SEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 9b97ee269SEmmanuel Vadot#include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 10b97ee269SEmmanuel Vadot#include <dt-bindings/regulator/qcom,rpmh-regulator.h> 11b97ee269SEmmanuel Vadot 12b97ee269SEmmanuel Vadot#include "sdm845.dtsi" 13b97ee269SEmmanuel Vadot#include "pm8998.dtsi" 14b97ee269SEmmanuel Vadot#include "pmi8998.dtsi" 15b97ee269SEmmanuel Vadot 16b97ee269SEmmanuel Vadot/delete-node/ &adsp_mem; 17b97ee269SEmmanuel Vadot/delete-node/ &cdsp_mem; 18b97ee269SEmmanuel Vadot/delete-node/ &gpu_mem; 19b97ee269SEmmanuel Vadot/delete-node/ &ipa_fw_mem; 20b97ee269SEmmanuel Vadot/delete-node/ &mba_region; 21b97ee269SEmmanuel Vadot/delete-node/ &mpss_region; 22b97ee269SEmmanuel Vadot/delete-node/ &qseecom_mem; 23b97ee269SEmmanuel Vadot/delete-node/ &rmtfs_mem; 24b97ee269SEmmanuel Vadot/delete-node/ &slpi_mem; 25b97ee269SEmmanuel Vadot/delete-node/ &spss_mem; 26b97ee269SEmmanuel Vadot/delete-node/ &venus_mem; 27b97ee269SEmmanuel Vadot/delete-node/ &wlan_msa_mem; 28b97ee269SEmmanuel Vadot 29b97ee269SEmmanuel Vadot/ { 30b97ee269SEmmanuel Vadot chosen { 31b97ee269SEmmanuel Vadot #address-cells = <2>; 32b97ee269SEmmanuel Vadot #size-cells = <2>; 33b97ee269SEmmanuel Vadot ranges; 34b97ee269SEmmanuel Vadot }; 35b97ee269SEmmanuel Vadot 36b97ee269SEmmanuel Vadot reserved-memory { 37b97ee269SEmmanuel Vadot #address-cells = <2>; 38b97ee269SEmmanuel Vadot #size-cells = <2>; 39b97ee269SEmmanuel Vadot ranges; 40b97ee269SEmmanuel Vadot 41b97ee269SEmmanuel Vadot qseecom_mem: memory@b2000000 { 42b97ee269SEmmanuel Vadot reg = <0 0xb2000000 0 0x1800000>; 43b97ee269SEmmanuel Vadot no-map; 44b97ee269SEmmanuel Vadot }; 45b97ee269SEmmanuel Vadot 46b97ee269SEmmanuel Vadot gpu_mem: memory@8c415000 { 47b97ee269SEmmanuel Vadot reg = <0 0x8c415000 0 0x2000>; 48b97ee269SEmmanuel Vadot no-map; 49b97ee269SEmmanuel Vadot }; 50b97ee269SEmmanuel Vadot 51b97ee269SEmmanuel Vadot ipa_fw_mem: memory@8c400000 { 52b97ee269SEmmanuel Vadot reg = <0 0x8c400000 0 0x10000>; 53b97ee269SEmmanuel Vadot no-map; 54b97ee269SEmmanuel Vadot }; 55b97ee269SEmmanuel Vadot 56b97ee269SEmmanuel Vadot adsp_mem: memory@8c500000 { 57b97ee269SEmmanuel Vadot reg = <0 0x8c500000 0 0x1e00000>; 58b97ee269SEmmanuel Vadot no-map; 59b97ee269SEmmanuel Vadot }; 60b97ee269SEmmanuel Vadot 61b97ee269SEmmanuel Vadot wlan_msa_mem: memory@8e300000 { 62b97ee269SEmmanuel Vadot reg = <0 0x8e300000 0 0x100000>; 63b97ee269SEmmanuel Vadot no-map; 64b97ee269SEmmanuel Vadot }; 65b97ee269SEmmanuel Vadot 66b97ee269SEmmanuel Vadot mpss_region: memory@8e400000 { 67b97ee269SEmmanuel Vadot reg = <0 0x8e400000 0 0x8900000>; 68b97ee269SEmmanuel Vadot no-map; 69b97ee269SEmmanuel Vadot }; 70b97ee269SEmmanuel Vadot 71b97ee269SEmmanuel Vadot venus_mem: memory@96d00000 { 72b97ee269SEmmanuel Vadot reg = <0 0x96d00000 0 0x500000>; 73b97ee269SEmmanuel Vadot no-map; 74b97ee269SEmmanuel Vadot }; 75b97ee269SEmmanuel Vadot 76b97ee269SEmmanuel Vadot cdsp_mem: memory@97200000 { 77b97ee269SEmmanuel Vadot reg = <0 0x97200000 0 0x800000>; 78b97ee269SEmmanuel Vadot no-map; 79b97ee269SEmmanuel Vadot }; 80b97ee269SEmmanuel Vadot 81b97ee269SEmmanuel Vadot mba_region: memory@97a00000 { 82b97ee269SEmmanuel Vadot reg = <0 0x97a00000 0 0x200000>; 83b97ee269SEmmanuel Vadot no-map; 84b97ee269SEmmanuel Vadot }; 85b97ee269SEmmanuel Vadot 86b97ee269SEmmanuel Vadot slpi_mem: memory@97c00000 { 87b97ee269SEmmanuel Vadot reg = <0 0x97c00000 0 0x1400000>; 88b97ee269SEmmanuel Vadot no-map; 89b97ee269SEmmanuel Vadot }; 90b97ee269SEmmanuel Vadot 91b97ee269SEmmanuel Vadot spss_mem: memory@99000000 { 92b97ee269SEmmanuel Vadot reg = <0 0x99000000 0 0x100000>; 93b97ee269SEmmanuel Vadot no-map; 94b97ee269SEmmanuel Vadot }; 95b97ee269SEmmanuel Vadot 96b97ee269SEmmanuel Vadot /* Framebuffer region */ 97b97ee269SEmmanuel Vadot memory@9d400000 { 98b97ee269SEmmanuel Vadot reg = <0x0 0x9d400000 0x0 0x2400000>; 99b97ee269SEmmanuel Vadot no-map; 100b97ee269SEmmanuel Vadot }; 101b97ee269SEmmanuel Vadot 102b97ee269SEmmanuel Vadot /* rmtfs lower guard */ 103b97ee269SEmmanuel Vadot memory@f0800000 { 104b97ee269SEmmanuel Vadot reg = <0 0xf0800000 0 0x1000>; 105b97ee269SEmmanuel Vadot no-map; 106b97ee269SEmmanuel Vadot }; 107b97ee269SEmmanuel Vadot 108b97ee269SEmmanuel Vadot rmtfs_mem: memory@f0801000 { 109b97ee269SEmmanuel Vadot compatible = "qcom,rmtfs-mem"; 110b97ee269SEmmanuel Vadot reg = <0 0xf0801000 0 0x200000>; 111b97ee269SEmmanuel Vadot no-map; 112b97ee269SEmmanuel Vadot 113b97ee269SEmmanuel Vadot qcom,client-id = <1>; 114*84943d6fSEmmanuel Vadot qcom,vmid = <QCOM_SCM_VMID_MSS_MSA>; 115b97ee269SEmmanuel Vadot }; 116b97ee269SEmmanuel Vadot 117b97ee269SEmmanuel Vadot /* rmtfs upper guard */ 118b97ee269SEmmanuel Vadot memory@f0a01000 { 119b97ee269SEmmanuel Vadot reg = <0 0xf0a01000 0 0x1000>; 120b97ee269SEmmanuel Vadot no-map; 121b97ee269SEmmanuel Vadot }; 122b97ee269SEmmanuel Vadot }; 123b97ee269SEmmanuel Vadot 124b97ee269SEmmanuel Vadot gpio-keys { 125b97ee269SEmmanuel Vadot compatible = "gpio-keys"; 126b97ee269SEmmanuel Vadot 127b97ee269SEmmanuel Vadot pinctrl-names = "default"; 128b97ee269SEmmanuel Vadot pinctrl-0 = <&vol_up_pin_a>; 129b97ee269SEmmanuel Vadot 130b97ee269SEmmanuel Vadot label = "GPIO Buttons"; 131b97ee269SEmmanuel Vadot 132b97ee269SEmmanuel Vadot key-vol-up { 133b97ee269SEmmanuel Vadot label = "Volume up"; 134b97ee269SEmmanuel Vadot linux,code = <KEY_VOLUMEUP>; 135cb7aa33aSEmmanuel Vadot gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>; 136b97ee269SEmmanuel Vadot }; 137b97ee269SEmmanuel Vadot }; 138b97ee269SEmmanuel Vadot 139b97ee269SEmmanuel Vadot vph_pwr: vph-pwr-regulator { 140b97ee269SEmmanuel Vadot compatible = "regulator-fixed"; 141b97ee269SEmmanuel Vadot regulator-name = "vph_pwr"; 142b97ee269SEmmanuel Vadot regulator-min-microvolt = <3700000>; 143b97ee269SEmmanuel Vadot regulator-max-microvolt = <3700000>; 144b97ee269SEmmanuel Vadot }; 145b97ee269SEmmanuel Vadot 146b97ee269SEmmanuel Vadot /* 147b97ee269SEmmanuel Vadot * Apparently RPMh does not provide support for PM8998 S4 because it 148b97ee269SEmmanuel Vadot * is always-on; model it as a fixed regulator. 149b97ee269SEmmanuel Vadot */ 150b97ee269SEmmanuel Vadot vreg_s4a_1p8: pm8998-smps4-regulator { 151b97ee269SEmmanuel Vadot compatible = "regulator-fixed"; 152b97ee269SEmmanuel Vadot regulator-name = "vreg_s4a_1p8"; 153b97ee269SEmmanuel Vadot 154b97ee269SEmmanuel Vadot regulator-min-microvolt = <1800000>; 155b97ee269SEmmanuel Vadot regulator-max-microvolt = <1800000>; 156b97ee269SEmmanuel Vadot 157b97ee269SEmmanuel Vadot regulator-always-on; 158b97ee269SEmmanuel Vadot regulator-boot-on; 159b97ee269SEmmanuel Vadot 160b97ee269SEmmanuel Vadot vin-supply = <&vph_pwr>; 161b97ee269SEmmanuel Vadot }; 162b97ee269SEmmanuel Vadot}; 163b97ee269SEmmanuel Vadot 164b97ee269SEmmanuel Vadot&adsp_pas { 165b97ee269SEmmanuel Vadot status = "okay"; 166b97ee269SEmmanuel Vadot}; 167b97ee269SEmmanuel Vadot 168b97ee269SEmmanuel Vadot&apps_rsc { 169cb7aa33aSEmmanuel Vadot regulators-0 { 170b97ee269SEmmanuel Vadot compatible = "qcom,pm8998-rpmh-regulators"; 171b97ee269SEmmanuel Vadot qcom,pmic-id = "a"; 172b97ee269SEmmanuel Vadot 173b97ee269SEmmanuel Vadot vdd-s1-supply = <&vph_pwr>; 174b97ee269SEmmanuel Vadot vdd-s2-supply = <&vph_pwr>; 175b97ee269SEmmanuel Vadot vdd-s3-supply = <&vph_pwr>; 176b97ee269SEmmanuel Vadot vdd-s4-supply = <&vph_pwr>; 177b97ee269SEmmanuel Vadot vdd-s5-supply = <&vph_pwr>; 178b97ee269SEmmanuel Vadot vdd-s6-supply = <&vph_pwr>; 179b97ee269SEmmanuel Vadot vdd-s7-supply = <&vph_pwr>; 180b97ee269SEmmanuel Vadot vdd-s8-supply = <&vph_pwr>; 181b97ee269SEmmanuel Vadot vdd-s9-supply = <&vph_pwr>; 182b97ee269SEmmanuel Vadot vdd-s10-supply = <&vph_pwr>; 183b97ee269SEmmanuel Vadot vdd-s11-supply = <&vph_pwr>; 184b97ee269SEmmanuel Vadot vdd-s12-supply = <&vph_pwr>; 185b97ee269SEmmanuel Vadot vdd-s13-supply = <&vph_pwr>; 186b97ee269SEmmanuel Vadot vdd-l1-l27-supply = <&vreg_s7a_1p025>; 187b97ee269SEmmanuel Vadot vdd-l2-l8-l17-supply = <&vreg_s3a_1p35>; 188b97ee269SEmmanuel Vadot vdd-l3-l11-supply = <&vreg_s7a_1p025>; 189b97ee269SEmmanuel Vadot vdd-l4-l5-supply = <&vreg_s7a_1p025>; 190b97ee269SEmmanuel Vadot vdd-l6-supply = <&vph_pwr>; 191b97ee269SEmmanuel Vadot vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p04>; 192b97ee269SEmmanuel Vadot vdd-l9-supply = <&vreg_bob>; 193b97ee269SEmmanuel Vadot vdd-l10-l23-l25-supply = <&vreg_bob>; 194b97ee269SEmmanuel Vadot vdd-l13-l19-l21-supply = <&vreg_bob>; 195b97ee269SEmmanuel Vadot vdd-l16-l28-supply = <&vreg_bob>; 196b97ee269SEmmanuel Vadot vdd-l18-l22-supply = <&vreg_bob>; 197b97ee269SEmmanuel Vadot vdd-l20-l24-supply = <&vreg_bob>; 198b97ee269SEmmanuel Vadot vdd-l26-supply = <&vreg_s3a_1p35>; 199b97ee269SEmmanuel Vadot vin-lvs-1-2-supply = <&vreg_s4a_1p8>; 200b97ee269SEmmanuel Vadot 201b97ee269SEmmanuel Vadot vreg_s2a_1p125: smps2 { 202b97ee269SEmmanuel Vadot regulator-min-microvolt = <1100000>; 203b97ee269SEmmanuel Vadot regulator-max-microvolt = <1100000>; 204b97ee269SEmmanuel Vadot }; 205b97ee269SEmmanuel Vadot 206b97ee269SEmmanuel Vadot vreg_s3a_1p35: smps3 { 207b97ee269SEmmanuel Vadot regulator-min-microvolt = <1352000>; 208b97ee269SEmmanuel Vadot regulator-max-microvolt = <1352000>; 209b97ee269SEmmanuel Vadot }; 210b97ee269SEmmanuel Vadot 211b97ee269SEmmanuel Vadot vreg_s5a_2p04: smps5 { 212b97ee269SEmmanuel Vadot regulator-min-microvolt = <1904000>; 213b97ee269SEmmanuel Vadot regulator-max-microvolt = <2040000>; 214b97ee269SEmmanuel Vadot }; 215b97ee269SEmmanuel Vadot 216b97ee269SEmmanuel Vadot vreg_s7a_1p025: smps7 { 217b97ee269SEmmanuel Vadot regulator-min-microvolt = <900000>; 218b97ee269SEmmanuel Vadot regulator-max-microvolt = <1028000>; 219b97ee269SEmmanuel Vadot }; 220b97ee269SEmmanuel Vadot 221b97ee269SEmmanuel Vadot vdd_qusb_hs0: 222b97ee269SEmmanuel Vadot vdda_hp_pcie_core: 223b97ee269SEmmanuel Vadot vdda_mipi_csi0_0p9: 224b97ee269SEmmanuel Vadot vdda_mipi_csi1_0p9: 225b97ee269SEmmanuel Vadot vdda_mipi_csi2_0p9: 226b97ee269SEmmanuel Vadot vdda_mipi_dsi0_pll: 227b97ee269SEmmanuel Vadot vdda_mipi_dsi1_pll: 228b97ee269SEmmanuel Vadot vdda_qlink_lv: 229b97ee269SEmmanuel Vadot vdda_qlink_lv_ck: 230b97ee269SEmmanuel Vadot vdda_qrefs_0p875: 231b97ee269SEmmanuel Vadot vdda_pcie_core: 232b97ee269SEmmanuel Vadot vdda_pll_cc_ebi01: 233b97ee269SEmmanuel Vadot vdda_pll_cc_ebi23: 234b97ee269SEmmanuel Vadot vdda_sp_sensor: 235b97ee269SEmmanuel Vadot vdda_ufs1_core: 236b97ee269SEmmanuel Vadot vdda_ufs2_core: 237b97ee269SEmmanuel Vadot vdda_usb1_ss_core: 238b97ee269SEmmanuel Vadot vdda_usb2_ss_core: 239b97ee269SEmmanuel Vadot vreg_l1a_0p875: ldo1 { 240b97ee269SEmmanuel Vadot regulator-min-microvolt = <880000>; 241b97ee269SEmmanuel Vadot regulator-max-microvolt = <880000>; 242b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 243b97ee269SEmmanuel Vadot }; 244b97ee269SEmmanuel Vadot 245b97ee269SEmmanuel Vadot vddpx_10: 246b97ee269SEmmanuel Vadot vreg_l2a_1p2: ldo2 { 247b97ee269SEmmanuel Vadot regulator-min-microvolt = <1200000>; 248b97ee269SEmmanuel Vadot regulator-max-microvolt = <1200000>; 249b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 250b97ee269SEmmanuel Vadot regulator-always-on; 251b97ee269SEmmanuel Vadot }; 252b97ee269SEmmanuel Vadot 253b97ee269SEmmanuel Vadot vreg_l3a_1p0: ldo3 { 254b97ee269SEmmanuel Vadot regulator-min-microvolt = <1000000>; 255b97ee269SEmmanuel Vadot regulator-max-microvolt = <1000000>; 256b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 257b97ee269SEmmanuel Vadot }; 258b97ee269SEmmanuel Vadot 259b97ee269SEmmanuel Vadot vdd_wcss_cx: 260b97ee269SEmmanuel Vadot vdd_wcss_mx: 261b97ee269SEmmanuel Vadot vdda_wcss_pll: 262b97ee269SEmmanuel Vadot vreg_l5a_0p8: ldo5 { 263b97ee269SEmmanuel Vadot regulator-min-microvolt = <800000>; 264b97ee269SEmmanuel Vadot regulator-max-microvolt = <800000>; 265b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 266b97ee269SEmmanuel Vadot }; 267b97ee269SEmmanuel Vadot 268b97ee269SEmmanuel Vadot vddpx_13: 269b97ee269SEmmanuel Vadot vreg_l6a_1p8: ldo6 { 270b97ee269SEmmanuel Vadot regulator-min-microvolt = <1856000>; 271b97ee269SEmmanuel Vadot regulator-max-microvolt = <1856000>; 272b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 273b97ee269SEmmanuel Vadot }; 274b97ee269SEmmanuel Vadot 275b97ee269SEmmanuel Vadot vreg_l7a_1p8: ldo7 { 276b97ee269SEmmanuel Vadot regulator-min-microvolt = <1800000>; 277b97ee269SEmmanuel Vadot regulator-max-microvolt = <1800000>; 278b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 279b97ee269SEmmanuel Vadot }; 280b97ee269SEmmanuel Vadot 281b97ee269SEmmanuel Vadot vreg_l8a_1p2: ldo8 { 282b97ee269SEmmanuel Vadot regulator-min-microvolt = <1200000>; 283b97ee269SEmmanuel Vadot regulator-max-microvolt = <1248000>; 284b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 285b97ee269SEmmanuel Vadot }; 286b97ee269SEmmanuel Vadot 287b97ee269SEmmanuel Vadot vreg_l9a_1p8: ldo9 { 288b97ee269SEmmanuel Vadot regulator-min-microvolt = <1704000>; 289b97ee269SEmmanuel Vadot regulator-max-microvolt = <2928000>; 290b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 291b97ee269SEmmanuel Vadot }; 292b97ee269SEmmanuel Vadot 293b97ee269SEmmanuel Vadot vreg_l10a_1p8: ldo10 { 294b97ee269SEmmanuel Vadot regulator-min-microvolt = <1704000>; 295b97ee269SEmmanuel Vadot regulator-max-microvolt = <2928000>; 296b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 297b97ee269SEmmanuel Vadot }; 298b97ee269SEmmanuel Vadot 299b97ee269SEmmanuel Vadot vreg_l11a_1p0: ldo11 { 300b97ee269SEmmanuel Vadot regulator-min-microvolt = <1000000>; 301b97ee269SEmmanuel Vadot regulator-max-microvolt = <1048000>; 302b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 303b97ee269SEmmanuel Vadot }; 304b97ee269SEmmanuel Vadot 305b97ee269SEmmanuel Vadot vdd_qfprom: 306b97ee269SEmmanuel Vadot vdd_qfprom_sp: 307b97ee269SEmmanuel Vadot vdda_apc1_cs_1p8: 308b97ee269SEmmanuel Vadot vdda_gfx_cs_1p8: 309b97ee269SEmmanuel Vadot vdda_qrefs_1p8: 310b97ee269SEmmanuel Vadot vdda_qusb_hs0_1p8: 311b97ee269SEmmanuel Vadot vddpx_11: 312b97ee269SEmmanuel Vadot vreg_l12a_1p8: ldo12 { 313b97ee269SEmmanuel Vadot regulator-min-microvolt = <1800000>; 314b97ee269SEmmanuel Vadot regulator-max-microvolt = <1800000>; 315b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 316b97ee269SEmmanuel Vadot }; 317b97ee269SEmmanuel Vadot 318b97ee269SEmmanuel Vadot vddpx_2: 319b97ee269SEmmanuel Vadot vreg_l13a_2p95: ldo13 { 320b97ee269SEmmanuel Vadot regulator-min-microvolt = <1800000>; 321b97ee269SEmmanuel Vadot regulator-max-microvolt = <2960000>; 322b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 323b97ee269SEmmanuel Vadot }; 324b97ee269SEmmanuel Vadot 325b97ee269SEmmanuel Vadot vreg_l14a_1p88: ldo14 { 326b97ee269SEmmanuel Vadot regulator-min-microvolt = <1800000>; 327b97ee269SEmmanuel Vadot regulator-max-microvolt = <1880000>; 328b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 329b97ee269SEmmanuel Vadot }; 330b97ee269SEmmanuel Vadot 331b97ee269SEmmanuel Vadot vreg_l15a_1p8: ldo15 { 332b97ee269SEmmanuel Vadot regulator-min-microvolt = <1800000>; 333b97ee269SEmmanuel Vadot regulator-max-microvolt = <1800000>; 334b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 335b97ee269SEmmanuel Vadot }; 336b97ee269SEmmanuel Vadot 337b97ee269SEmmanuel Vadot vreg_l17a_1p3: ldo17 { 338b97ee269SEmmanuel Vadot regulator-min-microvolt = <1304000>; 339b97ee269SEmmanuel Vadot regulator-max-microvolt = <1304000>; 340b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 341b97ee269SEmmanuel Vadot }; 342b97ee269SEmmanuel Vadot 343b97ee269SEmmanuel Vadot vreg_l18a_2p7: ldo18 { 344b97ee269SEmmanuel Vadot regulator-min-microvolt = <2704000>; 345b97ee269SEmmanuel Vadot regulator-max-microvolt = <2960000>; 346b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 347b97ee269SEmmanuel Vadot }; 348b97ee269SEmmanuel Vadot 349b97ee269SEmmanuel Vadot vreg_l20a_2p95: ldo20 { 350b97ee269SEmmanuel Vadot regulator-min-microvolt = <2704000>; 351b97ee269SEmmanuel Vadot regulator-max-microvolt = <2960000>; 352b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 353b97ee269SEmmanuel Vadot }; 354b97ee269SEmmanuel Vadot 355b97ee269SEmmanuel Vadot vreg_l21a_2p95: ldo21 { 356b97ee269SEmmanuel Vadot regulator-min-microvolt = <2704000>; 357b97ee269SEmmanuel Vadot regulator-max-microvolt = <2960000>; 358b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 359b97ee269SEmmanuel Vadot }; 360b97ee269SEmmanuel Vadot 361b97ee269SEmmanuel Vadot vreg_l22a_2p85: ldo22 { 362b97ee269SEmmanuel Vadot regulator-min-microvolt = <2800000>; 363b97ee269SEmmanuel Vadot regulator-max-microvolt = <2800000>; 364b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 365b97ee269SEmmanuel Vadot }; 366b97ee269SEmmanuel Vadot 367b97ee269SEmmanuel Vadot vreg_l23a_3p3: ldo23 { 368b97ee269SEmmanuel Vadot regulator-min-microvolt = <3000000>; 369b97ee269SEmmanuel Vadot regulator-max-microvolt = <3312000>; 370b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 371b97ee269SEmmanuel Vadot }; 372b97ee269SEmmanuel Vadot 373b97ee269SEmmanuel Vadot vdda_qusb_hs0_3p1: 374b97ee269SEmmanuel Vadot vreg_l24a_3p075: ldo24 { 375b97ee269SEmmanuel Vadot regulator-min-microvolt = <3088000>; 376b97ee269SEmmanuel Vadot regulator-max-microvolt = <3088000>; 377b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 378b97ee269SEmmanuel Vadot }; 379b97ee269SEmmanuel Vadot 380b97ee269SEmmanuel Vadot vreg_l25a_3p3: ldo25 { 381b97ee269SEmmanuel Vadot regulator-min-microvolt = <3000000>; 382b97ee269SEmmanuel Vadot regulator-max-microvolt = <3312000>; 383b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 384b97ee269SEmmanuel Vadot }; 385b97ee269SEmmanuel Vadot 386b97ee269SEmmanuel Vadot vdda_hp_pcie_1p2: 387b97ee269SEmmanuel Vadot vdda_hv_ebi0: 388b97ee269SEmmanuel Vadot vdda_hv_ebi1: 389b97ee269SEmmanuel Vadot vdda_hv_ebi2: 390b97ee269SEmmanuel Vadot vdda_hv_ebi3: 391b97ee269SEmmanuel Vadot vdda_mipi_csi_1p25: 392b97ee269SEmmanuel Vadot vdda_mipi_dsi0_1p2: 393b97ee269SEmmanuel Vadot vdda_mipi_dsi1_1p2: 394b97ee269SEmmanuel Vadot vdda_pcie_1p2: 395b97ee269SEmmanuel Vadot vdda_ufs1_1p2: 396b97ee269SEmmanuel Vadot vdda_ufs2_1p2: 397b97ee269SEmmanuel Vadot vdda_usb1_ss_1p2: 398b97ee269SEmmanuel Vadot vdda_usb2_ss_1p2: 399b97ee269SEmmanuel Vadot vreg_l26a_1p2: ldo26 { 400b97ee269SEmmanuel Vadot regulator-min-microvolt = <1200000>; 401b97ee269SEmmanuel Vadot regulator-max-microvolt = <1200000>; 402b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 403b97ee269SEmmanuel Vadot }; 404b97ee269SEmmanuel Vadot 405b97ee269SEmmanuel Vadot vreg_l28a_3p0: ldo28 { 406b97ee269SEmmanuel Vadot regulator-min-microvolt = <1800000>; 407b97ee269SEmmanuel Vadot regulator-max-microvolt = <1800000>; 408b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 409b97ee269SEmmanuel Vadot }; 410b97ee269SEmmanuel Vadot 411b97ee269SEmmanuel Vadot vreg_lvs1a_1p8: lvs1 { 412b97ee269SEmmanuel Vadot regulator-min-microvolt = <1800000>; 413b97ee269SEmmanuel Vadot regulator-max-microvolt = <1800000>; 414b97ee269SEmmanuel Vadot }; 415b97ee269SEmmanuel Vadot 416b97ee269SEmmanuel Vadot vreg_lvs2a_1p8: lvs2 { 417b97ee269SEmmanuel Vadot regulator-min-microvolt = <1800000>; 418b97ee269SEmmanuel Vadot regulator-max-microvolt = <1800000>; 419b97ee269SEmmanuel Vadot }; 420b97ee269SEmmanuel Vadot }; 421b97ee269SEmmanuel Vadot 422cb7aa33aSEmmanuel Vadot regulators-1 { 423b97ee269SEmmanuel Vadot compatible = "qcom,pmi8998-rpmh-regulators"; 424b97ee269SEmmanuel Vadot qcom,pmic-id = "b"; 425b97ee269SEmmanuel Vadot 426b97ee269SEmmanuel Vadot vdd-bob-supply = <&vph_pwr>; 427b97ee269SEmmanuel Vadot 428b97ee269SEmmanuel Vadot vreg_bob: bob { 429b97ee269SEmmanuel Vadot regulator-min-microvolt = <3312000>; 430b97ee269SEmmanuel Vadot regulator-max-microvolt = <3600000>; 431b97ee269SEmmanuel Vadot regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>; 432b97ee269SEmmanuel Vadot regulator-allow-bypass; 433b97ee269SEmmanuel Vadot }; 434b97ee269SEmmanuel Vadot }; 435b97ee269SEmmanuel Vadot 436cb7aa33aSEmmanuel Vadot regulators-2 { 437b97ee269SEmmanuel Vadot compatible = "qcom,pm8005-rpmh-regulators"; 438b97ee269SEmmanuel Vadot qcom,pmic-id = "c"; 439b97ee269SEmmanuel Vadot 440b97ee269SEmmanuel Vadot vdd-s1-supply = <&vph_pwr>; 441b97ee269SEmmanuel Vadot vdd-s2-supply = <&vph_pwr>; 442b97ee269SEmmanuel Vadot vdd-s3-supply = <&vph_pwr>; 443b97ee269SEmmanuel Vadot vdd-s4-supply = <&vph_pwr>; 444b97ee269SEmmanuel Vadot 445b97ee269SEmmanuel Vadot vreg_s3c_0p6: smps3 { 446b97ee269SEmmanuel Vadot regulator-min-microvolt = <600000>; 447b97ee269SEmmanuel Vadot regulator-max-microvolt = <600000>; 448b97ee269SEmmanuel Vadot }; 449b97ee269SEmmanuel Vadot }; 450b97ee269SEmmanuel Vadot}; 451b97ee269SEmmanuel Vadot 452b97ee269SEmmanuel Vadot&cdsp_pas { 453b97ee269SEmmanuel Vadot status = "okay"; 454b97ee269SEmmanuel Vadot}; 455b97ee269SEmmanuel Vadot 456b97ee269SEmmanuel Vadot&dispcc { 457b97ee269SEmmanuel Vadot status = "disabled"; 458b97ee269SEmmanuel Vadot}; 459b97ee269SEmmanuel Vadot 460b97ee269SEmmanuel Vadot&gcc { 461b97ee269SEmmanuel Vadot protected-clocks = <GCC_QSPI_CORE_CLK>, 462b97ee269SEmmanuel Vadot <GCC_QSPI_CORE_CLK_SRC>, 463b97ee269SEmmanuel Vadot <GCC_QSPI_CNOC_PERIPH_AHB_CLK>, 464b97ee269SEmmanuel Vadot <GCC_LPASS_Q6_AXI_CLK>, 465b97ee269SEmmanuel Vadot <GCC_LPASS_SWAY_CLK>; 466b97ee269SEmmanuel Vadot}; 467b97ee269SEmmanuel Vadot 468b97ee269SEmmanuel Vadot&gpu { 469b97ee269SEmmanuel Vadot status = "okay"; 470b97ee269SEmmanuel Vadot 471b97ee269SEmmanuel Vadot zap-shader { 472b97ee269SEmmanuel Vadot memory-region = <&gpu_mem>; 473b97ee269SEmmanuel Vadot }; 474b97ee269SEmmanuel Vadot}; 475b97ee269SEmmanuel Vadot 476b97ee269SEmmanuel Vadot&ipa { 477cb7aa33aSEmmanuel Vadot qcom,gsi-loader = "modem"; 478b97ee269SEmmanuel Vadot status = "okay"; 479b97ee269SEmmanuel Vadot}; 480b97ee269SEmmanuel Vadot 481b97ee269SEmmanuel Vadot&mss_pil { 482b97ee269SEmmanuel Vadot status = "okay"; 483b97ee269SEmmanuel Vadot}; 484b97ee269SEmmanuel Vadot 485cb7aa33aSEmmanuel Vadot&pm8998_resin { 486b97ee269SEmmanuel Vadot linux,code = <KEY_VOLUMEDOWN>; 487cb7aa33aSEmmanuel Vadot status = "okay"; 488b97ee269SEmmanuel Vadot}; 489b97ee269SEmmanuel Vadot 490b97ee269SEmmanuel Vadot&sdhc_2 { 491b97ee269SEmmanuel Vadot status = "okay"; 492b97ee269SEmmanuel Vadot 493b97ee269SEmmanuel Vadot cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>; 494b97ee269SEmmanuel Vadot 495b97ee269SEmmanuel Vadot pinctrl-names = "default"; 496b97ee269SEmmanuel Vadot pinctrl-0 = <&sdc2_clk &sdc2_cmd &sdc2_data &sd_card_det_n>; 497b97ee269SEmmanuel Vadot 498b97ee269SEmmanuel Vadot vmmc-supply = <&vreg_l21a_2p95>; 499b97ee269SEmmanuel Vadot vqmmc-supply = <&vddpx_2>; 500b97ee269SEmmanuel Vadot}; 501b97ee269SEmmanuel Vadot 502b97ee269SEmmanuel Vadot/* 503b97ee269SEmmanuel Vadot * UFS works partially and only with clk_ignore_unused. 504b97ee269SEmmanuel Vadot * Sometimes it crashes with I/O errors. 505b97ee269SEmmanuel Vadot */ 506b97ee269SEmmanuel Vadot&ufs_mem_hc { 507b97ee269SEmmanuel Vadot status = "okay"; 508b97ee269SEmmanuel Vadot 509b97ee269SEmmanuel Vadot reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>; 510b97ee269SEmmanuel Vadot 511b97ee269SEmmanuel Vadot vcc-supply = <&vreg_l20a_2p95>; 512b97ee269SEmmanuel Vadot vcc-max-microamp = <600000>; 513b97ee269SEmmanuel Vadot}; 514b97ee269SEmmanuel Vadot 515b97ee269SEmmanuel Vadot&ufs_mem_phy { 516b97ee269SEmmanuel Vadot status = "okay"; 517b97ee269SEmmanuel Vadot 518b97ee269SEmmanuel Vadot vdda-phy-supply = <&vdda_ufs1_core>; 519b97ee269SEmmanuel Vadot vdda-pll-supply = <&vdda_ufs1_1p2>; 520b97ee269SEmmanuel Vadot}; 521b97ee269SEmmanuel Vadot 522b97ee269SEmmanuel Vadot&usb_1 { 523b97ee269SEmmanuel Vadot status = "okay"; 524b97ee269SEmmanuel Vadot}; 525b97ee269SEmmanuel Vadot 526b97ee269SEmmanuel Vadot&usb_1_dwc3 { 527b97ee269SEmmanuel Vadot /* TODO: these devices have usb id pin */ 528b97ee269SEmmanuel Vadot dr_mode = "peripheral"; 529b97ee269SEmmanuel Vadot}; 530b97ee269SEmmanuel Vadot 531b97ee269SEmmanuel Vadot&usb_1_hsphy { 532b97ee269SEmmanuel Vadot status = "okay"; 533b97ee269SEmmanuel Vadot 534b97ee269SEmmanuel Vadot vdd-supply = <&vdda_usb1_ss_core>; 535b97ee269SEmmanuel Vadot vdda-pll-supply = <&vdda_qusb_hs0_1p8>; 536b97ee269SEmmanuel Vadot vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>; 537b97ee269SEmmanuel Vadot 538b97ee269SEmmanuel Vadot qcom,imp-res-offset-value = <8>; 539b97ee269SEmmanuel Vadot qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>; 540b97ee269SEmmanuel Vadot qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>; 541b97ee269SEmmanuel Vadot qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>; 542b97ee269SEmmanuel Vadot}; 543b97ee269SEmmanuel Vadot 544b97ee269SEmmanuel Vadot&usb_1_qmpphy { 545b97ee269SEmmanuel Vadot status = "okay"; 546b97ee269SEmmanuel Vadot 547b97ee269SEmmanuel Vadot vdda-phy-supply = <&vdda_usb1_ss_1p2>; 548b97ee269SEmmanuel Vadot vdda-pll-supply = <&vdda_usb1_ss_core>; 549b97ee269SEmmanuel Vadot}; 550b97ee269SEmmanuel Vadot 551b97ee269SEmmanuel Vadot/* PINCTRL - additions to nodes defined in sdm845.dtsi */ 552b97ee269SEmmanuel Vadot 553b97ee269SEmmanuel Vadot&tlmm { 554b97ee269SEmmanuel Vadot gpio-reserved-ranges = <28 4>, <81 4>; 555b97ee269SEmmanuel Vadot 556cb7aa33aSEmmanuel Vadot sdc2_clk: sdc2-clk-state { 557b97ee269SEmmanuel Vadot pins = "sdc2_clk"; 558b97ee269SEmmanuel Vadot bias-disable; 559b97ee269SEmmanuel Vadot 560b97ee269SEmmanuel Vadot /* 561b97ee269SEmmanuel Vadot * It seems that mmc_test reports errors if drive 562b97ee269SEmmanuel Vadot * strength is not 16 on clk, cmd, and data pins. 563b97ee269SEmmanuel Vadot * 564b97ee269SEmmanuel Vadot * TODO: copy-pasted from mtp, try other values 565b97ee269SEmmanuel Vadot * on these devices. 566b97ee269SEmmanuel Vadot */ 567b97ee269SEmmanuel Vadot drive-strength = <16>; 568b97ee269SEmmanuel Vadot }; 569b97ee269SEmmanuel Vadot 570cb7aa33aSEmmanuel Vadot sdc2_cmd: sdc2-cmd-state { 571b97ee269SEmmanuel Vadot pins = "sdc2_cmd"; 572b97ee269SEmmanuel Vadot bias-pull-up; 573b97ee269SEmmanuel Vadot drive-strength = <16>; 574b97ee269SEmmanuel Vadot }; 575b97ee269SEmmanuel Vadot 576cb7aa33aSEmmanuel Vadot sdc2_data: sdc2-data-state { 577b97ee269SEmmanuel Vadot pins = "sdc2_data"; 578b97ee269SEmmanuel Vadot bias-pull-up; 579b97ee269SEmmanuel Vadot drive-strength = <16>; 580b97ee269SEmmanuel Vadot }; 581b97ee269SEmmanuel Vadot 582cb7aa33aSEmmanuel Vadot sd_card_det_n: sd-card-det-n-state { 583b97ee269SEmmanuel Vadot pins = "gpio126"; 584b97ee269SEmmanuel Vadot function = "gpio"; 585b97ee269SEmmanuel Vadot bias-pull-up; 586b97ee269SEmmanuel Vadot }; 587b97ee269SEmmanuel Vadot}; 588b97ee269SEmmanuel Vadot 589cb7aa33aSEmmanuel Vadot&pm8998_gpios { 5908bab661aSEmmanuel Vadot vol_up_pin_a: vol-up-active-state { 591b97ee269SEmmanuel Vadot pins = "gpio6"; 592b97ee269SEmmanuel Vadot function = "normal"; 593b97ee269SEmmanuel Vadot input-enable; 594b97ee269SEmmanuel Vadot bias-pull-up; 595b97ee269SEmmanuel Vadot qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; 596b97ee269SEmmanuel Vadot }; 597b97ee269SEmmanuel Vadot}; 598