Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: BSD-3-Clause |
| 2 | /* |
| 3 | * Copyright (c) 2023, Linaro Limited |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include <dt-bindings/leds/common.h> |
| 9 | #include <dt-bindings/regulator/qcom,rpmh-regulator.h> |
| 10 | #include "sm8650.dtsi" |
| 11 | #include "pm8010.dtsi" |
| 12 | #include "pm8550.dtsi" |
| 13 | #include "pm8550b.dtsi" |
| 14 | #define PMK8550VE_SID 8 |
| 15 | #include "pm8550ve.dtsi" |
| 16 | #include "pm8550vs.dtsi" |
| 17 | #include "pmk8550.dtsi" |
| 18 | #include "pmr735d_a.dtsi" |
| 19 | |
| 20 | / { |
| 21 | model = "Qualcomm Technologies, Inc. SM8650 QRD"; |
| 22 | compatible = "qcom,sm8650-qrd", "qcom,sm8650"; |
| 23 | |
| 24 | aliases { |
| 25 | serial0 = &uart15; |
| 26 | serial1 = &uart14; |
| 27 | }; |
| 28 | |
| 29 | chosen { |
| 30 | stdout-path = "serial0:115200n8"; |
| 31 | }; |
| 32 | |
| 33 | gpio-keys { |
| 34 | compatible = "gpio-keys"; |
| 35 | |
| 36 | pinctrl-0 = <&volume_up_n>; |
| 37 | pinctrl-names = "default"; |
| 38 | |
| 39 | key-volume-up { |
| 40 | label = "Volume Up"; |
| 41 | linux,code = <KEY_VOLUMEUP>; |
| 42 | gpios = <&pm8550_gpios 6 GPIO_ACTIVE_LOW>; |
| 43 | debounce-interval = <15>; |
| 44 | linux,can-disable; |
| 45 | wakeup-source; |
| 46 | }; |
| 47 | }; |
| 48 | |
| 49 | pmic-glink { |
| 50 | compatible = "qcom,sm8650-pmic-glink", |
| 51 | "qcom,sm8550-pmic-glink", |
| 52 | "qcom,pmic-glink"; |
| 53 | #address-cells = <1>; |
| 54 | #size-cells = <0>; |
| 55 | orientation-gpios = <&tlmm 29 GPIO_ACTIVE_HIGH>; |
| 56 | |
| 57 | connector@0 { |
| 58 | compatible = "usb-c-connector"; |
| 59 | reg = <0>; |
| 60 | |
| 61 | power-role = "dual"; |
| 62 | data-role = "dual"; |
| 63 | |
| 64 | ports { |
| 65 | #address-cells = <1>; |
| 66 | #size-cells = <0>; |
| 67 | |
| 68 | port@0 { |
| 69 | reg = <0>; |
| 70 | |
| 71 | pmic_glink_hs_in: endpoint { |
| 72 | remote-endpoint = <&usb_1_dwc3_hs>; |
| 73 | }; |
| 74 | }; |
| 75 | |
| 76 | port@1 { |
| 77 | reg = <1>; |
| 78 | |
| 79 | pmic_glink_ss_in: endpoint { |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 80 | remote-endpoint = <&redriver_ss_out>; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 81 | }; |
| 82 | }; |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 83 | |
| 84 | port@2 { |
| 85 | reg = <2>; |
| 86 | |
| 87 | pmic_glink_sbu: endpoint { |
| 88 | remote-endpoint = <&wcd_usbss_sbu_mux>; |
| 89 | }; |
| 90 | }; |
| 91 | }; |
| 92 | }; |
| 93 | }; |
| 94 | |
| 95 | sound { |
| 96 | compatible = "qcom,sm8650-sndcard", "qcom,sm8450-sndcard"; |
| 97 | model = "SM8650-QRD"; |
| 98 | audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT", |
| 99 | "SpkrRight IN", "WSA_SPK2 OUT", |
| 100 | "IN1_HPHL", "HPHL_OUT", |
| 101 | "IN2_HPHR", "HPHR_OUT", |
| 102 | "AMIC1", "MIC BIAS1", |
| 103 | "AMIC2", "MIC BIAS2", |
| 104 | "AMIC3", "MIC BIAS3", |
| 105 | "AMIC4", "MIC BIAS3", |
| 106 | "AMIC5", "MIC BIAS4", |
| 107 | "TX SWR_INPUT0", "ADC1_OUTPUT", |
| 108 | "TX SWR_INPUT1", "ADC2_OUTPUT", |
| 109 | "TX SWR_INPUT2", "ADC3_OUTPUT", |
| 110 | "TX SWR_INPUT3", "ADC4_OUTPUT"; |
| 111 | |
| 112 | wcd-playback-dai-link { |
| 113 | link-name = "WCD Playback"; |
| 114 | |
| 115 | cpu { |
| 116 | sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>; |
| 117 | }; |
| 118 | |
| 119 | codec { |
| 120 | sound-dai = <&wcd939x 0>, <&swr1 0>, <&lpass_rxmacro 0>; |
| 121 | }; |
| 122 | |
| 123 | platform { |
| 124 | sound-dai = <&q6apm>; |
| 125 | }; |
| 126 | }; |
| 127 | |
| 128 | wcd-capture-dai-link { |
| 129 | link-name = "WCD Capture"; |
| 130 | |
| 131 | cpu { |
| 132 | sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; |
| 133 | }; |
| 134 | |
| 135 | codec { |
| 136 | sound-dai = <&wcd939x 1>, <&swr2 0>, <&lpass_txmacro 0>; |
| 137 | }; |
| 138 | |
| 139 | platform { |
| 140 | sound-dai = <&q6apm>; |
| 141 | }; |
| 142 | }; |
| 143 | |
| 144 | wsa-dai-link { |
| 145 | link-name = "WSA Playback"; |
| 146 | |
| 147 | cpu { |
| 148 | sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; |
| 149 | }; |
| 150 | |
| 151 | codec { |
| 152 | sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&lpass_wsamacro 0>; |
| 153 | }; |
| 154 | |
| 155 | platform { |
| 156 | sound-dai = <&q6apm>; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 157 | }; |
| 158 | }; |
| 159 | }; |
| 160 | |
| 161 | vph_pwr: vph-pwr-regulator { |
| 162 | compatible = "regulator-fixed"; |
| 163 | |
| 164 | regulator-name = "vph_pwr"; |
| 165 | regulator-min-microvolt = <3700000>; |
| 166 | regulator-max-microvolt = <3700000>; |
| 167 | |
| 168 | regulator-always-on; |
| 169 | regulator-boot-on; |
| 170 | }; |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 171 | |
| 172 | wcd939x: audio-codec { |
| 173 | compatible = "qcom,wcd9395-codec", "qcom,wcd9390-codec"; |
| 174 | |
| 175 | pinctrl-0 = <&wcd_default>; |
| 176 | pinctrl-names = "default"; |
| 177 | |
| 178 | qcom,micbias1-microvolt = <1800000>; |
| 179 | qcom,micbias2-microvolt = <1800000>; |
| 180 | qcom,micbias3-microvolt = <1800000>; |
| 181 | qcom,micbias4-microvolt = <1800000>; |
| 182 | qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; |
| 183 | qcom,mbhc-headset-vthreshold-microvolt = <1700000>; |
| 184 | qcom,mbhc-headphone-vthreshold-microvolt = <50000>; |
| 185 | qcom,rx-device = <&wcd_rx>; |
| 186 | qcom,tx-device = <&wcd_tx>; |
| 187 | |
| 188 | reset-gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; |
| 189 | |
| 190 | vdd-buck-supply = <&vreg_l15b_1p8>; |
| 191 | vdd-rxtx-supply = <&vreg_l15b_1p8>; |
| 192 | vdd-io-supply = <&vreg_l15b_1p8>; |
| 193 | vdd-mic-bias-supply = <&vreg_bob1>; |
| 194 | |
| 195 | #sound-dai-cells = <1>; |
| 196 | |
| 197 | mode-switch; |
| 198 | orientation-switch; |
| 199 | |
| 200 | port { |
| 201 | wcd_codec_headset_in: endpoint { |
| 202 | remote-endpoint = <&wcd_usbss_headset_out>; |
| 203 | }; |
| 204 | }; |
| 205 | }; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 206 | }; |
| 207 | |
| 208 | &apps_rsc { |
| 209 | regulators-0 { |
| 210 | compatible = "qcom,pm8550-rpmh-regulators"; |
| 211 | |
| 212 | vdd-bob1-supply = <&vph_pwr>; |
| 213 | vdd-bob2-supply = <&vph_pwr>; |
| 214 | vdd-l2-l13-l14-supply = <&vreg_bob1>; |
| 215 | vdd-l3-supply = <&vreg_s1c_1p2>; |
| 216 | vdd-l5-l16-supply = <&vreg_bob1>; |
| 217 | vdd-l6-l7-supply = <&vreg_bob1>; |
| 218 | vdd-l8-l9-supply = <&vreg_bob1>; |
| 219 | vdd-l11-supply = <&vreg_s1c_1p2>; |
| 220 | vdd-l12-supply = <&vreg_s6c_1p8>; |
| 221 | vdd-l15-supply = <&vreg_s6c_1p8>; |
| 222 | vdd-l17-supply = <&vreg_bob2>; |
| 223 | |
| 224 | qcom,pmic-id = "b"; |
| 225 | |
| 226 | vreg_bob1: bob1 { |
| 227 | regulator-name = "vreg_bob1"; |
| 228 | regulator-min-microvolt = <3296000>; |
| 229 | regulator-max-microvolt = <3960000>; |
| 230 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 231 | }; |
| 232 | |
| 233 | vreg_bob2: bob2 { |
| 234 | regulator-name = "vreg_bob2"; |
| 235 | regulator-min-microvolt = <2720000>; |
| 236 | regulator-max-microvolt = <3008000>; |
| 237 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 238 | }; |
| 239 | |
| 240 | vreg_l2b_3p0: ldo2 { |
| 241 | regulator-name = "vreg_l2b_3p0"; |
| 242 | regulator-min-microvolt = <3008000>; |
| 243 | regulator-max-microvolt = <3008000>; |
| 244 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 245 | regulator-allow-set-load; |
| 246 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 247 | RPMH_REGULATOR_MODE_HPM>; |
| 248 | }; |
| 249 | |
| 250 | vreg_l5b_3p1: ldo5 { |
| 251 | regulator-name = "vreg_l5b_3p1"; |
| 252 | regulator-min-microvolt = <3104000>; |
| 253 | regulator-max-microvolt = <3104000>; |
| 254 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 255 | regulator-allow-set-load; |
| 256 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 257 | RPMH_REGULATOR_MODE_HPM>; |
| 258 | }; |
| 259 | |
| 260 | vreg_l6b_1p8: ldo6 { |
| 261 | regulator-name = "vreg_l6b_1p8"; |
| 262 | regulator-min-microvolt = <1800000>; |
| 263 | regulator-max-microvolt = <3008000>; |
| 264 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 265 | regulator-allow-set-load; |
| 266 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 267 | RPMH_REGULATOR_MODE_HPM>; |
| 268 | }; |
| 269 | |
| 270 | vreg_l7b_1p8: ldo7 { |
| 271 | regulator-name = "vreg_l7b_1p8"; |
| 272 | regulator-min-microvolt = <1800000>; |
| 273 | regulator-max-microvolt = <3008000>; |
| 274 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 275 | }; |
| 276 | |
| 277 | vreg_l8b_1p8: ldo8 { |
| 278 | regulator-name = "vreg_l8b_1p8"; |
| 279 | regulator-min-microvolt = <1800000>; |
| 280 | regulator-max-microvolt = <3008000>; |
| 281 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 282 | regulator-allow-set-load; |
| 283 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 284 | RPMH_REGULATOR_MODE_HPM>; |
| 285 | }; |
| 286 | |
| 287 | vreg_l11b_1p2: ldo11 { |
| 288 | regulator-name = "vreg_l11b_1p2"; |
| 289 | regulator-min-microvolt = <1200000>; |
| 290 | regulator-max-microvolt = <1504000>; |
| 291 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 292 | regulator-allow-set-load; |
| 293 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 294 | RPMH_REGULATOR_MODE_HPM>; |
| 295 | }; |
| 296 | |
| 297 | vreg_l12b_1p8: ldo12 { |
| 298 | regulator-name = "vreg_l12b_1p8"; |
| 299 | regulator-min-microvolt = <1800000>; |
| 300 | regulator-max-microvolt = <1800000>; |
| 301 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 302 | regulator-allow-set-load; |
| 303 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 304 | RPMH_REGULATOR_MODE_HPM>; |
| 305 | }; |
| 306 | |
| 307 | vreg_l13b_3p0: ldo13 { |
| 308 | regulator-name = "vreg_l13b_3p0"; |
| 309 | regulator-min-microvolt = <3000000>; |
| 310 | regulator-max-microvolt = <3000000>; |
| 311 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 312 | regulator-allow-set-load; |
| 313 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 314 | RPMH_REGULATOR_MODE_HPM>; |
| 315 | }; |
| 316 | |
| 317 | vreg_l14b_3p2: ldo14 { |
| 318 | regulator-name = "vreg_l14b_3p2"; |
| 319 | regulator-min-microvolt = <3200000>; |
| 320 | regulator-max-microvolt = <3200000>; |
| 321 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 322 | regulator-allow-set-load; |
| 323 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 324 | RPMH_REGULATOR_MODE_HPM>; |
| 325 | }; |
| 326 | |
| 327 | vreg_l15b_1p8: ldo15 { |
| 328 | regulator-name = "vreg_l15b_1p8"; |
| 329 | regulator-min-microvolt = <1800000>; |
| 330 | regulator-max-microvolt = <1800000>; |
| 331 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 332 | regulator-allow-set-load; |
| 333 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 334 | RPMH_REGULATOR_MODE_HPM>; |
| 335 | }; |
| 336 | |
| 337 | vreg_l16b_2p8: ldo16 { |
| 338 | regulator-name = "vreg_l16b_2p8"; |
| 339 | regulator-min-microvolt = <2800000>; |
| 340 | regulator-max-microvolt = <2800000>; |
| 341 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 342 | regulator-allow-set-load; |
| 343 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 344 | RPMH_REGULATOR_MODE_HPM>; |
| 345 | }; |
| 346 | |
| 347 | vreg_l17b_2p5: ldo17 { |
| 348 | regulator-name = "vreg_l17b_2p5"; |
| 349 | regulator-min-microvolt = <2504000>; |
| 350 | regulator-max-microvolt = <2504000>; |
| 351 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 352 | regulator-allow-set-load; |
| 353 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 354 | RPMH_REGULATOR_MODE_HPM>; |
| 355 | }; |
| 356 | }; |
| 357 | |
| 358 | regulators-1 { |
| 359 | compatible = "qcom,pm8550vs-rpmh-regulators"; |
| 360 | |
| 361 | vdd-l1-supply = <&vreg_s1c_1p2>; |
| 362 | vdd-l2-supply = <&vreg_s1c_1p2>; |
| 363 | vdd-l3-supply = <&vreg_s1c_1p2>; |
| 364 | vdd-s1-supply = <&vph_pwr>; |
| 365 | vdd-s2-supply = <&vph_pwr>; |
| 366 | vdd-s3-supply = <&vph_pwr>; |
| 367 | vdd-s4-supply = <&vph_pwr>; |
| 368 | vdd-s5-supply = <&vph_pwr>; |
| 369 | vdd-s6-supply = <&vph_pwr>; |
| 370 | |
| 371 | qcom,pmic-id = "c"; |
| 372 | |
| 373 | vreg_s1c_1p2: smps1 { |
| 374 | regulator-name = "vreg_s1c_1p2"; |
| 375 | regulator-min-microvolt = <1256000>; |
| 376 | regulator-max-microvolt = <1348000>; |
| 377 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 378 | }; |
| 379 | |
| 380 | vreg_s2c_0p8: smps2 { |
| 381 | regulator-name = "vreg_s2c_0p8"; |
| 382 | regulator-min-microvolt = <852000>; |
| 383 | regulator-max-microvolt = <1036000>; |
| 384 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 385 | }; |
| 386 | |
| 387 | vreg_s3c_0p9: smps3 { |
| 388 | regulator-name = "vreg_s3c_0p9"; |
| 389 | regulator-min-microvolt = <976000>; |
| 390 | regulator-max-microvolt = <1064000>; |
| 391 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 392 | }; |
| 393 | |
| 394 | vreg_s4c_1p2: smps4 { |
| 395 | regulator-name = "vreg_s4c_1p2"; |
| 396 | regulator-min-microvolt = <1224000>; |
| 397 | regulator-max-microvolt = <1280000>; |
| 398 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 399 | }; |
| 400 | |
| 401 | vreg_s5c_0p7: smps5 { |
| 402 | regulator-name = "vreg_s5c_0p7"; |
| 403 | regulator-min-microvolt = <752000>; |
| 404 | regulator-max-microvolt = <900000>; |
| 405 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 406 | }; |
| 407 | |
| 408 | vreg_s6c_1p8: smps6 { |
| 409 | regulator-name = "vreg_s6c_1p8"; |
| 410 | regulator-min-microvolt = <1856000>; |
| 411 | regulator-max-microvolt = <2000000>; |
| 412 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 413 | }; |
| 414 | |
| 415 | vreg_l1c_1p2: ldo1 { |
| 416 | regulator-name = "vreg_l1c_1p2"; |
| 417 | regulator-min-microvolt = <1200000>; |
| 418 | regulator-max-microvolt = <1200000>; |
| 419 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 420 | regulator-allow-set-load; |
| 421 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 422 | RPMH_REGULATOR_MODE_HPM>; |
| 423 | }; |
| 424 | |
| 425 | vreg_l3c_1p2: ldo3 { |
| 426 | regulator-name = "vreg_l3c_1p2"; |
| 427 | regulator-min-microvolt = <1200000>; |
| 428 | regulator-max-microvolt = <1200000>; |
| 429 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 430 | regulator-allow-set-load; |
| 431 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 432 | RPMH_REGULATOR_MODE_HPM>; |
| 433 | }; |
| 434 | }; |
| 435 | |
| 436 | regulators-2 { |
| 437 | compatible = "qcom,pm8550vs-rpmh-regulators"; |
| 438 | |
| 439 | vdd-l1-supply = <&vreg_s3c_0p9>; |
| 440 | |
| 441 | qcom,pmic-id = "d"; |
| 442 | |
| 443 | vreg_l1d_0p88: ldo1 { |
| 444 | regulator-name = "vreg_l1d_0p88"; |
| 445 | regulator-min-microvolt = <912000>; |
| 446 | regulator-max-microvolt = <920000>; |
| 447 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 448 | regulator-allow-set-load; |
| 449 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 450 | RPMH_REGULATOR_MODE_HPM>; |
| 451 | }; |
| 452 | }; |
| 453 | |
| 454 | regulators-3 { |
| 455 | compatible = "qcom,pm8550vs-rpmh-regulators"; |
| 456 | |
| 457 | vdd-l3-supply = <&vreg_s3c_0p9>; |
| 458 | |
| 459 | qcom,pmic-id = "e"; |
| 460 | |
| 461 | vreg_l3e_0p9: ldo3 { |
| 462 | regulator-name = "vreg_l3e_0p9"; |
| 463 | regulator-min-microvolt = <880000>; |
| 464 | regulator-max-microvolt = <920000>; |
| 465 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 466 | regulator-allow-set-load; |
| 467 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 468 | RPMH_REGULATOR_MODE_HPM>; |
| 469 | }; |
| 470 | }; |
| 471 | |
| 472 | regulators-4 { |
| 473 | compatible = "qcom,pm8550vs-rpmh-regulators"; |
| 474 | |
| 475 | vdd-l1-supply = <&vreg_s3c_0p9>; |
| 476 | vdd-l3-supply = <&vreg_s3c_0p9>; |
| 477 | |
| 478 | qcom,pmic-id = "g"; |
| 479 | |
| 480 | vreg_l1g_0p91: ldo1 { |
| 481 | regulator-name = "vreg_l1g_0p91"; |
| 482 | regulator-min-microvolt = <912000>; |
| 483 | regulator-max-microvolt = <920000>; |
| 484 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 485 | regulator-allow-set-load; |
| 486 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 487 | RPMH_REGULATOR_MODE_HPM>; |
| 488 | }; |
| 489 | |
| 490 | vreg_l3g_0p91: ldo3 { |
| 491 | regulator-name = "vreg_l3g_0p91"; |
| 492 | regulator-min-microvolt = <880000>; |
| 493 | regulator-max-microvolt = <912000>; |
| 494 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 495 | regulator-allow-set-load; |
| 496 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 497 | RPMH_REGULATOR_MODE_HPM>; |
| 498 | }; |
| 499 | }; |
| 500 | |
| 501 | regulators-5 { |
| 502 | compatible = "qcom,pm8550ve-rpmh-regulators"; |
| 503 | |
| 504 | vdd-l1-supply = <&vreg_s3c_0p9>; |
| 505 | vdd-l2-supply = <&vreg_s3c_0p9>; |
| 506 | vdd-l3-supply = <&vreg_s1c_1p2>; |
| 507 | vdd-s4-supply = <&vph_pwr>; |
| 508 | |
| 509 | qcom,pmic-id = "i"; |
| 510 | |
| 511 | vreg_s4i_0p85: smps4 { |
| 512 | regulator-name = "vreg_s4i_0p85"; |
| 513 | regulator-min-microvolt = <852000>; |
| 514 | regulator-max-microvolt = <1004000>; |
| 515 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 516 | }; |
| 517 | |
| 518 | vreg_l1i_0p88: ldo1 { |
| 519 | regulator-name = "vreg_l1i_0p88"; |
| 520 | regulator-min-microvolt = <880000>; |
| 521 | regulator-max-microvolt = <912000>; |
| 522 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 523 | regulator-allow-set-load; |
| 524 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 525 | RPMH_REGULATOR_MODE_HPM>; |
| 526 | }; |
| 527 | |
| 528 | vreg_l2i_0p88: ldo2 { |
| 529 | regulator-name = "vreg_l2i_0p88"; |
| 530 | regulator-min-microvolt = <880000>; |
| 531 | regulator-max-microvolt = <912000>; |
| 532 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 533 | regulator-allow-set-load; |
| 534 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 535 | RPMH_REGULATOR_MODE_HPM>; |
| 536 | }; |
| 537 | |
| 538 | vreg_l3i_1p2: ldo3 { |
| 539 | regulator-name = "vreg_l3i_0p91"; |
| 540 | regulator-min-microvolt = <1200000>; |
| 541 | regulator-max-microvolt = <1200000>; |
| 542 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 543 | regulator-allow-set-load; |
| 544 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 545 | RPMH_REGULATOR_MODE_HPM>; |
| 546 | }; |
| 547 | }; |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 548 | |
| 549 | regulators-6 { |
| 550 | compatible = "qcom,pm8010-rpmh-regulators"; |
| 551 | qcom,pmic-id = "m"; |
| 552 | |
| 553 | vdd-l1-l2-supply = <&vreg_s1c_1p2>; |
| 554 | vdd-l3-l4-supply = <&vreg_bob2>; |
| 555 | vdd-l5-supply = <&vreg_s6c_1p8>; |
| 556 | vdd-l6-supply = <&vreg_bob1>; |
| 557 | vdd-l7-supply = <&vreg_bob1>; |
| 558 | |
| 559 | vreg_l1m_1p1: ldo1 { |
| 560 | regulator-name = "vreg_l1m_1p1"; |
| 561 | regulator-min-microvolt = <1104000>; |
| 562 | regulator-max-microvolt = <1104000>; |
| 563 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 564 | regulator-allow-set-load; |
| 565 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 566 | RPMH_REGULATOR_MODE_HPM>; |
| 567 | }; |
| 568 | |
| 569 | vreg_l2m_1p056: ldo2 { |
| 570 | regulator-name = "vreg_l2m_1p056"; |
| 571 | regulator-min-microvolt = <1056000>; |
| 572 | regulator-max-microvolt = <1056000>; |
| 573 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 574 | regulator-allow-set-load; |
| 575 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 576 | RPMH_REGULATOR_MODE_HPM>; |
| 577 | }; |
| 578 | |
| 579 | vreg_l3m_2p8: ldo3 { |
| 580 | regulator-name = "vreg_l3m_2p8"; |
| 581 | regulator-min-microvolt = <2800000>; |
| 582 | regulator-max-microvolt = <2800000>; |
| 583 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 584 | }; |
| 585 | |
| 586 | vreg_l4m_2p8: ldo4 { |
| 587 | regulator-name = "vreg_l4m_2p8"; |
| 588 | regulator-min-microvolt = <2800000>; |
| 589 | regulator-max-microvolt = <2800000>; |
| 590 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 591 | }; |
| 592 | |
| 593 | vreg_l5m_1p8: ldo5 { |
| 594 | regulator-name = "vreg_l5m_1p8"; |
| 595 | regulator-min-microvolt = <1800000>; |
| 596 | regulator-max-microvolt = <1800000>; |
| 597 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 598 | }; |
| 599 | |
| 600 | vreg_l6m_2p8: ldo6 { |
| 601 | regulator-name = "vreg_l6m_2p8"; |
| 602 | regulator-min-microvolt = <2800000>; |
| 603 | regulator-max-microvolt = <2800000>; |
| 604 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 605 | }; |
| 606 | |
| 607 | vreg_l7m_2p96: ldo7 { |
| 608 | regulator-name = "vreg_l7m_2p96"; |
| 609 | regulator-min-microvolt = <2960000>; |
| 610 | regulator-max-microvolt = <2960000>; |
| 611 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 612 | }; |
| 613 | }; |
| 614 | |
| 615 | regulators-7 { |
| 616 | compatible = "qcom,pm8010-rpmh-regulators"; |
| 617 | qcom,pmic-id = "n"; |
| 618 | |
| 619 | vdd-l1-l2-supply = <&vreg_s1c_1p2>; |
| 620 | vdd-l3-l4-supply = <&vreg_s6c_1p8>; |
| 621 | vdd-l5-supply = <&vreg_bob2>; |
| 622 | vdd-l6-supply = <&vreg_bob2>; |
| 623 | vdd-l7-supply = <&vreg_bob1>; |
| 624 | |
| 625 | vreg_l1n_1p1: ldo1 { |
| 626 | regulator-name = "vreg_l1n_1p1"; |
| 627 | regulator-min-microvolt = <1104000>; |
| 628 | regulator-max-microvolt = <1104000>; |
| 629 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 630 | regulator-allow-set-load; |
| 631 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 632 | RPMH_REGULATOR_MODE_HPM>; |
| 633 | }; |
| 634 | |
| 635 | vreg_l2n_1p056: ldo2 { |
| 636 | regulator-name = "vreg_l2n_1p056"; |
| 637 | regulator-min-microvolt = <1056000>; |
| 638 | regulator-max-microvolt = <1056000>; |
| 639 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 640 | regulator-allow-set-load; |
| 641 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 642 | RPMH_REGULATOR_MODE_HPM>; |
| 643 | }; |
| 644 | |
| 645 | vreg_l3n_1p8: ldo3 { |
| 646 | regulator-name = "vreg_l3n_1p8"; |
| 647 | regulator-min-microvolt = <1800000>; |
| 648 | regulator-max-microvolt = <1800000>; |
| 649 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 650 | }; |
| 651 | |
| 652 | vreg_l4n_1p8: ldo4 { |
| 653 | regulator-name = "vreg_l4n_1p8"; |
| 654 | regulator-min-microvolt = <1800000>; |
| 655 | regulator-max-microvolt = <1800000>; |
| 656 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 657 | }; |
| 658 | |
| 659 | vreg_l5n_2p8: ldo5 { |
| 660 | regulator-name = "vreg_l5n_2p8"; |
| 661 | regulator-min-microvolt = <2800000>; |
| 662 | regulator-max-microvolt = <2800000>; |
| 663 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 664 | }; |
| 665 | |
| 666 | vreg_l6n_2p8: ldo6 { |
| 667 | regulator-name = "vreg_l6n_2p8"; |
| 668 | regulator-min-microvolt = <2800000>; |
| 669 | regulator-max-microvolt = <2800000>; |
| 670 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 671 | }; |
| 672 | |
| 673 | vreg_l7n_3p3: ldo7 { |
| 674 | regulator-name = "vreg_l7n_3p3"; |
| 675 | regulator-min-microvolt = <3304000>; |
| 676 | regulator-max-microvolt = <3304000>; |
| 677 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 678 | }; |
| 679 | }; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 680 | }; |
| 681 | |
| 682 | &dispcc { |
| 683 | status = "okay"; |
| 684 | }; |
| 685 | |
| 686 | &gpi_dma1 { |
| 687 | status = "okay"; |
| 688 | }; |
| 689 | |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 690 | &i2c3 { |
| 691 | status = "okay"; |
| 692 | |
| 693 | wcd_usbss: typec-mux@e { |
| 694 | compatible = "qcom,wcd9395-usbss", "qcom,wcd9390-usbss"; |
| 695 | reg = <0xe>; |
| 696 | |
| 697 | vdd-supply = <&vreg_l15b_1p8>; |
| 698 | reset-gpios = <&tlmm 152 GPIO_ACTIVE_HIGH>; |
| 699 | |
| 700 | mode-switch; |
| 701 | orientation-switch; |
| 702 | |
| 703 | ports { |
| 704 | #address-cells = <1>; |
| 705 | #size-cells = <0>; |
| 706 | |
| 707 | port@0 { |
| 708 | reg = <0>; |
| 709 | |
| 710 | wcd_usbss_sbu_mux: endpoint { |
| 711 | remote-endpoint = <&pmic_glink_sbu>; |
| 712 | }; |
| 713 | }; |
| 714 | |
| 715 | port@1 { |
| 716 | reg = <1>; |
| 717 | |
| 718 | wcd_usbss_headset_out: endpoint { |
| 719 | remote-endpoint = <&wcd_codec_headset_in>; |
| 720 | }; |
| 721 | }; |
| 722 | }; |
| 723 | }; |
| 724 | }; |
| 725 | |
| 726 | &i2c6 { |
| 727 | status = "okay"; |
| 728 | |
| 729 | typec-mux@1c { |
| 730 | compatible = "onnn,nb7vpq904m"; |
| 731 | reg = <0x1c>; |
| 732 | |
| 733 | vcc-supply = <&vreg_l15b_1p8>; |
| 734 | |
| 735 | retimer-switch; |
| 736 | orientation-switch; |
| 737 | |
| 738 | ports { |
| 739 | #address-cells = <1>; |
| 740 | #size-cells = <0>; |
| 741 | |
| 742 | port@0 { |
| 743 | reg = <0>; |
| 744 | |
| 745 | redriver_ss_out: endpoint { |
| 746 | remote-endpoint = <&pmic_glink_ss_in>; |
| 747 | }; |
| 748 | }; |
| 749 | |
| 750 | port@1 { |
| 751 | reg = <1>; |
| 752 | |
| 753 | redriver_ss_in: endpoint { |
| 754 | data-lanes = <3 2 1 0>; |
| 755 | remote-endpoint = <&usb_dp_qmpphy_out>; |
| 756 | }; |
| 757 | }; |
| 758 | }; |
| 759 | }; |
| 760 | }; |
| 761 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 762 | &ipa { |
| 763 | qcom,gsi-loader = "self"; |
| 764 | memory-region = <&ipa_fw_mem>; |
| 765 | firmware-name = "qcom/sm8650/ipa_fws.mbn"; |
| 766 | status = "okay"; |
| 767 | }; |
| 768 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 769 | &gpu { |
| 770 | status = "okay"; |
| 771 | |
| 772 | zap-shader { |
| 773 | firmware-name = "qcom/sm8650/gen70900_zap.mbn"; |
| 774 | }; |
| 775 | }; |
| 776 | |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 777 | &lpass_tlmm { |
| 778 | spkr_1_sd_n_active: spkr-1-sd-n-active-state { |
| 779 | pins = "gpio21"; |
| 780 | function = "gpio"; |
| 781 | drive-strength = <16>; |
| 782 | bias-disable; |
| 783 | output-low; |
| 784 | }; |
| 785 | }; |
| 786 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 787 | &mdss { |
| 788 | status = "okay"; |
| 789 | }; |
| 790 | |
| 791 | &mdss_dsi0 { |
| 792 | vdda-supply = <&vreg_l3i_1p2>; |
| 793 | |
| 794 | status = "okay"; |
| 795 | |
| 796 | panel@0 { |
| 797 | compatible = "visionox,vtdr6130"; |
| 798 | reg = <0>; |
| 799 | |
| 800 | reset-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>; |
| 801 | |
| 802 | vddio-supply = <&vreg_l12b_1p8>; |
| 803 | vci-supply = <&vreg_l13b_3p0>; |
| 804 | vdd-supply = <&vreg_l11b_1p2>; |
| 805 | |
| 806 | pinctrl-0 = <&disp0_reset_n_active>, <&mdp_vsync_active>; |
| 807 | pinctrl-1 = <&disp0_reset_n_suspend>, <&mdp_vsync_suspend>; |
| 808 | pinctrl-names = "default", "sleep"; |
| 809 | |
| 810 | port { |
| 811 | panel0_in: endpoint { |
| 812 | remote-endpoint = <&mdss_dsi0_out>; |
| 813 | }; |
| 814 | }; |
| 815 | }; |
| 816 | }; |
| 817 | |
| 818 | &mdss_dsi0_out { |
| 819 | remote-endpoint = <&panel0_in>; |
| 820 | data-lanes = <0 1 2 3>; |
| 821 | }; |
| 822 | |
| 823 | &mdss_dsi0_phy { |
| 824 | vdds-supply = <&vreg_l1i_0p88>; |
| 825 | |
| 826 | status = "okay"; |
| 827 | }; |
| 828 | |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 829 | &mdss_dp0 { |
| 830 | status = "okay"; |
| 831 | }; |
| 832 | |
| 833 | &mdss_dp0_out { |
| 834 | data-lanes = <0 1>; |
| 835 | remote-endpoint = <&usb_dp_qmpphy_dp_in>; |
| 836 | }; |
| 837 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 838 | &pcie_1_phy_aux_clk { |
| 839 | clock-frequency = <1000>; |
| 840 | }; |
| 841 | |
| 842 | &pcie0 { |
| 843 | wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; |
| 844 | perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; |
| 845 | |
| 846 | pinctrl-0 = <&pcie0_default_state>; |
| 847 | pinctrl-names = "default"; |
| 848 | |
| 849 | status = "okay"; |
| 850 | }; |
| 851 | |
| 852 | &pcie0_phy { |
| 853 | vdda-phy-supply = <&vreg_l1i_0p88>; |
| 854 | vdda-pll-supply = <&vreg_l3i_1p2>; |
| 855 | |
| 856 | status = "okay"; |
| 857 | }; |
| 858 | |
| 859 | &pon_pwrkey { |
| 860 | status = "okay"; |
| 861 | }; |
| 862 | |
| 863 | &pon_resin { |
| 864 | linux,code = <KEY_VOLUMEDOWN>; |
| 865 | |
| 866 | status = "okay"; |
| 867 | }; |
| 868 | |
| 869 | &pm8550_flash { |
| 870 | status = "okay"; |
| 871 | |
| 872 | led-0 { |
| 873 | function = LED_FUNCTION_FLASH; |
| 874 | color = <LED_COLOR_ID_YELLOW>; |
| 875 | led-sources = <1>, <4>; |
| 876 | led-max-microamp = <500000>; |
| 877 | flash-max-microamp = <2000000>; |
| 878 | flash-max-timeout-us = <1280000>; |
| 879 | function-enumerator = <0>; |
| 880 | }; |
| 881 | |
| 882 | led-1 { |
| 883 | function = LED_FUNCTION_FLASH; |
| 884 | color = <LED_COLOR_ID_WHITE>; |
| 885 | led-sources = <2>, <3>; |
| 886 | led-max-microamp = <500000>; |
| 887 | flash-max-microamp = <2000000>; |
| 888 | flash-max-timeout-us = <1280000>; |
| 889 | function-enumerator = <1>; |
| 890 | }; |
| 891 | }; |
| 892 | |
| 893 | &pm8550_gpios { |
| 894 | volume_up_n: volume-up-n-state { |
| 895 | pins = "gpio6"; |
| 896 | function = "normal"; |
| 897 | bias-pull-up; |
| 898 | input-enable; |
| 899 | power-source = <1>; |
| 900 | }; |
| 901 | }; |
| 902 | |
| 903 | &pm8550_pwm { |
| 904 | status = "okay"; |
| 905 | |
| 906 | multi-led { |
| 907 | color = <LED_COLOR_ID_RGB>; |
| 908 | function = LED_FUNCTION_STATUS; |
| 909 | |
| 910 | #address-cells = <1>; |
| 911 | #size-cells = <0>; |
| 912 | |
| 913 | led@1 { |
| 914 | reg = <1>; |
| 915 | color = <LED_COLOR_ID_RED>; |
| 916 | }; |
| 917 | |
| 918 | led@2 { |
| 919 | reg = <2>; |
| 920 | color = <LED_COLOR_ID_GREEN>; |
| 921 | }; |
| 922 | |
| 923 | led@3 { |
| 924 | reg = <3>; |
| 925 | color = <LED_COLOR_ID_BLUE>; |
| 926 | }; |
| 927 | }; |
| 928 | }; |
| 929 | |
| 930 | &pm8550b_eusb2_repeater { |
| 931 | vdd18-supply = <&vreg_l15b_1p8>; |
| 932 | vdd3-supply = <&vreg_l5b_3p1>; |
| 933 | }; |
| 934 | |
| 935 | &pmk8550_rtc { |
| 936 | status = "okay"; |
| 937 | }; |
| 938 | |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 939 | &qup_i2c3_data_clk { |
| 940 | /* Use internal I2C pull-up */ |
| 941 | bias-pull-up = <2200>; |
| 942 | }; |
| 943 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 944 | &qupv3_id_0 { |
| 945 | status = "okay"; |
| 946 | }; |
| 947 | |
| 948 | &qupv3_id_1 { |
| 949 | status = "okay"; |
| 950 | }; |
| 951 | |
| 952 | &remoteproc_adsp { |
| 953 | firmware-name = "qcom/sm8650/adsp.mbn", |
| 954 | "qcom/sm8650/adsp_dtb.mbn"; |
| 955 | |
| 956 | status = "okay"; |
| 957 | }; |
| 958 | |
| 959 | &remoteproc_cdsp { |
| 960 | firmware-name = "qcom/sm8650/cdsp.mbn", |
| 961 | "qcom/sm8650/cdsp_dtb.mbn"; |
| 962 | |
| 963 | status = "okay"; |
| 964 | }; |
| 965 | |
| 966 | &remoteproc_mpss { |
| 967 | firmware-name = "qcom/sm8650/modem.mbn", |
| 968 | "qcom/sm8650/modem_dtb.mbn"; |
| 969 | |
| 970 | status = "okay"; |
| 971 | }; |
| 972 | |
| 973 | &sleep_clk { |
| 974 | clock-frequency = <32000>; |
| 975 | }; |
| 976 | |
| 977 | &spi4 { |
| 978 | status = "okay"; |
| 979 | |
| 980 | touchscreen@0 { |
| 981 | compatible = "goodix,gt9916"; |
| 982 | reg = <0>; |
| 983 | |
| 984 | interrupt-parent = <&tlmm>; |
| 985 | interrupts = <162 IRQ_TYPE_LEVEL_LOW>; |
| 986 | |
| 987 | reset-gpios = <&tlmm 161 GPIO_ACTIVE_LOW>; |
| 988 | |
| 989 | avdd-supply = <&vreg_l14b_3p2>; |
| 990 | |
| 991 | spi-max-frequency = <1000000>; |
| 992 | |
| 993 | touchscreen-size-x = <1080>; |
| 994 | touchscreen-size-y = <2400>; |
| 995 | |
| 996 | pinctrl-0 = <&ts_irq>, <&ts_reset>; |
| 997 | pinctrl-names = "default"; |
| 998 | }; |
| 999 | }; |
| 1000 | |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 1001 | &swr0 { |
| 1002 | status = "okay"; |
| 1003 | |
| 1004 | /* WSA8845, Speaker Left */ |
| 1005 | left_spkr: speaker@0,0 { |
| 1006 | compatible = "sdw20217020400"; |
| 1007 | reg = <0 0>; |
| 1008 | pinctrl-0 = <&spkr_1_sd_n_active>; |
| 1009 | pinctrl-names = "default"; |
| 1010 | powerdown-gpios = <&lpass_tlmm 21 GPIO_ACTIVE_LOW>; |
| 1011 | #sound-dai-cells = <0>; |
| 1012 | sound-name-prefix = "SpkrLeft"; |
| 1013 | vdd-1p8-supply = <&vreg_l15b_1p8>; |
| 1014 | vdd-io-supply = <&vreg_l3c_1p2>; |
| 1015 | }; |
| 1016 | |
| 1017 | /* WSA8845, Speaker Right */ |
| 1018 | right_spkr: speaker@0,1 { |
| 1019 | compatible = "sdw20217020400"; |
| 1020 | reg = <0 1>; |
| 1021 | pinctrl-0 = <&spkr_2_sd_n_active>; |
| 1022 | pinctrl-names = "default"; |
| 1023 | powerdown-gpios = <&tlmm 77 GPIO_ACTIVE_LOW>; |
| 1024 | #sound-dai-cells = <0>; |
| 1025 | sound-name-prefix = "SpkrRight"; |
| 1026 | vdd-1p8-supply = <&vreg_l15b_1p8>; |
| 1027 | vdd-io-supply = <&vreg_l3c_1p2>; |
| 1028 | }; |
| 1029 | }; |
| 1030 | |
| 1031 | &swr1 { |
| 1032 | status = "okay"; |
| 1033 | |
| 1034 | /* WCD9395 RX */ |
| 1035 | wcd_rx: codec@0,4 { |
| 1036 | compatible = "sdw20217010e00"; |
| 1037 | reg = <0 4>; |
| 1038 | |
| 1039 | /* |
| 1040 | * WCD9395 RX Port 1 (HPH_L/R) <=> SWR1 Port 1 (HPH_L/R) |
| 1041 | * WCD9395 RX Port 2 (CLSH) <=> SWR1 Port 2 (CLSH) |
| 1042 | * WCD9395 RX Port 3 (COMP_L/R) <=> SWR1 Port 3 (COMP_L/R) |
| 1043 | * WCD9395 RX Port 4 (LO) <=> SWR1 Port 4 (LO) |
| 1044 | * WCD9395 RX Port 5 (DSD_L/R) <=> SWR1 Port 5 (DSD_L/R) |
| 1045 | * WCD9395 RX Port 6 (HIFI_PCM_L/R) <=> SWR1 Port 9 (HIFI_PCM_L/R) |
| 1046 | */ |
| 1047 | qcom,rx-port-mapping = <1 2 3 4 5 9>; |
| 1048 | }; |
| 1049 | }; |
| 1050 | |
| 1051 | &swr2 { |
| 1052 | status = "okay"; |
| 1053 | |
| 1054 | /* WCD9395 TX */ |
| 1055 | wcd_tx: codec@0,3 { |
| 1056 | compatible = "sdw20217010e00"; |
| 1057 | reg = <0 3>; |
| 1058 | |
| 1059 | /* |
| 1060 | * WCD9395 TX Port 1 (ADC1,2,3,4) <=> SWR2 Port 2 (TX SWR_INPUT 0,1,2,3) |
| 1061 | * WCD9395 TX Port 2 (ADC3,4 & DMIC0,1) <=> SWR2 Port 2 (TX SWR_INPUT 0,1,2,3) |
| 1062 | * WCD9395 TX Port 3 (DMIC0,1,2,3 & MBHC) <=> SWR2 Port 3 (TX SWR_INPUT 4,5,6,7) |
| 1063 | * WCD9395 TX Port 4 (DMIC4,5,6,7) <=> SWR2 Port 4 (TX SWR_INPUT 8,9,10,11) |
| 1064 | */ |
| 1065 | qcom,tx-port-mapping = <2 2 3 4>; |
| 1066 | }; |
| 1067 | }; |
| 1068 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 1069 | &tlmm { |
| 1070 | /* Reserved I/Os for NFC */ |
| 1071 | gpio-reserved-ranges = <32 8>, <74 1>; |
| 1072 | |
| 1073 | bt_default: bt-default-state { |
| 1074 | bt-en-pins { |
| 1075 | pins = "gpio17"; |
| 1076 | function = "gpio"; |
| 1077 | drive-strength = <16>; |
| 1078 | bias-disable; |
| 1079 | }; |
| 1080 | |
| 1081 | sw-ctrl-pins { |
| 1082 | pins = "gpio18"; |
| 1083 | function = "gpio"; |
| 1084 | bias-pull-down; |
| 1085 | }; |
| 1086 | }; |
| 1087 | |
| 1088 | disp0_reset_n_active: disp0-reset-n-active-state { |
| 1089 | pins = "gpio133"; |
| 1090 | function = "gpio"; |
| 1091 | drive-strength = <8>; |
| 1092 | bias-disable; |
| 1093 | }; |
| 1094 | |
| 1095 | disp0_reset_n_suspend: disp0-reset-n-suspend-state { |
| 1096 | pins = "gpio133"; |
| 1097 | function = "gpio"; |
| 1098 | drive-strength = <2>; |
| 1099 | bias-pull-down; |
| 1100 | }; |
| 1101 | |
| 1102 | mdp_vsync_active: mdp-vsync-active-state { |
| 1103 | pins = "gpio86"; |
| 1104 | function = "mdp_vsync"; |
| 1105 | drive-strength = <2>; |
| 1106 | bias-pull-down; |
| 1107 | }; |
| 1108 | |
| 1109 | mdp_vsync_suspend: mdp-vsync-suspend-state { |
| 1110 | pins = "gpio86"; |
| 1111 | function = "mdp_vsync"; |
| 1112 | drive-strength = <2>; |
| 1113 | bias-pull-down; |
| 1114 | }; |
| 1115 | |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 1116 | spkr_2_sd_n_active: spkr-2-sd-n-active-state { |
| 1117 | pins = "gpio77"; |
| 1118 | function = "gpio"; |
| 1119 | drive-strength = <16>; |
| 1120 | bias-disable; |
| 1121 | output-low; |
| 1122 | }; |
| 1123 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 1124 | ts_irq: ts-irq-state { |
| 1125 | pins = "gpio161"; |
| 1126 | function = "gpio"; |
| 1127 | drive-strength = <8>; |
| 1128 | bias-pull-up; |
| 1129 | output-disable; |
| 1130 | }; |
| 1131 | |
| 1132 | ts_reset: ts-reset-state { |
| 1133 | pins = "gpio162"; |
| 1134 | function = "gpio"; |
| 1135 | drive-strength = <8>; |
| 1136 | bias-pull-up; |
| 1137 | }; |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 1138 | |
| 1139 | wcd_default: wcd-reset-n-active-state { |
| 1140 | pins = "gpio107"; |
| 1141 | function = "gpio"; |
| 1142 | drive-strength = <16>; |
| 1143 | bias-disable; |
| 1144 | output-low; |
| 1145 | }; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 1146 | }; |
| 1147 | |
| 1148 | &uart14 { |
| 1149 | status = "okay"; |
| 1150 | |
| 1151 | bluetooth { |
| 1152 | compatible = "qcom,wcn7850-bt"; |
| 1153 | |
| 1154 | clocks = <&rpmhcc RPMH_RF_CLK1>; |
| 1155 | |
| 1156 | vddio-supply = <&vreg_l3c_1p2>; |
| 1157 | vddaon-supply = <&vreg_l15b_1p8>; |
| 1158 | vdddig-supply = <&vreg_s3c_0p9>; |
| 1159 | vddrfa0p8-supply = <&vreg_s3c_0p9>; |
| 1160 | vddrfa1p2-supply = <&vreg_s1c_1p2>; |
| 1161 | vddrfa1p9-supply = <&vreg_s6c_1p8>; |
| 1162 | |
| 1163 | max-speed = <3200000>; |
| 1164 | |
| 1165 | enable-gpios = <&tlmm 17 GPIO_ACTIVE_HIGH>; |
| 1166 | swctrl-gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>; |
| 1167 | |
| 1168 | pinctrl-0 = <&bt_default>; |
| 1169 | pinctrl-names = "default"; |
| 1170 | }; |
| 1171 | }; |
| 1172 | |
| 1173 | &uart15 { |
| 1174 | status = "okay"; |
| 1175 | }; |
| 1176 | |
| 1177 | &ufs_mem_hc { |
| 1178 | reset-gpios = <&tlmm 210 GPIO_ACTIVE_LOW>; |
| 1179 | |
| 1180 | vcc-supply = <&vreg_l17b_2p5>; |
| 1181 | vcc-max-microamp = <1300000>; |
| 1182 | vccq-supply = <&vreg_l1c_1p2>; |
| 1183 | vccq-max-microamp = <1200000>; |
| 1184 | |
| 1185 | status = "okay"; |
| 1186 | }; |
| 1187 | |
| 1188 | &ufs_mem_phy { |
| 1189 | vdda-phy-supply = <&vreg_l1d_0p88>; |
| 1190 | vdda-pll-supply = <&vreg_l3i_1p2>; |
| 1191 | |
| 1192 | status = "okay"; |
| 1193 | }; |
| 1194 | |
| 1195 | /* |
| 1196 | * DPAUX -> WCD9395 -> USB_SBU -> USB-C |
| 1197 | * eUSB2 DP/DM -> PM85550HS -> eUSB2 DP/DM -> WCD9395 -> USB-C |
| 1198 | * USB SS -> NB7VPQ904MMUTWG -> USB-C |
| 1199 | */ |
| 1200 | |
| 1201 | &usb_1 { |
| 1202 | status = "okay"; |
| 1203 | }; |
| 1204 | |
| 1205 | &usb_1_dwc3 { |
| 1206 | dr_mode = "otg"; |
| 1207 | usb-role-switch; |
| 1208 | }; |
| 1209 | |
| 1210 | &usb_1_dwc3_hs { |
| 1211 | remote-endpoint = <&pmic_glink_hs_in>; |
| 1212 | }; |
| 1213 | |
| 1214 | &usb_1_dwc3_ss { |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 1215 | remote-endpoint = <&usb_dp_qmpphy_usb_ss_in>; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 1216 | }; |
| 1217 | |
| 1218 | &usb_1_hsphy { |
| 1219 | vdd-supply = <&vreg_l1i_0p88>; |
| 1220 | vdda12-supply = <&vreg_l3i_1p2>; |
| 1221 | |
| 1222 | phys = <&pm8550b_eusb2_repeater>; |
| 1223 | |
| 1224 | status = "okay"; |
| 1225 | }; |
| 1226 | |
| 1227 | &usb_dp_qmpphy { |
| 1228 | vdda-phy-supply = <&vreg_l3i_1p2>; |
| 1229 | vdda-pll-supply = <&vreg_l3g_0p91>; |
| 1230 | |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 1231 | orientation-switch; |
| 1232 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 1233 | status = "okay"; |
| 1234 | }; |
| 1235 | |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 1236 | &usb_dp_qmpphy_dp_in { |
| 1237 | remote-endpoint = <&mdss_dp0_out>; |
| 1238 | }; |
| 1239 | |
| 1240 | &usb_dp_qmpphy_out { |
| 1241 | remote-endpoint = <&redriver_ss_in>; |
| 1242 | }; |
| 1243 | |
| 1244 | &usb_dp_qmpphy_usb_ss_in { |
| 1245 | remote-endpoint = <&usb_1_dwc3_ss>; |
| 1246 | }; |
| 1247 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 1248 | &xo_board { |
| 1249 | clock-frequency = <76800000>; |
| 1250 | }; |