Lines Matching +full:regulator +full:- +full:initial +full:- +full:mode

1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
26 stdout-path = "serial0:115200n8";
30 compatible = "pwm-backlight";
32 enable-gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
33 power-supply = <&ppvar_sys>;
34 pinctrl-names = "default";
35 pinctrl-0 = <&ap_edp_bklten>;
38 /* FIXED REGULATORS - parents above children */
41 ppvar_sys: ppvar-sys-regulator {
42 compatible = "regulator-fixed";
43 regulator-name = "ppvar_sys";
44 regulator-always-on;
45 regulator-boot-on;
49 src_vph_pwr: src-vph-pwr-regulator {
50 compatible = "regulator-fixed";
51 regulator-name = "src_vph_pwr";
54 regulator-always-on;
55 regulator-boot-on;
57 vin-supply = <&ppvar_sys>;
60 pp5000_a: pp5000-a-regulator {
61 compatible = "regulator-fixed";
62 regulator-name = "pp5000_a";
65 regulator-always-on;
66 regulator-boot-on;
67 regulator-min-microvolt = <5000000>;
68 regulator-max-microvolt = <5000000>;
70 vin-supply = <&ppvar_sys>;
73 src_vreg_bob: src-vreg-bob-regulator {
74 compatible = "regulator-fixed";
75 regulator-name = "src_vreg_bob";
78 regulator-always-on;
79 regulator-boot-on;
80 regulator-min-microvolt = <3600000>;
81 regulator-max-microvolt = <3600000>;
83 vin-supply = <&ppvar_sys>;
86 pp3300_dx_edp: pp3300-dx-edp-regulator {
87 compatible = "regulator-fixed";
88 regulator-name = "pp3300_dx_edp";
90 regulator-min-microvolt = <3300000>;
91 regulator-max-microvolt = <3300000>;
94 enable-active-high;
95 pinctrl-names = "default";
96 pinctrl-0 = <&en_pp3300_dx_edp>;
101 * is always-on; model it as a fixed regulator.
103 src_pp1800_s4a: pm8998-smps4 {
104 compatible = "regulator-fixed";
105 regulator-name = "src_pp1800_s4a";
107 regulator-min-microvolt = <1800000>;
108 regulator-max-microvolt = <1800000>;
110 regulator-always-on;
111 regulator-boot-on;
113 vin-supply = <&src_vph_pwr>;
116 /* BOARD-SPECIFIC TOP LEVEL NODES */
118 gpio-keys {
119 compatible = "gpio-keys";
120 pinctrl-names = "default";
121 pinctrl-0 = <&pen_eject_odl>;
123 pen-insert {
128 linux,input-type = <EV_SW>;
129 wakeup-source;
134 compatible ="innolux,p120zdg-bf1";
135 power-supply = <&pp3300_dx_edp>;
137 no-hpd;
142 remote-endpoint = <&sn65dsi86_out>;
160 * For venus_mem we'll delete and re-create at a different address.
162 * cdsp_mem isn't used on cheza right now so we won't bother re-creating it; but
165 /delete-node/ &venus_mem;
166 /delete-node/ &cdsp_mem;
167 /delete-node/ &cdsp_pas;
168 /delete-node/ &gpu_mem;
181 reserved-memory {
184 no-map;
191 pinctrl-names = "default";
192 pinctrl-0 = <&qspi_clk &qspi_cs0 &qspi_data01>;
195 compatible = "jedec,spi-nor";
203 spi-max-frequency = <25000000>;
204 spi-tx-bus-width = <2>;
205 spi-rx-bus-width = <2>;
211 pm8998-rpmh-regulators {
212 compatible = "qcom,pm8998-rpmh-regulators";
213 qcom,pmic-id = "a";
215 vdd-s1-supply = <&src_vph_pwr>;
216 vdd-s2-supply = <&src_vph_pwr>;
217 vdd-s3-supply = <&src_vph_pwr>;
218 vdd-s4-supply = <&src_vph_pwr>;
219 vdd-s5-supply = <&src_vph_pwr>;
220 vdd-s6-supply = <&src_vph_pwr>;
221 vdd-s7-supply = <&src_vph_pwr>;
222 vdd-s8-supply = <&src_vph_pwr>;
223 vdd-s9-supply = <&src_vph_pwr>;
224 vdd-s10-supply = <&src_vph_pwr>;
225 vdd-s11-supply = <&src_vph_pwr>;
226 vdd-s12-supply = <&src_vph_pwr>;
227 vdd-s13-supply = <&src_vph_pwr>;
228 vdd-l1-l27-supply = <&src_pp1025_s7a>;
229 vdd-l2-l8-l17-supply = <&src_pp1350_s3a>;
230 vdd-l3-l11-supply = <&src_pp1025_s7a>;
231 vdd-l4-l5-supply = <&src_pp1025_s7a>;
232 vdd-l6-supply = <&src_vph_pwr>;
233 vdd-l7-l12-l14-l15-supply = <&src_pp2040_s5a>;
234 vdd-l9-supply = <&src_pp2040_s5a>;
235 vdd-l10-l23-l25-supply = <&src_vreg_bob>;
236 vdd-l13-l19-l21-supply = <&src_vreg_bob>;
237 vdd-l16-l28-supply = <&src_vreg_bob>;
238 vdd-l18-l22-supply = <&src_vreg_bob>;
239 vdd-l20-l24-supply = <&src_vreg_bob>;
240 vdd-l26-supply = <&src_pp1350_s3a>;
241 vin-lvs-1-2-supply = <&src_pp1800_s4a>;
244 regulator-min-microvolt = <1100000>;
245 regulator-max-microvolt = <1100000>;
249 regulator-min-microvolt = <1352000>;
250 regulator-max-microvolt = <1352000>;
254 regulator-min-microvolt = <1904000>;
255 regulator-max-microvolt = <2040000>;
259 regulator-min-microvolt = <900000>;
260 regulator-max-microvolt = <1028000>;
282 regulator-min-microvolt = <880000>;
283 regulator-max-microvolt = <880000>;
284 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
289 regulator-min-microvolt = <1200000>;
290 regulator-max-microvolt = <1200000>;
291 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
294 regulator-always-on;
298 regulator-min-microvolt = <1000000>;
299 regulator-max-microvolt = <1000000>;
300 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
307 regulator-min-microvolt = <800000>;
308 regulator-max-microvolt = <800000>;
309 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
314 regulator-min-microvolt = <1856000>;
315 regulator-max-microvolt = <1856000>;
316 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
320 regulator-min-microvolt = <1800000>;
321 regulator-max-microvolt = <1800000>;
322 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
326 regulator-min-microvolt = <1200000>;
327 regulator-max-microvolt = <1248000>;
328 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
333 regulator-min-microvolt = <1800000>;
334 regulator-max-microvolt = <1800000>;
335 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
339 regulator-min-microvolt = <1800000>;
340 regulator-max-microvolt = <1800000>;
341 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
345 regulator-min-microvolt = <1000000>;
346 regulator-max-microvolt = <1048000>;
347 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
358 regulator-min-microvolt = <1800000>;
359 regulator-max-microvolt = <1800000>;
360 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
365 regulator-min-microvolt = <1800000>;
366 regulator-max-microvolt = <2960000>;
367 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
371 regulator-min-microvolt = <1800000>;
372 regulator-max-microvolt = <1800000>;
373 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
377 regulator-min-microvolt = <1800000>;
378 regulator-max-microvolt = <1800000>;
379 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
383 regulator-min-microvolt = <2704000>;
384 regulator-max-microvolt = <2704000>;
385 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
389 regulator-min-microvolt = <1304000>;
390 regulator-max-microvolt = <1304000>;
391 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
395 regulator-min-microvolt = <2704000>;
396 regulator-max-microvolt = <2960000>;
397 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
405 regulator-min-microvolt = <3304000>;
406 regulator-max-microvolt = <3304000>;
408 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
412 regulator-min-microvolt = <2704000>;
413 regulator-max-microvolt = <2960000>;
414 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
418 regulator-min-microvolt = <2704000>;
419 regulator-max-microvolt = <2960000>;
420 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
425 regulator-min-microvolt = <3304000>;
426 regulator-max-microvolt = <3304000>;
427 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
432 regulator-boot-on;
433 regulator-always-on;
437 regulator-min-microvolt = <3000000>;
438 regulator-max-microvolt = <3312000>;
439 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
444 regulator-min-microvolt = <3088000>;
445 regulator-max-microvolt = <3088000>;
446 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
450 regulator-min-microvolt = <3304000>;
451 regulator-max-microvolt = <3304000>;
452 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
470 regulator-min-microvolt = <1200000>;
471 regulator-max-microvolt = <1200000>;
472 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
477 regulator-min-microvolt = <3304000>;
478 regulator-max-microvolt = <3304000>;
479 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
483 regulator-min-microvolt = <1800000>;
484 regulator-max-microvolt = <1800000>;
488 regulator-min-microvolt = <1800000>;
489 regulator-max-microvolt = <1800000>;
493 pm8005-rpmh-regulators {
494 compatible = "qcom,pm8005-rpmh-regulators";
495 qcom,pmic-id = "c";
497 vdd-s1-supply = <&src_vph_pwr>;
498 vdd-s2-supply = <&src_vph_pwr>;
499 vdd-s3-supply = <&src_vph_pwr>;
500 vdd-s4-supply = <&src_vph_pwr>;
503 regulator-min-microvolt = <600000>;
504 regulator-max-microvolt = <600000>;
511 vdda-supply = <&vdda_mipi_dsi0_1p2>;
516 remote-endpoint = <&sn65dsi86_in>;
517 data-lanes = <0 1 2 3>;
525 vdds-supply = <&vdda_mipi_dsi0_pll>;
530 clock-frequency = <400000>;
535 pinctrl-names = "default";
536 pinctrl-0 = <&edp_brij_en &edp_brij_irq>;
538 interrupt-parent = <&tlmm>;
541 enable-gpios = <&tlmm 102 GPIO_ACTIVE_HIGH>;
543 vpll-supply = <&src_pp1800_s4a>;
544 vccio-supply = <&src_pp1800_s4a>;
545 vcca-supply = <&src_pp1200_l2a>;
546 vcc-supply = <&src_pp1200_l2a>;
549 clock-names = "refclk";
551 no-hpd;
554 #address-cells = <1>;
555 #size-cells = <0>;
560 remote-endpoint = <&dsi0_out>;
567 remote-endpoint = <&panel_in_edp>;
576 clock-frequency = <400000>;
579 compatible = "wacom,w9013", "hid-over-i2c";
581 pinctrl-names = "default";
582 pinctrl-0 = <&pen_irq_l>, <&pen_pdct_l>, <&pen_rst_l>;
584 vdd-supply = <&pp3300_dx_pen>;
585 vddl-supply = <&pp1800_dx_pen>;
586 post-power-on-delay-ms = <100>;
588 interrupt-parent = <&tlmm>;
591 hid-descr-addr = <0x1>;
597 clock-frequency = <400000>;
602 clock-frequency = <400000>;
607 pinctrl-names = "default";
608 pinctrl-0 = <&ts_int_l &ts_reset_l>;
610 interrupt-parent = <&tlmm>;
613 vcc33-supply = <&src_pp3300_l28a>;
615 reset-gpios = <&tlmm 118 GPIO_ACTIVE_LOW>;
621 modem-init;
639 * around this by dropping the "qcom,adreno-smmu" compat string.
642 compatible = "qcom,sdm845-smmu-v2", "qcom,smmu-v2";
667 pinctrl-names = "default";
668 pinctrl-0 = <&sdc2_clk &sdc2_cmd &sdc2_data &sd_cd_odl>;
670 vmmc-supply = <&src_pp2950_l21a>;
671 vqmmc-supply = <&vddpx_2>;
673 cd-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
686 pinctrl-names = "default";
687 pinctrl-0 = <&h1_ap_int_odl>;
688 spi-max-frequency = <800000>;
689 interrupt-parent = <&tlmm>;
698 compatible = "google,cros-ec-spi";
700 interrupt-parent = <&tlmm>;
702 pinctrl-names = "default";
703 pinctrl-0 = <&ec_ap_int_l>;
704 spi-max-frequency = <3000000>;
706 cros_ec_pwm: ec-pwm {
707 compatible = "google,cros-ec-pwm";
708 #pwm-cells = <1>;
711 i2c_tunnel: i2c-tunnel {
712 compatible = "google,cros-ec-i2c-tunnel";
713 google,remote-bus = <0>;
714 #address-cells = <1>;
715 #size-cells = <0>;
720 #include <arm/cros-ec-keyboard.dtsi>
721 #include <arm/cros-ec-sbs.dtsi>
726 bluetooth: wcn3990-bt {
727 compatible = "qcom,wcn3990-bt";
728 vddio-supply = <&src_pp1800_s4a>;
729 vddxo-supply = <&pp1800_l7a_wcn3990>;
730 vddrf-supply = <&src_pp1300_l17a>;
731 vddch0-supply = <&pp3300_l25a_ch0_wcn3990>;
732 max-speed = <3200000>;
743 reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>;
745 vcc-supply = <&src_pp2950_l20a>;
746 vcc-max-microamp = <600000>;
752 vdda-phy-supply = <&vdda_ufs1_core>;
753 vdda-pll-supply = <&vdda_ufs1_1p2>;
760 qcom,select-utmi-as-pipe-clk;
766 * mode, so we'll hardcode it here. Some details:
767 * - SDM845 expects only a single Type C connector so it has only one
769 * - The only source of DP is the single native Type C port.
770 * - On cheza we want to be able to hook DP up to _either_ of the
772 * - When you configure a Type C port for 4 lanes of DP you lose USB3.
773 * - In order to make everything work, the native Type C port is always
774 * configured as 4-lanes DP so it's always available.
775 * - The extra USB3 port on SDM845 goes to a USB 3 hub which is then
777 * - The extra USB2 lines from the native Type C port are always
785 * two connectors or possibly even get USB3 peripheral mode), but in
786 * each case you end up forcing to disconnect/reconnect an in-use
793 * We always need the high speed pins as 4-lanes DP in case someone
797 maximum-speed = "high-speed";
800 * We don't need the usb3-phy since we run in highspeed mode always, so
801 * re-define these properties removing the superspeed USB PHY reference.
804 phy-names = "usb2-phy";
810 vdd-supply = <&vdda_usb1_ss_core>;
811 vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
812 vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
814 qcom,imp-res-offset-value = <8>;
815 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>;
816 qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>;
817 qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
825 /* We have this hooked up to a hub and we always use in host mode */
832 vdd-supply = <&vdda_usb2_ss_core>;
833 vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
834 vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
836 qcom,imp-res-offset-value = <8>;
837 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_22_8_MA>;
843 vdda-phy-supply = <&vdda_usb2_ss_1p2>;
844 vdda-pll-supply = <&vdda_usb2_ss_core>;
850 vdd-0.8-cx-mx-supply = <&src_pp800_l5a >;
851 vdd-1.8-xo-supply = <&pp1800_l7a_wcn3990>;
852 vdd-1.3-rfa-supply = <&src_pp1300_l17a>;
853 vdd-3.3-ch0-supply = <&pp3300_l25a_ch0_wcn3990>;
856 /* PINCTRL - additions to nodes defined in sdm845.dtsi */
861 bias-disable;
868 bias-disable;
876 /* High-Z when no transfers; nice to park the lines */
877 bias-pull-up;
884 drive-strength = <2>;
887 bias-disable;
894 drive-strength = <2>;
897 bias-disable;
904 drive-strength = <2>;
907 bias-disable;
914 drive-strength = <2>;
917 bias-disable;
924 drive-strength = <2>;
925 bias-disable;
932 drive-strength = <2>;
933 bias-disable;
940 drive-strength = <2>;
941 bias-disable;
952 pinconf-cts {
954 * Configure a pull-down on 45 (CTS) to match the pull of
958 bias-pull-down;
961 pinconf-rts-tx {
964 drive-strength = <2>;
965 bias-disable;
968 pinconf-rx {
970 * Configure a pull-up on 48 (RX). This is needed to avoid
972 * in tri-state (module powered off or not driving the
976 bias-pull-up;
981 pinconf-tx {
983 drive-strength = <2>;
984 bias-disable;
987 pinconf-rx {
989 drive-strength = <2>;
990 bias-pull-up;
994 /* PINCTRL - board-specific pinctrl */
996 gpio-line-names = "",
1003 adc-chan@4d {
1008 adc-chan@4e {
1013 adc-chan@4f {
1018 adc-chan@50 {
1023 adc-chan@51 {
1030 gpio-line-names = "",
1062 pinctrl-names = "default", "sleep";
1063 pinctrl-0 = <&bios_flash_wp_r_l>,
1066 pinctrl-1 = <&bios_flash_wp_r_l>,
1073 ap-suspend-l-hog {
1074 gpio-hog;
1076 output-low;
1079 ap_edp_bklten: ap-edp-bklten {
1087 drive-strength = <2>;
1088 bias-disable;
1092 bios_flash_wp_r_l: bios-flash-wp-r-l {
1096 input-enable;
1101 bias-disable;
1105 ec_ap_int_l: ec-ap-int-l {
1109 input-enable;
1114 bias-pull-up;
1118 edp_brij_en: edp-brij-en {
1126 drive-strength = <2>;
1127 bias-disable;
1131 edp_brij_irq: edp-brij-irq {
1139 drive-strength = <2>;
1140 bias-pull-down;
1144 en_pp3300_dx_edp: en-pp3300-dx-edp {
1152 drive-strength = <2>;
1153 bias-disable;
1157 h1_ap_int_odl: h1-ap-int-odl {
1161 input-enable;
1166 bias-pull-up;
1170 pen_eject_odl: pen-eject-odl {
1174 bias-pull-up;
1178 pen_irq_l: pen-irq-l {
1188 bias-disable;
1192 pen_pdct_l: pen-pdct-l {
1202 bias-disable;
1206 pen_rst_l: pen-rst-l {
1214 bias-disable;
1215 drive-strength = <2>;
1220 * output-high here we're relying on the fact
1226 * remove "output-high" here.
1228 output-high;
1232 sdc2_clk: sdc2-clk {
1235 bias-disable;
1241 drive-strength = <16>;
1245 sdc2_cmd: sdc2-cmd {
1248 bias-pull-up;
1249 drive-strength = <16>;
1253 sdc2_data: sdc2-data {
1256 bias-pull-up;
1257 drive-strength = <16>;
1261 sd_cd_odl: sd-cd-odl {
1269 bias-pull-up;
1273 ts_int_l: ts-int-l {
1281 bias-pull-up;
1285 ts_reset_l: ts-reset-l {
1293 bias-disable;
1294 drive-strength = <2>;
1302 bias-no-pull;
1303 drive-strength = <2>;
1304 output-low;
1312 bias-no-pull;
1313 drive-strength = <2>;
1314 output-high;
1320 video-firmware {