File Index
Files and directories
Sign in
FILE

x1-crd.dtsi

File preview with syntax highlighting.

linux-6.19.14/arch/arm64/boot/dts/qcom/x1-crd.dtsi DEVICETREE
   1// SPDX-License-Identifier: BSD-3-Clause
   2/*
   3 * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
   4 */
   5
   6#include <dt-bindings/gpio/gpio.h>
   7#include <dt-bindings/input/gpio-keys.h>
   8#include <dt-bindings/input/input.h>
   9#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
  10#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
  11
  12#include "hamoa-pmics.dtsi"
  13
  14/ {
  15	model = "Qualcomm Technologies, Inc. X1E80100 CRD";
  16	compatible = "qcom,x1e80100-crd", "qcom,x1e80100";
  17
  18	aliases {
  19		serial0 = &uart21;
  20	};
  21
  22	wcd938x: audio-codec {
  23		compatible = "qcom,wcd9385-codec";
  24
  25		pinctrl-names = "default";
  26		pinctrl-0 = <&wcd_default>;
  27
  28		qcom,micbias1-microvolt = <1800000>;
  29		qcom,micbias2-microvolt = <1800000>;
  30		qcom,micbias3-microvolt = <1800000>;
  31		qcom,micbias4-microvolt = <1800000>;
  32		qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>;
  33		qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
  34		qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
  35		qcom,rx-device = <&wcd_rx>;
  36		qcom,tx-device = <&wcd_tx>;
  37
  38		reset-gpios = <&tlmm 191 GPIO_ACTIVE_LOW>;
  39
  40		vdd-buck-supply = <&vreg_l15b_1p8>;
  41		vdd-rxtx-supply = <&vreg_l15b_1p8>;
  42		vdd-io-supply = <&vreg_l15b_1p8>;
  43		vdd-mic-bias-supply = <&vreg_bob1>;
  44
  45		#sound-dai-cells = <1>;
  46	};
  47
  48	chosen {
  49		stdout-path = "serial0:115200n8";
  50	};
  51
  52	gpio-keys {
  53		compatible = "gpio-keys";
  54
  55		pinctrl-0 = <&hall_int_n_default>, <&kypd_vol_up_n>;
  56		pinctrl-names = "default";
  57
  58		key-vol-up {
  59			label = "volume_up";
  60			gpios = <&pm8550_gpios 6 GPIO_ACTIVE_LOW>;
  61			linux,code = <KEY_VOLUMEUP>;
  62			wakeup-source;
  63		};
  64
  65		switch-lid {
  66			label = "lid";
  67			gpios = <&tlmm 92 GPIO_ACTIVE_LOW>;
  68			linux,input-type = <EV_SW>;
  69			linux,code = <SW_LID>;
  70			wakeup-source;
  71			wakeup-event-action = <EV_ACT_DEASSERTED>;
  72		};
  73	};
  74
  75	pmic-glink {
  76		compatible = "qcom,x1e80100-pmic-glink",
  77			     "qcom,sm8550-pmic-glink",
  78			     "qcom,pmic-glink";
  79		#address-cells = <1>;
  80		#size-cells = <0>;
  81		orientation-gpios = <&tlmm 121 GPIO_ACTIVE_HIGH>,
  82				    <&tlmm 123 GPIO_ACTIVE_HIGH>,
  83				    <&tlmm 125 GPIO_ACTIVE_HIGH>;
  84
  85		nvmem-cells = <&charge_limit_en>,
  86			      <&charge_limit_end>,
  87			      <&charge_limit_delta>;
  88		nvmem-cell-names = "charge_limit_en",
  89				   "charge_limit_end",
  90				   "charge_limit_delta";
  91
  92		/* Left-side rear port */
  93		connector@0 {
  94			compatible = "usb-c-connector";
  95			reg = <0>;
  96			power-role = "dual";
  97			data-role = "dual";
  98
  99			ports {
 100				#address-cells = <1>;
 101				#size-cells = <0>;
 102
 103				port@0 {
 104					reg = <0>;
 105
 106					pmic_glink_ss0_hs_in: endpoint {
 107						remote-endpoint = <&usb_1_ss0_dwc3_hs>;
 108					};
 109				};
 110
 111				port@1 {
 112					reg = <1>;
 113
 114					pmic_glink_ss0_ss_in: endpoint {
 115						remote-endpoint = <&retimer_ss0_ss_out>;
 116					};
 117				};
 118
 119				port@2 {
 120					reg = <2>;
 121
 122					pmic_glink_ss0_con_sbu_in: endpoint {
 123						remote-endpoint = <&retimer_ss0_con_sbu_out>;
 124					};
 125				};
 126			};
 127		};
 128
 129		/* Left-side front port */
 130		connector@1 {
 131			compatible = "usb-c-connector";
 132			reg = <1>;
 133			power-role = "dual";
 134			data-role = "dual";
 135
 136			ports {
 137				#address-cells = <1>;
 138				#size-cells = <0>;
 139
 140				port@0 {
 141					reg = <0>;
 142
 143					pmic_glink_ss1_hs_in: endpoint {
 144						remote-endpoint = <&usb_1_ss1_dwc3_hs>;
 145					};
 146				};
 147
 148				port@1 {
 149					reg = <1>;
 150
 151					pmic_glink_ss1_ss_in: endpoint {
 152						remote-endpoint = <&retimer_ss1_ss_out>;
 153					};
 154				};
 155
 156				port@2 {
 157					reg = <2>;
 158
 159					pmic_glink_ss1_con_sbu_in: endpoint {
 160						remote-endpoint = <&retimer_ss1_con_sbu_out>;
 161					};
 162				};
 163			};
 164		};
 165
 166		/* Right-side port */
 167		connector@2 {
 168			compatible = "usb-c-connector";
 169			reg = <2>;
 170			power-role = "dual";
 171			data-role = "dual";
 172
 173			ports {
 174				#address-cells = <1>;
 175				#size-cells = <0>;
 176
 177				port@0 {
 178					reg = <0>;
 179
 180					pmic_glink_ss2_hs_in: endpoint {
 181						remote-endpoint = <&usb_1_ss2_dwc3_hs>;
 182					};
 183				};
 184
 185				port@1 {
 186					reg = <1>;
 187
 188					pmic_glink_ss2_ss_in: endpoint {
 189						remote-endpoint = <&retimer_ss2_ss_out>;
 190					};
 191				};
 192
 193				port@2 {
 194					reg = <2>;
 195
 196					pmic_glink_ss2_con_sbu_in: endpoint {
 197						remote-endpoint = <&retimer_ss2_con_sbu_out>;
 198					};
 199				};
 200			};
 201		};
 202	};
 203
 204	reserved-memory {
 205		linux,cma {
 206			compatible = "shared-dma-pool";
 207			size = <0x0 0x8000000>;
 208			reusable;
 209			linux,cma-default;
 210		};
 211	};
 212
 213	sound {
 214		compatible = "qcom,x1e80100-sndcard";
 215		model = "X1E80100-CRD";
 216		audio-routing = "WooferLeft IN", "WSA WSA_SPK1 OUT",
 217				"TweeterLeft IN", "WSA WSA_SPK2 OUT",
 218				"WooferRight IN", "WSA2 WSA_SPK2 OUT",
 219				"TweeterRight IN", "WSA2 WSA_SPK2 OUT",
 220				"IN1_HPHL", "HPHL_OUT",
 221				"IN2_HPHR", "HPHR_OUT",
 222				"AMIC2", "MIC BIAS2",
 223				"VA DMIC0", "MIC BIAS3",
 224				"VA DMIC1", "MIC BIAS3",
 225				"VA DMIC2", "MIC BIAS1",
 226				"VA DMIC3", "MIC BIAS1",
 227				"TX SWR_INPUT1", "ADC2_OUTPUT";
 228
 229		wcd-playback-dai-link {
 230			link-name = "WCD Playback";
 231
 232			cpu {
 233				sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>;
 234			};
 235
 236			codec {
 237				sound-dai = <&wcd938x 0>, <&swr1 0>, <&lpass_rxmacro 0>;
 238			};
 239
 240			platform {
 241				sound-dai = <&q6apm>;
 242			};
 243		};
 244
 245		wcd-capture-dai-link {
 246			link-name = "WCD Capture";
 247
 248			cpu {
 249				sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>;
 250			};
 251
 252			codec {
 253				sound-dai = <&wcd938x 1>, <&swr2 1>, <&lpass_txmacro 0>;
 254			};
 255
 256			platform {
 257				sound-dai = <&q6apm>;
 258			};
 259		};
 260
 261		wsa-dai-link {
 262			link-name = "WSA Playback";
 263
 264			cpu {
 265				sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>;
 266			};
 267
 268			codec {
 269				sound-dai = <&left_woofer>, <&left_tweeter>,
 270					    <&swr0 0>, <&lpass_wsamacro 0>,
 271					    <&right_woofer>, <&right_tweeter>,
 272					    <&swr3 0>, <&lpass_wsa2macro 0>;
 273			};
 274
 275			platform {
 276				sound-dai = <&q6apm>;
 277			};
 278		};
 279
 280		va-dai-link {
 281			link-name = "VA Capture";
 282
 283			cpu {
 284				sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>;
 285			};
 286
 287			codec {
 288				sound-dai = <&lpass_vamacro 0>;
 289			};
 290
 291			platform {
 292				sound-dai = <&q6apm>;
 293			};
 294		};
 295	};
 296
 297	vreg_edp_3p3: regulator-edp-3p3 {
 298		compatible = "regulator-fixed";
 299
 300		regulator-name = "VREG_EDP_3P3";
 301		regulator-min-microvolt = <3300000>;
 302		regulator-max-microvolt = <3300000>;
 303
 304		gpio = <&tlmm 70 GPIO_ACTIVE_HIGH>;
 305		enable-active-high;
 306
 307		pinctrl-0 = <&edp_reg_en>;
 308		pinctrl-names = "default";
 309
 310		regulator-boot-on;
 311	};
 312
 313	vreg_misc_3p3: regulator-misc-3p3 {
 314		compatible = "regulator-fixed";
 315
 316		regulator-name = "VREG_MISC_3P3";
 317		regulator-min-microvolt = <3300000>;
 318		regulator-max-microvolt = <3300000>;
 319
 320		gpio = <&pm8550ve_8_gpios 6 GPIO_ACTIVE_HIGH>;
 321		enable-active-high;
 322
 323		pinctrl-names = "default";
 324		pinctrl-0 = <&misc_3p3_reg_en>;
 325
 326		regulator-boot-on;
 327		regulator-always-on;
 328	};
 329
 330	vreg_nvme: regulator-nvme {
 331		compatible = "regulator-fixed";
 332
 333		regulator-name = "VREG_NVME_3P3";
 334		regulator-min-microvolt = <3300000>;
 335		regulator-max-microvolt = <3300000>;
 336
 337		gpio = <&tlmm 18 GPIO_ACTIVE_HIGH>;
 338		enable-active-high;
 339
 340		pinctrl-names = "default";
 341		pinctrl-0 = <&nvme_reg_en>;
 342
 343		regulator-boot-on;
 344	};
 345
 346	vreg_rtmr0_1p15: regulator-rtmr0-1p15 {
 347		compatible = "regulator-fixed";
 348
 349		regulator-name = "VREG_RTMR0_1P15";
 350		regulator-min-microvolt = <1150000>;
 351		regulator-max-microvolt = <1150000>;
 352
 353		gpio = <&pmc8380_5_gpios 8 GPIO_ACTIVE_HIGH>;
 354		enable-active-high;
 355
 356		pinctrl-0 = <&usb0_pwr_1p15_reg_en>;
 357		pinctrl-names = "default";
 358
 359		regulator-boot-on;
 360	};
 361
 362	vreg_rtmr0_1p8: regulator-rtmr0-1p8 {
 363		compatible = "regulator-fixed";
 364
 365		regulator-name = "VREG_RTMR0_1P8";
 366		regulator-min-microvolt = <1800000>;
 367		regulator-max-microvolt = <1800000>;
 368
 369		gpio = <&pm8550ve_9_gpios 8 GPIO_ACTIVE_HIGH>;
 370		enable-active-high;
 371
 372		pinctrl-0 = <&usb0_1p8_reg_en>;
 373		pinctrl-names = "default";
 374
 375		regulator-boot-on;
 376	};
 377
 378	vreg_rtmr0_3p3: regulator-rtmr0-3p3 {
 379		compatible = "regulator-fixed";
 380
 381		regulator-name = "VREG_RTMR0_3P3";
 382		regulator-min-microvolt = <3300000>;
 383		regulator-max-microvolt = <3300000>;
 384
 385		gpio = <&pm8550_gpios 11 GPIO_ACTIVE_HIGH>;
 386		enable-active-high;
 387
 388		pinctrl-0 = <&usb0_3p3_reg_en>;
 389		pinctrl-names = "default";
 390
 391		regulator-boot-on;
 392	};
 393
 394	vreg_rtmr1_1p15: regulator-rtmr1-1p15 {
 395		compatible = "regulator-fixed";
 396
 397		regulator-name = "VREG_RTMR1_1P15";
 398		regulator-min-microvolt = <1150000>;
 399		regulator-max-microvolt = <1150000>;
 400
 401		gpio = <&tlmm 188 GPIO_ACTIVE_HIGH>;
 402		enable-active-high;
 403
 404		pinctrl-0 = <&usb1_pwr_1p15_reg_en>;
 405		pinctrl-names = "default";
 406
 407		regulator-boot-on;
 408	};
 409
 410	vreg_rtmr1_1p8: regulator-rtmr1-1p8 {
 411		compatible = "regulator-fixed";
 412
 413		regulator-name = "VREG_RTMR1_1P8";
 414		regulator-min-microvolt = <1800000>;
 415		regulator-max-microvolt = <1800000>;
 416
 417		gpio = <&tlmm 175 GPIO_ACTIVE_HIGH>;
 418		enable-active-high;
 419
 420		pinctrl-0 = <&usb1_pwr_1p8_reg_en>;
 421		pinctrl-names = "default";
 422
 423		regulator-boot-on;
 424	};
 425
 426	vreg_rtmr1_3p3: regulator-rtmr1-3p3 {
 427		compatible = "regulator-fixed";
 428
 429		regulator-name = "VREG_RTMR1_3P3";
 430		regulator-min-microvolt = <3300000>;
 431		regulator-max-microvolt = <3300000>;
 432
 433		gpio = <&tlmm 186 GPIO_ACTIVE_HIGH>;
 434		enable-active-high;
 435
 436		pinctrl-0 = <&usb1_pwr_3p3_reg_en>;
 437		pinctrl-names = "default";
 438
 439		regulator-boot-on;
 440	};
 441
 442	vreg_rtmr2_1p15: regulator-rtmr2-1p15 {
 443		compatible = "regulator-fixed";
 444
 445		regulator-name = "VREG_RTMR2_1P15";
 446		regulator-min-microvolt = <1150000>;
 447		regulator-max-microvolt = <1150000>;
 448
 449		gpio = <&tlmm 189 GPIO_ACTIVE_HIGH>;
 450		enable-active-high;
 451
 452		pinctrl-0 = <&usb2_pwr_1p15_reg_en>;
 453		pinctrl-names = "default";
 454
 455		regulator-boot-on;
 456	};
 457
 458	vreg_rtmr2_1p8: regulator-rtmr2-1p8 {
 459		compatible = "regulator-fixed";
 460
 461		regulator-name = "VREG_RTMR2_1P8";
 462		regulator-min-microvolt = <1800000>;
 463		regulator-max-microvolt = <1800000>;
 464
 465		gpio = <&tlmm 126 GPIO_ACTIVE_HIGH>;
 466		enable-active-high;
 467
 468		pinctrl-0 = <&usb2_pwr_1p8_reg_en>;
 469		pinctrl-names = "default";
 470
 471		regulator-boot-on;
 472	};
 473
 474	vreg_rtmr2_3p3: regulator-rtmr2-3p3 {
 475		compatible = "regulator-fixed";
 476
 477		regulator-name = "VREG_RTMR2_3P3";
 478		regulator-min-microvolt = <3300000>;
 479		regulator-max-microvolt = <3300000>;
 480
 481		gpio = <&tlmm 187 GPIO_ACTIVE_HIGH>;
 482		enable-active-high;
 483
 484		pinctrl-0 = <&usb2_pwr_3p3_reg_en>;
 485		pinctrl-names = "default";
 486
 487		regulator-boot-on;
 488	};
 489
 490	vph_pwr: regulator-vph-pwr {
 491		compatible = "regulator-fixed";
 492
 493		regulator-name = "vph_pwr";
 494		regulator-min-microvolt = <3700000>;
 495		regulator-max-microvolt = <3700000>;
 496
 497		regulator-always-on;
 498		regulator-boot-on;
 499	};
 500
 501	vreg_wwan: regulator-wwan {
 502		compatible = "regulator-fixed";
 503
 504		regulator-name = "SDX_VPH_PWR";
 505		regulator-min-microvolt = <3300000>;
 506		regulator-max-microvolt = <3300000>;
 507
 508		gpio = <&tlmm 221 GPIO_ACTIVE_HIGH>;
 509		enable-active-high;
 510
 511		pinctrl-0 = <&wwan_sw_en>;
 512		pinctrl-names = "default";
 513
 514		regulator-boot-on;
 515	};
 516};
 517
 518&apps_rsc {
 519	regulators-0 {
 520		compatible = "qcom,pm8550-rpmh-regulators";
 521		qcom,pmic-id = "b";
 522
 523		vdd-bob1-supply = <&vph_pwr>;
 524		vdd-bob2-supply = <&vph_pwr>;
 525		vdd-l1-l4-l10-supply = <&vreg_s4c_1p8>;
 526		vdd-l2-l13-l14-supply = <&vreg_bob1>;
 527		vdd-l5-l16-supply = <&vreg_bob1>;
 528		vdd-l6-l7-supply = <&vreg_bob2>;
 529		vdd-l8-l9-supply = <&vreg_bob1>;
 530		vdd-l12-supply = <&vreg_s5j_1p2>;
 531		vdd-l15-supply = <&vreg_s4c_1p8>;
 532		vdd-l17-supply = <&vreg_bob2>;
 533
 534		vreg_bob1: bob1 {
 535			regulator-name = "vreg_bob1";
 536			regulator-min-microvolt = <3008000>;
 537			regulator-max-microvolt = <3960000>;
 538			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 539		};
 540
 541		vreg_bob2: bob2 {
 542			regulator-name = "vreg_bob2";
 543			regulator-min-microvolt = <2504000>;
 544			regulator-max-microvolt = <3008000>;
 545			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 546		};
 547
 548		vreg_l1b_1p8: ldo1 {
 549			regulator-name = "vreg_l1b_1p8";
 550			regulator-min-microvolt = <1800000>;
 551			regulator-max-microvolt = <1800000>;
 552			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 553		};
 554
 555		vreg_l2b_3p0: ldo2 {
 556			regulator-name = "vreg_l2b_3p0";
 557			regulator-min-microvolt = <3072000>;
 558			regulator-max-microvolt = <3100000>;
 559			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 560		};
 561
 562		vreg_l4b_1p8: ldo4 {
 563			regulator-name = "vreg_l4b_1p8";
 564			regulator-min-microvolt = <1800000>;
 565			regulator-max-microvolt = <1800000>;
 566			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 567		};
 568
 569		vreg_l5b_3p0: ldo5 {
 570			regulator-name = "vreg_l5b_3p0";
 571			regulator-min-microvolt = <3000000>;
 572			regulator-max-microvolt = <3000000>;
 573			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 574		};
 575
 576		vreg_l6b_1p8: ldo6 {
 577			regulator-name = "vreg_l6b_1p8";
 578			regulator-min-microvolt = <1800000>;
 579			regulator-max-microvolt = <2960000>;
 580			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 581		};
 582
 583		vreg_l7b_2p8: ldo7 {
 584			regulator-name = "vreg_l7b_2p8";
 585			regulator-min-microvolt = <2800000>;
 586			regulator-max-microvolt = <2800000>;
 587			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 588		};
 589
 590		vreg_l8b_3p0: ldo8 {
 591			regulator-name = "vreg_l8b_3p0";
 592			regulator-min-microvolt = <3072000>;
 593			regulator-max-microvolt = <3072000>;
 594			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 595		};
 596
 597		vreg_l9b_2p9: ldo9 {
 598			regulator-name = "vreg_l9b_2p9";
 599			regulator-min-microvolt = <2960000>;
 600			regulator-max-microvolt = <2960000>;
 601			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 602		};
 603
 604		vreg_l10b_1p8: ldo10 {
 605			regulator-name = "vreg_l10b_1p8";
 606			regulator-min-microvolt = <1800000>;
 607			regulator-max-microvolt = <1800000>;
 608			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 609		};
 610
 611		vreg_l12b_1p2: ldo12 {
 612			regulator-name = "vreg_l12b_1p2";
 613			regulator-min-microvolt = <1200000>;
 614			regulator-max-microvolt = <1200000>;
 615			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 616			regulator-always-on;
 617		};
 618
 619		vreg_l13b_3p0: ldo13 {
 620			regulator-name = "vreg_l13b_3p0";
 621			regulator-min-microvolt = <3072000>;
 622			regulator-max-microvolt = <3100000>;
 623			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 624		};
 625
 626		vreg_l14b_3p0: ldo14 {
 627			regulator-name = "vreg_l14b_3p0";
 628			regulator-min-microvolt = <3072000>;
 629			regulator-max-microvolt = <3072000>;
 630			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 631		};
 632
 633		vreg_l15b_1p8: ldo15 {
 634			regulator-name = "vreg_l15b_1p8";
 635			regulator-min-microvolt = <1800000>;
 636			regulator-max-microvolt = <1800000>;
 637			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 638			regulator-always-on;
 639		};
 640
 641		vreg_l16b_2p9: ldo16 {
 642			regulator-name = "vreg_l16b_2p9";
 643			regulator-min-microvolt = <2912000>;
 644			regulator-max-microvolt = <2912000>;
 645			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 646		};
 647
 648		vreg_l17b_2p5: ldo17 {
 649			regulator-name = "vreg_l17b_2p5";
 650			regulator-min-microvolt = <2504000>;
 651			regulator-max-microvolt = <2504000>;
 652			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 653		};
 654	};
 655
 656	regulators-1 {
 657		compatible = "qcom,pm8550ve-rpmh-regulators";
 658		qcom,pmic-id = "c";
 659
 660		vdd-l1-supply = <&vreg_s5j_1p2>;
 661		vdd-l2-supply = <&vreg_s1f_0p7>;
 662		vdd-l3-supply = <&vreg_s1f_0p7>;
 663		vdd-s4-supply = <&vph_pwr>;
 664
 665		vreg_s4c_1p8: smps4 {
 666			regulator-name = "vreg_s4c_1p8";
 667			regulator-min-microvolt = <1856000>;
 668			regulator-max-microvolt = <2000000>;
 669			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 670		};
 671
 672		vreg_l1c_1p2: ldo1 {
 673			regulator-name = "vreg_l1c_1p2";
 674			regulator-min-microvolt = <1200000>;
 675			regulator-max-microvolt = <1200000>;
 676			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 677		};
 678
 679		vreg_l2c_0p8: ldo2 {
 680			regulator-name = "vreg_l2c_0p8";
 681			regulator-min-microvolt = <880000>;
 682			regulator-max-microvolt = <920000>;
 683			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 684		};
 685
 686		vreg_l3c_0p8: ldo3 {
 687			regulator-name = "vreg_l3c_0p8";
 688			regulator-min-microvolt = <880000>;
 689			regulator-max-microvolt = <920000>;
 690			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 691		};
 692	};
 693
 694	regulators-2 {
 695		compatible = "qcom,pmc8380-rpmh-regulators";
 696		qcom,pmic-id = "d";
 697
 698		vdd-l1-supply = <&vreg_s1f_0p7>;
 699		vdd-l2-supply = <&vreg_s1f_0p7>;
 700		vdd-l3-supply = <&vreg_s4c_1p8>;
 701		vdd-s1-supply = <&vph_pwr>;
 702
 703		vreg_l1d_0p8: ldo1 {
 704			regulator-name = "vreg_l1d_0p8";
 705			regulator-min-microvolt = <880000>;
 706			regulator-max-microvolt = <920000>;
 707			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 708		};
 709
 710		vreg_l2d_0p9: ldo2 {
 711			regulator-name = "vreg_l2d_0p9";
 712			regulator-min-microvolt = <912000>;
 713			regulator-max-microvolt = <920000>;
 714			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 715		};
 716
 717		vreg_l3d_1p8: ldo3 {
 718			regulator-name = "vreg_l3d_1p8";
 719			regulator-min-microvolt = <1800000>;
 720			regulator-max-microvolt = <1800000>;
 721			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 722		};
 723	};
 724
 725	regulators-3 {
 726		compatible = "qcom,pmc8380-rpmh-regulators";
 727		qcom,pmic-id = "e";
 728
 729		vdd-l2-supply = <&vreg_s1f_0p7>;
 730		vdd-l3-supply = <&vreg_s5j_1p2>;
 731
 732		vreg_l2e_0p8: ldo2 {
 733			regulator-name = "vreg_l2e_0p8";
 734			regulator-min-microvolt = <880000>;
 735			regulator-max-microvolt = <920000>;
 736			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 737		};
 738
 739		vreg_l3e_1p2: ldo3 {
 740			regulator-name = "vreg_l3e_1p2";
 741			regulator-min-microvolt = <1200000>;
 742			regulator-max-microvolt = <1200000>;
 743			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 744		};
 745	};
 746
 747	regulators-4 {
 748		compatible = "qcom,pmc8380-rpmh-regulators";
 749		qcom,pmic-id = "f";
 750
 751		vdd-l1-supply = <&vreg_s5j_1p2>;
 752		vdd-l2-supply = <&vreg_s5j_1p2>;
 753		vdd-l3-supply = <&vreg_s5j_1p2>;
 754		vdd-s1-supply = <&vph_pwr>;
 755
 756		vreg_s1f_0p7: smps1 {
 757			regulator-name = "vreg_s1f_0p7";
 758			regulator-min-microvolt = <700000>;
 759			regulator-max-microvolt = <1100000>;
 760			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 761		};
 762
 763		vreg_l1f_1p0: ldo1 {
 764			regulator-name = "vreg_l1f_1p0";
 765			regulator-min-microvolt = <1024000>;
 766			regulator-max-microvolt = <1024000>;
 767			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 768		};
 769
 770		vreg_l2f_1p0: ldo2 {
 771			regulator-name = "vreg_l2f_1p0";
 772			regulator-min-microvolt = <1024000>;
 773			regulator-max-microvolt = <1024000>;
 774			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 775		};
 776
 777		vreg_l3f_1p0: ldo3 {
 778			regulator-name = "vreg_l3f_1p0";
 779			regulator-min-microvolt = <1024000>;
 780			regulator-max-microvolt = <1024000>;
 781			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 782		};
 783	};
 784
 785	regulators-6 {
 786		compatible = "qcom,pm8550ve-rpmh-regulators";
 787		qcom,pmic-id = "i";
 788
 789		vdd-l1-supply = <&vreg_s4c_1p8>;
 790		vdd-l2-supply = <&vreg_s5j_1p2>;
 791		vdd-l3-supply = <&vreg_s1f_0p7>;
 792		vdd-s1-supply = <&vph_pwr>;
 793		vdd-s2-supply = <&vph_pwr>;
 794
 795		vreg_s1i_0p9: smps1 {
 796			regulator-name = "vreg_s1i_0p9";
 797			regulator-min-microvolt = <900000>;
 798			regulator-max-microvolt = <920000>;
 799			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 800		};
 801
 802		vreg_s2i_1p0: smps2 {
 803			regulator-name = "vreg_s2i_1p0";
 804			regulator-min-microvolt = <1000000>;
 805			regulator-max-microvolt = <1100000>;
 806			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 807		};
 808
 809		vreg_l1i_1p8: ldo1 {
 810			regulator-name = "vreg_l1i_1p8";
 811			regulator-min-microvolt = <1800000>;
 812			regulator-max-microvolt = <1800000>;
 813			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 814		};
 815
 816		vreg_l2i_1p2: ldo2 {
 817			regulator-name = "vreg_l2i_1p2";
 818			regulator-min-microvolt = <1200000>;
 819			regulator-max-microvolt = <1200000>;
 820			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 821		};
 822
 823		vreg_l3i_0p8: ldo3 {
 824			regulator-name = "vreg_l3i_0p8";
 825			regulator-min-microvolt = <880000>;
 826			regulator-max-microvolt = <920000>;
 827			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 828		};
 829	};
 830
 831	regulators-7 {
 832		compatible = "qcom,pm8550ve-rpmh-regulators";
 833		qcom,pmic-id = "j";
 834
 835		vdd-l1-supply = <&vreg_s1f_0p7>;
 836		vdd-l2-supply = <&vreg_s5j_1p2>;
 837		vdd-l3-supply = <&vreg_s1f_0p7>;
 838		vdd-s5-supply = <&vph_pwr>;
 839
 840		vreg_s5j_1p2: smps5 {
 841			regulator-name = "vreg_s5j_1p2";
 842			regulator-min-microvolt = <1256000>;
 843			regulator-max-microvolt = <1304000>;
 844			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 845		};
 846
 847		vreg_l1j_0p8: ldo1 {
 848			regulator-name = "vreg_l1j_0p8";
 849			regulator-min-microvolt = <880000>;
 850			regulator-max-microvolt = <920000>;
 851			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 852		};
 853
 854		vreg_l2j_1p2: ldo2 {
 855			regulator-name = "vreg_l2j_1p2";
 856			regulator-min-microvolt = <1256000>;
 857			regulator-max-microvolt = <1256000>;
 858			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 859		};
 860
 861		vreg_l3j_0p8: ldo3 {
 862			regulator-name = "vreg_l3j_0p8";
 863			regulator-min-microvolt = <880000>;
 864			regulator-max-microvolt = <920000>;
 865			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
 866		};
 867	};
 868};
 869
 870&gpu {
 871	status = "okay";
 872};
 873
 874&i2c0 {
 875	clock-frequency = <400000>;
 876
 877	status = "okay";
 878
 879	touchpad@15 {
 880		compatible = "hid-over-i2c";
 881		reg = <0x15>;
 882
 883		hid-descr-addr = <0x1>;
 884		interrupts-extended = <&tlmm 3 IRQ_TYPE_LEVEL_LOW>;
 885
 886		vdd-supply = <&vreg_misc_3p3>;
 887		vddl-supply = <&vreg_l12b_1p2>;
 888
 889		pinctrl-0 = <&tpad_default>;
 890		pinctrl-names = "default";
 891
 892		wakeup-source;
 893	};
 894
 895	keyboard@3a {
 896		compatible = "hid-over-i2c";
 897		reg = <0x3a>;
 898
 899		hid-descr-addr = <0x1>;
 900		interrupts-extended = <&tlmm 67 IRQ_TYPE_LEVEL_LOW>;
 901
 902		vdd-supply = <&vreg_misc_3p3>;
 903		vddl-supply = <&vreg_l12b_1p2>;
 904
 905		pinctrl-0 = <&kybd_default>;
 906		pinctrl-names = "default";
 907
 908		wakeup-source;
 909	};
 910};
 911
 912&i2c1 {
 913	clock-frequency = <400000>;
 914
 915	status = "okay";
 916
 917	typec-mux@8 {
 918		compatible = "parade,ps8830";
 919		reg = <0x08>;
 920
 921		clocks = <&rpmhcc RPMH_RF_CLK5>;
 922
 923		vdd-supply = <&vreg_rtmr2_1p15>;
 924		vdd33-supply = <&vreg_rtmr2_3p3>;
 925		vdd33-cap-supply = <&vreg_rtmr2_3p3>;
 926		vddar-supply = <&vreg_rtmr2_1p15>;
 927		vddat-supply = <&vreg_rtmr2_1p15>;
 928		vddio-supply = <&vreg_rtmr2_1p8>;
 929
 930		reset-gpios = <&tlmm 185 GPIO_ACTIVE_LOW>;
 931
 932		pinctrl-0 = <&rtmr2_default>;
 933		pinctrl-names = "default";
 934
 935		orientation-switch;
 936		retimer-switch;
 937
 938		ports {
 939			#address-cells = <1>;
 940			#size-cells = <0>;
 941
 942			port@0 {
 943				reg = <0>;
 944
 945				retimer_ss2_ss_out: endpoint {
 946					remote-endpoint = <&pmic_glink_ss2_ss_in>;
 947				};
 948			};
 949
 950			port@1 {
 951				reg = <1>;
 952
 953				retimer_ss2_ss_in: endpoint {
 954					remote-endpoint = <&usb_1_ss2_qmpphy_out>;
 955				};
 956			};
 957
 958			port@2 {
 959				reg = <2>;
 960
 961				retimer_ss2_con_sbu_out: endpoint {
 962					remote-endpoint = <&pmic_glink_ss2_con_sbu_in>;
 963				};
 964			};
 965		};
 966	};
 967};
 968
 969&i2c3 {
 970	clock-frequency = <400000>;
 971
 972	status = "okay";
 973
 974	typec-mux@8 {
 975		compatible = "parade,ps8830";
 976		reg = <0x08>;
 977
 978		clocks = <&rpmhcc RPMH_RF_CLK3>;
 979
 980		vdd-supply = <&vreg_rtmr0_1p15>;
 981		vdd33-supply = <&vreg_rtmr0_3p3>;
 982		vdd33-cap-supply = <&vreg_rtmr0_3p3>;
 983		vddar-supply = <&vreg_rtmr0_1p15>;
 984		vddat-supply = <&vreg_rtmr0_1p15>;
 985		vddio-supply = <&vreg_rtmr0_1p8>;
 986
 987		reset-gpios = <&pm8550_gpios 10 GPIO_ACTIVE_LOW>;
 988
 989		pinctrl-0 = <&rtmr0_default>;
 990		pinctrl-names = "default";
 991
 992		retimer-switch;
 993		orientation-switch;
 994
 995		ports {
 996			#address-cells = <1>;
 997			#size-cells = <0>;
 998
 999			port@0 {
1000				reg = <0>;
1001
1002				retimer_ss0_ss_out: endpoint {
1003					remote-endpoint = <&pmic_glink_ss0_ss_in>;
1004				};
1005			};
1006
1007			port@1 {
1008				reg = <1>;
1009
1010				retimer_ss0_ss_in: endpoint {
1011					remote-endpoint = <&usb_1_ss0_qmpphy_out>;
1012				};
1013			};
1014
1015			port@2 {
1016				reg = <2>;
1017
1018				retimer_ss0_con_sbu_out: endpoint {
1019					remote-endpoint = <&pmic_glink_ss0_con_sbu_in>;
1020				};
1021			};
1022		};
1023	};
1024};
1025
1026&i2c5 {
1027	clock-frequency = <400000>;
1028
1029	status = "okay";
1030
1031	eusb6_repeater: redriver@4f {
1032		compatible = "nxp,ptn3222";
1033		reg = <0x4f>;
1034
1035		vdd1v8-supply = <&vreg_l4b_1p8>;
1036		vdd3v3-supply = <&vreg_l13b_3p0>;
1037
1038		reset-gpios = <&tlmm 184 GPIO_ACTIVE_LOW>;
1039
1040		pinctrl-0 = <&eusb6_reset_n>;
1041		pinctrl-names = "default";
1042
1043		#phy-cells = <0>;
1044	};
1045};
1046
1047&i2c7 {
1048	clock-frequency = <400000>;
1049
1050	status = "okay";
1051
1052	typec-mux@8 {
1053		compatible = "parade,ps8830";
1054		reg = <0x8>;
1055
1056		clocks = <&rpmhcc RPMH_RF_CLK4>;
1057
1058		vdd-supply = <&vreg_rtmr1_1p15>;
1059		vdd33-supply = <&vreg_rtmr1_3p3>;
1060		vdd33-cap-supply = <&vreg_rtmr1_3p3>;
1061		vddar-supply = <&vreg_rtmr1_1p15>;
1062		vddat-supply = <&vreg_rtmr1_1p15>;
1063		vddio-supply = <&vreg_rtmr1_1p8>;
1064
1065		reset-gpios = <&tlmm 176 GPIO_ACTIVE_LOW>;
1066
1067		pinctrl-0 = <&rtmr1_default>;
1068		pinctrl-names = "default";
1069
1070		retimer-switch;
1071		orientation-switch;
1072
1073		ports {
1074			#address-cells = <1>;
1075			#size-cells = <0>;
1076
1077			port@0 {
1078				reg = <0>;
1079
1080				retimer_ss1_ss_out: endpoint {
1081					remote-endpoint = <&pmic_glink_ss1_ss_in>;
1082				};
1083			};
1084
1085			port@1 {
1086				reg = <1>;
1087
1088				retimer_ss1_ss_in: endpoint {
1089					remote-endpoint = <&usb_1_ss1_qmpphy_out>;
1090				};
1091			};
1092
1093			port@2 {
1094				reg = <2>;
1095
1096				retimer_ss1_con_sbu_out: endpoint {
1097					remote-endpoint = <&pmic_glink_ss1_con_sbu_in>;
1098				};
1099			};
1100		};
1101	};
1102};
1103
1104&i2c8 {
1105	clock-frequency = <400000>;
1106
1107	status = "okay";
1108
1109	touchscreen@10 {
1110		compatible = "hid-over-i2c";
1111		reg = <0x10>;
1112
1113		hid-descr-addr = <0x1>;
1114		interrupts-extended = <&tlmm 51 IRQ_TYPE_LEVEL_LOW>;
1115
1116		vdd-supply = <&vreg_misc_3p3>;
1117		vddl-supply = <&vreg_l15b_1p8>;
1118
1119		pinctrl-0 = <&ts0_default>;
1120		pinctrl-names = "default";
1121	};
1122};
1123
1124&lpass_tlmm {
1125	spkr_01_sd_n_active: spkr-01-sd-n-active-state {
1126		pins = "gpio12";
1127		function = "gpio";
1128		drive-strength = <16>;
1129		bias-disable;
1130		output-low;
1131	};
1132
1133	spkr_23_sd_n_active: spkr-23-sd-n-active-state {
1134		pins = "gpio13";
1135		function = "gpio";
1136		drive-strength = <16>;
1137		bias-disable;
1138		output-low;
1139	};
1140};
1141
1142&lpass_vamacro {
1143	pinctrl-0 = <&dmic01_default>, <&dmic23_default>;
1144	pinctrl-names = "default";
1145
1146	vdd-micb-supply = <&vreg_l1b_1p8>;
1147	qcom,dmic-sample-rate = <4800000>;
1148};
1149
1150&mdss {
1151	status = "okay";
1152};
1153
1154&mdss_dp0 {
1155	status = "okay";
1156};
1157
1158&mdss_dp0_out {
1159	link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>;
1160};
1161
1162&mdss_dp1 {
1163	status = "okay";
1164};
1165
1166&mdss_dp1_out {
1167	link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>;
1168};
1169
1170&mdss_dp2 {
1171	status = "okay";
1172};
1173
1174&mdss_dp2_out {
1175	link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>;
1176};
1177
1178&mdss_dp3 {
1179	/delete-property/ #sound-dai-cells;
1180
1181	pinctrl-0 = <&edp0_hpd_default>;
1182	pinctrl-names = "default";
1183
1184	status = "okay";
1185
1186	aux-bus {
1187		panel {
1188			compatible = "samsung,atna45af01", "samsung,atna33xc20";
1189			enable-gpios = <&pmc8380_3_gpios 4 GPIO_ACTIVE_HIGH>;
1190			power-supply = <&vreg_edp_3p3>;
1191
1192			pinctrl-0 = <&edp_bl_en>;
1193			pinctrl-names = "default";
1194
1195			port {
1196				edp_panel_in: endpoint {
1197					remote-endpoint = <&mdss_dp3_out>;
1198				};
1199			};
1200		};
1201	};
1202};
1203
1204&mdss_dp3_out {
1205	data-lanes = <0 1 2 3>;
1206	link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>;
1207
1208	remote-endpoint = <&edp_panel_in>;
1209};
1210
1211&mdss_dp3_phy {
1212	vdda-phy-supply = <&vreg_l3j_0p8>;
1213	vdda-pll-supply = <&vreg_l2j_1p2>;
1214
1215	status = "okay";
1216};
1217
1218&pcie4 {
1219	perst-gpios = <&tlmm 146 GPIO_ACTIVE_LOW>;
1220	wake-gpios = <&tlmm 148 GPIO_ACTIVE_LOW>;
1221
1222	pinctrl-0 = <&pcie4_default>;
1223	pinctrl-names = "default";
1224
1225	status = "okay";
1226};
1227
1228&pcie4_phy {
1229	vdda-phy-supply = <&vreg_l3i_0p8>;
1230	vdda-pll-supply = <&vreg_l3e_1p2>;
1231
1232	status = "okay";
1233};
1234
1235&pcie5 {
1236	perst-gpios = <&tlmm 149 GPIO_ACTIVE_LOW>;
1237	wake-gpios = <&tlmm 151 GPIO_ACTIVE_LOW>;
1238
1239	vddpe-3v3-supply = <&vreg_wwan>;
1240
1241	pinctrl-0 = <&pcie5_default>;
1242	pinctrl-names = "default";
1243
1244	status = "okay";
1245};
1246
1247&pcie5_phy {
1248	vdda-phy-supply = <&vreg_l3i_0p8>;
1249	vdda-pll-supply = <&vreg_l3e_1p2>;
1250
1251	status = "okay";
1252};
1253
1254&pcie6a {
1255	perst-gpios = <&tlmm 152 GPIO_ACTIVE_LOW>;
1256	wake-gpios = <&tlmm 154 GPIO_ACTIVE_LOW>;
1257
1258	vddpe-3v3-supply = <&vreg_nvme>;
1259
1260	pinctrl-names = "default";
1261	pinctrl-0 = <&pcie6a_default>;
1262
1263	status = "okay";
1264};
1265
1266&pcie6a_phy {
1267	vdda-phy-supply = <&vreg_l1d_0p8>;
1268	vdda-pll-supply = <&vreg_l2j_1p2>;
1269
1270	status = "okay";
1271};
1272
1273&pm8550_gpios {
1274	kypd_vol_up_n: kypd-vol-up-n-state {
1275		pins = "gpio6";
1276		function = "normal";
1277		power-source = <1>; /* 1.8 V */
1278		bias-pull-up;
1279		input-enable;
1280	};
1281
1282	rtmr0_default: rtmr0-reset-n-active-state {
1283		pins = "gpio10";
1284		function = "normal";
1285		power-source = <1>; /* 1.8V */
1286		bias-disable;
1287		input-disable;
1288		output-enable;
1289	};
1290
1291	usb0_3p3_reg_en: usb0-3p3-reg-en-state {
1292		pins = "gpio11";
1293		function = "normal";
1294		power-source = <1>; /* 1.8V */
1295		bias-disable;
1296		input-disable;
1297		output-enable;
1298	};
1299};
1300
1301&pm8550ve_8_gpios {
1302	misc_3p3_reg_en: misc-3p3-reg-en-state {
1303		pins = "gpio6";
1304		function = "normal";
1305		bias-disable;
1306		input-disable;
1307		output-enable;
1308		drive-push-pull;
1309		power-source = <1>; /* 1.8 V */
1310		qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
1311	};
1312};
1313
1314&pm8550ve_9_gpios {
1315	usb0_1p8_reg_en: usb0-1p8-reg-en-state {
1316		pins = "gpio8";
1317		function = "normal";
1318		power-source = <1>; /* 1.8V */
1319		bias-disable;
1320		input-disable;
1321		output-enable;
1322	};
1323};
1324
1325&pmc8380_3_gpios {
1326	edp_bl_en: edp-bl-en-state {
1327		pins = "gpio4";
1328		function = "normal";
1329		power-source = <1>; /* 1.8V */
1330		input-disable;
1331		output-enable;
1332	};
1333};
1334
1335&pmc8380_5_gpios {
1336	usb0_pwr_1p15_reg_en: usb0-pwr-1p15-reg-en-state {
1337		pins = "gpio8";
1338		function = "normal";
1339		power-source = <1>; /* 1.8V */
1340		bias-disable;
1341		input-disable;
1342		output-enable;
1343	};
1344};
1345
1346&qupv3_0 {
1347	status = "okay";
1348};
1349
1350&qupv3_1 {
1351	status = "okay";
1352};
1353
1354&qupv3_2 {
1355	status = "okay";
1356};
1357
1358&remoteproc_adsp {
1359	firmware-name = "qcom/x1e80100/adsp.mbn",
1360			"qcom/x1e80100/adsp_dtb.mbn";
1361
1362	status = "okay";
1363};
1364
1365&remoteproc_cdsp {
1366	firmware-name = "qcom/x1e80100/cdsp.mbn",
1367			"qcom/x1e80100/cdsp_dtb.mbn";
1368
1369	status = "okay";
1370};
1371
1372&smb2360_0 {
1373	status = "okay";
1374};
1375
1376&smb2360_0_eusb2_repeater {
1377	vdd18-supply = <&vreg_l3d_1p8>;
1378	vdd3-supply = <&vreg_l2b_3p0>;
1379};
1380
1381&smb2360_1 {
1382	status = "okay";
1383};
1384
1385&smb2360_1_eusb2_repeater {
1386	vdd18-supply = <&vreg_l3d_1p8>;
1387	vdd3-supply = <&vreg_l14b_3p0>;
1388};
1389
1390&smb2360_2 {
1391	status = "okay";
1392};
1393
1394&smb2360_2_eusb2_repeater {
1395	vdd18-supply = <&vreg_l3d_1p8>;
1396	vdd3-supply = <&vreg_l8b_3p0>;
1397};
1398
1399&swr0 {
1400	status = "okay";
1401
1402	pinctrl-0 = <&wsa_swr_active>, <&spkr_01_sd_n_active>;
1403	pinctrl-names = "default";
1404
1405	/* WSA8845, Left Woofer */
1406	left_woofer: speaker@0,0 {
1407		compatible = "sdw20217020400";
1408		reg = <0 0>;
1409		reset-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>;
1410		#sound-dai-cells = <0>;
1411		sound-name-prefix = "WooferLeft";
1412		vdd-1p8-supply = <&vreg_l15b_1p8>;
1413		vdd-io-supply = <&vreg_l12b_1p2>;
1414		qcom,port-mapping = <1 2 3 7 10 13>;
1415	};
1416
1417	/* WSA8845, Left Tweeter */
1418	left_tweeter: speaker@0,1 {
1419		compatible = "sdw20217020400";
1420		reg = <0 1>;
1421		reset-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>;
1422		#sound-dai-cells = <0>;
1423		sound-name-prefix = "TweeterLeft";
1424		vdd-1p8-supply = <&vreg_l15b_1p8>;
1425		vdd-io-supply = <&vreg_l12b_1p2>;
1426		qcom,port-mapping = <4 5 6 7 11 13>;
1427	};
1428};
1429
1430&swr1 {
1431	status = "okay";
1432
1433	/* WCD9385 RX */
1434	wcd_rx: codec@0,4 {
1435		compatible = "sdw20217010d00";
1436		reg = <0 4>;
1437		qcom,rx-port-mapping = <1 2 3 4 5>;
1438	};
1439};
1440
1441&swr2 {
1442	status = "okay";
1443
1444	/* WCD9385 TX */
1445	wcd_tx: codec@0,3 {
1446		compatible = "sdw20217010d00";
1447		reg = <0 3>;
1448		qcom,tx-port-mapping = <2 2 3 4>;
1449	};
1450};
1451
1452&swr3 {
1453	status = "okay";
1454
1455	pinctrl-0 = <&wsa2_swr_active>, <&spkr_23_sd_n_active>;
1456	pinctrl-names = "default";
1457
1458	/* WSA8845, Right Woofer */
1459	right_woofer: speaker@0,0 {
1460		compatible = "sdw20217020400";
1461		reg = <0 0>;
1462		reset-gpios = <&lpass_tlmm 13 GPIO_ACTIVE_LOW>;
1463		#sound-dai-cells = <0>;
1464		sound-name-prefix = "WooferRight";
1465		vdd-1p8-supply = <&vreg_l15b_1p8>;
1466		vdd-io-supply = <&vreg_l12b_1p2>;
1467		qcom,port-mapping = <1 2 3 7 10 13>;
1468	};
1469
1470	/* WSA8845, Right Tweeter */
1471	right_tweeter: speaker@0,1 {
1472		compatible = "sdw20217020400";
1473		reg = <0 1>;
1474		reset-gpios = <&lpass_tlmm 13 GPIO_ACTIVE_LOW>;
1475		#sound-dai-cells = <0>;
1476		sound-name-prefix = "TweeterRight";
1477		vdd-1p8-supply = <&vreg_l15b_1p8>;
1478		vdd-io-supply = <&vreg_l12b_1p2>;
1479		qcom,port-mapping = <4 5 6 7 11 13>;
1480	};
1481};
1482
1483&tlmm {
1484	gpio-reserved-ranges = <34 2>, /* Unused */
1485			       <44 4>, /* SPI (TPM) */
1486			       <238 1>; /* UFS Reset */
1487
1488	edp_reg_en: edp-reg-en-state {
1489		pins = "gpio70";
1490		function = "gpio";
1491		drive-strength = <16>;
1492		bias-disable;
1493	};
1494
1495	eusb6_reset_n: eusb6-reset-n-state {
1496		pins = "gpio184";
1497		function = "gpio";
1498		drive-strength = <2>;
1499		bias-disable;
1500		output-low;
1501	};
1502
1503	hall_int_n_default: hall-int-n-state {
1504		pins = "gpio92";
1505		function = "gpio";
1506		bias-disable;
1507	};
1508
1509	kybd_default: kybd-default-state {
1510		pins = "gpio67";
1511		function = "gpio";
1512		bias-disable;
1513	};
1514
1515	nvme_reg_en: nvme-reg-en-state {
1516		pins = "gpio18";
1517		function = "gpio";
1518		drive-strength = <2>;
1519		bias-disable;
1520	};
1521
1522	pcie4_default: pcie4-default-state {
1523		clkreq-n-pins {
1524			pins = "gpio147";
1525			function = "pcie4_clk";
1526			drive-strength = <2>;
1527			bias-pull-up;
1528		};
1529
1530		perst-n-pins {
1531			pins = "gpio146";
1532			function = "gpio";
1533			drive-strength = <2>;
1534			bias-disable;
1535		};
1536
1537		wake-n-pins {
1538			pins = "gpio148";
1539			function = "gpio";
1540			drive-strength = <2>;
1541			bias-pull-up;
1542		};
1543	};
1544
1545	pcie5_default: pcie5-default-state {
1546		clkreq-n-pins {
1547			pins = "gpio150";
1548			function = "pcie5_clk";
1549			drive-strength = <2>;
1550			bias-pull-up;
1551		};
1552
1553		perst-n-pins {
1554			pins = "gpio149";
1555			function = "gpio";
1556			drive-strength = <2>;
1557			bias-disable;
1558		};
1559
1560		wake-n-pins {
1561			pins = "gpio151";
1562			function = "gpio";
1563			drive-strength = <2>;
1564			bias-pull-up;
1565		};
1566	};
1567
1568	pcie6a_default: pcie6a-default-state {
1569		clkreq-n-pins {
1570			pins = "gpio153";
1571			function = "pcie6a_clk";
1572			drive-strength = <2>;
1573			bias-pull-up;
1574		};
1575
1576		perst-n-pins {
1577			pins = "gpio152";
1578			function = "gpio";
1579			drive-strength = <2>;
1580			bias-disable;
1581		};
1582
1583		wake-n-pins {
1584			pins = "gpio154";
1585			function = "gpio";
1586			drive-strength = <2>;
1587			bias-pull-up;
1588		};
1589	};
1590
1591	rtmr1_default: rtmr1-reset-n-active-state {
1592		pins = "gpio176";
1593		function = "gpio";
1594		drive-strength = <2>;
1595		bias-disable;
1596	};
1597
1598	rtmr2_default: rtmr2-reset-n-active-state {
1599		pins = "gpio185";
1600		function = "gpio";
1601		drive-strength = <2>;
1602		bias-disable;
1603	};
1604
1605	tpad_default: tpad-default-state {
1606		pins = "gpio3";
1607		function = "gpio";
1608		bias-disable;
1609	};
1610
1611	ts0_default: ts0-default-state {
1612		int-n-pins {
1613			pins = "gpio51";
1614			function = "gpio";
1615			bias-disable;
1616		};
1617
1618		reset-n-pins {
1619			pins = "gpio48";
1620			function = "gpio";
1621			output-high;
1622			drive-strength = <16>;
1623		};
1624	};
1625
1626	usb1_pwr_1p15_reg_en: usb1-pwr-1p15-reg-en-state {
1627		pins = "gpio188";
1628		function = "gpio";
1629		drive-strength = <2>;
1630		bias-disable;
1631	};
1632
1633	usb1_pwr_1p8_reg_en: usb1-pwr-1p8-reg-en-state {
1634		pins = "gpio175";
1635		function = "gpio";
1636		drive-strength = <2>;
1637		bias-disable;
1638	};
1639
1640	usb1_pwr_3p3_reg_en: usb1-pwr-3p3-reg-en-state {
1641		pins = "gpio186";
1642		function = "gpio";
1643		drive-strength = <2>;
1644		bias-disable;
1645	};
1646
1647	usb2_pwr_1p15_reg_en: usb2-pwr-1p15-reg-en-state {
1648		pins = "gpio189";
1649		function = "gpio";
1650		drive-strength = <2>;
1651		bias-disable;
1652	};
1653
1654	usb2_pwr_1p8_reg_en: usb2-pwr-1p8-reg-en-state {
1655		pins = "gpio126";
1656		function = "gpio";
1657		drive-strength = <2>;
1658		bias-disable;
1659	};
1660
1661	usb2_pwr_3p3_reg_en: usb2-pwr-3p3-reg-en-state {
1662		pins = "gpio187";
1663		function = "gpio";
1664		drive-strength = <2>;
1665		bias-disable;
1666	};
1667
1668	wcd_default: wcd-reset-n-active-state {
1669		pins = "gpio191";
1670		function = "gpio";
1671		drive-strength = <16>;
1672		bias-disable;
1673		output-low;
1674	};
1675
1676	wwan_sw_en: wwan-sw-en-state {
1677		pins = "gpio221";
1678		function = "gpio";
1679		drive-strength = <4>;
1680		bias-disable;
1681	};
1682};
1683
1684&uart21 {
1685	compatible = "qcom,geni-debug-uart";
1686	status = "okay";
1687};
1688
1689&usb_1_ss0_hsphy {
1690	vdd-supply = <&vreg_l3j_0p8>;
1691	vdda12-supply = <&vreg_l2j_1p2>;
1692
1693	phys = <&smb2360_0_eusb2_repeater>;
1694
1695	status = "okay";
1696};
1697
1698&usb_1_ss0_qmpphy {
1699	vdda-phy-supply = <&vreg_l2j_1p2>;
1700	vdda-pll-supply = <&vreg_l1j_0p8>;
1701
1702	status = "okay";
1703};
1704
1705&usb_1_ss0 {
1706	status = "okay";
1707};
1708
1709&usb_1_ss0_dwc3 {
1710	dr_mode = "host";
1711};
1712
1713&usb_1_ss0_dwc3_hs {
1714	remote-endpoint = <&pmic_glink_ss0_hs_in>;
1715};
1716
1717&usb_1_ss0_qmpphy_out {
1718	remote-endpoint = <&retimer_ss0_ss_in>;
1719};
1720
1721&usb_1_ss1_hsphy {
1722	vdd-supply = <&vreg_l3j_0p8>;
1723	vdda12-supply = <&vreg_l2j_1p2>;
1724
1725	phys = <&smb2360_1_eusb2_repeater>;
1726
1727	status = "okay";
1728};
1729
1730&usb_1_ss1_qmpphy {
1731	vdda-phy-supply = <&vreg_l2j_1p2>;
1732	vdda-pll-supply = <&vreg_l2d_0p9>;
1733
1734	status = "okay";
1735};
1736
1737&usb_1_ss1 {
1738	status = "okay";
1739};
1740
1741&usb_1_ss1_dwc3 {
1742	dr_mode = "host";
1743};
1744
1745&usb_1_ss1_dwc3_hs {
1746	remote-endpoint = <&pmic_glink_ss1_hs_in>;
1747};
1748
1749&usb_1_ss1_qmpphy_out {
1750	remote-endpoint = <&retimer_ss1_ss_in>;
1751};
1752
1753&usb_1_ss2_hsphy {
1754	vdd-supply = <&vreg_l3j_0p8>;
1755	vdda12-supply = <&vreg_l2j_1p2>;
1756
1757	phys = <&smb2360_2_eusb2_repeater>;
1758
1759	status = "okay";
1760};
1761
1762&usb_1_ss2_qmpphy {
1763	vdda-phy-supply = <&vreg_l2j_1p2>;
1764	vdda-pll-supply = <&vreg_l2d_0p9>;
1765
1766	status = "okay";
1767};
1768
1769&usb_1_ss2 {
1770	status = "okay";
1771};
1772
1773&usb_1_ss2_dwc3 {
1774	dr_mode = "host";
1775};
1776
1777&usb_1_ss2_dwc3_hs {
1778	remote-endpoint = <&pmic_glink_ss2_hs_in>;
1779};
1780
1781&usb_1_ss2_qmpphy_out {
1782	remote-endpoint = <&retimer_ss2_ss_in>;
1783};
1784
1785&usb_mp {
1786	/* Only second port is used with USB 2.0 maximum speed */
1787	status = "okay";
1788};
1789
1790&usb_mp_hsphy0 {
1791	vdd-supply = <&vreg_l2e_0p8>;
1792	vdda12-supply = <&vreg_l3e_1p2>;
1793
1794	status = "okay";
1795};
1796
1797&usb_mp_hsphy1 {
1798	vdd-supply = <&vreg_l2e_0p8>;
1799	vdda12-supply = <&vreg_l3e_1p2>;
1800
1801	phys = <&eusb6_repeater>;
1802
1803	status = "okay";
1804};
1805
1806&usb_mp_qmpphy0 {
1807	vdda-phy-supply = <&vreg_l3e_1p2>;
1808	vdda-pll-supply = <&vreg_l3c_0p8>;
1809
1810	status = "okay";
1811};
1812
1813&usb_mp_qmpphy1 {
1814	vdda-phy-supply = <&vreg_l3e_1p2>;
1815	vdda-pll-supply = <&vreg_l3c_0p8>;
1816
1817	status = "okay";
1818};
~/ Read-only file preview.