Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: BSD-3-Clause |
| 2 | /* |
| 3 | * Copyright (c) 2021, Konrad Dybcio <konrad.dybcio@somainline.org> |
| 4 | */ |
| 5 | |
| 6 | #include <dt-bindings/regulator/qcom,rpmh-regulator.h> |
| 7 | #include "sm8250.dtsi" |
| 8 | #include "pm8150.dtsi" |
| 9 | #include "pm8150b.dtsi" |
| 10 | #include "pm8150l.dtsi" |
| 11 | #include "pm8009.dtsi" |
| 12 | |
| 13 | /delete-node/ &adsp_mem; |
| 14 | /delete-node/ &spss_mem; |
| 15 | /delete-node/ &cdsp_secure_heap; |
| 16 | |
| 17 | / { |
| 18 | qcom,msm-id = <356 0x20001>; /* SM8250 v2.1 */ |
| 19 | qcom,board-id = <0x10008 0>; |
| 20 | |
| 21 | aliases { |
| 22 | serial0 = &uart12; |
| 23 | }; |
| 24 | |
| 25 | chosen { |
| 26 | stdout-path = "serial0:115200n8"; |
| 27 | #address-cells = <2>; |
| 28 | #size-cells = <2>; |
| 29 | ranges; |
| 30 | |
| 31 | framebuffer: framebuffer@9c000000 { |
| 32 | compatible = "simple-framebuffer"; |
| 33 | reg = <0 0x9c000000 0 0x2300000>; |
| 34 | /* pdx203 BL initializes in 2.5k mode, not 4k */ |
| 35 | width = <1096>; |
| 36 | height = <2560>; |
| 37 | stride = <(1096 * 4)>; |
| 38 | format = "a8r8g8b8"; |
| 39 | /* |
| 40 | * That's a lot of clocks, but it's necessary due |
| 41 | * to unused clk cleanup & no panel driver yet.. |
| 42 | */ |
| 43 | clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>, |
| 44 | <&gcc GCC_DISP_HF_AXI_CLK>, |
| 45 | <&gcc GCC_DISP_SF_AXI_CLK>, |
| 46 | <&dispcc DISP_CC_MDSS_VSYNC_CLK>, |
| 47 | <&dispcc DISP_CC_MDSS_MDP_CLK>, |
| 48 | <&dispcc DISP_CC_MDSS_BYTE0_CLK>, |
| 49 | <&dispcc DISP_CC_MDSS_BYTE0_INTF_CLK>, |
| 50 | <&dispcc DISP_CC_MDSS_PCLK0_CLK>, |
| 51 | <&dispcc DISP_CC_MDSS_ESC0_CLK>; |
| 52 | power-domains = <&dispcc MDSS_GDSC>; |
| 53 | }; |
| 54 | }; |
| 55 | |
| 56 | gpio_keys: gpio-keys { |
| 57 | compatible = "gpio-keys"; |
| 58 | |
| 59 | pinctrl-0 = <&focus_n &snapshot_n &vol_down_n>; |
| 60 | pinctrl-names = "default"; |
| 61 | |
| 62 | key-camera-focus { |
| 63 | label = "Camera Focus"; |
| 64 | linux,code = <KEY_CAMERA_FOCUS>; |
| 65 | gpios = <&pm8150b_gpios 2 GPIO_ACTIVE_LOW>; |
| 66 | debounce-interval = <15>; |
| 67 | linux,can-disable; |
| 68 | wakeup-source; |
| 69 | }; |
| 70 | |
| 71 | key-camera-snapshot { |
| 72 | label = "Camera Snapshot"; |
| 73 | linux,code = <KEY_CAMERA>; |
| 74 | gpios = <&pm8150b_gpios 1 GPIO_ACTIVE_LOW>; |
| 75 | debounce-interval = <15>; |
| 76 | linux,can-disable; |
| 77 | wakeup-source; |
| 78 | }; |
| 79 | |
| 80 | key-vol-down { |
| 81 | label = "Volume Down"; |
| 82 | linux,code = <KEY_VOLUMEDOWN>; |
| 83 | gpios = <&pm8150_gpios 1 GPIO_ACTIVE_LOW>; |
| 84 | debounce-interval = <15>; |
| 85 | linux,can-disable; |
| 86 | wakeup-source; |
| 87 | }; |
| 88 | }; |
| 89 | |
| 90 | vph_pwr: vph-pwr-regulator { |
| 91 | compatible = "regulator-fixed"; |
| 92 | regulator-name = "vph_pwr"; |
| 93 | regulator-min-microvolt = <3700000>; |
| 94 | regulator-max-microvolt = <3700000>; |
| 95 | }; |
| 96 | |
| 97 | /* S6c is really ebi.lvl but it's there for supply map completeness sake. */ |
| 98 | vreg_s6c_0p88: smpc6-regulator { |
| 99 | compatible = "regulator-fixed"; |
| 100 | regulator-name = "vreg_s6c_0p88"; |
| 101 | |
| 102 | regulator-min-microvolt = <880000>; |
| 103 | regulator-max-microvolt = <880000>; |
| 104 | regulator-always-on; |
| 105 | vin-supply = <&vph_pwr>; |
| 106 | }; |
| 107 | |
| 108 | reserved-memory { |
| 109 | adsp_mem: memory@8a100000 { |
| 110 | reg = <0x0 0x8a100000 0x0 0x2500000>; |
| 111 | no-map; |
| 112 | }; |
| 113 | |
| 114 | spss_mem: memory@8c600000 { |
| 115 | reg = <0x0 0x8c600000 0x0 0x100000>; |
| 116 | no-map; |
| 117 | }; |
| 118 | |
| 119 | cdsp_secure_heap: memory@8c700000 { |
| 120 | reg = <0x0 0x8c700000 0x0 0x4600000>; |
| 121 | no-map; |
| 122 | }; |
| 123 | |
| 124 | cont_splash_mem: memory@9c000000 { |
| 125 | reg = <0x0 0x9c000000 0x0 0x2300000>; |
| 126 | no-map; |
| 127 | }; |
| 128 | |
| 129 | ramoops@ffc00000 { |
| 130 | compatible = "ramoops"; |
| 131 | reg = <0x0 0xffc00000 0x0 0x100000>; |
| 132 | record-size = <0x1000>; |
| 133 | console-size = <0x40000>; |
| 134 | pmsg-size = <0x20000>; |
| 135 | ecc-size = <16>; |
| 136 | no-map; |
| 137 | }; |
| 138 | }; |
| 139 | }; |
| 140 | |
| 141 | &adsp { |
| 142 | status = "okay"; |
| 143 | }; |
| 144 | |
| 145 | &apps_rsc { |
| 146 | regulators-0 { |
| 147 | compatible = "qcom,pm8150-rpmh-regulators"; |
| 148 | qcom,pmic-id = "a"; |
| 149 | |
| 150 | vdd-s1-supply = <&vph_pwr>; |
| 151 | vdd-s2-supply = <&vph_pwr>; |
| 152 | vdd-s3-supply = <&vph_pwr>; |
| 153 | vdd-s4-supply = <&vph_pwr>; |
| 154 | vdd-s5-supply = <&vph_pwr>; |
| 155 | vdd-s6-supply = <&vph_pwr>; |
| 156 | vdd-s7-supply = <&vph_pwr>; |
| 157 | vdd-s8-supply = <&vph_pwr>; |
| 158 | vdd-s9-supply = <&vph_pwr>; |
| 159 | vdd-s10-supply = <&vph_pwr>; |
| 160 | vdd-l1-l8-l11-supply = <&vreg_s6c_0p88>; |
| 161 | vdd-l2-l10-supply = <&vreg_bob>; |
| 162 | vdd-l3-l4-l5-l18-supply = <&vreg_s6a_0p6>; |
| 163 | vdd-l6-l9-supply = <&vreg_s8c_1p2>; |
| 164 | vdd-l7-l12-l14-l15-supply = <&vreg_s5a_1p9>; |
| 165 | vdd-l13-l16-l17-supply = <&vreg_bob>; |
| 166 | |
| 167 | /* (S1+S2+S3) - cx.lvl (ARC) */ |
| 168 | |
| 169 | vreg_s4a_1p8: smps4 { |
| 170 | regulator-name = "vreg_s4a_1p8"; |
| 171 | regulator-min-microvolt = <1800000>; |
| 172 | regulator-max-microvolt = <1920000>; |
| 173 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 174 | }; |
| 175 | |
| 176 | vreg_s5a_1p9: smps5 { |
| 177 | regulator-name = "vreg_s5a_1p9"; |
| 178 | regulator-min-microvolt = <1824000>; |
| 179 | regulator-max-microvolt = <2040000>; |
| 180 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 181 | }; |
| 182 | |
| 183 | vreg_s6a_0p6: smps6 { |
| 184 | regulator-name = "vreg_s6a_0p6"; |
| 185 | regulator-min-microvolt = <600000>; |
| 186 | regulator-max-microvolt = <1128000>; |
| 187 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 188 | }; |
| 189 | |
| 190 | vreg_l2a_3p1: ldo2 { |
| 191 | regulator-name = "vreg_l2a_3p1"; |
| 192 | regulator-min-microvolt = <3072000>; |
| 193 | regulator-max-microvolt = <3072000>; |
| 194 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 195 | }; |
| 196 | |
| 197 | vreg_l3a_0p9: ldo3 { |
| 198 | regulator-name = "vreg_l3a_0p9"; |
| 199 | regulator-min-microvolt = <928000>; |
| 200 | regulator-max-microvolt = <932000>; |
| 201 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 202 | }; |
| 203 | |
| 204 | /* L4 - lmx.lvl (ARC) */ |
| 205 | |
| 206 | vreg_l5a_0p88: ldo5 { |
| 207 | regulator-name = "vreg_l5a_0p88"; |
| 208 | regulator-min-microvolt = <880000>; |
| 209 | regulator-max-microvolt = <880000>; |
| 210 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 211 | }; |
| 212 | |
| 213 | vreg_l6a_1p2: ldo6 { |
| 214 | regulator-name = "vreg_l6a_1p2"; |
| 215 | regulator-min-microvolt = <1200000>; |
| 216 | regulator-max-microvolt = <1200000>; |
| 217 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 218 | }; |
| 219 | |
| 220 | /* L7 is unused. */ |
| 221 | |
| 222 | vreg_l9a_1p2: ldo9 { |
| 223 | regulator-name = "vreg_l9a_1p2"; |
| 224 | regulator-min-microvolt = <1200000>; |
| 225 | regulator-max-microvolt = <1200000>; |
| 226 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 227 | }; |
| 228 | |
| 229 | /* L10 is unused, L11 - lcx.lvl (ARC) */ |
| 230 | |
| 231 | vreg_l12a_1p8: ldo12 { |
| 232 | regulator-name = "vreg_l12a_1p8"; |
| 233 | regulator-min-microvolt = <1800000>; |
| 234 | regulator-max-microvolt = <1800000>; |
| 235 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 236 | }; |
| 237 | |
| 238 | /* L13 is unused. */ |
| 239 | |
| 240 | vreg_l14a_1p8: ldo14 { |
| 241 | regulator-name = "vreg_l14a_1p8"; |
| 242 | regulator-min-microvolt = <1800000>; |
| 243 | regulator-max-microvolt = <1880000>; |
| 244 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 245 | }; |
| 246 | |
| 247 | /* L15 & L16 are unused. */ |
| 248 | |
| 249 | vreg_l17a_3p0: ldo17 { |
| 250 | regulator-name = "vreg_l17a_3p0"; |
| 251 | regulator-min-microvolt = <2496000>; |
| 252 | regulator-max-microvolt = <3008000>; |
| 253 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 254 | }; |
| 255 | |
| 256 | vreg_l18a_0p9: ldo18 { |
| 257 | regulator-name = "vreg_l18a_0p9"; |
| 258 | regulator-min-microvolt = <800000>; |
| 259 | regulator-max-microvolt = <920000>; |
| 260 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 261 | }; |
| 262 | }; |
| 263 | |
| 264 | /* |
| 265 | * Remaining regulators that are not yet supported: |
| 266 | * OLEDB: 4925000-8100000 |
| 267 | * ab: 4600000-6100000 |
| 268 | * ibb: 800000-5400000 |
| 269 | */ |
| 270 | regulators-1 { |
| 271 | compatible = "qcom,pm8150l-rpmh-regulators"; |
| 272 | qcom,pmic-id = "c"; |
| 273 | |
| 274 | vdd-s1-supply = <&vph_pwr>; |
| 275 | vdd-s2-supply = <&vph_pwr>; |
| 276 | vdd-s3-supply = <&vph_pwr>; |
| 277 | vdd-s4-supply = <&vph_pwr>; |
| 278 | vdd-s5-supply = <&vph_pwr>; |
| 279 | vdd-s6-supply = <&vph_pwr>; |
| 280 | vdd-s7-supply = <&vph_pwr>; |
| 281 | vdd-s8-supply = <&vph_pwr>; |
| 282 | vdd-l1-l8-supply = <&vreg_s4a_1p8>; |
| 283 | vdd-l2-l3-supply = <&vreg_s8c_1p2>; |
| 284 | vdd-l4-l5-l6-supply = <&vreg_bob>; |
| 285 | vdd-l7-l11-supply = <&vreg_bob>; |
| 286 | vdd-l9-l10-supply = <&vreg_bob>; |
| 287 | vdd-bob-supply = <&vph_pwr>; |
| 288 | |
| 289 | vreg_bob: bob { |
| 290 | regulator-name = "vreg_bob"; |
| 291 | regulator-min-microvolt = <3350000>; |
| 292 | regulator-max-microvolt = <3960000>; |
| 293 | regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>; |
| 294 | }; |
| 295 | |
| 296 | /* |
| 297 | * S1-S6 are ARCs: |
| 298 | * (S1+S2) - gfx.lvl, |
| 299 | * S3 - mx.lvl, |
| 300 | * (S4+S5) - mmcx.lvl, |
| 301 | * S6 - ebi.lvl |
| 302 | */ |
| 303 | |
| 304 | vreg_s7c_0p35: smps7 { |
| 305 | regulator-name = "vreg_s7c_0p35"; |
| 306 | regulator-min-microvolt = <348000>; |
| 307 | regulator-max-microvolt = <1000000>; |
| 308 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 309 | }; |
| 310 | |
| 311 | vreg_s8c_1p2: smps8 { |
| 312 | regulator-name = "vreg_s8c_1p2"; |
| 313 | regulator-min-microvolt = <1200000>; |
| 314 | regulator-max-microvolt = <1400000>; |
| 315 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 316 | }; |
| 317 | |
| 318 | vreg_l1c_1p8: ldo1 { |
| 319 | regulator-name = "vreg_l1c_1p8"; |
| 320 | regulator-min-microvolt = <1800000>; |
| 321 | regulator-max-microvolt = <1800000>; |
| 322 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 323 | }; |
| 324 | |
| 325 | /* L2-4 are unused. */ |
| 326 | |
| 327 | vreg_l5c_1p8: ldo5 { |
| 328 | regulator-name = "vreg_l5c_1p8"; |
| 329 | regulator-min-microvolt = <1800000>; |
| 330 | regulator-max-microvolt = <2800000>; |
| 331 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 332 | }; |
| 333 | |
| 334 | vreg_l6c_2p9: ldo6 { |
| 335 | regulator-name = "vreg_l6c_2p9"; |
| 336 | regulator-min-microvolt = <1800000>; |
| 337 | regulator-max-microvolt = <2960000>; |
| 338 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 339 | regulator-allow-set-load; |
| 340 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 341 | RPMH_REGULATOR_MODE_HPM>; |
| 342 | }; |
| 343 | |
| 344 | vreg_l7c_2p85: ldo7 { |
| 345 | regulator-name = "vreg_l7c_2p85"; |
| 346 | regulator-min-microvolt = <2856000>; |
| 347 | regulator-max-microvolt = <3104000>; |
| 348 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 349 | }; |
| 350 | |
| 351 | vreg_l8c_1p8: ldo8 { |
| 352 | regulator-name = "vreg_l8c_1p8"; |
| 353 | regulator-min-microvolt = <1800000>; |
| 354 | regulator-max-microvolt = <1800000>; |
| 355 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 356 | }; |
| 357 | |
| 358 | vreg_l9c_2p9: ldo9 { |
| 359 | regulator-name = "vreg_l9c_2p9"; |
| 360 | regulator-min-microvolt = <2704000>; |
| 361 | regulator-max-microvolt = <2960000>; |
| 362 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 363 | regulator-allow-set-load; |
| 364 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 365 | RPMH_REGULATOR_MODE_HPM>; |
| 366 | }; |
| 367 | |
| 368 | vreg_l10c_3p3: ldo10 { |
| 369 | regulator-name = "vreg_l10c_3p3"; |
| 370 | regulator-min-microvolt = <3296000>; |
| 371 | regulator-max-microvolt = <3296000>; |
| 372 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 373 | }; |
| 374 | |
| 375 | vreg_l11c_3p0: ldo11 { |
| 376 | regulator-name = "vreg_l11c_3p0"; |
| 377 | regulator-min-microvolt = <3000000>; |
| 378 | regulator-max-microvolt = <3000000>; |
| 379 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 380 | }; |
| 381 | }; |
| 382 | |
| 383 | regulators-2 { |
| 384 | compatible = "qcom,pm8009-rpmh-regulators"; |
| 385 | qcom,pmic-id = "f"; |
| 386 | |
| 387 | vdd-s1-supply = <&vph_pwr>; |
| 388 | vdd-s2-supply = <&vreg_bob>; |
| 389 | vdd-l2-supply = <&vreg_s8c_1p2>; |
| 390 | vdd-l5-l6-supply = <&vreg_bob>; |
| 391 | vdd-l7-supply = <&vreg_s4a_1p8>; |
| 392 | |
| 393 | vreg_s1f_1p2: smps1 { |
| 394 | regulator-name = "vreg_s1f_1p2"; |
| 395 | regulator-min-microvolt = <1200000>; |
| 396 | regulator-max-microvolt = <1200000>; |
| 397 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 398 | }; |
| 399 | |
| 400 | vreg_s2f_0p5: smps2 { |
| 401 | regulator-name = "vreg_s2f_0p5"; |
| 402 | regulator-min-microvolt = <512000>; |
| 403 | regulator-max-microvolt = <1100000>; |
| 404 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 405 | }; |
| 406 | |
| 407 | /* L1 is unused. */ |
| 408 | |
| 409 | vreg_l2f_1p3: ldo2 { |
| 410 | regulator-name = "vreg_l2f_1p3"; |
| 411 | regulator-min-microvolt = <1304000>; |
| 412 | regulator-max-microvolt = <1304000>; |
| 413 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 414 | }; |
| 415 | |
| 416 | /* L3 & L4 are unused. */ |
| 417 | |
| 418 | vreg_l5f_2p8: ldo5 { |
| 419 | regulator-name = "vreg_l5f_2p85"; |
| 420 | regulator-min-microvolt = <2800000>; |
| 421 | regulator-max-microvolt = <2800000>; |
| 422 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 423 | }; |
| 424 | |
| 425 | vreg_l6f_2p8: ldo6 { |
| 426 | regulator-name = "vreg_l6f_2p8"; |
| 427 | regulator-min-microvolt = <2800000>; |
| 428 | regulator-max-microvolt = <2800000>; |
| 429 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 430 | }; |
| 431 | |
| 432 | vreg_l7f_1p8: ldo7 { |
| 433 | regulator-name = "vreg_l7f_1p8"; |
| 434 | regulator-min-microvolt = <1800000>; |
| 435 | regulator-max-microvolt = <1800000>; |
| 436 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 437 | }; |
| 438 | }; |
| 439 | }; |
| 440 | |
| 441 | &cdsp { |
| 442 | status = "okay"; |
| 443 | }; |
| 444 | |
| 445 | &gpi_dma0 { |
| 446 | status = "okay"; |
| 447 | }; |
| 448 | |
| 449 | &gpi_dma1 { |
| 450 | status = "okay"; |
| 451 | }; |
| 452 | |
| 453 | &gpi_dma2 { |
| 454 | status = "okay"; |
| 455 | }; |
| 456 | |
| 457 | &i2c1 { |
| 458 | status = "okay"; |
| 459 | clock-frequency = <400000>; |
| 460 | |
| 461 | nfc@28 { |
| 462 | compatible = "nxp,nxp-nci-i2c"; |
| 463 | reg = <0x28>; |
| 464 | |
| 465 | interrupt-parent = <&tlmm>; |
| 466 | interrupts = <111 IRQ_TYPE_EDGE_RISING>; |
| 467 | |
| 468 | enable-gpios = <&tlmm 6 GPIO_ACTIVE_HIGH>; |
| 469 | firmware-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>; |
| 470 | }; |
| 471 | }; |
| 472 | |
| 473 | &i2c2 { |
| 474 | status = "okay"; |
| 475 | clock-frequency = <1000000>; |
| 476 | |
| 477 | cs35l41_l: speaker-amp@40 { |
| 478 | compatible = "cirrus,cs35l41"; |
| 479 | reg = <0x40>; |
| 480 | interrupt-parent = <&tlmm>; |
| 481 | interrupts = <11 IRQ_TYPE_LEVEL_LOW>; |
| 482 | reset-gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>; |
| 483 | cirrus,boost-peak-milliamp = <4000>; |
| 484 | cirrus,boost-ind-nanohenry = <1000>; |
| 485 | cirrus,boost-cap-microfarad = <15>; |
| 486 | cirrus,asp-sdout-hiz = <3>; |
| 487 | cirrus,gpio2-src-select = <2>; |
| 488 | cirrus,gpio2-output-enable; |
| 489 | #sound-dai-cells = <1>; |
| 490 | }; |
| 491 | |
| 492 | cs35l41_r: speaker-amp@41 { |
| 493 | compatible = "cirrus,cs35l41"; |
| 494 | reg = <0x41>; |
| 495 | interrupt-parent = <&tlmm>; |
| 496 | interrupts = <11 IRQ_TYPE_LEVEL_LOW>; |
| 497 | reset-gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>; |
| 498 | cirrus,boost-peak-milliamp = <4000>; |
| 499 | cirrus,boost-ind-nanohenry = <1000>; |
| 500 | cirrus,boost-cap-microfarad = <15>; |
| 501 | cirrus,asp-sdout-hiz = <3>; |
| 502 | cirrus,gpio2-src-select = <2>; |
| 503 | cirrus,gpio2-output-enable; |
| 504 | #sound-dai-cells = <1>; |
| 505 | }; |
| 506 | }; |
| 507 | |
| 508 | &i2c9 { |
| 509 | status = "okay"; |
| 510 | clock-frequency = <400000>; |
| 511 | |
| 512 | /* AMS TCS3490 RGB+IR color sensor @ 72 */ |
| 513 | }; |
| 514 | |
| 515 | &i2c13 { |
| 516 | status = "okay"; |
| 517 | clock-frequency = <400000>; |
| 518 | |
| 519 | touchscreen@48 { |
| 520 | compatible = "samsung,s6sy761"; |
| 521 | reg = <0x48>; |
| 522 | interrupt-parent = <&tlmm>; |
| 523 | interrupts = <39 0x2008>; |
| 524 | /* It's "vddio" downstream but it works anyway! */ |
| 525 | vdd-supply = <&vreg_l1c_1p8>; |
| 526 | avdd-supply = <&vreg_l10c_3p3>; |
| 527 | |
| 528 | pinctrl-names = "default"; |
| 529 | pinctrl-0 = <&ts_int_default>; |
| 530 | }; |
| 531 | }; |
| 532 | |
| 533 | &i2c15 { |
| 534 | status = "okay"; |
| 535 | clock-frequency = <400000>; |
| 536 | |
| 537 | /* Qcom SMB1390 @ 10 */ |
| 538 | /* Qcom SMB1390_slave @ 18 */ |
| 539 | /* HALO HL6111R Qi charger @ 25 */ |
| 540 | }; |
| 541 | |
| 542 | &pcie0 { |
| 543 | status = "okay"; |
| 544 | }; |
| 545 | |
| 546 | &pcie0_phy { |
| 547 | status = "okay"; |
| 548 | |
| 549 | vdda-phy-supply = <&vreg_l5a_0p88>; |
| 550 | vdda-pll-supply = <&vreg_l9a_1p2>; |
| 551 | }; |
| 552 | |
| 553 | &pcie2 { |
| 554 | status = "okay"; |
| 555 | |
| 556 | pinctrl-0 = <&pcie2_default_state &mdm2ap_default &ap2mdm_default>; |
| 557 | }; |
| 558 | |
| 559 | &pcie2_phy { |
| 560 | status = "okay"; |
| 561 | |
| 562 | vdda-phy-supply = <&vreg_l5a_0p88>; |
| 563 | vdda-pll-supply = <&vreg_l9a_1p2>; |
| 564 | }; |
| 565 | |
| 566 | &pm8150_gpios { |
| 567 | vol_down_n: vol-down-n-state { |
| 568 | pins = "gpio1"; |
| 569 | function = "normal"; |
| 570 | power-source = <0>; |
| 571 | bias-pull-up; |
| 572 | input-enable; |
| 573 | }; |
| 574 | }; |
| 575 | |
| 576 | &pm8150b_gpios { |
| 577 | snapshot_n: snapshot-n-state { |
| 578 | pins = "gpio1"; |
| 579 | function = "normal"; |
| 580 | power-source = <0>; |
| 581 | bias-pull-up; |
| 582 | input-enable; |
| 583 | }; |
| 584 | |
| 585 | focus_n: focus-n-state { |
| 586 | pins = "gpio2"; |
| 587 | function = "normal"; |
| 588 | power-source = <0>; |
| 589 | bias-pull-up; |
| 590 | input-enable; |
| 591 | }; |
| 592 | }; |
| 593 | |
| 594 | &pon_pwrkey { |
| 595 | status = "okay"; |
| 596 | }; |
| 597 | |
| 598 | &pon_resin { |
| 599 | status = "okay"; |
| 600 | |
| 601 | linux,code = <KEY_VOLUMEUP>; |
| 602 | }; |
| 603 | |
| 604 | &qupv3_id_0 { |
| 605 | status = "okay"; |
| 606 | }; |
| 607 | |
| 608 | &qupv3_id_1 { |
| 609 | status = "okay"; |
| 610 | }; |
| 611 | |
| 612 | &qupv3_id_2 { |
| 613 | status = "okay"; |
| 614 | }; |
| 615 | |
| 616 | &sdhc_2 { |
| 617 | status = "okay"; |
| 618 | |
| 619 | cd-gpios = <&tlmm 77 GPIO_ACTIVE_HIGH>; |
| 620 | pinctrl-names = "default", "sleep"; |
| 621 | pinctrl-0 = <&sdc2_default_state &sdc2_card_det_n>; |
| 622 | pinctrl-1 = <&sdc2_sleep_state &sdc2_card_det_n>; |
| 623 | vmmc-supply = <&vreg_l9c_2p9>; |
| 624 | vqmmc-supply = <&vreg_l6c_2p9>; |
| 625 | bus-width = <4>; |
| 626 | no-sdio; |
| 627 | no-mmc; |
| 628 | }; |
| 629 | |
| 630 | &slpi { |
| 631 | status = "okay"; |
| 632 | }; |
| 633 | |
| 634 | &tlmm { |
| 635 | gpio-reserved-ranges = <40 4>, <52 4>; |
| 636 | |
| 637 | sdc2_default_state: sdc2-default-state { |
| 638 | clk-pins { |
| 639 | pins = "sdc2_clk"; |
| 640 | drive-strength = <16>; |
| 641 | bias-disable; |
| 642 | }; |
| 643 | |
| 644 | cmd-pins { |
| 645 | pins = "sdc2_cmd"; |
| 646 | drive-strength = <16>; |
| 647 | bias-pull-up; |
| 648 | }; |
| 649 | |
| 650 | data-pins { |
| 651 | pins = "sdc2_data"; |
| 652 | drive-strength = <16>; |
| 653 | bias-pull-up; |
| 654 | }; |
| 655 | }; |
| 656 | |
| 657 | mdm2ap_default: mdm2ap-default-state { |
| 658 | pins = "gpio1", "gpio3"; |
| 659 | function = "gpio"; |
| 660 | drive-strength = <8>; |
| 661 | bias-disable; |
| 662 | }; |
| 663 | |
| 664 | ts_int_default: ts-int-default-state { |
| 665 | pins = "gpio39"; |
| 666 | function = "gpio"; |
| 667 | drive-strength = <2>; |
| 668 | bias-disable; |
| 669 | }; |
| 670 | |
| 671 | ap2mdm_default: ap2mdm-default-state { |
| 672 | pins = "gpio56", "gpio57"; |
| 673 | function = "gpio"; |
| 674 | drive-strength = <16>; |
| 675 | bias-disable; |
| 676 | }; |
| 677 | |
| 678 | sdc2_card_det_n: sd-card-det-n-state { |
| 679 | pins = "gpio77"; |
| 680 | function = "gpio"; |
| 681 | bias-pull-up; |
| 682 | drive-strength = <2>; |
| 683 | }; |
| 684 | }; |
| 685 | |
| 686 | &uart12 { |
| 687 | status = "okay"; |
| 688 | }; |
| 689 | |
| 690 | /* BIG WARNING! DO NOT TOUCH UFS, YOUR DEVICE WILL DIE! */ |
| 691 | &ufs_mem_hc { status = "disabled"; }; |
| 692 | &ufs_mem_phy { status = "disabled"; }; |
| 693 | |
| 694 | &usb_1 { |
| 695 | status = "okay"; |
| 696 | }; |
| 697 | |
| 698 | &usb_1_dwc3 { |
| 699 | dr_mode = "peripheral"; |
| 700 | }; |
| 701 | |
| 702 | &usb_1_hsphy { |
| 703 | status = "okay"; |
| 704 | |
| 705 | vdda-pll-supply = <&vreg_l5a_0p88>; |
| 706 | vdda18-supply = <&vreg_l12a_1p8>; |
| 707 | vdda33-supply = <&vreg_l2a_3p1>; |
| 708 | }; |
| 709 | |
| 710 | &usb_1_qmpphy { |
| 711 | status = "okay"; |
| 712 | |
| 713 | vdda-phy-supply = <&vreg_l9a_1p2>; |
| 714 | vdda-pll-supply = <&vreg_l18a_0p9>; |
| 715 | }; |
| 716 | |
| 717 | &venus { |
| 718 | firmware-name = "qcom/sm8250/Sony/edo/venus.mbn"; |
| 719 | status = "okay"; |
| 720 | }; |