1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Google Cheza device tree source (common between revisions)
5 * Copyright 2018 Google LLC.
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
10 #include "sdm845.dtsi"
12 /* PMICs depend on spmi_bus label and so must come after SoC */
13 #include "pm8005.dtsi"
14 #include "pm8998.dtsi"
18 bluetooth0 = &bluetooth;
25 stdout-path = "serial0:115200n8";
28 backlight: backlight {
29 compatible = "pwm-backlight";
30 pwms = <&cros_ec_pwm 0>;
31 enable-gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
32 power-supply = <&ppvar_sys>;
33 pinctrl-names = "default";
34 pinctrl-0 = <&ap_edp_bklten>;
37 /* FIXED REGULATORS - parents above children */
39 /* This is the top level supply and variable voltage */
40 ppvar_sys: ppvar-sys-regulator {
41 compatible = "regulator-fixed";
42 regulator-name = "ppvar_sys";
47 /* This divides ppvar_sys by 2, so voltage is variable */
48 src_vph_pwr: src-vph-pwr-regulator {
49 compatible = "regulator-fixed";
50 regulator-name = "src_vph_pwr";
52 /* EC turns on with switchcap_on_l; always on for AP */
56 vin-supply = <&ppvar_sys>;
59 pp5000_a: pp5000-a-regulator {
60 compatible = "regulator-fixed";
61 regulator-name = "pp5000_a";
63 /* EC turns on with en_pp5000_a; always on for AP */
66 regulator-min-microvolt = <5000000>;
67 regulator-max-microvolt = <5000000>;
69 vin-supply = <&ppvar_sys>;
72 src_vreg_bob: src-vreg-bob-regulator {
73 compatible = "regulator-fixed";
74 regulator-name = "src_vreg_bob";
76 /* EC turns on with vbob_en; always on for AP */
79 regulator-min-microvolt = <3600000>;
80 regulator-max-microvolt = <3600000>;
82 vin-supply = <&ppvar_sys>;
85 pp3300_dx_edp: pp3300-dx-edp-regulator {
86 compatible = "regulator-fixed";
87 regulator-name = "pp3300_dx_edp";
89 regulator-min-microvolt = <3300000>;
90 regulator-max-microvolt = <3300000>;
92 gpio = <&tlmm 43 GPIO_ACTIVE_HIGH>;
94 pinctrl-names = "default";
95 pinctrl-0 = <&en_pp3300_dx_edp>;
99 * Apparently RPMh does not provide support for PM8998 S4 because it
100 * is always-on; model it as a fixed regulator.
102 src_pp1800_s4a: pm8998-smps4 {
103 compatible = "regulator-fixed";
104 regulator-name = "src_pp1800_s4a";
106 regulator-min-microvolt = <1800000>;
107 regulator-max-microvolt = <1800000>;
112 vin-supply = <&src_vph_pwr>;
115 /* BOARD-SPECIFIC TOP LEVEL NODES */
118 compatible = "gpio-keys";
119 pinctrl-names = "default";
120 pinctrl-0 = <&pen_eject_odl>;
123 label = "Pen Insert";
124 /* Insert = low, eject = high */
125 gpios = <&tlmm 119 GPIO_ACTIVE_LOW>;
126 linux,code = <SW_PEN_INSERTED>;
127 linux,input-type = <EV_SW>;
133 compatible = "innolux,p120zdg-bf1";
134 power-supply = <&pp3300_dx_edp>;
135 backlight = <&backlight>;
140 panel_in_edp: endpoint {
141 remote-endpoint = <&sn65dsi86_out>;
149 /delete-property/ interrupts-extended; /* reference to lmh_cluster[01] */
153 /delete-node/ power-domain-cpu0;
154 /delete-node/ power-domain-cpu1;
155 /delete-node/ power-domain-cpu2;
156 /delete-node/ power-domain-cpu3;
157 /delete-node/ power-domain-cpu4;
158 /delete-node/ power-domain-cpu5;
159 /delete-node/ power-domain-cpu6;
160 /delete-node/ power-domain-cpu7;
161 /delete-node/ power-domain-cluster;
165 /delete-node/ domain-idle-states;
169 LITTLE_CPU_SLEEP_0: cpu-sleep-0-0 {
170 compatible = "arm,idle-state";
171 idle-state-name = "little-power-down";
172 arm,psci-suspend-param = <0x40000003>;
173 entry-latency-us = <350>;
174 exit-latency-us = <461>;
175 min-residency-us = <1890>;
179 LITTLE_CPU_SLEEP_1: cpu-sleep-0-1 {
180 compatible = "arm,idle-state";
181 idle-state-name = "little-rail-power-down";
182 arm,psci-suspend-param = <0x40000004>;
183 entry-latency-us = <360>;
184 exit-latency-us = <531>;
185 min-residency-us = <3934>;
189 BIG_CPU_SLEEP_0: cpu-sleep-1-0 {
190 compatible = "arm,idle-state";
191 idle-state-name = "big-power-down";
192 arm,psci-suspend-param = <0x40000003>;
193 entry-latency-us = <264>;
194 exit-latency-us = <621>;
195 min-residency-us = <952>;
199 BIG_CPU_SLEEP_1: cpu-sleep-1-1 {
200 compatible = "arm,idle-state";
201 idle-state-name = "big-rail-power-down";
202 arm,psci-suspend-param = <0x40000004>;
203 entry-latency-us = <702>;
204 exit-latency-us = <1061>;
205 min-residency-us = <4488>;
209 CLUSTER_SLEEP_0: cluster-sleep-0 {
210 compatible = "arm,idle-state";
211 idle-state-name = "cluster-power-down";
212 arm,psci-suspend-param = <0x400000F4>;
213 entry-latency-us = <3263>;
214 exit-latency-us = <6562>;
215 min-residency-us = <9987>;
221 /delete-property/ power-domains;
222 /delete-property/ power-domain-names;
223 cpu-idle-states = <&LITTLE_CPU_SLEEP_0
229 /delete-property/ power-domains;
230 /delete-property/ power-domain-names;
231 cpu-idle-states = <&LITTLE_CPU_SLEEP_0
237 /delete-property/ power-domains;
238 /delete-property/ power-domain-names;
239 cpu-idle-states = <&LITTLE_CPU_SLEEP_0
245 /delete-property/ power-domains;
246 /delete-property/ power-domain-names;
247 cpu-idle-states = <&LITTLE_CPU_SLEEP_0
253 /delete-property/ power-domains;
254 /delete-property/ power-domain-names;
255 cpu-idle-states = <&BIG_CPU_SLEEP_0
261 /delete-property/ power-domains;
262 /delete-property/ power-domain-names;
263 cpu-idle-states = <&BIG_CPU_SLEEP_0
269 /delete-property/ power-domains;
270 /delete-property/ power-domain-names;
271 cpu-idle-states = <&BIG_CPU_SLEEP_0
277 /delete-property/ power-domains;
278 /delete-property/ power-domain-names;
279 cpu-idle-states = <&BIG_CPU_SLEEP_0
293 * Reserved memory changes
295 * Putting this all together (out of order with the rest of the file) to keep
296 * all modifications to the memory map (from sdm845.dtsi) in one place.
300 * Our mpss_region is 8MB bigger than the default one and that conflicts
301 * with venus_mem and cdsp_mem.
303 * For venus_mem we'll delete and re-create at a different address.
305 * cdsp_mem isn't used on cheza right now so we won't bother re-creating it; but
306 * that also means we need to delete cdsp_pas.
308 /delete-node/ &venus_mem;
309 /delete-node/ &cdsp_mem;
310 /delete-node/ &cdsp_pas;
311 /delete-node/ &gpu_mem;
313 /* Increase the size from 120 MB to 128 MB */
315 reg = <0 0x8e000000 0 0x8000000>;
318 /* Increase the size from 2MB to 8MB */
320 reg = <0 0x88f00000 0 0x800000>;
325 venus_mem: memory@96000000 {
326 reg = <0 0x96000000 0 0x500000>;
334 pinctrl-names = "default";
335 pinctrl-0 = <&qspi_clk &qspi_cs0 &qspi_data01>;
338 compatible = "jedec,spi-nor";
342 * In theory chip supports up to 104 MHz and controller up
343 * to 80 MHz, but above 25 MHz wasn't reliable so we'll use
344 * that for now. b:117440651
346 spi-max-frequency = <25000000>;
347 spi-tx-bus-width = <2>;
348 spi-rx-bus-width = <2>;
354 /delete-property/ power-domains;
357 compatible = "qcom,pm8998-rpmh-regulators";
360 vdd-s1-supply = <&src_vph_pwr>;
361 vdd-s2-supply = <&src_vph_pwr>;
362 vdd-s3-supply = <&src_vph_pwr>;
363 vdd-s4-supply = <&src_vph_pwr>;
364 vdd-s5-supply = <&src_vph_pwr>;
365 vdd-s6-supply = <&src_vph_pwr>;
366 vdd-s7-supply = <&src_vph_pwr>;
367 vdd-s8-supply = <&src_vph_pwr>;
368 vdd-s9-supply = <&src_vph_pwr>;
369 vdd-s10-supply = <&src_vph_pwr>;
370 vdd-s11-supply = <&src_vph_pwr>;
371 vdd-s12-supply = <&src_vph_pwr>;
372 vdd-s13-supply = <&src_vph_pwr>;
373 vdd-l1-l27-supply = <&src_pp1025_s7a>;
374 vdd-l2-l8-l17-supply = <&src_pp1350_s3a>;
375 vdd-l3-l11-supply = <&src_pp1025_s7a>;
376 vdd-l4-l5-supply = <&src_pp1025_s7a>;
377 vdd-l6-supply = <&src_vph_pwr>;
378 vdd-l7-l12-l14-l15-supply = <&src_pp2040_s5a>;
379 vdd-l9-supply = <&src_pp2040_s5a>;
380 vdd-l10-l23-l25-supply = <&src_vreg_bob>;
381 vdd-l13-l19-l21-supply = <&src_vreg_bob>;
382 vdd-l16-l28-supply = <&src_vreg_bob>;
383 vdd-l18-l22-supply = <&src_vreg_bob>;
384 vdd-l20-l24-supply = <&src_vreg_bob>;
385 vdd-l26-supply = <&src_pp1350_s3a>;
386 vin-lvs-1-2-supply = <&src_pp1800_s4a>;
388 src_pp1125_s2a: smps2 {
389 regulator-min-microvolt = <1100000>;
390 regulator-max-microvolt = <1100000>;
393 src_pp1350_s3a: smps3 {
394 regulator-min-microvolt = <1352000>;
395 regulator-max-microvolt = <1352000>;
398 src_pp2040_s5a: smps5 {
399 regulator-min-microvolt = <1904000>;
400 regulator-max-microvolt = <2040000>;
403 src_pp1025_s7a: smps7 {
404 regulator-min-microvolt = <900000>;
405 regulator-max-microvolt = <1028000>;
426 src_pp875_l1a: ldo1 {
427 regulator-min-microvolt = <880000>;
428 regulator-max-microvolt = <880000>;
429 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
433 src_pp1200_l2a: ldo2 {
434 regulator-min-microvolt = <1200000>;
435 regulator-max-microvolt = <1200000>;
436 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
442 pp1000_l3a_sdr845: ldo3 {
443 regulator-min-microvolt = <1000000>;
444 regulator-max-microvolt = <1000000>;
445 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
451 src_pp800_l5a: ldo5 {
452 regulator-min-microvolt = <800000>;
453 regulator-max-microvolt = <800000>;
454 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
458 src_pp1800_l6a: ldo6 {
459 regulator-min-microvolt = <1856000>;
460 regulator-max-microvolt = <1856000>;
461 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
464 pp1800_l7a_wcn3990: ldo7 {
465 regulator-min-microvolt = <1800000>;
466 regulator-max-microvolt = <1800000>;
467 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
470 src_pp1200_l8a: ldo8 {
471 regulator-min-microvolt = <1200000>;
472 regulator-max-microvolt = <1248000>;
473 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
477 src_pp1800_l9a: ldo9 {
478 regulator-min-microvolt = <1800000>;
479 regulator-max-microvolt = <1800000>;
480 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
483 src_pp1800_l10a: ldo10 {
484 regulator-min-microvolt = <1800000>;
485 regulator-max-microvolt = <1800000>;
486 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
489 pp1000_l11a_sdr845: ldo11 {
490 regulator-min-microvolt = <1000000>;
491 regulator-max-microvolt = <1048000>;
492 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
502 src_pp1800_l12a: ldo12 {
503 regulator-min-microvolt = <1800000>;
504 regulator-max-microvolt = <1800000>;
505 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
509 src_pp2950_l13a: ldo13 {
510 regulator-min-microvolt = <1800000>;
511 regulator-max-microvolt = <2960000>;
512 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
515 src_pp1800_l14a: ldo14 {
516 regulator-min-microvolt = <1800000>;
517 regulator-max-microvolt = <1800000>;
518 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
521 src_pp1800_l15a: ldo15 {
522 regulator-min-microvolt = <1800000>;
523 regulator-max-microvolt = <1800000>;
524 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
528 regulator-min-microvolt = <2704000>;
529 regulator-max-microvolt = <2704000>;
530 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
533 src_pp1300_l17a: ldo17 {
534 regulator-min-microvolt = <1304000>;
535 regulator-max-microvolt = <1304000>;
536 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
540 regulator-min-microvolt = <2704000>;
541 regulator-max-microvolt = <2960000>;
542 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
546 * NOTE: this rail should have been called
547 * src_pp3300_l19a in the schematic
549 src_pp3000_l19a: ldo19 {
550 regulator-min-microvolt = <3304000>;
551 regulator-max-microvolt = <3304000>;
553 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
556 src_pp2950_l20a: ldo20 {
557 regulator-min-microvolt = <2704000>;
558 regulator-max-microvolt = <2960000>;
559 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
562 src_pp2950_l21a: ldo21 {
563 regulator-min-microvolt = <2704000>;
564 regulator-max-microvolt = <2960000>;
565 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
569 src_pp3300_l22a: ldo22 {
570 regulator-min-microvolt = <3304000>;
571 regulator-max-microvolt = <3304000>;
572 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
574 * HACK: Should add a usb hub node and driver
575 * to turn this on and off at suspend/resume time
581 pp3300_l23a_ch1_wcn3990: ldo23 {
582 regulator-min-microvolt = <3000000>;
583 regulator-max-microvolt = <3312000>;
584 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
588 src_pp3075_l24a: ldo24 {
589 regulator-min-microvolt = <3088000>;
590 regulator-max-microvolt = <3088000>;
591 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
594 pp3300_l25a_ch0_wcn3990: ldo25 {
595 regulator-min-microvolt = <3304000>;
596 regulator-max-microvolt = <3304000>;
597 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
614 src_pp1200_l26a: ldo26 {
615 regulator-min-microvolt = <1200000>;
616 regulator-max-microvolt = <1200000>;
617 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
621 src_pp3300_l28a: ldo28 {
622 regulator-min-microvolt = <3304000>;
623 regulator-max-microvolt = <3304000>;
624 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
627 src_pp1800_lvs1: lvs1 {
628 regulator-min-microvolt = <1800000>;
629 regulator-max-microvolt = <1800000>;
632 src_pp1800_lvs2: lvs2 {
633 regulator-min-microvolt = <1800000>;
634 regulator-max-microvolt = <1800000>;
639 compatible = "qcom,pm8005-rpmh-regulators";
642 vdd-s1-supply = <&src_vph_pwr>;
643 vdd-s2-supply = <&src_vph_pwr>;
644 vdd-s3-supply = <&src_vph_pwr>;
645 vdd-s4-supply = <&src_vph_pwr>;
647 src_pp600_s3c: smps3 {
648 regulator-min-microvolt = <600000>;
649 regulator-max-microvolt = <600000>;
656 vdda-supply = <&vdda_mipi_dsi0_1p2>;
661 remote-endpoint = <&sn65dsi86_in>;
662 data-lanes = <0 1 2 3>;
670 vdds-supply = <&vdda_mipi_dsi0_pll>;
673 edp_brij_i2c: &i2c3 {
675 clock-frequency = <400000>;
677 sn65dsi86_bridge: bridge@2d {
678 compatible = "ti,sn65dsi86";
680 pinctrl-names = "default";
681 pinctrl-0 = <&edp_brij_en &edp_brij_irq>;
683 interrupt-parent = <&tlmm>;
684 interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
686 enable-gpios = <&tlmm 102 GPIO_ACTIVE_HIGH>;
688 vpll-supply = <&src_pp1800_s4a>;
689 vccio-supply = <&src_pp1800_s4a>;
690 vcca-supply = <&src_pp1200_l2a>;
691 vcc-supply = <&src_pp1200_l2a>;
693 clocks = <&rpmhcc RPMH_LN_BB_CLK2>;
694 clock-names = "refclk";
699 #address-cells = <1>;
704 sn65dsi86_in: endpoint {
705 remote-endpoint = <&dsi0_out>;
711 sn65dsi86_out: endpoint {
712 remote-endpoint = <&panel_in_edp>;
721 clock-frequency = <400000>;
724 compatible = "wacom,w9013", "hid-over-i2c";
726 pinctrl-names = "default";
727 pinctrl-0 = <&pen_irq_l>, <&pen_pdct_l>, <&pen_rst_l>;
729 vdd-supply = <&pp3300_dx_pen>;
730 vddl-supply = <&pp1800_dx_pen>;
731 post-power-on-delay-ms = <100>;
733 interrupt-parent = <&tlmm>;
734 interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
736 hid-descr-addr = <0x1>;
742 clock-frequency = <400000>;
747 clock-frequency = <400000>;
750 compatible = "elan,ekth3500";
752 pinctrl-names = "default";
753 pinctrl-0 = <&ts_int_l &ts_reset_l>;
755 interrupt-parent = <&tlmm>;
756 interrupts = <125 IRQ_TYPE_LEVEL_LOW>;
758 vcc33-supply = <&src_pp3300_l28a>;
760 reset-gpios = <&tlmm 118 GPIO_ACTIVE_LOW>;
786 * Cheza fw does not properly program the GPU aperture to allow the
787 * GPU to update the SMMU pagetables for context switches. Work
788 * around this by dropping the "qcom,adreno-smmu" compat string.
791 compatible = "qcom,sdm845-smmu-v2", "qcom,smmu-v2";
797 iommus = <&apps_smmu 0x781 0x0>,
798 <&apps_smmu 0x724 0x3>;
807 iommus = <&apps_smmu 0x0 0x3>;
812 iommus = <&apps_smmu 0x6c0 0x3>;
818 pinctrl-names = "default";
819 pinctrl-0 = <&sdc2_clk &sdc2_cmd &sdc2_data &sd_cd_odl>;
821 vmmc-supply = <&src_pp2950_l21a>;
822 vqmmc-supply = <&vddpx_2>;
824 cd-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
835 compatible = "google,cr50";
837 pinctrl-names = "default";
838 pinctrl-0 = <&h1_ap_int_odl>;
839 spi-max-frequency = <800000>;
840 interrupt-parent = <&tlmm>;
841 interrupts = <129 IRQ_TYPE_EDGE_RISING>;
849 compatible = "google,cros-ec-spi";
851 interrupt-parent = <&tlmm>;
852 interrupts = <122 IRQ_TYPE_LEVEL_LOW>;
853 pinctrl-names = "default";
854 pinctrl-0 = <&ec_ap_int_l>;
855 spi-max-frequency = <3000000>;
858 compatible = "google,cros-ec-pwm";
862 i2c_tunnel: i2c-tunnel {
863 compatible = "google,cros-ec-i2c-tunnel";
864 google,remote-bus = <0>;
865 #address-cells = <1>;
871 #include <arm/cros-ec-keyboard.dtsi>
872 #include <arm/cros-ec-sbs.dtsi>
877 bluetooth: wcn3990-bt {
878 compatible = "qcom,wcn3990-bt";
879 vddio-supply = <&src_pp1800_s4a>;
880 vddxo-supply = <&pp1800_l7a_wcn3990>;
881 vddrf-supply = <&src_pp1300_l17a>;
882 vddch0-supply = <&pp3300_l25a_ch0_wcn3990>;
883 max-speed = <3200000>;
894 reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>;
896 vcc-supply = <&src_pp2950_l20a>;
897 vcc-max-microamp = <600000>;
903 vdda-phy-supply = <&vdda_ufs1_core>;
904 vdda-pll-supply = <&vdda_ufs1_1p2>;
910 /* We'll use this as USB 2.0 only */
911 qcom,select-utmi-as-pipe-clk;
916 * The hardware design intends this port to be hooked up in peripheral
917 * mode, so we'll hardcode it here. Some details:
918 * - SDM845 expects only a single Type C connector so it has only one
919 * native Type C port but cheza has two Type C connectors.
920 * - The only source of DP is the single native Type C port.
921 * - On cheza we want to be able to hook DP up to _either_ of the
922 * two Type C connectors and want to be able to achieve 4 lanes of DP.
923 * - When you configure a Type C port for 4 lanes of DP you lose USB3.
924 * - In order to make everything work, the native Type C port is always
925 * configured as 4-lanes DP so it's always available.
926 * - The extra USB3 port on SDM845 goes to a USB 3 hub which is then
927 * sent to the two Type C connectors.
928 * - The extra USB2 lines from the native Type C port are always
929 * setup as "peripheral" so that we can mux them over to one connector
930 * or the other if someone needs the connector configured as a gadget
931 * (but they only get USB2 speeds).
933 * All the hardware muxes would allow us to hook things up in different
934 * ways to some potential benefit for static configurations (you could
935 * achieve extra USB2 bandwidth by using two different ports for the
936 * two connectors or possibly even get USB3 peripheral mode), but in
937 * each case you end up forcing to disconnect/reconnect an in-use
938 * USB session in some cases depending on what you hotplug into the
939 * other connector. Thus hardcoding this as peripheral makes sense.
941 dr_mode = "peripheral";
944 * We always need the high speed pins as 4-lanes DP in case someone
945 * hotplugs a DP peripheral. Thus limit this port to a max of high
948 maximum-speed = "high-speed";
951 * We don't need the usb3-phy since we run in highspeed mode always, so
952 * re-define these properties removing the superspeed USB PHY reference.
954 phys = <&usb_1_hsphy>;
955 phy-names = "usb2-phy";
961 vdd-supply = <&vdda_usb1_ss_core>;
962 vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
963 vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
965 qcom,imp-res-offset-value = <8>;
966 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>;
967 qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>;
968 qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
976 /* We have this hooked up to a hub and we always use in host mode */
983 vdd-supply = <&vdda_usb2_ss_core>;
984 vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
985 vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
987 qcom,imp-res-offset-value = <8>;
988 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_22_8_MA>;
994 vdda-phy-supply = <&vdda_usb2_ss_1p2>;
995 vdda-pll-supply = <&vdda_usb2_ss_core>;
1001 vdd-0.8-cx-mx-supply = <&src_pp800_l5a >;
1002 vdd-1.8-xo-supply = <&pp1800_l7a_wcn3990>;
1003 vdd-1.3-rfa-supply = <&src_pp1300_l17a>;
1004 vdd-3.3-ch0-supply = <&pp3300_l25a_ch0_wcn3990>;
1007 /* PINCTRL - additions to nodes defined in sdm845.dtsi */
1025 pins = "gpio91", "gpio92";
1027 /* High-Z when no transfers; nice to park the lines */
1034 pins = "gpio41", "gpio42";
1035 drive-strength = <2>;
1037 /* Has external pullup */
1042 &qup_i2c11_default {
1044 pins = "gpio31", "gpio32";
1045 drive-strength = <2>;
1047 /* Has external pullup */
1052 &qup_i2c12_default {
1054 pins = "gpio49", "gpio50";
1055 drive-strength = <2>;
1057 /* Has external pullup */
1062 &qup_i2c14_default {
1064 pins = "gpio33", "gpio34";
1065 drive-strength = <2>;
1067 /* Has external pullup */
1074 pins = "gpio0", "gpio1", "gpio2", "gpio3";
1075 drive-strength = <2>;
1082 pins = "gpio85", "gpio86", "gpio87", "gpio88";
1083 drive-strength = <2>;
1088 &qup_spi10_default {
1090 pins = "gpio53", "gpio54", "gpio55", "gpio56";
1091 drive-strength = <2>;
1096 &qup_uart6_default {
1097 /* Change pinmux to all 4 pins since CTS and RTS are connected */
1099 pins = "gpio45", "gpio46",
1105 * Configure a pull-down on 45 (CTS) to match the pull of
1106 * the Bluetooth module.
1113 /* We'll drive 46 (RTS) and 47 (TX), so no pull */
1114 pins = "gpio46", "gpio47";
1115 drive-strength = <2>;
1121 * Configure a pull-up on 48 (RX). This is needed to avoid
1122 * garbage data when the TX pin of the Bluetooth module is
1123 * in tri-state (module powered off or not driving the
1131 &qup_uart9_default {
1134 drive-strength = <2>;
1140 drive-strength = <2>;
1145 /* PINCTRL - board-specific pinctrl */
1147 gpio-line-names = "",
1155 reg = <ADC5_AMUX_THM1_100K_PU>;
1160 reg = <ADC5_AMUX_THM2_100K_PU>;
1161 label = "quiet_temp";
1165 reg = <ADC5_AMUX_THM3_100K_PU>;
1166 label = "lte_temp_1";
1170 reg = <ADC5_AMUX_THM4_100K_PU>;
1171 label = "lte_temp_2";
1175 reg = <ADC5_AMUX_THM5_100K_PU>;
1176 label = "charger_temp";
1181 gpio-line-names = "",
1211 * pinctrl settings for pins that have no real owners.
1213 pinctrl-names = "default", "sleep";
1214 pinctrl-0 = <&bios_flash_wp_r_l>,
1215 <&ap_suspend_l_deassert>;
1217 pinctrl-1 = <&bios_flash_wp_r_l>,
1218 <&ap_suspend_l_assert>;
1221 * Hogs prevent usermode from changing the value. A GPIO can be both
1222 * here and in the pinctrl section.
1226 gpios = <126 GPIO_ACTIVE_LOW>;
1230 ap_edp_bklten: ap-edp-bklten {
1238 drive-strength = <2>;
1243 bios_flash_wp_r_l: bios-flash-wp-r-l {
1256 ec_ap_int_l: ec-ap-int-l {
1269 edp_brij_en: edp-brij-en {
1277 drive-strength = <2>;
1282 edp_brij_irq: edp-brij-irq {
1290 drive-strength = <2>;
1295 en_pp3300_dx_edp: en-pp3300-dx-edp {
1303 drive-strength = <2>;
1308 h1_ap_int_odl: h1-ap-int-odl {
1321 pen_eject_odl: pen-eject-odl {
1329 pen_irq_l: pen-irq-l {
1338 /* Has external pullup */
1343 pen_pdct_l: pen-pdct-l {
1352 /* Has external pullup */
1357 pen_rst_l: pen-rst-l {
1366 drive-strength = <2>;
1369 * The pen driver doesn't currently support
1370 * driving this reset line. By specifying
1371 * output-high here we're relying on the fact
1372 * that this pin has a default pulldown at boot
1373 * (which makes sure the pen was in reset if it
1374 * was powered) and then we set it high here to
1375 * take it out of reset. Better would be if the
1376 * pen driver could control this and we could
1377 * remove "output-high" here.
1383 sdc2_clk: sdc2-clk {
1389 * It seems that mmc_test reports errors if drive
1390 * strength is not 16.
1392 drive-strength = <16>;
1396 sdc2_cmd: sdc2-cmd {
1400 drive-strength = <16>;
1404 sdc2_data: sdc2-data {
1408 drive-strength = <16>;
1412 sd_cd_odl: sd-cd-odl {
1424 ts_int_l: ts-int-l {
1436 ts_reset_l: ts-reset-l {
1445 drive-strength = <2>;
1449 ap_suspend_l_assert: ap_suspend_l_assert {
1454 drive-strength = <2>;
1459 ap_suspend_l_deassert: ap_suspend_l_deassert {
1464 drive-strength = <2>;
1474 iommus = <&apps_smmu 0x10b2 0x0>;