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/input/input.h> |
| 7 | #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> |
| 8 | #include <dt-bindings/regulator/qcom,rpmh-regulator.h> |
| 9 | #include "sdm845.dtsi" |
| 10 | #include "pm8005.dtsi" |
| 11 | #include "pm8998.dtsi" |
| 12 | #include "pmi8998.dtsi" |
| 13 | |
| 14 | / { |
| 15 | qcom,msm-id = <321 0x20001>; /* SDM845 v2.1 */ |
| 16 | qcom,board-id = <8 0>; |
| 17 | |
| 18 | aliases { |
| 19 | serial0 = &uart6; |
| 20 | serial1 = &uart9; |
| 21 | }; |
| 22 | |
| 23 | chosen { |
| 24 | stdout-path = "serial0:115200n8"; |
| 25 | }; |
| 26 | |
| 27 | gpio-keys { |
| 28 | compatible = "gpio-keys"; |
| 29 | |
| 30 | pinctrl-0 = <&focus_n &snapshot_n &vol_down_n &vol_up_n>; |
| 31 | pinctrl-names = "default"; |
| 32 | |
| 33 | key-camera-focus { |
| 34 | label = "Camera Focus"; |
| 35 | gpios = <&pm8998_gpios 2 GPIO_ACTIVE_LOW>; |
| 36 | linux,code = <KEY_CAMERA_FOCUS>; |
| 37 | debounce-interval = <15>; |
| 38 | linux,can-disable; |
| 39 | wakeup-source; |
| 40 | }; |
| 41 | |
| 42 | key-camera-snapshot { |
| 43 | label = "Camera Snapshot"; |
| 44 | gpios = <&pm8998_gpios 7 GPIO_ACTIVE_LOW>; |
| 45 | linux,code = <KEY_CAMERA>; |
| 46 | debounce-interval = <15>; |
| 47 | linux,can-disable; |
| 48 | wakeup-source; |
| 49 | }; |
| 50 | |
| 51 | key-volume-down { |
| 52 | label = "Volume Down"; |
| 53 | gpios = <&pm8998_gpios 5 GPIO_ACTIVE_LOW>; |
| 54 | linux,code = <KEY_VOLUMEDOWN>; |
| 55 | debounce-interval = <15>; |
| 56 | linux,can-disable; |
| 57 | wakeup-source; |
| 58 | }; |
| 59 | |
| 60 | key-volume-up { |
| 61 | label = "Volume Up"; |
| 62 | gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>; |
| 63 | linux,code = <KEY_VOLUMEUP>; |
| 64 | debounce-interval = <15>; |
| 65 | linux,can-disable; |
| 66 | wakeup-source; |
| 67 | }; |
| 68 | }; |
| 69 | |
| 70 | cam_vana_front_vreg: cam-vana-front-regulator { |
| 71 | compatible = "regulator-fixed"; |
| 72 | regulator-name = "cam_vana_front_vreg"; |
| 73 | gpio = <&tlmm 8 GPIO_ACTIVE_HIGH>; |
| 74 | enable-active-high; |
| 75 | |
| 76 | pinctrl-0 = <&chat_cam_pwr_en>; |
| 77 | pinctrl-names = "default"; |
| 78 | }; |
| 79 | |
| 80 | cam_vana_rear_vreg: cam-vana-rear-regulator { |
| 81 | compatible = "regulator-fixed"; |
| 82 | regulator-name = "cam_vana_rear_vreg"; |
| 83 | gpio = <&tlmm 27 GPIO_ACTIVE_HIGH>; |
| 84 | enable-active-high; |
| 85 | |
| 86 | pinctrl-0 = <&main_cam_pwr_en>; |
| 87 | pinctrl-names = "default"; |
| 88 | }; |
| 89 | |
| 90 | cam_vio_vreg: cam-vio-reagulator { |
| 91 | compatible = "regulator-fixed"; |
| 92 | regulator-name = "cam_vio_vreg"; |
| 93 | gpio = <&pmi8998_gpios 12 GPIO_ACTIVE_HIGH>; |
| 94 | enable-active-high; |
| 95 | |
| 96 | pinctrl-0 = <&cam_io_en>; |
| 97 | pinctrl-names = "default"; |
| 98 | }; |
| 99 | |
| 100 | vph_pwr: vph-pwr-regulator { |
| 101 | compatible = "regulator-fixed"; |
| 102 | regulator-name = "vph_pwr"; |
| 103 | regulator-min-microvolt = <3700000>; |
| 104 | regulator-max-microvolt = <3700000>; |
| 105 | }; |
| 106 | |
| 107 | vreg_s4a_1p8: pm8998-smps4 { |
| 108 | compatible = "regulator-fixed"; |
| 109 | regulator-name = "vreg_s4a_1p8"; |
| 110 | |
| 111 | regulator-min-microvolt = <1800000>; |
| 112 | regulator-max-microvolt = <1800000>; |
| 113 | |
| 114 | regulator-always-on; |
| 115 | regulator-boot-on; |
| 116 | |
| 117 | vin-supply = <&vph_pwr>; |
| 118 | }; |
| 119 | |
| 120 | reserved-memory { |
| 121 | /* SONY was cool and didn't diverge from MTP this time, yay! */ |
| 122 | cont_splash_mem: memory@9d400000 { |
| 123 | reg = <0x0 0x9d400000 0x0 0x2400000>; |
| 124 | no-map; |
| 125 | }; |
| 126 | |
| 127 | ramoops@ffc00000 { |
| 128 | compatible = "ramoops"; |
| 129 | reg = <0x0 0xffc00000 0x0 0x100000>; |
| 130 | record-size = <0x10000>; |
| 131 | console-size = <0x60000>; |
| 132 | ftrace-size = <0x10000>; |
| 133 | pmsg-size = <0x20000>; |
| 134 | ecc-size = <16>; |
| 135 | no-map; |
| 136 | }; |
| 137 | }; |
| 138 | }; |
| 139 | |
| 140 | &adsp_pas { |
| 141 | firmware-name = "qcom/sdm845/Sony/tama/adsp.mbn"; |
| 142 | status = "okay"; |
| 143 | }; |
| 144 | |
| 145 | &apps_rsc { |
| 146 | regulators-0 { |
| 147 | compatible = "qcom,pm8998-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-s11-supply = <&vph_pwr>; |
| 161 | vdd-s12-supply = <&vph_pwr>; |
| 162 | vdd-s13-supply = <&vph_pwr>; |
| 163 | vdd-l1-l27-supply = <&vreg_s7a_0p9>; |
| 164 | vdd-l2-l8-l17-supply = <&vreg_s3a_1p3>; |
| 165 | vdd-l3-l11-supply = <&vreg_s7a_0p9>; |
| 166 | vdd-l4-l5-supply = <&vreg_s7a_0p9>; |
| 167 | vdd-l6-supply = <&vph_pwr>; |
| 168 | vdd-l7-l12-l14-l15-supply = <&vreg_s5a_1p9>; |
| 169 | vdd-l9-supply = <&vreg_s5a_1p9>; |
| 170 | vdd-l10-l23-l25-supply = <&src_vreg_bob>; |
| 171 | vdd-l13-l19-l21-supply = <&src_vreg_bob>; |
| 172 | vdd-l16-l28-supply = <&src_vreg_bob>; |
| 173 | vdd-l18-l22-supply = <&src_vreg_bob>; |
| 174 | vdd-l20-l24-supply = <&src_vreg_bob>; |
| 175 | vdd-l26-supply = <&vreg_s3a_1p3>; |
| 176 | vin-lvs-1-2-supply = <&vreg_s4a_1p8>; |
| 177 | |
| 178 | vreg_s2a_1p1: smps2 { |
| 179 | regulator-min-microvolt = <1100000>; |
| 180 | regulator-max-microvolt = <1100000>; |
| 181 | }; |
| 182 | |
| 183 | vreg_s3a_1p3: smps3 { |
| 184 | regulator-min-microvolt = <1352000>; |
| 185 | regulator-max-microvolt = <1352000>; |
| 186 | }; |
| 187 | |
| 188 | vreg_s5a_1p9: smps5 { |
| 189 | regulator-min-microvolt = <1904000>; |
| 190 | regulator-max-microvolt = <2040000>; |
| 191 | }; |
| 192 | |
| 193 | vreg_s7a_0p9: smps7 { |
| 194 | regulator-min-microvolt = <900000>; |
| 195 | regulator-max-microvolt = <1028000>; |
| 196 | }; |
| 197 | |
| 198 | vreg_l1a_0p9: ldo1 { |
| 199 | regulator-min-microvolt = <880000>; |
| 200 | regulator-max-microvolt = <880000>; |
| 201 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 202 | }; |
| 203 | |
| 204 | vreg_l2a_1p2: ldo2 { |
| 205 | regulator-min-microvolt = <1200000>; |
| 206 | regulator-max-microvolt = <1200000>; |
| 207 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 208 | regulator-always-on; |
| 209 | }; |
| 210 | |
| 211 | vreg_l3a_1p0: ldo3 { |
| 212 | regulator-min-microvolt = <1000000>; |
| 213 | regulator-max-microvolt = <1000000>; |
| 214 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 215 | }; |
| 216 | |
| 217 | vreg_l5a_0p8: ldo5 { |
| 218 | regulator-min-microvolt = <800000>; |
| 219 | regulator-max-microvolt = <800000>; |
| 220 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 221 | }; |
| 222 | |
| 223 | vreg_l6a_1p8: ldo6 { |
| 224 | regulator-min-microvolt = <1856000>; |
| 225 | regulator-max-microvolt = <1856000>; |
| 226 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 227 | }; |
| 228 | |
| 229 | vreg_l7a_1p8: ldo7 { |
| 230 | regulator-min-microvolt = <1800000>; |
| 231 | regulator-max-microvolt = <1800000>; |
| 232 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 233 | }; |
| 234 | |
| 235 | vreg_l8a_1p2: ldo8 { |
| 236 | regulator-min-microvolt = <1200000>; |
| 237 | regulator-max-microvolt = <1248000>; |
| 238 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 239 | }; |
| 240 | |
| 241 | vreg_l9a_1p7: ldo9 { |
| 242 | regulator-min-microvolt = <1704000>; |
| 243 | regulator-max-microvolt = <2928000>; |
| 244 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 245 | }; |
| 246 | |
| 247 | vreg_l10a_1p7: ldo10 { |
| 248 | regulator-min-microvolt = <1704000>; |
| 249 | regulator-max-microvolt = <2928000>; |
| 250 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 251 | }; |
| 252 | |
| 253 | vreg_l11a_1p0: ldo11 { |
| 254 | regulator-min-microvolt = <1000000>; |
| 255 | regulator-max-microvolt = <1048000>; |
| 256 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 257 | }; |
| 258 | |
| 259 | vreg_l12a_1p8: ldo12 { |
| 260 | regulator-min-microvolt = <1800000>; |
| 261 | regulator-max-microvolt = <1800000>; |
| 262 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 263 | }; |
| 264 | |
| 265 | vreg_l13a_1p8: ldo13 { |
| 266 | regulator-min-microvolt = <1800000>; |
| 267 | regulator-max-microvolt = <2960000>; |
| 268 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 269 | }; |
| 270 | |
| 271 | vreg_l14a_1p8: ldo14 { |
| 272 | regulator-min-microvolt = <1800000>; |
| 273 | regulator-max-microvolt = <1800000>; |
| 274 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 275 | regulator-system-load = <62000>; |
| 276 | }; |
| 277 | |
| 278 | vreg_l15a_1p8: ldo15 { |
| 279 | regulator-min-microvolt = <1800000>; |
| 280 | regulator-max-microvolt = <1800000>; |
| 281 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 282 | }; |
| 283 | |
| 284 | vreg_l16a_2p7: ldo16 { |
| 285 | regulator-min-microvolt = <2704000>; |
| 286 | regulator-max-microvolt = <2704000>; |
| 287 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 288 | }; |
| 289 | |
| 290 | vreg_l17a_1p3: ldo17 { |
| 291 | regulator-min-microvolt = <1304000>; |
| 292 | regulator-max-microvolt = <1304000>; |
| 293 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 294 | }; |
| 295 | |
| 296 | vreg_l18a_2p7: ldo18 { |
| 297 | regulator-min-microvolt = <2704000>; |
| 298 | regulator-max-microvolt = <2960000>; |
| 299 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 300 | }; |
| 301 | |
| 302 | vreg_l19a_2p7: ldo19 { |
| 303 | regulator-min-microvolt = <2700000>; |
| 304 | regulator-max-microvolt = <2700000>; |
| 305 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 306 | |
| 307 | /* |
| 308 | * The driver *really* doesn't want this regualtor to exist, |
| 309 | * saying that it could not get the current voltage (-ENOTRECOVERABLE) |
| 310 | * even though it surely is used on these devices (as a voltage |
| 311 | * source for camera autofocus) |
| 312 | */ |
| 313 | status = "disabled"; |
| 314 | }; |
| 315 | |
| 316 | vreg_l20a_2p7: ldo20 { |
| 317 | regulator-min-microvolt = <2704000>; |
| 318 | regulator-max-microvolt = <2960000>; |
| 319 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 320 | }; |
| 321 | |
| 322 | vreg_l21a_2p7: ldo21 { |
| 323 | regulator-min-microvolt = <2704000>; |
| 324 | regulator-max-microvolt = <2960000>; |
| 325 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 326 | }; |
| 327 | |
| 328 | vreg_l22a_2p8: ldo22 { |
| 329 | regulator-min-microvolt = <2800000>; |
| 330 | regulator-max-microvolt = <2800000>; |
| 331 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 332 | }; |
| 333 | |
| 334 | vreg_l23a_3p0: ldo23 { |
| 335 | regulator-min-microvolt = <3000000>; |
| 336 | regulator-max-microvolt = <3312000>; |
| 337 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 338 | }; |
| 339 | |
| 340 | vreg_l24a_3p1: ldo24 { |
| 341 | regulator-min-microvolt = <3088000>; |
| 342 | regulator-max-microvolt = <3088000>; |
| 343 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 344 | }; |
| 345 | |
| 346 | vreg_l25a_3p0: ldo25 { |
| 347 | regulator-min-microvolt = <3000000>; |
| 348 | regulator-max-microvolt = <3312000>; |
| 349 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 350 | }; |
| 351 | |
| 352 | vreg_l26a_1p2: ldo26 { |
| 353 | regulator-min-microvolt = <1200000>; |
| 354 | regulator-max-microvolt = <1200000>; |
| 355 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 356 | }; |
| 357 | |
| 358 | vreg_l28a_2p8: ldo28 { |
| 359 | regulator-min-microvolt = <2856000>; |
| 360 | regulator-max-microvolt = <3008000>; |
| 361 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 362 | regulator-system-load = <100000>; |
| 363 | }; |
| 364 | |
| 365 | vreg_lvs1a_1p8: lvs1 { |
| 366 | regulator-min-microvolt = <1800000>; |
| 367 | regulator-max-microvolt = <1800000>; |
| 368 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 369 | }; |
| 370 | |
| 371 | vreg_lvs2a_1p8: lvs2 { |
| 372 | regulator-min-microvolt = <1800000>; |
| 373 | regulator-max-microvolt = <1800000>; |
| 374 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 375 | }; |
| 376 | }; |
| 377 | |
| 378 | regulators-1 { |
| 379 | compatible = "qcom,pmi8998-rpmh-regulators"; |
| 380 | qcom,pmic-id = "b"; |
| 381 | |
| 382 | src_vreg_bob: bob { |
| 383 | regulator-min-microvolt = <3312000>; |
| 384 | regulator-max-microvolt = <3600000>; |
| 385 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 386 | }; |
| 387 | }; |
| 388 | |
| 389 | regulators-2 { |
| 390 | compatible = "qcom,pm8005-rpmh-regulators"; |
| 391 | qcom,pmic-id = "c"; |
| 392 | |
| 393 | vdd-s1-supply = <&vph_pwr>; |
| 394 | vdd-s2-supply = <&vph_pwr>; |
| 395 | vdd-s3-supply = <&vph_pwr>; |
| 396 | vdd-s4-supply = <&vph_pwr>; |
| 397 | |
| 398 | vreg_s3c_0p6: smps3 { |
| 399 | regulator-min-microvolt = <600000>; |
| 400 | regulator-max-microvolt = <600000>; |
| 401 | }; |
| 402 | }; |
| 403 | }; |
| 404 | |
| 405 | &cdsp_pas { |
| 406 | firmware-name = "qcom/sdm845/Sony/tama/cdsp.mbn"; |
| 407 | status = "okay"; |
| 408 | }; |
| 409 | |
| 410 | &gcc { |
| 411 | protected-clocks = <GCC_QSPI_CORE_CLK>, |
| 412 | <GCC_QSPI_CORE_CLK_SRC>, |
| 413 | <GCC_QSPI_CNOC_PERIPH_AHB_CLK>, |
| 414 | <GCC_LPASS_Q6_AXI_CLK>, |
| 415 | <GCC_LPASS_SWAY_CLK>; |
| 416 | }; |
| 417 | |
| 418 | &gmu { |
| 419 | status = "okay"; |
| 420 | }; |
| 421 | |
| 422 | &gpi_dma0 { |
| 423 | status = "okay"; |
| 424 | }; |
| 425 | |
| 426 | &gpi_dma1 { |
| 427 | status = "okay"; |
| 428 | }; |
| 429 | |
| 430 | &gpu { |
| 431 | status = "okay"; |
| 432 | |
| 433 | zap-shader { |
| 434 | memory-region = <&gpu_mem>; |
| 435 | firmware-name = "qcom/sdm845/Sony/tama/a630_zap.mbn"; |
| 436 | }; |
| 437 | }; |
| 438 | |
| 439 | &i2c5 { |
| 440 | clock-frequency = <400000>; |
| 441 | status = "okay"; |
| 442 | |
| 443 | touchscreen: touchscreen@2c { |
| 444 | compatible = "syna,rmi4-i2c"; |
| 445 | reg = <0x2c>; |
| 446 | |
| 447 | interrupts-extended = <&tlmm 125 IRQ_TYPE_EDGE_FALLING>; |
| 448 | vdd-supply = <&vreg_l14a_1p8>; |
| 449 | /* |
| 450 | * This is a blatant abuse of OF, but the panel driver *needs* |
| 451 | * to probe first, as the power/gpio switching needs to be precisely |
| 452 | * timed in order for both the display and touch panel to function properly. |
| 453 | */ |
| 454 | incell-supply = <&panel>; |
| 455 | |
| 456 | syna,reset-delay-ms = <220>; |
| 457 | syna,startup-delay-ms = <1000>; |
| 458 | |
| 459 | pinctrl-0 = <&ts_default>; |
| 460 | pinctrl-1 = <&ts_sleep>; |
| 461 | pinctrl-names = "default", "sleep"; |
| 462 | |
| 463 | #address-cells = <1>; |
| 464 | #size-cells = <0>; |
| 465 | |
| 466 | rmi4-f01@1 { |
| 467 | reg = <0x01>; |
| 468 | syna,nosleep-mode = <1>; |
| 469 | }; |
| 470 | |
| 471 | rmi4-f12@12 { |
| 472 | reg = <0x12>; |
| 473 | syna,sensor-type = <1>; |
| 474 | }; |
| 475 | }; |
| 476 | }; |
| 477 | |
| 478 | &i2c10 { |
| 479 | status = "okay"; |
| 480 | clock-frequency = <400000>; |
| 481 | |
| 482 | /* Qcom SMB1355 @ 8, c */ |
| 483 | /* NXP PN547 NFC @ 28 */ |
| 484 | /* Renesas IDTP9221 Qi charger @ 61 */ |
| 485 | }; |
| 486 | |
| 487 | &i2c14 { |
| 488 | status = "okay"; |
| 489 | clock-frequency = <400000>; |
| 490 | |
| 491 | /* SONY ToF sensor @ 52 */ |
| 492 | /* AMS TCS3490 RGB+IR color sensor @ 72 */ |
| 493 | }; |
| 494 | |
| 495 | &ibb { |
| 496 | qcom,discharge-resistor-kohms = <300>; |
| 497 | regulator-min-microvolt = <5500000>; |
| 498 | regulator-max-microvolt = <5700000>; |
| 499 | regulator-min-microamp = <0>; |
| 500 | regulator-max-microamp = <800000>; |
| 501 | regulator-over-current-protection; |
| 502 | regulator-soft-start; |
| 503 | regulator-pull-down; |
| 504 | }; |
| 505 | |
| 506 | &lab { |
| 507 | regulator-min-microvolt = <5500000>; |
| 508 | regulator-max-microvolt = <5700000>; |
| 509 | regulator-min-microamp = <200000>; |
| 510 | regulator-max-microamp = <200000>; |
| 511 | regulator-over-current-protection; |
| 512 | regulator-soft-start; |
| 513 | regulator-pull-down; |
| 514 | }; |
| 515 | |
| 516 | &mdss { |
| 517 | status = "okay"; |
| 518 | }; |
| 519 | |
| 520 | &mdss_dsi0 { |
| 521 | vdda-supply = <&vreg_l26a_1p2>; |
| 522 | status = "okay"; |
| 523 | |
| 524 | panel: panel@0 { |
| 525 | /* The compatible is assigned in device DTs. */ |
| 526 | reg = <0>; |
| 527 | |
| 528 | backlight = <&pmi8998_wled>; |
| 529 | vddio-supply = <&vreg_l14a_1p8>; |
| 530 | vsp-supply = <&lab>; |
| 531 | vsn-supply = <&ibb>; |
| 532 | panel-reset-gpios = <&tlmm 6 GPIO_ACTIVE_HIGH>; |
| 533 | touch-reset-gpios = <&tlmm 99 GPIO_ACTIVE_HIGH>; |
| 534 | |
| 535 | pinctrl-0 = <&sde_dsi_active &sde_te_active_sleep>; |
| 536 | pinctrl-1 = <&sde_dsi_sleep &sde_te_active_sleep>; |
| 537 | pinctrl-names = "default", "sleep"; |
| 538 | |
| 539 | port { |
| 540 | panel_in: endpoint { |
| 541 | remote-endpoint = <&mdss_dsi0_out>; |
| 542 | }; |
| 543 | }; |
| 544 | }; |
| 545 | }; |
| 546 | |
| 547 | &mdss_dsi0_out { |
| 548 | remote-endpoint = <&panel_in>; |
| 549 | data-lanes = <0 1 2 3>; |
| 550 | }; |
| 551 | |
| 552 | &mdss_dsi0_phy { |
| 553 | vdds-supply = <&vreg_l1a_0p9>; |
| 554 | status = "okay"; |
| 555 | }; |
| 556 | |
| 557 | &pm8005_gpios { |
| 558 | gpio-line-names = "NC", /* GPIO_1 */ |
| 559 | "NC", |
| 560 | "", |
| 561 | ""; |
| 562 | }; |
| 563 | |
| 564 | &pm8998_gpios { |
| 565 | gpio-line-names = "NC", /* GPIO_1 */ |
| 566 | "FOCUS_N", |
| 567 | "", |
| 568 | "NC", |
| 569 | "VOL_DOWN_N", |
| 570 | "VOL_UP_N", |
| 571 | "SNAPSHOT_N", |
| 572 | "NC", |
| 573 | "FLASH_THERM", |
| 574 | "NC", /* GPIO_10 */ |
| 575 | "LCD_ID", |
| 576 | "RF_ID", |
| 577 | "NC", |
| 578 | "NC", |
| 579 | "NC", |
| 580 | "NC", |
| 581 | "NC", |
| 582 | "NC", |
| 583 | "NC", |
| 584 | "", /* GPIO_20 */ |
| 585 | "NFC_CLK_REQ", |
| 586 | "", |
| 587 | "", |
| 588 | "", |
| 589 | "", |
| 590 | ""; |
| 591 | |
| 592 | focus_n: focus-n-state { |
| 593 | pins = "gpio2"; |
| 594 | function = PMIC_GPIO_FUNC_NORMAL; |
| 595 | power-source = <0>; |
| 596 | bias-pull-up; |
| 597 | input-enable; |
| 598 | }; |
| 599 | |
| 600 | vol_down_n: vol-down-n-state { |
| 601 | pins = "gpio5"; |
| 602 | function = PMIC_GPIO_FUNC_NORMAL; |
| 603 | power-source = <0>; |
| 604 | bias-pull-up; |
| 605 | input-enable; |
| 606 | }; |
| 607 | |
| 608 | vol_up_n: vol-up-n-state { |
| 609 | pins = "gpio6"; |
| 610 | function = PMIC_GPIO_FUNC_NORMAL; |
| 611 | power-source = <0>; |
| 612 | bias-pull-up; |
| 613 | input-enable; |
| 614 | }; |
| 615 | |
| 616 | snapshot_n: snapshot-n-state { |
| 617 | pins = "gpio7"; |
| 618 | function = PMIC_GPIO_FUNC_NORMAL; |
| 619 | power-source = <0>; |
| 620 | bias-pull-up; |
| 621 | input-enable; |
| 622 | }; |
| 623 | }; |
| 624 | |
| 625 | &pmi8998_gpios { |
| 626 | cam_io_en: cam-io-en-state { |
| 627 | pins = "gpio12"; |
| 628 | function = "normal"; |
| 629 | qcom,drive-strength = <3>; |
| 630 | power-source = <0>; |
| 631 | drive-push-pull; |
| 632 | output-low; |
| 633 | }; |
| 634 | }; |
| 635 | |
| 636 | &pmi8998_wled { |
| 637 | default-brightness = <800>; |
| 638 | qcom,switching-freq = <800>; |
| 639 | qcom,ovp-millivolt = <29600>; |
| 640 | qcom,current-boost-limit = <970>; |
| 641 | qcom,current-limit-microamp = <20000>; |
| 642 | qcom,enabled-strings = <0 1 2 3>; |
| 643 | status = "okay"; |
| 644 | }; |
| 645 | |
| 646 | &qupv3_id_0 { |
| 647 | status = "okay"; |
| 648 | }; |
| 649 | |
| 650 | &qupv3_id_1 { |
| 651 | status = "okay"; |
| 652 | }; |
| 653 | |
| 654 | &sdhc_2 { |
| 655 | status = "okay"; |
| 656 | |
| 657 | vmmc-supply = <&vreg_l21a_2p7>; |
| 658 | vqmmc-supply = <&vreg_l13a_1p8>; |
| 659 | cd-gpios = <&tlmm 126 GPIO_ACTIVE_HIGH>; |
| 660 | pinctrl-0 = <&sdc2_default_state>; |
| 661 | pinctrl-names = "default"; |
| 662 | bus-width = <4>; |
| 663 | no-sdio; |
| 664 | no-mmc; |
| 665 | }; |
| 666 | |
| 667 | &tlmm { |
| 668 | gpio-reserved-ranges = <0 4>, <81 4>; |
| 669 | |
| 670 | sdc2_default_state: sdc2-default-state { |
| 671 | clk-pins { |
| 672 | pins = "sdc2_clk"; |
| 673 | drive-strength = <16>; |
| 674 | bias-disable; |
| 675 | }; |
| 676 | |
| 677 | cmd-pins { |
| 678 | pins = "sdc2_cmd"; |
| 679 | drive-strength = <10>; |
| 680 | bias-pull-up; |
| 681 | }; |
| 682 | |
| 683 | data-pins { |
| 684 | pins = "sdc2_data"; |
| 685 | drive-strength = <10>; |
| 686 | bias-pull-up; |
| 687 | }; |
| 688 | }; |
| 689 | |
| 690 | sde_dsi_active: sde-dsi-active-state { |
| 691 | pins = "gpio6"; |
| 692 | function = "gpio"; |
| 693 | drive-strength = <8>; |
| 694 | bias-disable; |
| 695 | }; |
| 696 | |
| 697 | sde_dsi_sleep: sde-dsi-sleep-state { |
| 698 | pins = "gpio6"; |
| 699 | function = "gpio"; |
| 700 | drive-strength = <2>; |
| 701 | bias-pull-down; |
| 702 | }; |
| 703 | |
| 704 | chat_cam_pwr_en: chat-cam-pwr-en-state { |
| 705 | pins = "gpio8"; |
| 706 | function = "gpio"; |
| 707 | drive-strength = <2>; |
| 708 | bias-disable; |
| 709 | output-low; |
| 710 | }; |
| 711 | |
| 712 | sde_te_active_sleep: sde-te-active-sleep-state { |
| 713 | pins = "gpio10"; |
| 714 | function = "mdp_vsync"; |
| 715 | drive-strength = <2>; |
| 716 | bias-pull-down; |
| 717 | }; |
| 718 | |
| 719 | main_cam_pwr_en: main-cam-pwr-en-state { |
| 720 | pins = "gpio27"; |
| 721 | function = "gpio"; |
| 722 | drive-strength = <2>; |
| 723 | bias-disable; |
| 724 | output-low; |
| 725 | }; |
| 726 | |
| 727 | ts_default: ts-default-state { |
| 728 | reset-pins { |
| 729 | pins = "gpio99"; |
| 730 | function = "gpio"; |
| 731 | drive-strength = <2>; |
| 732 | bias-pull-up; |
| 733 | }; |
| 734 | |
| 735 | int-pins { |
| 736 | pins = "gpio125"; |
| 737 | function = "gpio"; |
| 738 | drive-strength = <2>; |
| 739 | bias-pull-up; |
| 740 | }; |
| 741 | }; |
| 742 | |
| 743 | ts_sleep: ts-sleep-state { |
| 744 | reset-pins { |
| 745 | pins = "gpio99"; |
| 746 | function = "gpio"; |
| 747 | drive-strength = <2>; |
| 748 | bias-pull-down; |
| 749 | }; |
| 750 | |
| 751 | int-pins { |
| 752 | pins = "gpio125"; |
| 753 | function = "gpio"; |
| 754 | drive-strength = <2>; |
| 755 | bias-pull-down; |
| 756 | }; |
| 757 | }; |
| 758 | }; |
| 759 | |
| 760 | &uart6 { |
| 761 | status = "okay"; |
| 762 | }; |
| 763 | |
| 764 | &uart9 { |
| 765 | status = "okay"; |
| 766 | }; |
| 767 | |
| 768 | /* BIG WARNING! DO NOT TOUCH UFS, YOUR DEVICE WILL DIE! */ |
| 769 | &ufs_mem_hc { status = "disabled"; }; |
| 770 | &ufs_mem_phy { status = "disabled"; }; |
| 771 | |
| 772 | &usb_1 { |
| 773 | status = "okay"; |
| 774 | |
| 775 | qcom,select-utmi-as-pipe-clk; |
| 776 | }; |
| 777 | |
| 778 | &usb_1_dwc3 { |
| 779 | dr_mode = "peripheral"; |
| 780 | |
| 781 | maximum-speed = "high-speed"; |
| 782 | phys = <&usb_1_hsphy>; |
| 783 | phy-names = "usb2-phy"; |
| 784 | }; |
| 785 | |
| 786 | &usb_1_hsphy { |
| 787 | status = "okay"; |
| 788 | |
| 789 | vdd-supply = <&vreg_l1a_0p9>; |
| 790 | vdda-pll-supply = <&vreg_l12a_1p8>; |
| 791 | vdda-phy-dpdm-supply = <&vreg_l24a_3p1>; |
| 792 | }; |
| 793 | |
| 794 | &venus { |
| 795 | firmware-name = "qcom/sdm845/Sony/tama/venus.mbn"; |
| 796 | status = "okay"; |
| 797 | }; |