1c9ccf3a3SEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only 28bab661aSEmmanuel Vadot/* 38bab661aSEmmanuel Vadot * Copyright (c) 2015, LGE Inc. All rights reserved. 4c9ccf3a3SEmmanuel Vadot * Copyright (c) 2016, The Linux Foundation. All rights reserved. 5*cb7aa33aSEmmanuel Vadot * Copyright (c) 2021-2022, Petr Vorel <petr.vorel@gmail.com> 68bab661aSEmmanuel Vadot * Copyright (c) 2022, Dominik Kobinski <dominikkobinski314@gmail.com> 7c9ccf3a3SEmmanuel Vadot */ 8c9ccf3a3SEmmanuel Vadot 9c9ccf3a3SEmmanuel Vadot/dts-v1/; 10c9ccf3a3SEmmanuel Vadot 11c9ccf3a3SEmmanuel Vadot#include "msm8992.dtsi" 12c9ccf3a3SEmmanuel Vadot#include "pm8994.dtsi" 13c9ccf3a3SEmmanuel Vadot#include "pmi8994.dtsi" 14c9ccf3a3SEmmanuel Vadot 15c9ccf3a3SEmmanuel Vadot/* cont_splash_mem has different memory mapping */ 16c9ccf3a3SEmmanuel Vadot/delete-node/ &cont_splash_mem; 17c9ccf3a3SEmmanuel Vadot 18*cb7aa33aSEmmanuel Vadot/* disabled on downstream, conflicts with cont_splash_mem */ 19*cb7aa33aSEmmanuel Vadot/delete-node/ &dfps_data_mem; 20*cb7aa33aSEmmanuel Vadot 21c9ccf3a3SEmmanuel Vadot/ { 22c9ccf3a3SEmmanuel Vadot model = "LG Nexus 5X"; 23c9ccf3a3SEmmanuel Vadot compatible = "lg,bullhead", "qcom,msm8992"; 24c9ccf3a3SEmmanuel Vadot chassis-type = "handset"; 25c9ccf3a3SEmmanuel Vadot 26c9ccf3a3SEmmanuel Vadot qcom,msm-id = <251 0>, <252 0>; 27c9ccf3a3SEmmanuel Vadot qcom,pmic-id = <0x10009 0x1000A 0x0 0x0>; 28c9ccf3a3SEmmanuel Vadot 29c9ccf3a3SEmmanuel Vadot /* Bullhead firmware doesn't support PSCI */ 30c9ccf3a3SEmmanuel Vadot /delete-node/ psci; 31c9ccf3a3SEmmanuel Vadot 32c9ccf3a3SEmmanuel Vadot aliases { 33c9ccf3a3SEmmanuel Vadot serial0 = &blsp1_uart2; 34c9ccf3a3SEmmanuel Vadot }; 35c9ccf3a3SEmmanuel Vadot 36c9ccf3a3SEmmanuel Vadot chosen { 37c9ccf3a3SEmmanuel Vadot stdout-path = "serial0:115200n8"; 38c9ccf3a3SEmmanuel Vadot }; 39c9ccf3a3SEmmanuel Vadot 40c9ccf3a3SEmmanuel Vadot reserved-memory { 41c9ccf3a3SEmmanuel Vadot #address-cells = <2>; 42c9ccf3a3SEmmanuel Vadot #size-cells = <2>; 43c9ccf3a3SEmmanuel Vadot ranges; 44c9ccf3a3SEmmanuel Vadot 45c9ccf3a3SEmmanuel Vadot ramoops@1ff00000 { 46c9ccf3a3SEmmanuel Vadot compatible = "ramoops"; 47c9ccf3a3SEmmanuel Vadot reg = <0x0 0x1ff00000 0x0 0x40000>; 48c9ccf3a3SEmmanuel Vadot console-size = <0x10000>; 49c9ccf3a3SEmmanuel Vadot record-size = <0x10000>; 50c9ccf3a3SEmmanuel Vadot ftrace-size = <0x10000>; 51c9ccf3a3SEmmanuel Vadot pmsg-size = <0x20000>; 52c9ccf3a3SEmmanuel Vadot }; 53c9ccf3a3SEmmanuel Vadot 54c9ccf3a3SEmmanuel Vadot cont_splash_mem: memory@3400000 { 55*cb7aa33aSEmmanuel Vadot reg = <0 0x03400000 0 0xc00000>; 56c9ccf3a3SEmmanuel Vadot no-map; 57c9ccf3a3SEmmanuel Vadot }; 588bab661aSEmmanuel Vadot 59*cb7aa33aSEmmanuel Vadot reserved@5000000 { 60*cb7aa33aSEmmanuel Vadot reg = <0x0 0x05000000 0x0 0x1a00000>; 61*cb7aa33aSEmmanuel Vadot no-map; 62*cb7aa33aSEmmanuel Vadot }; 63c9ccf3a3SEmmanuel Vadot }; 64c9ccf3a3SEmmanuel Vadot}; 65c9ccf3a3SEmmanuel Vadot 66c9ccf3a3SEmmanuel Vadot&blsp1_uart2 { 67c9ccf3a3SEmmanuel Vadot status = "okay"; 68c9ccf3a3SEmmanuel Vadot}; 69c9ccf3a3SEmmanuel Vadot 70c9ccf3a3SEmmanuel Vadot&rpm_requests { 718bab661aSEmmanuel Vadot pm8994_regulators: regulators-0 { 72c9ccf3a3SEmmanuel Vadot compatible = "qcom,rpm-pm8994-regulators"; 73c9ccf3a3SEmmanuel Vadot 74c9ccf3a3SEmmanuel Vadot vdd_l1-supply = <&pm8994_s1>; 75c9ccf3a3SEmmanuel Vadot vdd_l2_26_28-supply = <&pm8994_s3>; 76c9ccf3a3SEmmanuel Vadot vdd_l3_11-supply = <&pm8994_s3>; 77c9ccf3a3SEmmanuel Vadot vdd_l4_27_31-supply = <&pm8994_s3>; 78c9ccf3a3SEmmanuel Vadot vdd_l5_7-supply = <&pm8994_s3>; 79c9ccf3a3SEmmanuel Vadot vdd_l6_12_32-supply = <&pm8994_s5>; 80c9ccf3a3SEmmanuel Vadot vdd_l8_16_30-supply = <&vph_pwr>; 81c9ccf3a3SEmmanuel Vadot vdd_l9_10_18_22-supply = <&vph_pwr>; 82c9ccf3a3SEmmanuel Vadot vdd_l13_19_23_24-supply = <&vph_pwr>; 83c9ccf3a3SEmmanuel Vadot vdd_l14_15-supply = <&pm8994_s5>; 84c9ccf3a3SEmmanuel Vadot vdd_l17_29-supply = <&vph_pwr>; 85c9ccf3a3SEmmanuel Vadot vdd_l20_21-supply = <&vph_pwr>; 86c9ccf3a3SEmmanuel Vadot vdd_l25-supply = <&pm8994_s5>; 87d5b0e70fSEmmanuel Vadot vdd_lvs1_2-supply = <&pm8994_s4>; 88c9ccf3a3SEmmanuel Vadot 89c9ccf3a3SEmmanuel Vadot /* S1, S2, S6 and S12 are managed by RPMPD */ 90c9ccf3a3SEmmanuel Vadot 91c9ccf3a3SEmmanuel Vadot pm8994_s1: s1 { 92*cb7aa33aSEmmanuel Vadot regulator-min-microvolt = <1025000>; 93*cb7aa33aSEmmanuel Vadot regulator-max-microvolt = <1025000>; 94c9ccf3a3SEmmanuel Vadot }; 95c9ccf3a3SEmmanuel Vadot 96c9ccf3a3SEmmanuel Vadot pm8994_s2: s2 { 97c9ccf3a3SEmmanuel Vadot /* TODO */ 98c9ccf3a3SEmmanuel Vadot }; 99c9ccf3a3SEmmanuel Vadot 100c9ccf3a3SEmmanuel Vadot pm8994_s3: s3 { 101c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1300000>; 102c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1300000>; 103c9ccf3a3SEmmanuel Vadot }; 104c9ccf3a3SEmmanuel Vadot 105c9ccf3a3SEmmanuel Vadot pm8994_s4: s4 { 106c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1800000>; 107c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1800000>; 108c9ccf3a3SEmmanuel Vadot regulator-allow-set-load; 109c9ccf3a3SEmmanuel Vadot regulator-system-load = <325000>; 110c9ccf3a3SEmmanuel Vadot }; 111c9ccf3a3SEmmanuel Vadot 112c9ccf3a3SEmmanuel Vadot pm8994_s5: s5 { 113c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <2150000>; 114c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <2150000>; 115c9ccf3a3SEmmanuel Vadot }; 116c9ccf3a3SEmmanuel Vadot 117c9ccf3a3SEmmanuel Vadot pm8994_s7: s7 { 118c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1000000>; 119c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1000000>; 120c9ccf3a3SEmmanuel Vadot }; 121c9ccf3a3SEmmanuel Vadot 122c9ccf3a3SEmmanuel Vadot /* S8, S9, S10 and S11 - SPMI-managed VDD_APC */ 123c9ccf3a3SEmmanuel Vadot 124c9ccf3a3SEmmanuel Vadot pm8994_l1: l1 { 125c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1000000>; 126c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1000000>; 127c9ccf3a3SEmmanuel Vadot }; 128c9ccf3a3SEmmanuel Vadot 129c9ccf3a3SEmmanuel Vadot pm8994_l2: l2 { 130c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1250000>; 131c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1250000>; 132c9ccf3a3SEmmanuel Vadot }; 133c9ccf3a3SEmmanuel Vadot 134c9ccf3a3SEmmanuel Vadot pm8994_l3: l3 { 135c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1200000>; 136c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1200000>; 137c9ccf3a3SEmmanuel Vadot }; 138c9ccf3a3SEmmanuel Vadot 139c9ccf3a3SEmmanuel Vadot pm8994_l4: l4 { 140c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1225000>; 141c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1225000>; 142c9ccf3a3SEmmanuel Vadot }; 143c9ccf3a3SEmmanuel Vadot 144c9ccf3a3SEmmanuel Vadot /* L5 is inaccessible from RPM */ 145c9ccf3a3SEmmanuel Vadot 146c9ccf3a3SEmmanuel Vadot pm8994_l6: l6 { 147c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1800000>; 148c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1800000>; 149c9ccf3a3SEmmanuel Vadot }; 150c9ccf3a3SEmmanuel Vadot 151c9ccf3a3SEmmanuel Vadot /* L7 is inaccessible from RPM */ 152c9ccf3a3SEmmanuel Vadot 153c9ccf3a3SEmmanuel Vadot pm8994_l8: l8 { 154c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1800000>; 155c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1800000>; 156c9ccf3a3SEmmanuel Vadot }; 157c9ccf3a3SEmmanuel Vadot 158c9ccf3a3SEmmanuel Vadot pm8994_l9: l9 { 159c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1800000>; 160c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1800000>; 161c9ccf3a3SEmmanuel Vadot }; 162c9ccf3a3SEmmanuel Vadot 163c9ccf3a3SEmmanuel Vadot pm8994_l10: l10 { 164c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1800000>; 165c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1800000>; 166c9ccf3a3SEmmanuel Vadot }; 167c9ccf3a3SEmmanuel Vadot 168c9ccf3a3SEmmanuel Vadot pm8994_l11: l11 { 169c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1200000>; 170c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1200000>; 171c9ccf3a3SEmmanuel Vadot }; 172c9ccf3a3SEmmanuel Vadot 173c9ccf3a3SEmmanuel Vadot pm8994_l12: l12 { 174c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1800000>; 175c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1800000>; 176c9ccf3a3SEmmanuel Vadot }; 177c9ccf3a3SEmmanuel Vadot 178c9ccf3a3SEmmanuel Vadot pm8994_l13: l13 { 179c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1800000>; 180c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <2950000>; 181c9ccf3a3SEmmanuel Vadot }; 182c9ccf3a3SEmmanuel Vadot 183c9ccf3a3SEmmanuel Vadot pm8994_l14: l14 { 184c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1200000>; 185c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1200000>; 186c9ccf3a3SEmmanuel Vadot }; 187c9ccf3a3SEmmanuel Vadot 188c9ccf3a3SEmmanuel Vadot pm8994_l15: l15 { 189c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1800000>; 190c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1800000>; 191c9ccf3a3SEmmanuel Vadot }; 192c9ccf3a3SEmmanuel Vadot 193c9ccf3a3SEmmanuel Vadot pm8994_l16: l16 { 194c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <2700000>; 195c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <2700000>; 196c9ccf3a3SEmmanuel Vadot }; 197c9ccf3a3SEmmanuel Vadot 198c9ccf3a3SEmmanuel Vadot pm8994_l17: l17 { 199c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <2700000>; 200c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <2700000>; 201c9ccf3a3SEmmanuel Vadot }; 202c9ccf3a3SEmmanuel Vadot 203c9ccf3a3SEmmanuel Vadot pm8994_l18: l18 { 204c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <3000000>; 205c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <3000000>; 206c9ccf3a3SEmmanuel Vadot }; 207c9ccf3a3SEmmanuel Vadot 208c9ccf3a3SEmmanuel Vadot pm8994_l19: l19 { 209c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1800000>; 210c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1800000>; 211c9ccf3a3SEmmanuel Vadot }; 212c9ccf3a3SEmmanuel Vadot 213c9ccf3a3SEmmanuel Vadot pm8994_l20: l20 { 214c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <2950000>; 215c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <2950000>; 216c9ccf3a3SEmmanuel Vadot regulator-always-on; 217c9ccf3a3SEmmanuel Vadot regulator-boot-on; 218c9ccf3a3SEmmanuel Vadot regulator-allow-set-load; 219c9ccf3a3SEmmanuel Vadot regulator-system-load = <570000>; 220c9ccf3a3SEmmanuel Vadot }; 221c9ccf3a3SEmmanuel Vadot 222c9ccf3a3SEmmanuel Vadot pm8994_l21: l21 { 223c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1800000>; 224c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1800000>; 225c9ccf3a3SEmmanuel Vadot regulator-always-on; 226c9ccf3a3SEmmanuel Vadot }; 227c9ccf3a3SEmmanuel Vadot 228c9ccf3a3SEmmanuel Vadot pm8994_l22: l22 { 229c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <3100000>; 230c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <3100000>; 231c9ccf3a3SEmmanuel Vadot }; 232c9ccf3a3SEmmanuel Vadot 233c9ccf3a3SEmmanuel Vadot pm8994_l23: l23 { 234c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <2800000>; 235c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <2800000>; 236c9ccf3a3SEmmanuel Vadot }; 237c9ccf3a3SEmmanuel Vadot 238c9ccf3a3SEmmanuel Vadot pm8994_l24: l24 { 239c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <3075000>; 240c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <3150000>; 241c9ccf3a3SEmmanuel Vadot }; 242c9ccf3a3SEmmanuel Vadot 243c9ccf3a3SEmmanuel Vadot pm8994_l25: l25 { 244c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1800000>; 245c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1800000>; 246c9ccf3a3SEmmanuel Vadot }; 247c9ccf3a3SEmmanuel Vadot 248c9ccf3a3SEmmanuel Vadot pm8994_l26: l26 { 249*cb7aa33aSEmmanuel Vadot regulator-min-microvolt = <987500>; 250*cb7aa33aSEmmanuel Vadot regulator-max-microvolt = <987500>; 251c9ccf3a3SEmmanuel Vadot }; 252c9ccf3a3SEmmanuel Vadot 253c9ccf3a3SEmmanuel Vadot pm8994_l27: l27 { 254c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1050000>; 255c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1050000>; 256c9ccf3a3SEmmanuel Vadot }; 257c9ccf3a3SEmmanuel Vadot 258c9ccf3a3SEmmanuel Vadot pm8994_l28: l28 { 259c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1000000>; 260c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1000000>; 261c9ccf3a3SEmmanuel Vadot }; 262c9ccf3a3SEmmanuel Vadot 263c9ccf3a3SEmmanuel Vadot pm8994_l29: l29 { 264*cb7aa33aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 265*cb7aa33aSEmmanuel Vadot regulator-max-microvolt = <2800000>; 266c9ccf3a3SEmmanuel Vadot }; 267c9ccf3a3SEmmanuel Vadot 268c9ccf3a3SEmmanuel Vadot pm8994_l30: l30 { 269*cb7aa33aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 270*cb7aa33aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 271c9ccf3a3SEmmanuel Vadot }; 272c9ccf3a3SEmmanuel Vadot 273c9ccf3a3SEmmanuel Vadot pm8994_l31: l31 { 274c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <1262500>; 275c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <1262500>; 276c9ccf3a3SEmmanuel Vadot }; 277c9ccf3a3SEmmanuel Vadot 278c9ccf3a3SEmmanuel Vadot pm8994_l32: l32 { 279*cb7aa33aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 280*cb7aa33aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 281c9ccf3a3SEmmanuel Vadot }; 282c9ccf3a3SEmmanuel Vadot }; 283c9ccf3a3SEmmanuel Vadot 2848bab661aSEmmanuel Vadot pmi8994_regulators: regulators-1 { 285c9ccf3a3SEmmanuel Vadot compatible = "qcom,rpm-pmi8994-regulators"; 286c9ccf3a3SEmmanuel Vadot 287c9ccf3a3SEmmanuel Vadot vdd_s1-supply = <&vph_pwr>; 288c9ccf3a3SEmmanuel Vadot vdd_bst_byp-supply = <&vph_pwr>; 289c9ccf3a3SEmmanuel Vadot 290c9ccf3a3SEmmanuel Vadot pmi8994_s1: s1 {}; 291c9ccf3a3SEmmanuel Vadot 292c9ccf3a3SEmmanuel Vadot /* S2 & S3 - VDD_GFX */ 293c9ccf3a3SEmmanuel Vadot 294c9ccf3a3SEmmanuel Vadot pmi8994_bby: boost-bypass {}; 295c9ccf3a3SEmmanuel Vadot }; 296c9ccf3a3SEmmanuel Vadot}; 297c9ccf3a3SEmmanuel Vadot 298c9ccf3a3SEmmanuel Vadot&sdhc1 { 299c9ccf3a3SEmmanuel Vadot status = "okay"; 300c9ccf3a3SEmmanuel Vadot 301c9ccf3a3SEmmanuel Vadot mmc-hs400-1_8v; 302c9ccf3a3SEmmanuel Vadot}; 303