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>;
139 panel_in_edp: endpoint {
140 remote-endpoint = <&sn65dsi86_out>;
147 /delete-property/ interrupts-extended; /* reference to lmh_cluster[01] */
151 /delete-node/ power-domain-cpu0;
152 /delete-node/ power-domain-cpu1;
153 /delete-node/ power-domain-cpu2;
154 /delete-node/ power-domain-cpu3;
155 /delete-node/ power-domain-cpu4;
156 /delete-node/ power-domain-cpu5;
157 /delete-node/ power-domain-cpu6;
158 /delete-node/ power-domain-cpu7;
159 /delete-node/ power-domain-cluster;
163 /delete-node/ domain-idle-states;
167 LITTLE_CPU_SLEEP_0: cpu-sleep-0-0 {
168 compatible = "arm,idle-state";
169 idle-state-name = "little-power-down";
170 arm,psci-suspend-param = <0x40000003>;
171 entry-latency-us = <350>;
172 exit-latency-us = <461>;
173 min-residency-us = <1890>;
177 LITTLE_CPU_SLEEP_1: cpu-sleep-0-1 {
178 compatible = "arm,idle-state";
179 idle-state-name = "little-rail-power-down";
180 arm,psci-suspend-param = <0x40000004>;
181 entry-latency-us = <360>;
182 exit-latency-us = <531>;
183 min-residency-us = <3934>;
187 BIG_CPU_SLEEP_0: cpu-sleep-1-0 {
188 compatible = "arm,idle-state";
189 idle-state-name = "big-power-down";
190 arm,psci-suspend-param = <0x40000003>;
191 entry-latency-us = <264>;
192 exit-latency-us = <621>;
193 min-residency-us = <952>;
197 BIG_CPU_SLEEP_1: cpu-sleep-1-1 {
198 compatible = "arm,idle-state";
199 idle-state-name = "big-rail-power-down";
200 arm,psci-suspend-param = <0x40000004>;
201 entry-latency-us = <702>;
202 exit-latency-us = <1061>;
203 min-residency-us = <4488>;
207 CLUSTER_SLEEP_0: cluster-sleep-0 {
208 compatible = "arm,idle-state";
209 idle-state-name = "cluster-power-down";
210 arm,psci-suspend-param = <0x400000F4>;
211 entry-latency-us = <3263>;
212 exit-latency-us = <6562>;
213 min-residency-us = <9987>;
219 /delete-property/ power-domains;
220 /delete-property/ power-domain-names;
221 cpu-idle-states = <&LITTLE_CPU_SLEEP_0
227 /delete-property/ power-domains;
228 /delete-property/ power-domain-names;
229 cpu-idle-states = <&LITTLE_CPU_SLEEP_0
235 /delete-property/ power-domains;
236 /delete-property/ power-domain-names;
237 cpu-idle-states = <&LITTLE_CPU_SLEEP_0
243 /delete-property/ power-domains;
244 /delete-property/ power-domain-names;
245 cpu-idle-states = <&LITTLE_CPU_SLEEP_0
251 /delete-property/ power-domains;
252 /delete-property/ power-domain-names;
253 cpu-idle-states = <&BIG_CPU_SLEEP_0
259 /delete-property/ power-domains;
260 /delete-property/ power-domain-names;
261 cpu-idle-states = <&BIG_CPU_SLEEP_0
267 /delete-property/ power-domains;
268 /delete-property/ power-domain-names;
269 cpu-idle-states = <&BIG_CPU_SLEEP_0
275 /delete-property/ power-domains;
276 /delete-property/ power-domain-names;
277 cpu-idle-states = <&BIG_CPU_SLEEP_0
291 * Reserved memory changes
293 * Putting this all together (out of order with the rest of the file) to keep
294 * all modifications to the memory map (from sdm845.dtsi) in one place.
298 * Our mpss_region is 8MB bigger than the default one and that conflicts
299 * with venus_mem and cdsp_mem.
301 * For venus_mem we'll delete and re-create at a different address.
303 * cdsp_mem isn't used on cheza right now so we won't bother re-creating it; but
304 * that also means we need to delete cdsp_pas.
306 /delete-node/ &venus_mem;
307 /delete-node/ &cdsp_mem;
308 /delete-node/ &cdsp_pas;
309 /delete-node/ &gpu_mem;
311 /* Increase the size from 120 MB to 128 MB */
313 reg = <0 0x8e000000 0 0x8000000>;
316 /* Increase the size from 2MB to 8MB */
318 reg = <0 0x88f00000 0 0x800000>;
323 venus_mem: memory@96000000 {
324 reg = <0 0x96000000 0 0x500000>;
332 pinctrl-names = "default", "sleep";
333 pinctrl-0 = <&qspi_clk>, <&qspi_cs0>, <&qspi_data0>, <&qspi_data1>;
334 pinctrl-1 = <&qspi_sleep>;
337 compatible = "jedec,spi-nor";
341 * In theory chip supports up to 104 MHz and controller up
342 * to 80 MHz, but above 25 MHz wasn't reliable so we'll use
343 * that for now. b:117440651
345 spi-max-frequency = <25000000>;
346 spi-tx-bus-width = <2>;
347 spi-rx-bus-width = <2>;
353 /delete-property/ power-domains;
356 compatible = "qcom,pm8998-rpmh-regulators";
359 vdd-s1-supply = <&src_vph_pwr>;
360 vdd-s2-supply = <&src_vph_pwr>;
361 vdd-s3-supply = <&src_vph_pwr>;
362 vdd-s4-supply = <&src_vph_pwr>;
363 vdd-s5-supply = <&src_vph_pwr>;
364 vdd-s6-supply = <&src_vph_pwr>;
365 vdd-s7-supply = <&src_vph_pwr>;
366 vdd-s8-supply = <&src_vph_pwr>;
367 vdd-s9-supply = <&src_vph_pwr>;
368 vdd-s10-supply = <&src_vph_pwr>;
369 vdd-s11-supply = <&src_vph_pwr>;
370 vdd-s12-supply = <&src_vph_pwr>;
371 vdd-s13-supply = <&src_vph_pwr>;
372 vdd-l1-l27-supply = <&src_pp1025_s7a>;
373 vdd-l2-l8-l17-supply = <&src_pp1350_s3a>;
374 vdd-l3-l11-supply = <&src_pp1025_s7a>;
375 vdd-l4-l5-supply = <&src_pp1025_s7a>;
376 vdd-l6-supply = <&src_vph_pwr>;
377 vdd-l7-l12-l14-l15-supply = <&src_pp2040_s5a>;
378 vdd-l9-supply = <&src_pp2040_s5a>;
379 vdd-l10-l23-l25-supply = <&src_vreg_bob>;
380 vdd-l13-l19-l21-supply = <&src_vreg_bob>;
381 vdd-l16-l28-supply = <&src_vreg_bob>;
382 vdd-l18-l22-supply = <&src_vreg_bob>;
383 vdd-l20-l24-supply = <&src_vreg_bob>;
384 vdd-l26-supply = <&src_pp1350_s3a>;
385 vin-lvs-1-2-supply = <&src_pp1800_s4a>;
387 src_pp1125_s2a: smps2 {
388 regulator-min-microvolt = <1100000>;
389 regulator-max-microvolt = <1100000>;
392 src_pp1350_s3a: smps3 {
393 regulator-min-microvolt = <1352000>;
394 regulator-max-microvolt = <1352000>;
397 src_pp2040_s5a: smps5 {
398 regulator-min-microvolt = <1904000>;
399 regulator-max-microvolt = <2040000>;
402 src_pp1025_s7a: smps7 {
403 regulator-min-microvolt = <900000>;
404 regulator-max-microvolt = <1028000>;
425 src_pp875_l1a: ldo1 {
426 regulator-min-microvolt = <880000>;
427 regulator-max-microvolt = <880000>;
428 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
432 src_pp1200_l2a: ldo2 {
433 regulator-min-microvolt = <1200000>;
434 regulator-max-microvolt = <1200000>;
435 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
441 pp1000_l3a_sdr845: ldo3 {
442 regulator-min-microvolt = <1000000>;
443 regulator-max-microvolt = <1000000>;
444 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
450 src_pp800_l5a: ldo5 {
451 regulator-min-microvolt = <800000>;
452 regulator-max-microvolt = <800000>;
453 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
457 src_pp1800_l6a: ldo6 {
458 regulator-min-microvolt = <1856000>;
459 regulator-max-microvolt = <1856000>;
460 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
463 pp1800_l7a_wcn3990: ldo7 {
464 regulator-min-microvolt = <1800000>;
465 regulator-max-microvolt = <1800000>;
466 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
469 src_pp1200_l8a: ldo8 {
470 regulator-min-microvolt = <1200000>;
471 regulator-max-microvolt = <1248000>;
472 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
476 src_pp1800_l9a: ldo9 {
477 regulator-min-microvolt = <1800000>;
478 regulator-max-microvolt = <1800000>;
479 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
482 src_pp1800_l10a: ldo10 {
483 regulator-min-microvolt = <1800000>;
484 regulator-max-microvolt = <1800000>;
485 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
488 pp1000_l11a_sdr845: ldo11 {
489 regulator-min-microvolt = <1000000>;
490 regulator-max-microvolt = <1048000>;
491 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
501 src_pp1800_l12a: ldo12 {
502 regulator-min-microvolt = <1800000>;
503 regulator-max-microvolt = <1800000>;
504 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
508 src_pp2950_l13a: ldo13 {
509 regulator-min-microvolt = <1800000>;
510 regulator-max-microvolt = <2960000>;
511 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
514 src_pp1800_l14a: ldo14 {
515 regulator-min-microvolt = <1800000>;
516 regulator-max-microvolt = <1800000>;
517 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
520 src_pp1800_l15a: ldo15 {
521 regulator-min-microvolt = <1800000>;
522 regulator-max-microvolt = <1800000>;
523 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
527 regulator-min-microvolt = <2704000>;
528 regulator-max-microvolt = <2704000>;
529 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
532 src_pp1300_l17a: ldo17 {
533 regulator-min-microvolt = <1304000>;
534 regulator-max-microvolt = <1304000>;
535 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
539 regulator-min-microvolt = <2704000>;
540 regulator-max-microvolt = <2960000>;
541 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
545 * NOTE: this rail should have been called
546 * src_pp3300_l19a in the schematic
548 src_pp3000_l19a: ldo19 {
549 regulator-min-microvolt = <3304000>;
550 regulator-max-microvolt = <3304000>;
552 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
555 src_pp2950_l20a: ldo20 {
556 regulator-min-microvolt = <2704000>;
557 regulator-max-microvolt = <2960000>;
558 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
561 src_pp2950_l21a: ldo21 {
562 regulator-min-microvolt = <2704000>;
563 regulator-max-microvolt = <2960000>;
564 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
568 src_pp3300_l22a: ldo22 {
569 regulator-min-microvolt = <3304000>;
570 regulator-max-microvolt = <3304000>;
571 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
573 * HACK: Should add a usb hub node and driver
574 * to turn this on and off at suspend/resume time
580 pp3300_l23a_ch1_wcn3990: ldo23 {
581 regulator-min-microvolt = <3000000>;
582 regulator-max-microvolt = <3312000>;
583 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
587 src_pp3075_l24a: ldo24 {
588 regulator-min-microvolt = <3088000>;
589 regulator-max-microvolt = <3088000>;
590 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
593 pp3300_l25a_ch0_wcn3990: ldo25 {
594 regulator-min-microvolt = <3304000>;
595 regulator-max-microvolt = <3304000>;
596 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
613 src_pp1200_l26a: ldo26 {
614 regulator-min-microvolt = <1200000>;
615 regulator-max-microvolt = <1200000>;
616 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
620 src_pp3300_l28a: ldo28 {
621 regulator-min-microvolt = <3304000>;
622 regulator-max-microvolt = <3304000>;
623 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
626 src_pp1800_lvs1: lvs1 {
627 regulator-min-microvolt = <1800000>;
628 regulator-max-microvolt = <1800000>;
631 src_pp1800_lvs2: lvs2 {
632 regulator-min-microvolt = <1800000>;
633 regulator-max-microvolt = <1800000>;
638 compatible = "qcom,pm8005-rpmh-regulators";
641 vdd-s1-supply = <&src_vph_pwr>;
642 vdd-s2-supply = <&src_vph_pwr>;
643 vdd-s3-supply = <&src_vph_pwr>;
644 vdd-s4-supply = <&src_vph_pwr>;
646 src_pp600_s3c: smps3 {
647 regulator-min-microvolt = <600000>;
648 regulator-max-microvolt = <600000>;
653 edp_brij_i2c: &i2c3 {
655 clock-frequency = <400000>;
657 sn65dsi86_bridge: bridge@2d {
658 compatible = "ti,sn65dsi86";
660 pinctrl-names = "default";
661 pinctrl-0 = <&edp_brij_en &edp_brij_irq>;
663 interrupt-parent = <&tlmm>;
664 interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
666 enable-gpios = <&tlmm 102 GPIO_ACTIVE_HIGH>;
668 vpll-supply = <&src_pp1800_s4a>;
669 vccio-supply = <&src_pp1800_s4a>;
670 vcca-supply = <&src_pp1200_l2a>;
671 vcc-supply = <&src_pp1200_l2a>;
673 clocks = <&rpmhcc RPMH_LN_BB_CLK2>;
674 clock-names = "refclk";
679 #address-cells = <1>;
684 sn65dsi86_in: endpoint {
685 remote-endpoint = <&mdss_dsi0_out>;
691 sn65dsi86_out: endpoint {
692 remote-endpoint = <&panel_in_edp>;
701 clock-frequency = <400000>;
704 compatible = "wacom,w9013", "hid-over-i2c";
706 pinctrl-names = "default";
707 pinctrl-0 = <&pen_irq_l>, <&pen_pdct_l>, <&pen_rst_l>;
709 vdd-supply = <&pp3300_dx_pen>;
710 vddl-supply = <&pp1800_dx_pen>;
711 post-power-on-delay-ms = <100>;
713 interrupt-parent = <&tlmm>;
714 interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
716 hid-descr-addr = <0x1>;
722 clock-frequency = <400000>;
727 clock-frequency = <400000>;
730 compatible = "elan,ekth3500";
732 pinctrl-names = "default";
733 pinctrl-0 = <&ts_int_l &ts_reset_l>;
735 interrupt-parent = <&tlmm>;
736 interrupts = <125 IRQ_TYPE_LEVEL_LOW>;
738 vcc33-supply = <&src_pp3300_l28a>;
740 reset-gpios = <&tlmm 118 GPIO_ACTIVE_LOW>;
753 qcom,gsi-loader = "modem";
767 vdda-supply = <&vdda_mipi_dsi0_1p2>;
772 remote-endpoint = <&sn65dsi86_in>;
773 data-lanes = <0 1 2 3>;
781 vdds-supply = <&vdda_mipi_dsi0_pll>;
785 * Cheza fw does not properly program the GPU aperture to allow the
786 * GPU to update the SMMU pagetables for context switches. Work
787 * around this by dropping the "qcom,adreno-smmu" compat string.
790 compatible = "qcom,sdm845-smmu-v2", "qcom,smmu-v2";
796 iommus = <&apps_smmu 0x781 0x0>,
797 <&apps_smmu 0x724 0x3>;
806 iommus = <&apps_smmu 0x0 0x3>;
811 iommus = <&apps_smmu 0x6c0 0x3>;
817 pinctrl-names = "default";
818 pinctrl-0 = <&sdc2_clk &sdc2_cmd &sdc2_data &sd_cd_odl>;
820 vmmc-supply = <&src_pp2950_l21a>;
821 vqmmc-supply = <&vddpx_2>;
823 cd-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
834 compatible = "google,cr50";
836 pinctrl-names = "default";
837 pinctrl-0 = <&h1_ap_int_odl>;
838 spi-max-frequency = <800000>;
839 interrupt-parent = <&tlmm>;
840 interrupts = <129 IRQ_TYPE_EDGE_RISING>;
848 compatible = "google,cros-ec-spi";
850 interrupt-parent = <&tlmm>;
851 interrupts = <122 IRQ_TYPE_LEVEL_LOW>;
852 pinctrl-names = "default";
853 pinctrl-0 = <&ec_ap_int_l>;
854 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 pinctrl-0 = <&qup_uart6_4pin>;
879 bluetooth: bluetooth {
880 compatible = "qcom,wcn3990-bt";
881 vddio-supply = <&src_pp1800_s4a>;
882 vddxo-supply = <&pp1800_l7a_wcn3990>;
883 vddrf-supply = <&src_pp1300_l17a>;
884 vddch0-supply = <&pp3300_l25a_ch0_wcn3990>;
885 max-speed = <3200000>;
896 reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>;
898 vcc-supply = <&src_pp2950_l20a>;
899 vcc-max-microamp = <600000>;
905 vdda-phy-supply = <&vdda_ufs1_core>;
906 vdda-pll-supply = <&vdda_ufs1_1p2>;
912 /* We'll use this as USB 2.0 only */
913 qcom,select-utmi-as-pipe-clk;
918 * The hardware design intends this port to be hooked up in peripheral
919 * mode, so we'll hardcode it here. Some details:
920 * - SDM845 expects only a single Type C connector so it has only one
921 * native Type C port but cheza has two Type C connectors.
922 * - The only source of DP is the single native Type C port.
923 * - On cheza we want to be able to hook DP up to _either_ of the
924 * two Type C connectors and want to be able to achieve 4 lanes of DP.
925 * - When you configure a Type C port for 4 lanes of DP you lose USB3.
926 * - In order to make everything work, the native Type C port is always
927 * configured as 4-lanes DP so it's always available.
928 * - The extra USB3 port on SDM845 goes to a USB 3 hub which is then
929 * sent to the two Type C connectors.
930 * - The extra USB2 lines from the native Type C port are always
931 * setup as "peripheral" so that we can mux them over to one connector
932 * or the other if someone needs the connector configured as a gadget
933 * (but they only get USB2 speeds).
935 * All the hardware muxes would allow us to hook things up in different
936 * ways to some potential benefit for static configurations (you could
937 * achieve extra USB2 bandwidth by using two different ports for the
938 * two connectors or possibly even get USB3 peripheral mode), but in
939 * each case you end up forcing to disconnect/reconnect an in-use
940 * USB session in some cases depending on what you hotplug into the
941 * other connector. Thus hardcoding this as peripheral makes sense.
943 dr_mode = "peripheral";
946 * We always need the high speed pins as 4-lanes DP in case someone
947 * hotplugs a DP peripheral. Thus limit this port to a max of high
950 maximum-speed = "high-speed";
953 * We don't need the usb3-phy since we run in highspeed mode always, so
954 * re-define these properties removing the superspeed USB PHY reference.
956 phys = <&usb_1_hsphy>;
957 phy-names = "usb2-phy";
963 vdd-supply = <&vdda_usb1_ss_core>;
964 vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
965 vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
967 qcom,imp-res-offset-value = <8>;
968 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>;
969 qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>;
970 qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
978 /* We have this hooked up to a hub and we always use in host mode */
985 vdd-supply = <&vdda_usb2_ss_core>;
986 vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
987 vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
989 qcom,imp-res-offset-value = <8>;
990 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_22_8_MA>;
996 vdda-phy-supply = <&vdda_usb2_ss_1p2>;
997 vdda-pll-supply = <&vdda_usb2_ss_core>;
1003 vdd-0.8-cx-mx-supply = <&src_pp800_l5a >;
1004 vdd-1.8-xo-supply = <&pp1800_l7a_wcn3990>;
1005 vdd-1.3-rfa-supply = <&src_pp1300_l17a>;
1006 vdd-3.3-ch0-supply = <&pp3300_l25a_ch0_wcn3990>;
1009 /* PINCTRL - additions to nodes defined in sdm845.dtsi */
1012 bias-disable; /* External pullup */
1016 bias-disable; /* Rely on Cr50 internal pulldown */
1020 bias-disable; /* Rely on Cr50 internal pulldown */
1028 drive-strength = <2>;
1030 /* Has external pullup */
1034 &qup_i2c11_default {
1035 drive-strength = <2>;
1037 /* Has external pullup */
1041 &qup_i2c12_default {
1042 drive-strength = <2>;
1044 /* Has external pullup */
1048 &qup_i2c14_default {
1049 drive-strength = <2>;
1051 /* Has external pullup */
1056 drive-strength = <2>;
1061 drive-strength = <2>;
1065 &qup_spi10_default {
1066 drive-strength = <2>;
1071 drive-strength = <2>;
1076 drive-strength = <2>;
1080 /* PINCTRL - board-specific pinctrl */
1082 gpio-line-names = "",
1090 reg = <ADC5_AMUX_THM1_100K_PU>;
1095 reg = <ADC5_AMUX_THM2_100K_PU>;
1096 label = "quiet_temp";
1100 reg = <ADC5_AMUX_THM3_100K_PU>;
1101 label = "lte_temp_1";
1105 reg = <ADC5_AMUX_THM4_100K_PU>;
1106 label = "lte_temp_2";
1110 reg = <ADC5_AMUX_THM5_100K_PU>;
1111 label = "charger_temp";
1116 gpio-line-names = "",
1146 * pinctrl settings for pins that have no real owners.
1148 pinctrl-names = "default", "sleep";
1149 pinctrl-0 = <&bios_flash_wp_r_l>,
1150 <&ap_suspend_l_deassert>;
1152 pinctrl-1 = <&bios_flash_wp_r_l>,
1153 <&ap_suspend_l_assert>;
1156 * Hogs prevent usermode from changing the value. A GPIO can be both
1157 * here and in the pinctrl section.
1161 gpios = <126 GPIO_ACTIVE_LOW>;
1165 ap_edp_bklten: ap-edp-bklten-state {
1168 drive-strength = <2>;
1172 bios_flash_wp_r_l: bios-flash-wp-r-l-state {
1178 ec_ap_int_l: ec-ap-int-l-state {
1184 edp_brij_en: edp-brij-en-state {
1187 drive-strength = <2>;
1191 edp_brij_irq: edp-brij-irq-state {
1194 drive-strength = <2>;
1198 en_pp3300_dx_edp: en-pp3300-dx-edp-state {
1201 drive-strength = <2>;
1205 h1_ap_int_odl: h1-ap-int-odl-state {
1211 pen_eject_odl: pen-eject-odl-state {
1217 pen_irq_l: pen-irq-l-state {
1221 /* Has external pullup */
1225 pen_pdct_l: pen-pdct-l-state {
1229 /* Has external pullup */
1233 pen_rst_l: pen-rst-l-state {
1237 drive-strength = <2>;
1240 * The pen driver doesn't currently support
1241 * driving this reset line. By specifying
1242 * output-high here we're relying on the fact
1243 * that this pin has a default pulldown at boot
1244 * (which makes sure the pen was in reset if it
1245 * was powered) and then we set it high here to
1246 * take it out of reset. Better would be if the
1247 * pen driver could control this and we could
1248 * remove "output-high" here.
1253 qspi_sleep: qspi-sleep-state {
1254 pins = "gpio90", "gpio91", "gpio92", "gpio95";
1257 * When we're not actively transferring we want pins as GPIOs
1258 * with output disabled so that the quad SPI IP block stops
1259 * driving them. We rely on the normal pulls configured in
1260 * the active state and don't redefine them here. Also note
1261 * that we don't need the reverse (output-enable) in the
1262 * normal mode since the "output-enable" only matters for
1269 sdc2_clk: sdc2-clk-state {
1274 * It seems that mmc_test reports errors if drive
1275 * strength is not 16.
1277 drive-strength = <16>;
1280 sdc2_cmd: sdc2-cmd-state {
1283 drive-strength = <16>;
1286 sdc2_data: sdc2-data-state {
1289 drive-strength = <16>;
1292 sd_cd_odl: sd-cd-odl-state {
1298 ts_int_l: ts-int-l-state {
1304 ts_reset_l: ts-reset-l-state {
1308 drive-strength = <2>;
1311 ap_suspend_l_assert: ap-suspend-l-assert-state {
1315 drive-strength = <2>;
1319 ap_suspend_l_deassert: ap-suspend-l-deassert-state {
1323 drive-strength = <2>;
1332 iommus = <&apps_smmu 0x10b2 0x0>;