Lines Matching +full:regulator +full:- +full:pull +full:- +full:down

1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
4 * Author: Chris Chen <chris-qj.chen@mediatek.com>
9 * Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
14 #include <dt-bindings/gpio/gpio.h>
15 #include <dt-bindings/input/input.h>
16 #include <dt-bindings/interrupt-controller/irq.h>
17 #include <dt-bindings/pinctrl/mediatek,mt8188-pinfunc.h>
18 #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
19 #include <dt-bindings/spmi/spmi.h>
20 #include <dt-bindings/usb/pd.h>
38 backlight_lcm1: backlight-lcm1 {
39 compatible = "pwm-backlight";
40 brightness-levels = <0 1023>;
41 default-brightness-level = <576>;
42 num-interpolated-steps = <1023>;
43 power-supply = <&reg_vsys>;
48 stdout-path = "serial0:921600n8";
51 dmic_codec: dmic-codec {
52 #sound-dai-cells = <0>;
53 compatible = "dmic-codec";
54 num-channels = <2>;
55 wakeup-delay-ms = <30>;
60 compatible = "linaro,optee-tz";
64 reserved-memory {
65 #address-cells = <2>;
66 #size-cells = <2>;
70 * 12 MiB reserved for OP-TEE (BL32)
71 * +-----------------------+ 0x43e0_0000
73 * +-----------------------+ 0x43c0_0000
75 * + TZDRAM +--------------+ 0x4340_0000
77 * +-----------------------+ 0x4320_0000
80 no-map;
85 compatible = "shared-dma-pool";
87 no-map;
92 no-map;
97 compatible = "shared-dma-pool";
102 compatible = "shared-dma-pool";
107 compatible = "shared-dma-pool";
109 no-map;
113 compatible = "shared-dma-pool";
115 no-map;
119 compatible = "shared-dma-pool";
121 no-map;
125 common_fixed_5v: regulator-0 {
126 compatible = "regulator-fixed";
127 regulator-name = "vdd_5v";
128 regulator-min-microvolt = <5000000>;
129 regulator-max-microvolt = <5000000>;
131 enable-active-high;
132 regulator-always-on;
133 vin-supply = <&reg_vsys>;
136 edp_panel_fixed_3v3: regulator-1 {
137 compatible = "regulator-fixed";
138 regulator-name = "vedp_3v3";
139 regulator-min-microvolt = <3300000>;
140 regulator-max-microvolt = <3300000>;
141 enable-active-high;
143 pinctrl-names = "default";
144 pinctrl-0 = <&edp_panel_3v3_en_pins>;
145 vin-supply = <&reg_vsys>;
148 gpio_fixed_3v3: regulator-2 {
149 compatible = "regulator-fixed";
150 regulator-name = "ext_3v3";
151 regulator-min-microvolt = <3300000>;
152 regulator-max-microvolt = <3300000>;
154 enable-active-high;
155 regulator-always-on;
156 vin-supply = <&reg_vsys>;
160 reg_vsys: regulator-vsys {
161 compatible = "regulator-fixed";
162 regulator-name = "vsys";
163 regulator-always-on;
164 regulator-boot-on;
168 sdio_fixed_1v8: regulator-3 {
169 compatible = "regulator-fixed";
170 regulator-name = "vio18_conn";
171 regulator-min-microvolt = <1800000>;
172 regulator-max-microvolt = <1800000>;
173 enable-active-high;
174 regulator-always-on;
178 sdio_fixed_3v3: regulator-4 {
179 compatible = "regulator-fixed";
180 regulator-name = "wifi_3v3";
181 regulator-min-microvolt = <3300000>;
182 regulator-max-microvolt = <3300000>;
184 enable-active-high;
185 regulator-always-on;
186 vin-supply = <&reg_vsys>;
189 touch0_fixed_3v3: regulator-5 {
190 compatible = "regulator-fixed";
191 regulator-name = "vio33_tp1";
192 regulator-min-microvolt = <3300000>;
193 regulator-max-microvolt = <3300000>;
195 enable-active-high;
196 vin-supply = <&reg_vsys>;
197 pinctrl-names = "default";
198 pinctrl-0 = <&touch_vreg_pins>;
201 usb_hub_fixed_3v3: regulator-6 {
202 compatible = "regulator-fixed";
203 regulator-name = "vhub_3v3";
204 regulator-min-microvolt = <3300000>;
205 regulator-max-microvolt = <3300000>;
207 startup-delay-us = <10000>;
208 enable-active-high;
209 vin-supply = <&reg_vsys>;
212 usb_p0_vbus: regulator-7 {
213 compatible = "regulator-fixed";
214 regulator-name = "vbus_p0";
215 regulator-min-microvolt = <5000000>;
216 regulator-max-microvolt = <5000000>;
218 enable-active-high;
219 vin-supply = <&reg_vsys>;
222 usb_p1_vbus: regulator-8 {
223 compatible = "regulator-fixed";
224 regulator-name = "vbus_p1";
225 regulator-min-microvolt = <5000000>;
226 regulator-max-microvolt = <5000000>;
228 enable-active-high;
229 vin-supply = <&reg_vsys>;
233 usb_p2_vbus: regulator-9 {
234 compatible = "regulator-fixed";
235 regulator-name = "vbus_p2";
236 regulator-min-microvolt = <5000000>;
237 regulator-max-microvolt = <5000000>;
238 enable-active-high;
241 lcm1_iovcc: regulator-vio18-lcm1 {
242 compatible = "regulator-fixed";
243 regulator-name = "vio18_lcm1";
244 regulator-min-microvolt = <1800000>;
245 regulator-max-microvolt = <1800000>;
246 enable-active-high;
248 pinctrl-names = "default";
249 pinctrl-0 = <&dsi0_vreg_en_pins>;
250 vin-supply = <&reg_vsys>;
253 lcm1_vddp: regulator-vsys-lcm1 {
254 compatible = "regulator-fixed";
255 regulator-name = "vsys_lcm1";
256 regulator-min-microvolt = <4200000>;
257 regulator-max-microvolt = <4200000>;
258 regulator-always-on;
259 regulator-boot-on;
260 vin-supply = <&reg_vsys>;
265 memory-region = <&adsp_dma_mem>, <&adsp_mem>;
270 memory-region = <&afe_dma_mem>;
275 #address-cells = <1>;
276 #size-cells = <0>;
283 enable-gpios = <&pio 45 GPIO_ACTIVE_HIGH>;
284 reset-gpios = <&pio 25 GPIO_ACTIVE_HIGH>;
285 iovcc-supply = <&lcm1_iovcc>;
286 vdd-supply = <&lcm1_vddp>;
287 pinctrl-names = "default";
288 pinctrl-0 = <&panel_default_pins>;
292 remote-endpoint = <&dsi0_out>;
298 #address-cells = <1>;
299 #size-cells = <0>;
304 remote-endpoint = <&dither0_out>;
311 remote-endpoint = <&dsi_panel_in>;
318 pinctrl-names = "default";
319 pinctrl-0 = <&disp_pwm1_pins>;
324 remote-endpoint = <&postmask0_out>;
328 remote-endpoint = <&dsi0_in>;
332 remote-endpoint = <&postmask0_in>;
336 mali-supply = <&mt6359_vproc2_buck_reg>;
341 pinctrl-names = "default";
342 pinctrl-0 = <&i2c0_pins>;
343 clock-frequency = <400000>;
349 interrupt-parent = <&pio>;
350 interrupts-extended = <&pio 6 IRQ_TYPE_EDGE_RISING>;
351 irq-gpios = <&pio 6 GPIO_ACTIVE_HIGH>;
352 reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
353 AVDD28-supply = <&touch0_fixed_3v3>;
354 VDDIO-supply = <&mt6359_vio18_ldo_reg>;
355 pinctrl-names = "default";
356 pinctrl-0 = <&touch_pins>;
361 pinctrl-names = "default";
362 pinctrl-0 = <&i2c1_pins>;
363 clock-frequency = <400000>;
366 typec-mux@48 {
370 mode-switch;
371 orientation-switch;
373 vcc-supply = <&mt6359_vcn33_1_bt_ldo_reg>;
377 remote-endpoint = <&typec_sbu_out>;
384 pinctrl-names = "default";
385 pinctrl-0 = <&i2c2_pins>;
386 clock-frequency = <400000>;
391 pinctrl-names = "default";
392 pinctrl-0 = <&i2c3_pins>;
393 clock-frequency = <400000>;
398 pinctrl-names = "default";
399 pinctrl-0 = <&i2c4_pins>;
400 clock-frequency = <1000000>;
406 interrupts-extended = <&pio 12 IRQ_TYPE_LEVEL_LOW>;
407 pinctrl-names = "default";
408 pinctrl-0 = <&tcpci_int_pins>;
409 vbus-supply = <&usb_p1_vbus>;
412 compatible = "usb-c-connector";
413 label = "USB-C";
414 data-role = "dual";
415 op-sink-microwatt = <10000000>;
416 power-role = "dual";
417 try-power-role = "sink";
418 pd-revision = /bits/ 8 <0x03 0x00 0x01 0x08>;
420 sink-pdos = <PDO_FIXED(5000, 2000,
423 source-pdos = <PDO_FIXED(5000, 2000,
435 #address-cells = <1>;
436 #size-cells = <0>;
441 remote-endpoint = <&mtu3_hs1_role_sw>;
448 remote-endpoint = <&xhci_ss_ep>;
455 remote-endpoint = <&it5205_sbu_mux>;
465 pinctrl-names = "default";
466 pinctrl-0 = <&i2c5_pins>;
467 clock-frequency = <400000>;
472 pinctrl-names = "default";
473 pinctrl-0 = <&i2c6_pins>;
474 clock-frequency = <400000>;
479 domain-supply = <&mt6359_vproc2_buck_reg>;
483 domain-supply = <&mt6359_vsram_others_ldo_reg>;
492 pinctrl-names = "default", "state_uhs";
493 pinctrl-0 = <&mmc0_default_pins>;
494 pinctrl-1 = <&mmc0_uhs_pins>;
495 bus-width = <8>;
496 max-frequency = <200000000>;
497 cap-mmc-highspeed;
498 mmc-hs200-1_8v;
499 mmc-hs400-1_8v;
500 supports-cqe;
501 cap-mmc-hw-reset;
502 no-sdio;
503 no-sd;
504 hs400-ds-delay = <0x1481b>;
505 vmmc-supply = <&mt6359_vemc_1_ldo_reg>;
506 vqmmc-supply = <&mt6359_vufs_ldo_reg>;
507 non-removable;
512 pinctrl-names = "default", "state_uhs";
513 pinctrl-0 = <&mmc1_default_pins>;
514 pinctrl-1 = <&mmc1_uhs_pins>;
515 bus-width = <4>;
516 max-frequency = <200000000>;
517 cap-sd-highspeed;
518 sd-uhs-sdr50;
519 sd-uhs-sdr104;
520 no-mmc;
521 no-sdio;
522 cd-gpios = <&pio 2 GPIO_ACTIVE_LOW>;
523 vmmc-supply = <&mt6359_vpa_buck_reg>;
524 vqmmc-supply = <&mt6359_vsim1_ldo_reg>;
528 regulator-always-on;
532 regulator-name = "vcn18_pmu";
533 regulator-always-on;
537 regulator-name = "vcn33_2_pmu";
538 regulator-always-on;
542 regulator-name = "dvdd_proc_l";
543 regulator-always-on;
547 regulator-name = "dvdd_core";
548 regulator-always-on;
552 regulator-name = "vpa_pmu";
553 regulator-max-microvolt = <3100000>;
557 /* The name "vgpu" is required by mtk-regulator-coupler */
558 regulator-name = "vgpu";
559 regulator-min-microvolt = <550000>;
560 regulator-max-microvolt = <800000>;
561 regulator-coupled-with = <&mt6359_vsram_others_ldo_reg>;
562 regulator-coupled-max-spread = <6250>;
566 regulator-name = "dvdd_adsp";
567 regulator-always-on;
571 regulator-name = "va12_abb2_pmu";
572 regulator-always-on;
576 regulator-name = "vsim1_pmu";
577 regulator-enable-ramp-delay = <480>;
581 /* The name "vsram_gpu" is required by mtk-regulator-coupler */
582 regulator-name = "vsram_gpu";
583 regulator-min-microvolt = <750000>;
584 regulator-max-microvolt = <800000>;
585 regulator-coupled-with = <&mt6359_vproc2_buck_reg>;
586 regulator-coupled-max-spread = <6250>;
590 regulator-name = "vufs18_pmu";
591 regulator-always-on;
595 mediatek,mic-type-0 = <1>; /* ACC */
596 mediatek,mic-type-1 = <3>; /* DCC */
600 remote-endpoint = <&vdosys0_ep_main>;
604 pinctrl-names = "default";
605 pinctrl-0 = <&pcie_default_pins>;
614 audio_default_pins: audio-default-pins {
615 pins-cmd-dat {
641 disp_pwm1_pins: disp-pwm1-pins {
642 pins-pwm {
647 dptx_pins: dptx-pins {
648 pins-cmd-dat {
650 bias-pull-up;
654 edp_panel_3v3_en_pins: edp-panel-3v3-en-pins {
657 output-high;
661 eth_default_pins: eth-default-pins {
662 pins-cc {
667 drive-strength = <8>;
670 pins-mdio {
673 drive-strength = <8>;
674 input-enable;
677 pins-power {
680 output-high;
683 pins-rxd {
688 drive-strength = <8>;
691 pins-txd {
696 drive-strength = <8>;
700 eth_sleep_pins: eth-sleep-pins {
701 pins-cc {
708 pins-mdio {
711 input-disable;
712 bias-disable;
715 pins-rxd {
722 pins-txd {
730 i2c0_pins: i2c0-pins {
734 bias-pull-up = <MTK_PULL_SET_RSEL_011>;
735 drive-strength-microamp = <1000>;
739 i2c1_pins: i2c1-pins {
743 bias-pull-up = <MTK_PULL_SET_RSEL_011>;
744 drive-strength-microamp = <1000>;
748 i2c2_pins: i2c2-pins {
752 bias-pull-up = <MTK_PULL_SET_RSEL_011>;
753 drive-strength-microamp = <1000>;
757 i2c3_pins: i2c3-pins {
761 bias-pull-up = <MTK_PULL_SET_RSEL_011>;
762 drive-strength-microamp = <1000>;
766 i2c4_pins: i2c4-pins {
770 bias-pull-up = <MTK_PULL_SET_RSEL_011>;
771 drive-strength-microamp = <1000>;
775 i2c5_pins: i2c5-pins {
779 bias-pull-up = <MTK_PULL_SET_RSEL_011>;
780 drive-strength-microamp = <1000>;
784 i2c6_pins: i2c6-pins {
788 bias-pull-up = <MTK_PULL_SET_RSEL_011>;
789 drive-strength-microamp = <1000>;
793 gpio_key_pins: gpio-key-pins {
801 mmc0_default_pins: mmc0-default-pins {
802 pins-clk {
804 drive-strength = <6>;
805 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
808 pins-cmd-dat {
818 input-enable;
819 drive-strength = <6>;
820 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
823 pins-rst {
825 drive-strength = <6>;
826 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
830 mmc0_uhs_pins: mmc0-uhs-pins {
831 pins-clk {
833 drive-strength = <8>;
834 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
837 pins-cmd-dat {
847 input-enable;
848 drive-strength = <8>;
849 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
852 pins-ds {
854 drive-strength = <8>;
855 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
858 pins-rst {
860 drive-strength = <8>;
861 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
865 mmc1_default_pins: mmc1-default-pins {
866 pins-clk {
868 drive-strength = <6>;
869 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
872 pins-cmd-dat {
878 input-enable;
879 drive-strength = <6>;
880 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
883 pins-insert {
885 bias-pull-up;
889 mmc1_uhs_pins: mmc1-uhs-pins {
890 pins-clk {
892 drive-strength = <6>;
893 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
896 pins-cmd-dat {
902 input-enable;
903 drive-strength = <6>;
904 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
908 mmc2_default_pins: mmc2-default-pins {
909 pins-clk {
911 drive-strength = <4>;
912 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
915 pins-cmd-dat {
921 input-enable;
922 drive-strength = <6>;
923 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
926 pins-pcm {
931 mmc2_uhs_pins: mmc2-uhs-pins {
932 pins-clk {
934 drive-strength = <4>;
935 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
938 pins-cmd-dat {
944 input-enable;
945 drive-strength = <6>;
946 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
950 mmc2_eint_pins: mmc2-eint-pins {
951 pins-dat1 {
953 input-enable;
954 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
958 mmc2_dat1_pins: mmc2-dat1-pins {
959 pins-dat1 {
961 input-enable;
962 drive-strength = <6>;
963 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
967 dsi0_vreg_en_pins: dsi0-vreg-en-pins {
968 pins-pwr-en {
970 output-low;
974 panel_default_pins: panel-default-pins {
975 pins-rst {
977 output-low;
980 pins-en {
982 output-low;
986 pcie_default_pins: pcie-default-pins {
991 bias-pull-up;
995 rt1715_int_pins: rt1715-int-pins {
998 bias-pull-up;
999 input-enable;
1003 spi0_pins: spi0-pins {
1004 pins-spi {
1009 bias-disable;
1013 spi1_pins: spi1-pins {
1014 pins-spi {
1019 bias-disable;
1023 spi2_pins: spi2-pins {
1024 pins-spi {
1029 bias-disable;
1033 touch_vreg_pins: touch-avdd-pins {
1034 pins-power {
1036 output-high;
1040 touch_pins: touch-pins {
1041 pins-irq {
1043 input-enable;
1044 bias-disable;
1047 pins-reset {
1049 output-high;
1053 tcpci_int_pins: tcpci-int-pins {
1054 pins-int-n {
1056 bias-pull-up;
1057 input-enable;
1061 uart0_pins: uart0-pins {
1065 bias-pull-up;
1069 uart1_pins: uart1-pins {
1073 bias-pull-up;
1077 uart2_pins: uart2-pins {
1081 bias-pull-up;
1085 usb_default_pins: usb-default-pins {
1086 pins-iddig {
1088 input-enable;
1089 bias-pull-up;
1092 pins-valid {
1094 input-enable;
1097 pins-vbus {
1099 output-high;
1104 usb1_default_pins: usb1-default-pins {
1105 pins-valid {
1107 input-enable;
1110 pins-usb-hub-3v3-en {
1112 output-high;
1116 usb2_default_pins: usb2-default-pins {
1117 pins-iddig {
1119 input-enable;
1120 bias-pull-up;
1124 wifi_pwrseq_pins: wifi-pwrseq-pins {
1125 pins-wifi-enable {
1127 output-low;
1133 phy-mode ="rgmii-id";
1134 phy-handle = <&ethernet_phy0>;
1135 pinctrl-names = "default", "sleep";
1136 pinctrl-0 = <&eth_default_pins>;
1137 pinctrl-1 = <&eth_sleep_pins>;
1138 mediatek,mac-wol;
1139 snps,reset-gpio = <&pio 147 GPIO_ACTIVE_HIGH>;
1140 snps,reset-delays-us = <0 10000 10000>;
1145 ethernet_phy0: ethernet-phy@1 {
1146 compatible = "ethernet-phy-id001c.c916";
1152 interrupt-parent = <&pio>;
1156 compatible = "mediatek,mt6359-keys";
1157 mediatek,long-press-mode = <1>;
1158 power-off-time-sec = <0>;
1160 power-key {
1162 wakeup-source;
1172 remote-endpoint = <&gamma0_out>;
1176 remote-endpoint = <&dither0_in>;
1184 memory-region = <&scp_mem>;
1189 compatible = "mediatek,mt8390-mt6359-evk", "mediatek,mt8188-mt6359-evb";
1190 model = "mt8390-evk";
1191 pinctrl-names = "default";
1192 pinctrl-0 = <&audio_default_pins>;
1193 audio-routing =
1203 dai-link-0 {
1204 link-name = "DL_SRC_BE";
1207 sound-dai = <&pmic 0>;
1211 dai-link-1 {
1212 link-name = "DMIC_BE";
1215 sound-dai = <&dmic_codec>;
1221 pinctrl-0 = <&spi2_pins>;
1222 pinctrl-names = "default";
1223 mediatek,pad-select = <0>;
1224 #address-cells = <1>;
1225 #size-cells = <0>;
1230 pinctrl-0 = <&uart0_pins>;
1231 pinctrl-names = "default";
1236 pinctrl-0 = <&uart1_pins>;
1237 pinctrl-names = "default";
1242 pinctrl-0 = <&uart2_pins>;
1243 pinctrl-names = "default";
1249 #address-cells = <1>;
1250 #size-cells = <0>;
1254 remote-endpoint = <&ovl0_in>;
1273 maximum-speed = "high-speed";
1274 usb-role-switch;
1275 wakeup-source;
1276 vusb33-supply = <&mt6359_vusb_ldo_reg>;
1277 pinctrl-0 = <&usb_default_pins>;
1278 pinctrl-names = "default";
1282 compatible = "gpio-usb-b-connector", "usb-b-connector";
1284 id-gpios = <&pio 83 GPIO_ACTIVE_HIGH>;
1285 vbus-supply = <&usb_p0_vbus>;
1295 usb-role-switch;
1296 wakeup-source;
1297 vusb33-supply = <&mt6359_vusb_ldo_reg>;
1298 pinctrl-0 = <&usb1_default_pins>;
1299 pinctrl-names = "default";
1304 remote-endpoint = <&typec_con_hs>;
1311 vusb33-supply = <&mt6359_vusb_ldo_reg>;
1312 #address-cells = <1>;
1313 #size-cells = <0>;
1318 peer-hub = <&hub_3_0>;
1319 reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
1320 vdd-supply = <&usb_hub_fixed_3v3>;
1326 peer-hub = <&hub_2_0>;
1327 reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
1328 vdd-supply = <&usb_hub_fixed_3v3>;
1333 remote-endpoint = <&typec_con_ss>;
1349 maximum-speed = "high-speed";
1350 role-switch-default-mode = "host";
1351 usb-role-switch;
1352 vusb33-supply = <&mt6359_vusb_ldo_reg>;
1353 wakeup-source;
1354 pinctrl-names = "default";
1355 pinctrl-0 = <&usb2_default_pins>;
1359 compatible = "gpio-usb-b-connector", "usb-b-connector";
1361 id-gpios = <&pio 89 GPIO_ACTIVE_LOW>;
1362 vbus-supply = <&usb_p2_vbus>;
1367 vusb33-supply = <&mt6359_vusb_ldo_reg>;
1368 vbus-supply = <&sdio_fixed_3v3>; /* wifi_3v3 */