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