Lines Matching +full:suspend +full:- +full:gpios

1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/linux-event-codes.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/pinctrl/rockchip.h>
9 #include <dt-bindings/soc/rockchip,vop2.h>
14 chassis-type = "handset";
25 stdout-path = "serial2:1500000n8";
28 adc_joystick: adc-joystick {
29 compatible = "adc-joystick";
30 io-channels = <&saradc 0>, <&saradc 1>,
32 poll-interval = <60>;
33 #address-cells = <1>;
34 #size-cells = <0>;
38 abs-flat = <30>;
39 abs-fuzz = <20>;
40 abs-range = <15 1023>;
46 abs-flat = <30>;
47 abs-fuzz = <20>;
48 abs-range = <1023 15>;
54 abs-flat = <30>;
55 abs-fuzz = <20>;
56 abs-range = <15 1023>;
62 abs-flat = <30>;
63 abs-fuzz = <20>;
64 abs-range = <1023 15>;
70 compatible = "pwm-backlight";
71 power-supply = <&vcc_sys>;
76 compatible = "simple-battery";
77 charge-full-design-microamp-hours = <4000000>;
78 charge-term-current-microamp = <300000>;
79 constant-charge-current-max-microamp = <2000000>;
80 constant-charge-voltage-max-microvolt = <4300000>;
81 factory-internal-resistance-micro-ohms = <91000>;
82 voltage-max-design-microvolt = <4138000>;
83 voltage-min-design-microvolt = <3400000>;
85 ocv-capacity-celsius = <20>;
86 ocv-capacity-table-0 = <4138000 100>, <4083000 95>, <4059000 90>, <4044000 85>,
94 gpio_keys_control: gpio-keys-control {
95 compatible = "gpio-keys";
96 pinctrl-0 = <&btn_pins_ctrl>;
97 pinctrl-names = "default";
99 button-a {
100 gpios = <&gpio3 RK_PD3 GPIO_ACTIVE_LOW>;
105 button-b {
106 gpios = <&gpio3 RK_PD2 GPIO_ACTIVE_LOW>;
111 button-down {
112 gpios = <&gpio4 RK_PA1 GPIO_ACTIVE_LOW>;
113 label = "DPAD-DOWN";
117 button-l1 {
118 gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_LOW>;
123 button-l2 {
124 gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_LOW>;
129 button-left {
130 gpios = <&gpio3 RK_PD6 GPIO_ACTIVE_LOW>;
131 label = "DPAD-LEFT";
135 button-right {
136 gpios = <&gpio3 RK_PD7 GPIO_ACTIVE_LOW>;
137 label = "DPAD-RIGHT";
141 button-select {
142 gpios = <&gpio4 RK_PA4 GPIO_ACTIVE_LOW>;
147 button-start {
148 gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_LOW>;
153 button-thumbl {
154 gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_LOW>;
159 button-thumbr {
160 gpios = <&gpio4 RK_PB0 GPIO_ACTIVE_LOW>;
165 button-r1 {
166 gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_LOW>;
171 button-r2 {
172 gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>;
177 button-up {
178 gpios = <&gpio4 RK_PA0 GPIO_ACTIVE_LOW>;
179 label = "DPAD-UP";
183 button-x {
184 gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>;
189 button-y {
190 gpios = <&gpio3 RK_PD4 GPIO_ACTIVE_LOW>;
196 gpio_keys_vol: gpio-keys-vol {
197 compatible = "gpio-keys";
199 pinctrl-0 = <&btn_pins_vol>;
200 pinctrl-names = "default";
202 button-voldown {
203 gpios = <&gpio4 RK_PA3 GPIO_ACTIVE_LOW>;
208 button-volup {
209 gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_LOW>;
215 gpio_leds: gpio-leds {
216 compatible = "gpio-leds";
217 pinctrl-names = "default";
218 pinctrl-0 = <&led_pins>;
220 red_led: led-0 {
222 default-state = "off";
223 gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;
227 green_led: led-1 {
229 default-state = "on";
230 gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;
234 amber_led: led-2 {
236 gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
242 hdmi-con {
243 compatible = "hdmi-connector";
244 ddc-i2c-bus = <&i2c5>;
249 remote-endpoint = <&hdmi_out_con>;
254 sdio_pwrseq: sdio-pwrseq {
255 compatible = "mmc-pwrseq-simple";
257 clock-names = "ext_clock";
258 pinctrl-0 = <&wifi_enable_h>;
259 pinctrl-names = "default";
260 post-power-on-delay-ms = <200>;
261 reset-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_LOW>;
266 compatible = "simple-audio-card";
267 pinctrl-0 = <&hp_det>;
268 pinctrl-names = "default";
269 simple-audio-card,name = "rk817_ext";
270 simple-audio-card,aux-devs = <&spk_amp>;
271 simple-audio-card,format = "i2s";
272 simple-audio-card,hp-det-gpio = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
273 simple-audio-card,mclk-fs = <256>;
274 simple-audio-card,widgets =
278 simple-audio-card,routing =
286 simple-audio-card,pin-switches = "Internal Speakers";
288 simple-audio-card,codec {
289 sound-dai = <&rk817>;
292 simple-audio-card,cpu {
293 sound-dai = <&i2s1_8ch>;
297 spk_amp: audio-amplifier {
298 compatible = "simple-audio-amplifier";
299 enable-gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>;
300 pinctrl-0 = <&spk_amp_enable_h>;
301 pinctrl-names = "default";
302 sound-name-prefix = "Speaker Amp";
305 vcc5v0_host: regulator-vcc5v0-host {
306 compatible = "regulator-fixed";
307 enable-active-high;
309 pinctrl-0 = <&vcc5v0_host_en>;
310 pinctrl-names = "default";
311 regulator-name = "vcc5v0_host";
312 vin-supply = <&dcdc_boost>;
315 vcc_lcd: regulator-vcc-lcd {
316 compatible = "regulator-fixed";
317 enable-active-high;
319 pinctrl-0 = <&vcc_lcd_en>;
320 pinctrl-names = "default";
321 regulator-min-microvolt = <3300000>;
322 regulator-max-microvolt = <3300000>;
323 regulator-name = "vcc_lcd";
326 vcc_sys: regulator-vcc-sys {
327 compatible = "regulator-fixed";
328 regulator-always-on;
329 regulator-boot-on;
330 regulator-min-microvolt = <3800000>;
331 regulator-max-microvolt = <3800000>;
332 regulator-name = "vcc_sys";
335 vcc_wifi: regulator-vcc-wifi {
336 compatible = "regulator-fixed";
338 pinctrl-0 = <&vcc_wifi_h>;
339 pinctrl-names = "default";
340 regulator-min-microvolt = <3300000>;
341 regulator-max-microvolt = <3300000>;
342 regulator-name = "vcc_wifi";
351 assigned-clocks = <&pmucru CLK_RTC_32K>, <&cru PLL_GPLL>,
353 assigned-clock-rates = <32768>, <1200000000>,
358 cpu-supply = <&vdd_cpu>;
362 cpu-supply = <&vdd_cpu>;
366 cpu-supply = <&vdd_cpu>;
370 cpu-supply = <&vdd_cpu>;
379 #address-cells = <1>;
380 #size-cells = <0>;
386 remote-endpoint = <&vp1_out_dsi0>;
393 remote-endpoint = <&mipi_in_panel>;
399 compatible = "powkiddy,x55-panel", "himax,hx8394";
402 iovcc-supply = <&vcc_lcd>;
403 pinctrl-names = "default";
404 pinctrl-0 = <&lcd_rst>;
405 reset-gpios = <&gpio0 RK_PD5 GPIO_ACTIVE_LOW>;
407 vcc-supply = <&vcc_lcd>;
411 remote-endpoint = <&mipi_out_panel>;
418 mali-supply = <&vdd_gpu>;
423 ddc-i2c-bus = <&i2c5>;
424 pinctrl-0 = <&hdmitxm0_cec>;
425 pinctrl-names = "default";
431 remote-endpoint = <&vp0_out_hdmi>;
437 remote-endpoint = <&hdmi_con_in>;
451 assigned-clocks = <&cru I2S1_MCLKOUT_TX>;
452 assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>;
453 clock-names = "mclk";
454 clock-output-names = "rk808-clkout1", "rk808-clkout2";
456 interrupt-parent = <&gpio0>;
458 pinctrl-names = "default";
459 pinctrl-0 = <&i2s1m0_mclk>, <&pmic_int_l>;
460 wakeup-source;
461 #clock-cells = <1>;
462 #sound-dai-cells = <0>;
464 vcc1-supply = <&vcc_sys>;
465 vcc2-supply = <&vcc_sys>;
466 vcc3-supply = <&vcc_sys>;
467 vcc4-supply = <&vcc_sys>;
468 vcc5-supply = <&vcc_sys>;
469 vcc6-supply = <&vcc_sys>;
470 vcc7-supply = <&vcc_sys>;
471 vcc8-supply = <&vcc_sys>;
472 vcc9-supply = <&dcdc_boost>;
476 regulator-always-on;
477 regulator-boot-on;
478 regulator-min-microvolt = <500000>;
479 regulator-max-microvolt = <1350000>;
480 regulator-ramp-delay = <6001>;
481 regulator-initial-mode = <0x2>;
482 regulator-name = "vdd_logic";
483 regulator-state-mem {
484 regulator-off-in-suspend;
485 regulator-suspend-microvolt = <900000>;
490 regulator-always-on;
491 regulator-boot-on;
492 regulator-min-microvolt = <500000>;
493 regulator-max-microvolt = <1350000>;
494 regulator-ramp-delay = <6001>;
495 regulator-initial-mode = <0x2>;
496 regulator-name = "vdd_gpu";
497 regulator-state-mem {
498 regulator-off-in-suspend;
503 regulator-always-on;
504 regulator-boot-on;
505 regulator-initial-mode = <0x2>;
506 regulator-name = "vcc_ddr";
507 regulator-state-mem {
508 regulator-on-in-suspend;
513 regulator-always-on;
514 regulator-boot-on;
515 regulator-min-microvolt = <3300000>;
516 regulator-max-microvolt = <3300000>;
517 regulator-initial-mode = <0x2>;
518 regulator-name = "vcc_3v3";
519 regulator-state-mem {
520 regulator-on-in-suspend;
521 regulator-suspend-microvolt = <3300000>;
526 regulator-always-on;
527 regulator-boot-on;
528 regulator-min-microvolt = <1800000>;
529 regulator-max-microvolt = <1800000>;
530 regulator-name = "vcca1v8_pmu";
531 regulator-state-mem {
532 regulator-on-in-suspend;
533 regulator-suspend-microvolt = <1800000>;
538 regulator-always-on;
539 regulator-boot-on;
540 regulator-min-microvolt = <900000>;
541 regulator-max-microvolt = <900000>;
542 regulator-name = "vdda_0v9";
543 regulator-state-mem {
544 regulator-off-in-suspend;
549 regulator-always-on;
550 regulator-boot-on;
551 regulator-min-microvolt = <900000>;
552 regulator-max-microvolt = <900000>;
553 regulator-name = "vdda0v9_pmu";
554 regulator-state-mem {
555 regulator-on-in-suspend;
556 regulator-suspend-microvolt = <900000>;
561 regulator-always-on;
562 regulator-boot-on;
563 regulator-min-microvolt = <3300000>;
564 regulator-max-microvolt = <3300000>;
565 regulator-name = "vccio_acodec";
566 regulator-state-mem {
567 regulator-off-in-suspend;
572 regulator-always-on;
573 regulator-boot-on;
574 regulator-min-microvolt = <1800000>;
575 regulator-max-microvolt = <3300000>;
576 regulator-name = "vccio_sd";
577 regulator-state-mem {
578 regulator-off-in-suspend;
583 regulator-always-on;
584 regulator-boot-on;
585 regulator-min-microvolt = <3300000>;
586 regulator-max-microvolt = <3300000>;
587 regulator-name = "vcc3v3_pmu";
588 regulator-state-mem {
589 regulator-on-in-suspend;
590 regulator-suspend-microvolt = <3300000>;
595 regulator-always-on;
596 regulator-boot-on;
597 regulator-min-microvolt = <1800000>;
598 regulator-max-microvolt = <1800000>;
599 regulator-name = "vcc_1v8";
600 regulator-state-mem {
601 regulator-off-in-suspend;
606 regulator-always-on;
607 regulator-boot-on;
608 regulator-min-microvolt = <1800000>;
609 regulator-max-microvolt = <1800000>;
610 regulator-name = "vcc1v8_dvp";
611 regulator-state-mem {
612 regulator-on-in-suspend;
617 regulator-always-on;
618 regulator-boot-on;
619 regulator-min-microvolt = <1800000>;
620 regulator-max-microvolt = <3300000>;
621 regulator-name = "vcc2v8_dvp";
622 regulator-state-mem {
623 regulator-off-in-suspend;
628 regulator-min-microvolt = <4700000>;
629 regulator-max-microvolt = <5400000>;
630 regulator-name = "boost";
631 regulator-state-mem {
632 regulator-off-in-suspend;
637 regulator-name = "otg_switch";
638 regulator-state-mem {
639 regulator-off-in-suspend;
645 monitored-battery = <&battery>;
646 rockchip,resistor-sense-micro-ohms = <10000>;
647 rockchip,sleep-enter-current-microamp = <150000>;
648 rockchip,sleep-filter-current-microamp = <100000>;
656 fcs,suspend-voltage-selector = <1>;
657 regulator-always-on;
658 regulator-boot-on;
659 regulator-min-microvolt = <712500>;
660 regulator-max-microvolt = <1390000>;
661 regulator-name = "vdd_cpu";
662 regulator-ramp-delay = <2300>;
663 vin-supply = <&vcc_sys>;
664 regulator-state-mem {
665 regulator-off-in-suspend;
671 pinctrl-0 = <&i2c5m1_xfer>;
672 pinctrl-names = "default";
681 pinctrl-0 = <&i2s1m0_sclktx>, <&i2s1m0_lrcktx>, <&i2s1m0_sdi0>,
683 pinctrl-names = "default";
684 rockchip,trcm-sync-tx-only;
689 audio-amplifier {
690 spk_amp_enable_h: spk-amp-enable-h {
696 gpio-control {
697 btn_pins_ctrl: btn-pins-ctrl {
717 btn_pins_vol: btn-pins-vol {
724 gpio-lcd {
725 lcd_rst: lcd-rst {
731 gpio-leds {
732 led_pins: led-pins {
740 hp-detect {
741 hp_det: hp-det {
748 pmic_int_l: pmic-int-l {
754 sdio-pwrseq {
755 wifi_enable_h: wifi-enable-h {
762 vcc5v0_host_en: vcc5v0-host-en {
767 vcc5v0_otg_en: vcc5v0-otg-en {
773 vcc-lcd {
774 vcc_lcd_en: vcc-lcd-en {
780 vcc-wifi {
781 vcc_wifi_h: vcc-wifi-h {
790 pmuio1-supply = <&vcc3v3_pmu>;
791 pmuio2-supply = <&vcca1v8_pmu>;
792 vccio1-supply = <&vccio_acodec>;
793 vccio3-supply = <&vccio_sd>;
794 vccio4-supply = <&vcca1v8_pmu>;
795 vccio5-supply = <&vcc2v8_dvp>;
796 vccio6-supply = <&vcc1v8_dvp>;
797 vccio7-supply = <&vcc_3v3>;
805 vref-supply = <&vcc_1v8>;
810 bus-width = <8>;
811 mmc-hs200-1_8v;
812 non-removable;
813 pinctrl-0 = <&emmc_bus8>, <&emmc_clk>, <&emmc_cmd>,
815 pinctrl-names = "default";
820 bus-width = <4>;
821 cap-mmc-highspeed;
822 cap-sd-highspeed;
823 disable-wp;
824 pinctrl-0 = <&sdmmc0_bus4>, <&sdmmc0_clk>, <&sdmmc0_cmd>,
826 pinctrl-names = "default";
827 sd-uhs-sdr104;
828 vqmmc-supply = <&vccio_sd>;
833 bus-width = <4>;
834 cap-sd-highspeed;
835 cap-sdio-irq;
836 keep-power-in-suspend;
837 mmc-pwrseq = <&sdio_pwrseq>;
838 non-removable;
839 pinctrl-0 = <&sdmmc1_bus4>, <&sdmmc1_cmd>, <&sdmmc1_clk>;
840 pinctrl-names = "default";
841 vmmc-supply = <&vcc_wifi>;
846 bus-width = <4>;
847 cap-mmc-highspeed;
848 cap-sd-highspeed;
849 disable-wp;
850 pinctrl-0 = <&sdmmc2m1_bus4>, <&sdmmc2m1_cmd>, <&sdmmc2m1_clk>,
852 pinctrl-names = "default";
853 sd-uhs-sdr104;
854 vqmmc-supply = <&vcc2v8_dvp>;
859 rockchip,hw-tshut-mode = <1>;
860 rockchip,hw-tshut-polarity = <0>;
865 pinctrl-0 = <&uart1m0_xfer>, <&uart1m0_ctsn>, <&uart1m0_rtsn>;
866 pinctrl-names = "default";
867 uart-has-rtscts;
871 compatible = "realtek,rtl8821cs-bt", "realtek,rtl8723bs-bt";
872 device-wake-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
873 enable-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
874 host-wake-gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
884 phy-names = "usb2-phy";
901 phy-supply = <&vcc5v0_host>;
906 assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
907 assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
918 remote-endpoint = <&hdmi_in_vp0>;
925 remote-endpoint = <&dsi0_in_vp1>;