.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* Copyright (c) 2015, LGE Inc. All rights reserved. |
---|
2 | 3 | * Copyright (c) 2016, The Linux Foundation. All rights reserved. |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify |
---|
5 | | - * it under the terms of the GNU General Public License version 2 and |
---|
6 | | - * only version 2 as published by the Free Software Foundation. |
---|
7 | | - * |
---|
8 | | - * This program is distributed in the hope that it will be useful, |
---|
9 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
10 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
11 | | - * GNU General Public License for more details. |
---|
| 4 | + * Copyright (c) 2021, Petr Vorel <petr.vorel@gmail.com> |
---|
12 | 5 | */ |
---|
13 | 6 | |
---|
14 | 7 | /dts-v1/; |
---|
.. | .. |
---|
19 | 12 | model = "LG Nexus 5X"; |
---|
20 | 13 | compatible = "lg,bullhead", "qcom,msm8992"; |
---|
21 | 14 | /* required for bootloader to select correct board */ |
---|
| 15 | + qcom,msm-id = <251 0>, <252 0>; |
---|
22 | 16 | qcom,board-id = <0xb64 0>; |
---|
23 | 17 | qcom,pmic-id = <0x10009 0x1000A 0x0 0x0>; |
---|
| 18 | + |
---|
| 19 | + /* Bullhead firmware doesn't support PSCI */ |
---|
| 20 | + /delete-node/ psci; |
---|
24 | 21 | |
---|
25 | 22 | aliases { |
---|
26 | 23 | serial0 = &blsp1_uart2; |
---|
.. | .. |
---|
28 | 25 | |
---|
29 | 26 | chosen { |
---|
30 | 27 | stdout-path = "serial0:115200n8"; |
---|
31 | | - }; |
---|
32 | | - |
---|
33 | | - soc { |
---|
34 | | - serial@f991e000 { |
---|
35 | | - status = "okay"; |
---|
36 | | - pinctrl-names = "default", "sleep"; |
---|
37 | | - pinctrl-0 = <&blsp1_uart2_default>; |
---|
38 | | - pinctrl-1 = <&blsp1_uart2_sleep>; |
---|
39 | | - }; |
---|
40 | 28 | }; |
---|
41 | 29 | |
---|
42 | 30 | reserved-memory { |
---|
.. | .. |
---|
55 | 43 | }; |
---|
56 | 44 | }; |
---|
57 | 45 | |
---|
58 | | -#include "msm8994-smd-rpm.dtsi" |
---|
| 46 | +&blsp1_uart2 { |
---|
| 47 | + status = "okay"; |
---|
| 48 | +}; |
---|
| 49 | + |
---|
| 50 | +&rpm_requests { |
---|
| 51 | + pm8994-regulators { |
---|
| 52 | + compatible = "qcom,rpm-pm8994-regulators"; |
---|
| 53 | + |
---|
| 54 | + vdd_l1-supply = <&pm8994_s1>; |
---|
| 55 | + vdd_l2_26_28-supply = <&pm8994_s3>; |
---|
| 56 | + vdd_l3_11-supply = <&pm8994_s3>; |
---|
| 57 | + vdd_l4_27_31-supply = <&pm8994_s3>; |
---|
| 58 | + vdd_l5_7-supply = <&pm8994_s3>; |
---|
| 59 | + vdd_l6_12_32-supply = <&pm8994_s5>; |
---|
| 60 | + vdd_l8_16_30-supply = <&vreg_vph_pwr>; |
---|
| 61 | + vdd_l9_10_18_22-supply = <&vreg_vph_pwr>; |
---|
| 62 | + vdd_l13_19_23_24-supply = <&vreg_vph_pwr>; |
---|
| 63 | + vdd_l14_15-supply = <&pm8994_s5>; |
---|
| 64 | + vdd_l17_29-supply = <&vreg_vph_pwr>; |
---|
| 65 | + vdd_l20_21-supply = <&vreg_vph_pwr>; |
---|
| 66 | + vdd_l25-supply = <&pm8994_s5>; |
---|
| 67 | + vdd_lvs1_2-supply = <&pm8994_s4>; |
---|
| 68 | + |
---|
| 69 | + pm8994_s1: s1 { |
---|
| 70 | + regulator-min-microvolt = <800000>; |
---|
| 71 | + regulator-max-microvolt = <800000>; |
---|
| 72 | + }; |
---|
| 73 | + |
---|
| 74 | + pm8994_s2: s2 { |
---|
| 75 | + /* TODO */ |
---|
| 76 | + }; |
---|
| 77 | + |
---|
| 78 | + pm8994_s3: s3 { |
---|
| 79 | + regulator-min-microvolt = <1300000>; |
---|
| 80 | + regulator-max-microvolt = <1300000>; |
---|
| 81 | + }; |
---|
| 82 | + |
---|
| 83 | + pm8994_s4: s4 { |
---|
| 84 | + regulator-min-microvolt = <1800000>; |
---|
| 85 | + regulator-max-microvolt = <1800000>; |
---|
| 86 | + regulator-allow-set-load; |
---|
| 87 | + regulator-system-load = <325000>; |
---|
| 88 | + }; |
---|
| 89 | + |
---|
| 90 | + pm8994_s5: s5 { |
---|
| 91 | + regulator-min-microvolt = <2150000>; |
---|
| 92 | + regulator-max-microvolt = <2150000>; |
---|
| 93 | + }; |
---|
| 94 | + |
---|
| 95 | + pm8994_s7: s7 { |
---|
| 96 | + regulator-min-microvolt = <1000000>; |
---|
| 97 | + regulator-max-microvolt = <1000000>; |
---|
| 98 | + }; |
---|
| 99 | + |
---|
| 100 | + pm8994_l1: l1 { |
---|
| 101 | + regulator-min-microvolt = <1000000>; |
---|
| 102 | + regulator-max-microvolt = <1000000>; |
---|
| 103 | + }; |
---|
| 104 | + |
---|
| 105 | + pm8994_l2: l2 { |
---|
| 106 | + regulator-min-microvolt = <1250000>; |
---|
| 107 | + regulator-max-microvolt = <1250000>; |
---|
| 108 | + }; |
---|
| 109 | + |
---|
| 110 | + pm8994_l3: l3 { |
---|
| 111 | + regulator-min-microvolt = <1200000>; |
---|
| 112 | + regulator-max-microvolt = <1200000>; |
---|
| 113 | + }; |
---|
| 114 | + |
---|
| 115 | + pm8994_l4: l4 { |
---|
| 116 | + regulator-min-microvolt = <1225000>; |
---|
| 117 | + regulator-max-microvolt = <1225000>; |
---|
| 118 | + }; |
---|
| 119 | + |
---|
| 120 | + pm8994_l5: l5 { |
---|
| 121 | + /* TODO */ |
---|
| 122 | + }; |
---|
| 123 | + |
---|
| 124 | + pm8994_l6: l6 { |
---|
| 125 | + regulator-min-microvolt = <1800000>; |
---|
| 126 | + regulator-max-microvolt = <1800000>; |
---|
| 127 | + }; |
---|
| 128 | + |
---|
| 129 | + pm8994_l7: l7 { |
---|
| 130 | + /* TODO */ |
---|
| 131 | + }; |
---|
| 132 | + |
---|
| 133 | + pm8994_l8: l8 { |
---|
| 134 | + regulator-min-microvolt = <1800000>; |
---|
| 135 | + regulator-max-microvolt = <1800000>; |
---|
| 136 | + }; |
---|
| 137 | + |
---|
| 138 | + pm8994_l9: l9 { |
---|
| 139 | + regulator-min-microvolt = <1800000>; |
---|
| 140 | + regulator-max-microvolt = <1800000>; |
---|
| 141 | + }; |
---|
| 142 | + |
---|
| 143 | + pm8994_l10: l10 { |
---|
| 144 | + regulator-min-microvolt = <1800000>; |
---|
| 145 | + regulator-max-microvolt = <1800000>; |
---|
| 146 | + }; |
---|
| 147 | + |
---|
| 148 | + pm8994_l11: l11 { |
---|
| 149 | + regulator-min-microvolt = <1200000>; |
---|
| 150 | + regulator-max-microvolt = <1200000>; |
---|
| 151 | + }; |
---|
| 152 | + |
---|
| 153 | + pm8994_l12: l12 { |
---|
| 154 | + regulator-min-microvolt = <1800000>; |
---|
| 155 | + regulator-max-microvolt = <1800000>; |
---|
| 156 | + }; |
---|
| 157 | + |
---|
| 158 | + pm8994_l13: l13 { |
---|
| 159 | + regulator-min-microvolt = <1800000>; |
---|
| 160 | + regulator-max-microvolt = <2950000>; |
---|
| 161 | + }; |
---|
| 162 | + |
---|
| 163 | + pm8994_l14: l14 { |
---|
| 164 | + regulator-min-microvolt = <1200000>; |
---|
| 165 | + regulator-max-microvolt = <1200000>; |
---|
| 166 | + }; |
---|
| 167 | + |
---|
| 168 | + pm8994_l15: l15 { |
---|
| 169 | + regulator-min-microvolt = <1800000>; |
---|
| 170 | + regulator-max-microvolt = <1800000>; |
---|
| 171 | + }; |
---|
| 172 | + |
---|
| 173 | + pm8994_l16: l16 { |
---|
| 174 | + regulator-min-microvolt = <2700000>; |
---|
| 175 | + regulator-max-microvolt = <2700000>; |
---|
| 176 | + }; |
---|
| 177 | + |
---|
| 178 | + pm8994_l17: l17 { |
---|
| 179 | + regulator-min-microvolt = <2700000>; |
---|
| 180 | + regulator-max-microvolt = <2700000>; |
---|
| 181 | + }; |
---|
| 182 | + |
---|
| 183 | + pm8994_l18: l18 { |
---|
| 184 | + regulator-min-microvolt = <3000000>; |
---|
| 185 | + regulator-max-microvolt = <3000000>; |
---|
| 186 | + }; |
---|
| 187 | + |
---|
| 188 | + pm8994_l19: l19 { |
---|
| 189 | + regulator-min-microvolt = <1800000>; |
---|
| 190 | + regulator-max-microvolt = <1800000>; |
---|
| 191 | + }; |
---|
| 192 | + |
---|
| 193 | + pm8994_l20: l20 { |
---|
| 194 | + regulator-min-microvolt = <2950000>; |
---|
| 195 | + regulator-max-microvolt = <2950000>; |
---|
| 196 | + regulator-always-on; |
---|
| 197 | + regulator-boot-on; |
---|
| 198 | + regulator-allow-set-load; |
---|
| 199 | + regulator-system-load = <570000>; |
---|
| 200 | + }; |
---|
| 201 | + |
---|
| 202 | + pm8994_l21: l21 { |
---|
| 203 | + regulator-min-microvolt = <1800000>; |
---|
| 204 | + regulator-max-microvolt = <1800000>; |
---|
| 205 | + regulator-always-on; |
---|
| 206 | + }; |
---|
| 207 | + |
---|
| 208 | + pm8994_l22: l22 { |
---|
| 209 | + regulator-min-microvolt = <3100000>; |
---|
| 210 | + regulator-max-microvolt = <3100000>; |
---|
| 211 | + }; |
---|
| 212 | + |
---|
| 213 | + pm8994_l23: l23 { |
---|
| 214 | + regulator-min-microvolt = <2800000>; |
---|
| 215 | + regulator-max-microvolt = <2800000>; |
---|
| 216 | + }; |
---|
| 217 | + |
---|
| 218 | + pm8994_l24: l24 { |
---|
| 219 | + regulator-min-microvolt = <3075000>; |
---|
| 220 | + regulator-max-microvolt = <3150000>; |
---|
| 221 | + }; |
---|
| 222 | + |
---|
| 223 | + pm8994_l25: l25 { |
---|
| 224 | + regulator-min-microvolt = <1800000>; |
---|
| 225 | + regulator-max-microvolt = <1800000>; |
---|
| 226 | + }; |
---|
| 227 | + |
---|
| 228 | + pm8994_l26: l26 { |
---|
| 229 | + /* TODO: value from downstream |
---|
| 230 | + regulator-min-microvolt = <987500>; |
---|
| 231 | + fails to apply */ |
---|
| 232 | + }; |
---|
| 233 | + |
---|
| 234 | + pm8994_l27: l27 { |
---|
| 235 | + regulator-min-microvolt = <1050000>; |
---|
| 236 | + regulator-max-microvolt = <1050000>; |
---|
| 237 | + }; |
---|
| 238 | + |
---|
| 239 | + pm8994_l28: l28 { |
---|
| 240 | + regulator-min-microvolt = <1000000>; |
---|
| 241 | + regulator-max-microvolt = <1000000>; |
---|
| 242 | + }; |
---|
| 243 | + |
---|
| 244 | + pm8994_l29: l29 { |
---|
| 245 | + /* TODO: Unsupported voltage range. |
---|
| 246 | + regulator-min-microvolt = <2800000>; |
---|
| 247 | + regulator-max-microvolt = <2800000>; |
---|
| 248 | + qcom,init-voltage = <2800000>; |
---|
| 249 | + */ |
---|
| 250 | + }; |
---|
| 251 | + |
---|
| 252 | + pm8994_l30: l30 { |
---|
| 253 | + /* TODO: get this verified |
---|
| 254 | + regulator-min-microvolt = <1800000>; |
---|
| 255 | + regulator-max-microvolt = <1800000>; |
---|
| 256 | + qcom,init-voltage = <1800000>; |
---|
| 257 | + */ |
---|
| 258 | + }; |
---|
| 259 | + |
---|
| 260 | + pm8994_l31: l31 { |
---|
| 261 | + regulator-min-microvolt = <1262500>; |
---|
| 262 | + regulator-max-microvolt = <1262500>; |
---|
| 263 | + }; |
---|
| 264 | + |
---|
| 265 | + pm8994_l32: l32 { |
---|
| 266 | + /* TODO: get this verified |
---|
| 267 | + regulator-min-microvolt = <1800000>; |
---|
| 268 | + regulator-max-microvolt = <1800000>; |
---|
| 269 | + qcom,init-voltage = <1800000>; |
---|
| 270 | + */ |
---|
| 271 | + }; |
---|
| 272 | + }; |
---|
| 273 | +}; |
---|
| 274 | + |
---|
| 275 | +&sdhc_1 { |
---|
| 276 | + status = "okay"; |
---|
| 277 | + |
---|
| 278 | + mmc-hs400-1_8v; |
---|
| 279 | +}; |
---|