Lines Matching +full:mt8173 +full:- +full:spi

1 // SPDX-License-Identifier: GPL-2.0-only
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/regulator/dlg,da9211-regulator.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include "mt8173.dtsi"
25 compatible = "pwm-backlight";
27 power-supply = <&bl_fixed_reg>;
28 enable-gpios = <&pio 95 GPIO_ACTIVE_HIGH>;
30 pinctrl-names = "default";
31 pinctrl-0 = <&panel_backlight_en_pins>;
36 compatible = "regulator-fixed";
37 regulator-name = "bl_fixed";
38 regulator-min-microvolt = <1800000>;
39 regulator-max-microvolt = <1800000>;
40 startup-delay-us = <1000>;
41 enable-active-high;
43 pinctrl-names = "default";
44 pinctrl-0 = <&bl_fixed_pins>;
48 stdout-path = "serial0:115200n8";
51 gpio_keys: gpio-keys {
52 compatible = "gpio-keys";
53 pinctrl-names = "default";
54 pinctrl-0 = <&gpio_keys_pins>;
56 switch-lid {
60 linux,input-type = <EV_SW>;
61 wakeup-source;
64 switch-power {
68 debounce-interval = <30>;
69 wakeup-source;
72 switch-tablet-mode {
76 linux,input-type = <EV_SW>;
77 wakeup-source;
80 switch-volume-down {
86 switch-volume-up {
94 compatible = "regulator-fixed";
95 regulator-name = "PANEL_3V3";
96 regulator-min-microvolt = <3300000>;
97 regulator-max-microvolt = <3300000>;
98 enable-active-high;
99 regulator-boot-on;
100 off-on-delay-us = <500000>;
102 pinctrl-names = "default";
103 pinctrl-0 = <&panel_fixed_pins>;
107 compatible = "regulator-fixed";
108 regulator-name = "PS8640_1V2";
109 regulator-min-microvolt = <1200000>;
110 regulator-max-microvolt = <1200000>;
111 regulator-enable-ramp-delay = <2000>;
112 enable-active-high;
113 regulator-boot-on;
115 pinctrl-names = "default";
116 pinctrl-0 = <&ps8640_fixed_pins>;
120 compatible = "regulator-fixed";
121 regulator-name = "3V3";
122 regulator-min-microvolt = <3300000>;
123 regulator-max-microvolt = <3300000>;
125 pinctrl-names = "default";
126 pinctrl-0 = <&sdio_fixed_3v3_pins>;
130 compatible = "mediatek,mt8173-rt5650";
131 mediatek,audio-codec = <&rt5650 &hdmi0>;
133 pinctrl-names = "default";
134 pinctrl-0 = <&aud_i2s2>;
137 codec-capture {
138 sound-dai = <&rt5650 1>;
143 compatible = "hdmi-connector";
146 ddc-i2c-bus = <&hdmiddc0>;
150 remote-endpoint = <&hdmi0_out>;
156 compatible = "arm,smc-wdt";
169 domain-supply = <&da9211_vgpu_reg>;
177 proc-supply = <&mt6397_vpca15_reg>;
181 proc-supply = <&mt6397_vpca15_reg>;
185 proc-supply = <&da9211_vcpu_reg>;
186 sram-supply = <&mt6397_vsramca7_reg>;
190 proc-supply = <&da9211_vcpu_reg>;
191 sram-supply = <&mt6397_vsramca7_reg>;
195 sustainable-power = <4500>; /* milliwatts */
197 threshold: trip-point0 {
201 target: trip-point1 {
212 remote-endpoint = <&ps8640_in>;
229 remote-endpoint = <&hdmi_connector_in>;
243 rt5650: audio-codec@1a {
246 avdd-supply = <&mt6397_vgp1_reg>;
247 cpvdd-supply = <&mt6397_vcama_reg>;
248 interrupt-parent = <&pio>;
250 pinctrl-names = "default";
251 pinctrl-0 = <&rt5650_irq>;
252 #sound-dai-cells = <1>;
253 realtek,dmic1-data-pin = <2>;
254 realtek,jd-mode = <2>;
257 ps8640: edp-bridge@8 {
260 powerdown-gpios = <&pio 127 GPIO_ACTIVE_LOW>;
261 reset-gpios = <&pio 115 GPIO_ACTIVE_LOW>;
262 pinctrl-names = "default";
263 pinctrl-0 = <&ps8640_pins>;
264 vdd12-supply = <&ps8640_fixed_1v2>;
265 vdd33-supply = <&mt6397_vgp2_reg>;
268 #address-cells = <1>;
269 #size-cells = <0>;
275 remote-endpoint = <&dsi0_out>;
283 remote-endpoint = <&panel_in>;
288 aux-bus {
290 compatible = "edp-panel";
291 power-supply = <&panel_fixed_3v3>;
296 remote-endpoint = <&ps8640_out>;
305 clock-frequency = <1500000>;
311 interrupt-parent = <&pio>;
316 regulator-name = "VBUCKA";
317 regulator-min-microvolt = < 700000>;
318 regulator-max-microvolt = <1310000>;
319 regulator-min-microamp = <2000000>;
320 regulator-max-microamp = <4400000>;
321 regulator-ramp-delay = <10000>;
322 regulator-always-on;
323 regulator-allowed-modes = <DA9211_BUCK_MODE_SYNC
328 regulator-name = "VBUCKB";
329 regulator-min-microvolt = < 700000>;
330 regulator-max-microvolt = <1310000>;
331 regulator-min-microamp = <2000000>;
332 regulator-max-microamp = <3000000>;
333 regulator-ramp-delay = <10000>;
345 powered-while-suspended;
350 clock-frequency = <400000>;
356 interrupt-parent = <&pio>;
362 clock-frequency = <400000>;
364 pinctrl-names = "default";
365 pinctrl-0 = <&trackpad_irq>;
369 interrupt-parent = <&pio>;
372 vcc-supply = <&mt6397_vgp6_reg>;
373 wakeup-source;
383 pinctrl-names = "default", "state_uhs";
384 pinctrl-0 = <&mmc0_pins_default>;
385 pinctrl-1 = <&mmc0_pins_uhs>;
386 bus-width = <8>;
387 max-frequency = <200000000>;
388 cap-mmc-highspeed;
389 mmc-hs200-1_8v;
390 mmc-hs400-1_8v;
391 cap-mmc-hw-reset;
392 hs400-ds-delay = <0x14015>;
393 mediatek,hs200-cmd-int-delay = <30>;
394 mediatek,hs400-cmd-int-delay = <14>;
395 mediatek,hs400-cmd-resp-sel-rising;
396 vmmc-supply = <&mt6397_vemc_3v3_reg>;
397 vqmmc-supply = <&mt6397_vio18_reg>;
398 assigned-clocks = <&topckgen CLK_TOP_MSDC50_0_SEL>;
399 assigned-clock-parents = <&topckgen CLK_TOP_MSDCPLL_D2>;
400 non-removable;
405 pinctrl-names = "default", "state_uhs";
406 pinctrl-0 = <&mmc1_pins_default>;
407 pinctrl-1 = <&mmc1_pins_uhs>;
408 bus-width = <4>;
409 max-frequency = <200000000>;
410 cap-sd-highspeed;
411 sd-uhs-sdr50;
412 sd-uhs-sdr104;
413 cd-gpios = <&pio 1 GPIO_ACTIVE_LOW>;
414 vmmc-supply = <&mt6397_vmch_reg>;
415 vqmmc-supply = <&mt6397_vmc_reg>;
420 pinctrl-names = "default", "state_uhs";
421 pinctrl-0 = <&mmc3_pins_default>;
422 pinctrl-1 = <&mmc3_pins_uhs>;
423 bus-width = <4>;
424 max-frequency = <200000000>;
425 cap-sd-highspeed;
426 sd-uhs-sdr50;
427 sd-uhs-sdr104;
428 keep-power-in-suspend;
429 wakeup-source;
430 cap-sdio-irq;
431 vmmc-supply = <&sdio_fixed_3v3>;
432 vqmmc-supply = <&mt6397_vgp3_reg>;
433 non-removable;
434 cap-power-off-card;
436 #address-cells = <1>;
437 #size-cells = <0>;
440 compatible = "marvell,sd8897-bt";
442 interrupt-parent = <&pio>;
444 marvell,wakeup-pin = /bits/ 16 <0x0d>;
445 marvell,wakeup-gap-ms = /bits/ 16 <0x64>;
451 interrupt-parent = <&pio>;
453 marvell,wakeup-pin = <3>;
459 pinctrl-names = "default";
460 pinctrl-0 = <&nor_gpio1_pins>;
463 compatible = "jedec,spi-nor";
465 spi-max-frequency = <50000000>;
470 gpio-line-names = "EC_INT_1V8",
619 bias-pull-down;
626 output-low;
633 bias-pull-up;
640 output-low;
648 bias-pull-up;
653 bias-pull-up;
666 bias-pull-up;
681 bias-pull-up;
686 bias-pull-down;
691 bias-pull-up;
702 input-enable;
703 drive-strength = <MTK_DRIVE_4mA>;
704 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
709 bias-pull-down;
710 drive-strength = <MTK_DRIVE_4mA>;
715 bias-pull-up;
725 input-enable;
726 drive-strength = <MTK_DRIVE_8mA>;
727 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
732 input-enable;
733 drive-strength = <MTK_DRIVE_8mA>;
734 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
739 bias-pull-down;
740 drive-strength = <MTK_DRIVE_8mA>;
755 input-enable;
756 drive-strength = <MTK_DRIVE_6mA>;
757 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
762 drive-strength = <MTK_DRIVE_6mA>;
763 bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
768 drive-strength = <MTK_DRIVE_10mA>;
769 bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
774 bias-pull-up;
785 input-enable;
786 drive-strength = <MTK_DRIVE_6mA>;
787 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
792 drive-strength = <MTK_DRIVE_8mA>;
793 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
803 input-enable;
804 drive-strength = <MTK_DRIVE_8mA>;
805 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
810 input-enable;
811 drive-strength = <MTK_DRIVE_8mA>;
812 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
817 drive-strength = <MTK_DRIVE_8mA>;
818 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
827 input-enable;
828 drive-strength = <MTK_DRIVE_4mA>;
829 bias-pull-up;
834 drive-strength = <MTK_DRIVE_4mA>;
835 bias-pull-up;
840 input-enable;
841 drive-strength = <MTK_DRIVE_4mA>;
842 bias-pull-up;
875 bias-pull-down;
882 output-low;
889 bias-pull-up;
897 bias-disable;
904 input-enable;
905 bias-pull-up;
912 output-high;
913 bias-disable;
920 bias-pull-up;
926 pinctrl-names = "default";
927 pinctrl-0 = <&disp_pwm0_pins>;
934 #address-cells = <1>;
935 #size-cells = <1>;
936 interrupt-parent = <&pio>;
938 interrupt-controller;
939 #interrupt-cells = <2>;
942 compatible = "mediatek,mt6397-clk";
943 #clock-cells = <1>;
947 compatible = "mediatek,mt6397-pinctrl";
948 gpio-controller;
949 #gpio-cells = <2>;
953 compatible = "mediatek,mt6397-regulator";
956 regulator-name = "vpca15";
957 regulator-min-microvolt = < 700000>;
958 regulator-max-microvolt = <1350000>;
959 regulator-ramp-delay = <12500>;
960 regulator-always-on;
961 regulator-allowed-modes = <0 1>;
965 regulator-name = "vpca7";
966 regulator-min-microvolt = < 700000>;
967 regulator-max-microvolt = <1350000>;
968 regulator-ramp-delay = <12500>;
969 regulator-enable-ramp-delay = <115>;
970 regulator-always-on;
974 regulator-name = "vsramca15";
975 regulator-min-microvolt = < 700000>;
976 regulator-max-microvolt = <1350000>;
977 regulator-ramp-delay = <12500>;
978 regulator-always-on;
982 regulator-name = "vsramca7";
983 regulator-min-microvolt = < 700000>;
984 regulator-max-microvolt = <1350000>;
985 regulator-ramp-delay = <12500>;
986 regulator-always-on;
990 regulator-name = "vcore";
991 regulator-min-microvolt = < 700000>;
992 regulator-max-microvolt = <1350000>;
993 regulator-ramp-delay = <12500>;
994 regulator-always-on;
998 regulator-name = "vgpu";
999 regulator-min-microvolt = < 700000>;
1000 regulator-max-microvolt = <1350000>;
1001 regulator-ramp-delay = <12500>;
1002 regulator-enable-ramp-delay = <115>;
1006 regulator-name = "vdrm";
1007 regulator-min-microvolt = <1200000>;
1008 regulator-max-microvolt = <1400000>;
1009 regulator-ramp-delay = <12500>;
1010 regulator-always-on;
1014 regulator-name = "vio18";
1015 regulator-min-microvolt = <1620000>;
1016 regulator-max-microvolt = <1980000>;
1017 regulator-ramp-delay = <12500>;
1018 regulator-always-on;
1022 regulator-name = "vtcxo";
1023 regulator-always-on;
1027 regulator-name = "va28";
1031 regulator-name = "vcama";
1032 regulator-min-microvolt = <1800000>;
1033 regulator-max-microvolt = <1800000>;
1034 regulator-enable-ramp-delay = <218>;
1038 regulator-name = "vio28";
1039 regulator-always-on;
1043 regulator-name = "vusb";
1047 regulator-name = "vmc";
1048 regulator-min-microvolt = <1800000>;
1049 regulator-max-microvolt = <3300000>;
1050 regulator-enable-ramp-delay = <218>;
1054 regulator-name = "vmch";
1055 regulator-min-microvolt = <3000000>;
1056 regulator-max-microvolt = <3300000>;
1057 regulator-enable-ramp-delay = <218>;
1061 regulator-name = "vemc_3v3";
1062 regulator-min-microvolt = <3000000>;
1063 regulator-max-microvolt = <3300000>;
1064 regulator-enable-ramp-delay = <218>;
1068 regulator-name = "vcamd";
1069 regulator-min-microvolt = <1800000>;
1070 regulator-max-microvolt = <1800000>;
1071 regulator-enable-ramp-delay = <240>;
1075 regulator-name = "vcamio";
1076 regulator-min-microvolt = <3300000>;
1077 regulator-max-microvolt = <3300000>;
1078 regulator-enable-ramp-delay = <218>;
1082 regulator-name = "vcamaf";
1083 regulator-min-microvolt = <1800000>;
1084 regulator-max-microvolt = <1800000>;
1085 regulator-enable-ramp-delay = <218>;
1089 regulator-name = "vgp4";
1090 regulator-min-microvolt = <1200000>;
1091 regulator-max-microvolt = <3300000>;
1092 regulator-enable-ramp-delay = <218>;
1096 regulator-name = "vgp5";
1097 regulator-min-microvolt = <1200000>;
1098 regulator-max-microvolt = <3000000>;
1099 regulator-enable-ramp-delay = <218>;
1103 regulator-name = "vgp6";
1104 regulator-min-microvolt = <3300000>;
1105 regulator-max-microvolt = <3300000>;
1106 regulator-enable-ramp-delay = <218>;
1107 regulator-always-on;
1111 regulator-name = "vibr";
1112 regulator-min-microvolt = <1300000>;
1113 regulator-max-microvolt = <3300000>;
1114 regulator-enable-ramp-delay = <218>;
1119 compatible = "mediatek,mt6397-rtc";
1123 compatible = "mediatek,mt6397-pctl-pmic-syscfg",
1130 &spi {
1131 pinctrl-names = "default";
1132 pinctrl-0 = <&spi_pins_a>;
1133 mediatek,pad-select = <1>;
1137 compatible = "google,cros-ec-spi";
1139 spi-max-frequency = <12000000>;
1140 interrupt-parent = <&pio>;
1142 google,cros-ec-spi-msg-delay = <500>;
1144 i2c_tunnel: i2c-tunnel0 {
1145 compatible = "google,cros-ec-i2c-tunnel";
1146 google,remote-bus = <0>;
1147 #address-cells = <1>;
1148 #size-cells = <0>;
1150 battery: sbs-battery@b {
1151 compatible = "sbs,sbs-battery";
1153 sbs,i2c-retry-count = <2>;
1154 sbs,poll-retry-count = <1>;
1162 wakeup-source;
1163 vusb33-supply = <&mt6397_vusb_reg>;
1168 bank0-supply = <&mt6397_vpca15_reg>;
1169 bank1-supply = <&da9211_vcpu_reg>;
1177 pinctrl-names = "default";
1178 pinctrl-0 = <&usb_pins>;
1179 vusb33-supply = <&mt6397_vusb_reg>;
1183 #include <arm/cros-ec-keyboard.dtsi>