Lines Matching +full:pwr +full:- +full:sel
1 // SPDX-License-Identifier: GPL-2.0
6 /dts-v1/;
8 #include <dt-bindings/leds/common.h>
9 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
10 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
11 #include <dt-bindings/sound/qcom,q6afe.h>
12 #include <dt-bindings/sound/qcom,q6asm.h>
14 #include "sdm845-wcd9340.dtsi"
21 qcom,msm-id = <341 0x20001>;
22 qcom,board-id = <8 0>;
30 stdout-path = "serial0:115200n8";
34 clk40M: can-clock {
35 compatible = "fixed-clock";
36 #clock-cells = <0>;
37 clock-frequency = <40000000>;
40 dc12v: dc12v-regulator {
41 compatible = "regulator-fixed";
42 regulator-name = "DC12V";
43 regulator-min-microvolt = <12000000>;
44 regulator-max-microvolt = <12000000>;
45 regulator-always-on;
48 gpio-keys {
49 compatible = "gpio-keys";
52 pinctrl-names = "default";
53 pinctrl-0 = <&vol_up_pin_a>;
55 key-vol-up {
63 compatible = "gpio-leds";
65 led-0 {
70 default-state = "off";
71 panic-indicator;
74 led-1 {
79 linux,default-trigger = "phy0tx";
80 default-state = "off";
83 led-2 {
88 linux,default-trigger = "bluetooth-power";
89 default-state = "off";
93 hdmi-out {
94 compatible = "hdmi-connector";
99 remote-endpoint = <<9611_out>;
104 reserved-memory {
108 no-map;
112 lt9611_1v8: lt9611-vdd18-regulator {
113 compatible = "regulator-fixed";
114 regulator-name = "LT9611_1V8";
116 vin-supply = <&vdc_5v>;
117 regulator-min-microvolt = <1800000>;
118 regulator-max-microvolt = <1800000>;
121 enable-active-high;
124 lt9611_3v3: lt9611-3v3 {
125 compatible = "regulator-fixed";
126 regulator-name = "LT9611_3V3";
128 vin-supply = <&vdc_3v3>;
129 regulator-min-microvolt = <3300000>;
130 regulator-max-microvolt = <3300000>;
135 * enable-active-high;
139 pcie0_1p05v: pcie-0-1p05v-regulator {
140 compatible = "regulator-fixed";
141 regulator-name = "PCIE0_1.05V";
143 vin-supply = <&vbat>;
144 regulator-min-microvolt = <1050000>;
145 regulator-max-microvolt = <1050000>;
150 * enable-active-high;
154 cam0_dvdd_1v2: cam0-dvdd-1v2-regulator {
155 compatible = "regulator-fixed";
156 regulator-name = "CAM0_DVDD_1V2";
157 regulator-min-microvolt = <1200000>;
158 regulator-max-microvolt = <1200000>;
159 enable-active-high;
161 pinctrl-names = "default";
162 pinctrl-0 = <&cam0_dvdd_1v2_en_default>;
163 vin-supply = <&vbat>;
166 cam0_avdd_2v8: cam0-avdd-2v8-regulator {
167 compatible = "regulator-fixed";
168 regulator-name = "CAM0_AVDD_2V8";
169 regulator-min-microvolt = <2800000>;
170 regulator-max-microvolt = <2800000>;
171 enable-active-high;
173 pinctrl-names = "default";
174 pinctrl-0 = <&cam0_avdd_2v8_en_default>;
175 vin-supply = <&vbat>;
179 cam3_avdd_2v8: cam3-avdd-2v8-regulator {
180 compatible = "regulator-fixed";
181 regulator-name = "CAM3_AVDD_2V8";
182 regulator-min-microvolt = <2800000>;
183 regulator-max-microvolt = <2800000>;
184 regulator-always-on;
185 vin-supply = <&vbat>;
188 pcie0_3p3v_dual: vldo-3v3-regulator {
189 compatible = "regulator-fixed";
190 regulator-name = "VLDO_3V3";
192 vin-supply = <&vbat>;
193 regulator-min-microvolt = <3300000>;
194 regulator-max-microvolt = <3300000>;
197 enable-active-high;
199 pinctrl-names = "default";
200 pinctrl-0 = <&pcie0_pwren_state>;
203 v5p0_hdmiout: v5p0-hdmiout-regulator {
204 compatible = "regulator-fixed";
205 regulator-name = "V5P0_HDMIOUT";
207 vin-supply = <&vdc_5v>;
208 regulator-min-microvolt = <500000>;
209 regulator-max-microvolt = <500000>;
214 * enable-active-high;
218 vbat: vbat-regulator {
219 compatible = "regulator-fixed";
220 regulator-name = "VBAT";
222 vin-supply = <&dc12v>;
223 regulator-min-microvolt = <4200000>;
224 regulator-max-microvolt = <4200000>;
225 regulator-always-on;
228 vbat_som: vbat-som-regulator {
229 compatible = "regulator-fixed";
230 regulator-name = "VBAT_SOM";
232 vin-supply = <&dc12v>;
233 regulator-min-microvolt = <4200000>;
234 regulator-max-microvolt = <4200000>;
235 regulator-always-on;
238 vdc_3v3: vdc-3v3-regulator {
239 compatible = "regulator-fixed";
240 regulator-name = "VDC_3V3";
241 vin-supply = <&dc12v>;
242 regulator-min-microvolt = <3300000>;
243 regulator-max-microvolt = <3300000>;
244 regulator-always-on;
247 vdc_5v: vdc-5v-regulator {
248 compatible = "regulator-fixed";
249 regulator-name = "VDC_5V";
251 vin-supply = <&dc12v>;
252 regulator-min-microvolt = <500000>;
253 regulator-max-microvolt = <500000>;
254 regulator-always-on;
257 vreg_s4a_1p8: vreg-s4a-1p8 {
258 compatible = "regulator-fixed";
259 regulator-name = "vreg_s4a_1p8";
261 regulator-min-microvolt = <1800000>;
262 regulator-max-microvolt = <1800000>;
263 regulator-always-on;
266 vph_pwr: vph-pwr-regulator {
267 compatible = "regulator-fixed";
268 regulator-name = "vph_pwr";
270 vin-supply = <&vbat_som>;
277 firmware-name = "qcom/sdm845/adsp.mbn";
281 regulators-0 {
282 compatible = "qcom,pm8998-rpmh-regulators";
283 qcom,pmic-id = "a";
284 vdd-s1-supply = <&vph_pwr>;
285 vdd-s2-supply = <&vph_pwr>;
286 vdd-s3-supply = <&vph_pwr>;
287 vdd-s4-supply = <&vph_pwr>;
288 vdd-s5-supply = <&vph_pwr>;
289 vdd-s6-supply = <&vph_pwr>;
290 vdd-s7-supply = <&vph_pwr>;
291 vdd-s8-supply = <&vph_pwr>;
292 vdd-s9-supply = <&vph_pwr>;
293 vdd-s10-supply = <&vph_pwr>;
294 vdd-s11-supply = <&vph_pwr>;
295 vdd-s12-supply = <&vph_pwr>;
296 vdd-s13-supply = <&vph_pwr>;
297 vdd-l1-l27-supply = <&vreg_s7a_1p025>;
298 vdd-l2-l8-l17-supply = <&vreg_s3a_1p35>;
299 vdd-l3-l11-supply = <&vreg_s7a_1p025>;
300 vdd-l4-l5-supply = <&vreg_s7a_1p025>;
301 vdd-l6-supply = <&vph_pwr>;
302 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p04>;
303 vdd-l9-supply = <&vreg_bob>;
304 vdd-l10-l23-l25-supply = <&vreg_bob>;
305 vdd-l13-l19-l21-supply = <&vreg_bob>;
306 vdd-l16-l28-supply = <&vreg_bob>;
307 vdd-l18-l22-supply = <&vreg_bob>;
308 vdd-l20-l24-supply = <&vreg_bob>;
309 vdd-l26-supply = <&vreg_s3a_1p35>;
310 vin-lvs-1-2-supply = <&vreg_s4a_1p8>;
313 regulator-min-microvolt = <1352000>;
314 regulator-max-microvolt = <1352000>;
318 regulator-min-microvolt = <1904000>;
319 regulator-max-microvolt = <2040000>;
323 regulator-min-microvolt = <900000>;
324 regulator-max-microvolt = <1028000>;
328 regulator-min-microvolt = <880000>;
329 regulator-max-microvolt = <880000>;
330 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
334 regulator-min-microvolt = <800000>;
335 regulator-max-microvolt = <800000>;
336 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
340 regulator-min-microvolt = <1800000>;
341 regulator-max-microvolt = <1800000>;
342 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
346 regulator-min-microvolt = <1800000>;
347 regulator-max-microvolt = <1800000>;
348 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
352 regulator-min-microvolt = <1800000>;
353 regulator-max-microvolt = <2960000>;
354 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
358 regulator-min-microvolt = <1304000>;
359 regulator-max-microvolt = <1304000>;
360 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
364 regulator-min-microvolt = <2960000>;
365 regulator-max-microvolt = <2968000>;
366 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
370 regulator-min-microvolt = <2960000>;
371 regulator-max-microvolt = <2968000>;
372 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
376 regulator-min-microvolt = <3088000>;
377 regulator-max-microvolt = <3088000>;
378 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
382 regulator-min-microvolt = <3300000>;
383 regulator-max-microvolt = <3312000>;
384 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
388 regulator-min-microvolt = <1200000>;
389 regulator-max-microvolt = <1200000>;
390 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
394 regulator-min-microvolt = <1800000>;
395 regulator-max-microvolt = <1800000>;
396 regulator-always-on;
400 regulator-min-microvolt = <1800000>;
401 regulator-max-microvolt = <1800000>;
402 regulator-always-on;
406 regulators-1 {
407 compatible = "qcom,pmi8998-rpmh-regulators";
408 qcom,pmic-id = "b";
410 vdd-bob-supply = <&vph_pwr>;
413 regulator-min-microvolt = <3312000>;
414 regulator-max-microvolt = <3600000>;
415 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
416 regulator-allow-bypass;
424 vdda-phy-supply = <&vreg_l1a_0p875>;
425 vdda-pll-supply = <&vreg_l26a_1p2>;
430 firmware-name = "qcom/sdm845/cdsp.mbn";
434 protected-clocks = <GCC_QSPI_CORE_CLK>,
455 zap-shader {
456 memory-region = <&gpu_mem>;
457 firmware-name = "qcom/sdm845/a630_zap.mbn";
463 clock-frequency = <400000>;
465 lt9611_codec: hdmi-bridge@3b {
468 #sound-dai-cells = <1>;
470 interrupts-extended = <&tlmm 84 IRQ_TYPE_EDGE_FALLING>;
472 reset-gpios = <&tlmm 128 GPIO_ACTIVE_HIGH>;
474 vdd-supply = <<9611_1v8>;
475 vcc-supply = <<9611_3v3>;
477 pinctrl-names = "default";
478 pinctrl-0 = <<9611_irq_pin>, <&dsi_sw_sel>;
481 #address-cells = <1>;
482 #size-cells = <0>;
488 remote-endpoint = <&mdss_dsi0_out>;
496 remote-endpoint = <&mdss_dsi1_out>;
504 remote-endpoint = <&hdmi_con>;
513 clock-frequency = <100000>;
519 clock-frequency = <100000>;
524 memory-region = <&cont_splash_mem>;
530 vdda-supply = <&vreg_l26a_1p2>;
532 qcom,dual-dsi-mode;
533 qcom,master-dsi;
538 remote-endpoint = <<9611_a>;
539 data-lanes = <0 1 2 3>;
547 vdds-supply = <&vreg_l1a_0p875>;
551 vdda-supply = <&vreg_l26a_1p2>;
553 qcom,dual-dsi-mode;
556 assigned-clock-parents = <&mdss_dsi0_phy 0>, <&mdss_dsi0_phy 1>;
563 remote-endpoint = <<9611_b>;
564 data-lanes = <0 1 2 3>;
571 vdds-supply = <&vreg_l1a_0p875>;
577 firmware-name = "qcom/sdm845/mba.mbn", "qcom/sdm845/modem.mbn";
582 perst-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
583 enable-gpio = <&tlmm 134 GPIO_ACTIVE_HIGH>;
585 vddpe-3v3-supply = <&pcie0_3p3v_dual>;
587 pinctrl-names = "default";
588 pinctrl-0 = <&pcie0_default_state>;
594 vdda-phy-supply = <&vreg_l1a_0p875>;
595 vdda-pll-supply = <&vreg_l26a_1p2>;
600 perst-gpios = <&tlmm 102 GPIO_ACTIVE_LOW>;
602 pinctrl-names = "default";
603 pinctrl-0 = <&pcie1_default_state>;
609 vdda-phy-supply = <&vreg_l1a_0p875>;
610 vdda-pll-supply = <&vreg_l26a_1p2>;
614 gpio-line-names =
642 cam0_dvdd_1v2_en_default: cam0-dvdd-1v2-en-state {
646 bias-pull-up;
647 drive-push-pull;
648 qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
651 cam0_avdd_2v8_en_default: cam0-avdd-2v8-en-state {
655 bias-pull-up;
656 drive-push-pull;
657 qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
660 vol_up_pin_a: vol-up-active-state {
663 input-enable;
664 bias-pull-up;
665 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
677 qcom,power-source = <1>;
683 function-enumerator = <3>;
685 linux,default-trigger = "heartbeat";
686 default-state = "on";
693 function-enumerator = <2>;
700 function-enumerator = <1>;
708 qcom,sd-lines = <0 1 2 3>;
728 is-compress-dai;
743 pinctrl-names = "default";
744 pinctrl-0 = <&sdc2_default_state &sdc2_card_det_n>;
746 vmmc-supply = <&vreg_l21a_2p95>;
747 vqmmc-supply = <&vreg_l13a_2p95>;
749 bus-width = <4>;
750 cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>;
754 compatible = "qcom,db845c-sndcard", "qcom,sdm845-sndcard";
755 pinctrl-0 = <&quat_mi2s_active
760 pinctrl-names = "default";
762 audio-routing =
777 mm1-dai-link {
778 link-name = "MultiMedia1";
780 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
784 mm2-dai-link {
785 link-name = "MultiMedia2";
787 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>;
791 mm3-dai-link {
792 link-name = "MultiMedia3";
794 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>;
798 mm4-dai-link {
799 link-name = "MultiMedia4";
801 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA4>;
805 hdmi-dai-link {
806 link-name = "HDMI Playback";
808 sound-dai = <&q6afedai QUATERNARY_MI2S_RX>;
812 sound-dai = <&q6routing>;
816 sound-dai = <<9611_codec 0>;
820 slim-dai-link {
821 link-name = "SLIM Playback";
823 sound-dai = <&q6afedai SLIMBUS_0_RX>;
827 sound-dai = <&q6routing>;
831 sound-dai = <&left_spkr>, <&right_spkr>, <&swm 0>, <&wcd9340 0>;
835 slimcap-dai-link {
836 link-name = "SLIM Capture";
838 sound-dai = <&q6afedai SLIMBUS_0_TX>;
842 sound-dai = <&q6routing>;
846 sound-dai = <&wcd9340 1>;
853 pinctrl-names = "default";
854 pinctrl-0 = <&qup_spi0_default>;
855 cs-gpios = <&tlmm 3 GPIO_ACTIVE_LOW>;
861 interrupts-extended = <&tlmm 104 IRQ_TYPE_LEVEL_LOW>;
862 spi-max-frequency = <10000000>;
863 vdd-supply = <&vdc_5v>;
864 xceiver-supply = <&vdc_5v>;
874 cam0_default: cam0-default-state {
875 rst-pins {
879 drive-strength = <16>;
880 bias-disable;
883 mclk0-pins {
887 drive-strength = <16>;
888 bias-disable;
892 cam3_default: cam3-default-state {
893 rst-pins {
897 drive-strength = <16>;
898 bias-disable;
901 mclk3-pins {
905 drive-strength = <16>;
906 bias-disable;
910 dsi_sw_sel: dsi-sw-sel-state {
914 drive-strength = <2>;
915 bias-disable;
916 output-high;
919 lt9611_irq_pin: lt9611-irq-state {
922 bias-disable;
925 pcie0_default_state: pcie0-default-state {
926 clkreq-pins {
929 bias-pull-up;
932 reset-n-pins {
936 drive-strength = <2>;
937 output-low;
938 bias-pull-down;
941 wake-n-pins {
945 drive-strength = <2>;
946 bias-pull-up;
950 pcie0_pwren_state: pcie0-pwren-state {
954 drive-strength = <2>;
955 bias-disable;
958 pcie1_default_state: pcie1-default-state {
959 perst-n-pins {
963 drive-strength = <16>;
964 bias-disable;
967 clkreq-pins {
970 bias-pull-up;
973 wake-n-pins {
977 drive-strength = <2>;
978 bias-pull-up;
981 reset-n-pins {
985 drive-strength = <16>;
986 bias-pull-up;
987 output-high;
991 sdc2_default_state: sdc2-default-state {
992 clk-pins {
994 bias-disable;
1000 drive-strength = <16>;
1003 cmd-pins {
1005 bias-pull-up;
1006 drive-strength = <10>;
1009 data-pins {
1011 bias-pull-up;
1012 drive-strength = <10>;
1016 sdc2_card_det_n: sd-card-det-n-state {
1019 bias-pull-up;
1024 label = "LS-UART0";
1025 pinctrl-0 = <&qup_uart3_4pin>;
1033 pinctrl-0 = <&qup_uart6_4pin>;
1036 compatible = "qcom,wcn3990-bt";
1038 vddio-supply = <&vreg_s4a_1p8>;
1039 vddxo-supply = <&vreg_l7a_1p8>;
1040 vddrf-supply = <&vreg_l17a_1p3>;
1041 vddch0-supply = <&vreg_l25a_3p3>;
1042 max-speed = <3200000>;
1047 label = "LS-UART1";
1062 vdd-supply = <&vreg_l1a_0p875>;
1063 vdda-pll-supply = <&vreg_l12a_1p8>;
1064 vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
1066 qcom,imp-res-offset-value = <8>;
1067 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>;
1068 qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>;
1069 qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
1075 vdda-phy-supply = <&vreg_l26a_1p2>;
1076 vdda-pll-supply = <&vreg_l1a_0p875>;
1090 vdd-supply = <&vreg_l1a_0p875>;
1091 vdda-pll-supply = <&vreg_l12a_1p8>;
1092 vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
1094 qcom,imp-res-offset-value = <8>;
1095 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_22_8_MA>;
1101 vdda-phy-supply = <&vreg_l26a_1p2>;
1102 vdda-pll-supply = <&vreg_l1a_0p875>;
1108 reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>;
1110 vcc-supply = <&vreg_l20a_2p95>;
1111 vcc-max-microamp = <800000>;
1117 vdda-phy-supply = <&vreg_l1a_0p875>;
1118 vdda-pll-supply = <&vreg_l26a_1p2>;
1126 reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
1127 vdd-buck-supply = <&vreg_s4a_1p8>;
1128 vdd-buck-sido-supply = <&vreg_s4a_1p8>;
1129 vdd-tx-supply = <&vreg_s4a_1p8>;
1130 vdd-rx-supply = <&vreg_s4a_1p8>;
1131 vdd-io-supply = <&vreg_s4a_1p8>;
1137 powerdown-gpios = <&wcdgpio 1 GPIO_ACTIVE_HIGH>;
1138 #thermal-sensor-cells = <0>;
1139 sound-name-prefix = "SpkrLeft";
1140 #sound-dai-cells = <0>;
1145 powerdown-gpios = <&wcdgpio 1 GPIO_ACTIVE_HIGH>;
1147 #thermal-sensor-cells = <0>;
1148 sound-name-prefix = "SpkrRight";
1149 #sound-dai-cells = <0>;
1157 vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>;
1158 vdd-1.8-xo-supply = <&vreg_l7a_1p8>;
1159 vdd-1.3-rfa-supply = <&vreg_l17a_1p3>;
1160 vdd-3.3-ch0-supply = <&vreg_l25a_3p3>;
1162 qcom,snoc-host-cap-8bit-quirk;
1163 qcom,ath10k-calibration-variant = "Thundercomm_DB845C";
1166 /* PINCTRL - additions to nodes defined in sdm845.dtsi */
1168 drive-strength = <16>;
1172 drive-strength = <2>;
1173 bias-disable;
1177 drive-strength = <2>;
1178 bias-pull-up;
1182 drive-strength = <2>;
1183 bias-disable;
1186 /* PINCTRL - additions to nodes defined in sdm845.dtsi */
1188 drive-strength = <6>;
1189 bias-disable;