Lines Matching +full:right +full:- +full:gpios

1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/pinctrl/rockchip.h>
16 chassis-type = "handset";
24 stdout-path = "serial2:115200n8";
27 adc_joystick: adc-joystick {
28 compatible = "adc-joystick";
29 io-channels = <&saradc 0>,
31 poll-interval = <100>;
32 #address-cells = <1>;
33 #size-cells = <0>;
37 abs-flat = <10>;
38 abs-fuzz = <10>;
39 abs-range = <850 175>;
45 abs-flat = <10>;
46 abs-fuzz = <10>;
47 abs-range = <800 190>;
52 adc_keys: adc-keys {
53 compatible = "adc-keys";
54 io-channels = <&saradc 2>;
55 io-channel-names = "buttons";
56 keyup-threshold-microvolt = <1800000>;
57 poll-interval = <60>;
59 button-1 {
62 press-threshold-microvolt = <15000>;
65 button-2 {
68 press-threshold-microvolt = <300000>;
73 compatible = "pwm-backlight";
74 power-supply = <&vcc_bl>;
79 compatible = "simple-battery";
80 charge-full-design-microamp-hours = <3000000>;
81 charge-term-current-microamp = <300000>;
82 constant-charge-current-max-microamp = <1500000>;
83 constant-charge-voltage-max-microvolt = <4200000>;
84 factory-internal-resistance-micro-ohms = <180000>;
85 ocv-capacity-celsius = <20>;
86 ocv-capacity-table-0 = <4106000 100>, <4071000 95>, <4018000 90>, <3975000 85>,
92 voltage-max-design-microvolt = <4250000>;
93 voltage-min-design-microvolt = <3400000>;
96 gpio_leds: gpio-leds {
97 compatible = "gpio-leds";
98 pinctrl-names = "default";
99 pinctrl-0 = <&led_pins>;
101 red_led: led-0 {
103 gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>;
106 green_led: led-1 {
108 gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>;
111 blue_led: led-2 {
113 gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>;
116 white_led: led-3 {
119 gpios = <&gpio3 RK_PB3 GPIO_ACTIVE_HIGH>;
122 chg_led: led-4 {
125 gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_HIGH>;
130 gpio_keys: gpio-keys {
131 compatible = "gpio-keys";
132 pinctrl-0 = <&btn_pins_ctrl>;
133 pinctrl-names = "default";
135 button-a {
136 gpios = <&gpio2 RK_PB0 GPIO_ACTIVE_LOW>;
141 button-b {
142 gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>;
147 button-down {
148 gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_LOW>;
149 label = "DPAD-DOWN";
153 button-home {
154 gpios = <&gpio2 RK_PA0 GPIO_ACTIVE_LOW>;
159 button-l1 {
160 gpios = <&gpio2 RK_PA6 GPIO_ACTIVE_LOW>;
165 button-l2 {
166 gpios = <&gpio2 RK_PA4 GPIO_ACTIVE_LOW>;
171 button-left {
172 gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_LOW>;
173 label = "DPAD-LEFT";
177 button-r1 {
178 gpios = <&gpio2 RK_PA7 GPIO_ACTIVE_LOW>;
183 button-r2 {
184 gpios = <&gpio2 RK_PA5 GPIO_ACTIVE_LOW>;
189 button-right {
190 gpios = <&gpio1 RK_PB7 GPIO_ACTIVE_LOW>;
191 label = "DPAD-RIGHT";
195 button-select {
196 gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_LOW>;
201 button-start {
202 gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_LOW>;
207 button-up {
208 gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_LOW>;
209 label = "DPAD-UP";
213 button-x {
214 gpios = <&gpio2 RK_PB3 GPIO_ACTIVE_LOW>;
219 button-y {
220 gpios = <&gpio2 RK_PB2 GPIO_ACTIVE_LOW>;
226 multi-led {
227 compatible = "leds-group-multicolor";
233 spk_amp: audio-amplifier {
234 compatible = "simple-audio-amplifier";
235 enable-gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>;
236 pinctrl-0 = <&spk_amp_enable_h>;
237 pinctrl-names = "default";
238 sound-name-prefix = "Speaker Amp";
242 compatible = "simple-audio-card";
243 pinctrl-0 = <&hp_det>;
244 pinctrl-names = "default";
245 simple-audio-card,name = "rk817_ext";
246 simple-audio-card,aux-devs = <&spk_amp>;
247 simple-audio-card,format = "i2s";
248 simple-audio-card,hp-det-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_HIGH>;
249 simple-audio-card,mclk-fs = <256>;
250 simple-audio-card,widgets =
254 simple-audio-card,routing =
262 simple-audio-card,pin-switches = "Internal Speakers";
264 simple-audio-card,codec {
265 sound-dai = <&rk817>;
268 simple-audio-card,cpu {
269 sound-dai = <&i2s1_2ch>;
273 vibrator_left: pwm-vibrator-l {
274 compatible = "pwm-vibrator";
275 pwm-names = "enable";
279 vibrator_right: pwm-vibrator-r {
280 compatible = "pwm-vibrator";
281 pwm-names = "enable";
285 sdio_pwrseq: sdio-pwrseq {
286 compatible = "mmc-pwrseq-simple";
288 clock-names = "ext_clock";
289 pinctrl-0 = <&wifi_enable_h>;
290 pinctrl-names = "default";
291 post-power-on-delay-ms = <200>;
292 reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
295 vccsys: vccsys-regulator {
296 compatible = "regulator-fixed";
297 regulator-name = "vcc3v8_sys";
298 regulator-always-on;
299 regulator-min-microvolt = <3800000>;
300 regulator-max-microvolt = <3800000>;
305 cpu-supply = <&vdd_arm>;
309 cpu-supply = <&vdd_arm>;
313 cpu-supply = <&vdd_arm>;
317 cpu-supply = <&vdd_arm>;
329 compatible = "gameforce,chi-panel";
331 iovcc-supply = <&vcc_lcd>;
332 vcc-supply = <&vcc_lcd>;
333 reset-gpios = <&gpio3 RK_PA0 GPIO_ACTIVE_LOW>;
337 remote-endpoint = <&mipi_out_panel>;
347 remote-endpoint = <&mipi_in_panel>;
358 mali-supply = <&vdd_logic>;
363 clock-frequency = <400000>;
364 i2c-scl-falling-time-ns = <16>;
365 i2c-scl-rising-time-ns = <280>;
371 #clock-cells = <1>;
372 clock-names = "mclk";
373 clock-output-names = "rk808-clkout1", "xin32k";
375 interrupt-parent = <&gpio0>;
377 pinctrl-0 = <&pmic_int>, <&i2s1_2ch_mclk>;
378 pinctrl-names = "default";
379 #sound-dai-cells = <0>;
380 system-power-controller;
381 wakeup-source;
383 vcc1-supply = <&vccsys>;
384 vcc2-supply = <&vccsys>;
385 vcc3-supply = <&vccsys>;
386 vcc4-supply = <&vccsys>;
387 vcc5-supply = <&vccsys>;
388 vcc6-supply = <&vccsys>;
389 vcc7-supply = <&vcc_3v0>;
390 vcc8-supply = <&vccsys>;
391 vcc9-supply = <&dcdc_boost>;
395 regulator-always-on;
396 regulator-boot-on;
397 regulator-max-microvolt = <1150000>;
398 regulator-min-microvolt = <950000>;
399 regulator-name = "vdd_logic";
400 regulator-ramp-delay = <6001>;
402 regulator-state-mem {
403 regulator-on-in-suspend;
404 regulator-suspend-microvolt = <950000>;
409 regulator-always-on;
410 regulator-boot-on;
411 regulator-max-microvolt = <1350000>;
412 regulator-min-microvolt = <950000>;
413 regulator-name = "vdd_arm";
414 regulator-ramp-delay = <6001>;
416 regulator-state-mem {
417 regulator-off-in-suspend;
418 regulator-suspend-microvolt = <950000>;
423 regulator-always-on;
424 regulator-boot-on;
425 regulator-name = "vcc_ddr";
427 regulator-state-mem {
428 regulator-on-in-suspend;
433 regulator-always-on;
434 regulator-boot-on;
435 regulator-max-microvolt = <3000000>;
436 regulator-min-microvolt = <3000000>;
437 regulator-name = "vcc_3v0";
439 regulator-state-mem {
440 regulator-off-in-suspend;
441 regulator-suspend-microvolt = <3000000>;
446 regulator-always-on;
447 regulator-boot-on;
448 regulator-max-microvolt = <1800000>;
449 regulator-min-microvolt = <1800000>;
450 regulator-name = "vcc_1v8";
452 regulator-state-mem {
453 regulator-on-in-suspend;
454 regulator-suspend-microvolt = <1800000>;
459 regulator-always-on;
460 regulator-boot-on;
461 regulator-max-microvolt = <1000000>;
462 regulator-min-microvolt = <1000000>;
463 regulator-name = "vdd_1v0";
465 regulator-state-mem {
466 regulator-on-in-suspend;
467 regulator-suspend-microvolt = <1000000>;
472 regulator-always-on;
473 regulator-boot-on;
474 regulator-max-microvolt = <3000000>;
475 regulator-min-microvolt = <3000000>;
476 regulator-name = "vcc_3v0_pmu";
478 regulator-state-mem {
479 regulator-on-in-suspend;
480 regulator-suspend-microvolt = <3000000>;
485 regulator-always-on;
486 regulator-boot-on;
487 regulator-max-microvolt = <3300000>;
488 regulator-min-microvolt = <1800000>;
489 regulator-name = "vccio_sd";
491 regulator-state-mem {
492 regulator-on-in-suspend;
493 regulator-suspend-microvolt = <3300000>;
498 regulator-boot-on;
499 regulator-max-microvolt = <3300000>;
500 regulator-min-microvolt = <3300000>;
501 regulator-name = "vcc_sd";
503 regulator-state-mem {
504 regulator-on-in-suspend;
505 regulator-suspend-microvolt = <3300000>;
510 regulator-max-microvolt = <3300000>;
511 regulator-min-microvolt = <3300000>;
512 regulator-name = "vcc_bl";
514 regulator-state-mem {
515 regulator-off-in-suspend;
516 regulator-suspend-microvolt = <3300000>;
521 regulator-max-microvolt = <2800000>;
522 regulator-min-microvolt = <2800000>;
523 regulator-name = "vcc_lcd";
525 regulator-state-mem {
526 regulator-off-in-suspend;
527 regulator-suspend-microvolt = <2800000>;
532 regulator-always-on;
533 regulator-boot-on;
534 regulator-max-microvolt = <3300000>;
535 regulator-min-microvolt = <3300000>;
536 regulator-name = "vcc_wifi";
538 regulator-state-mem {
539 regulator-off-in-suspend;
540 regulator-suspend-microvolt = <3300000>;
545 regulator-max-microvolt = <5000000>;
546 regulator-min-microvolt = <5000000>;
547 regulator-name = "dcdc_boost";
549 regulator-state-mem {
550 regulator-off-in-suspend;
555 regulator-name = "otg_switch";
557 regulator-state-mem {
558 regulator-off-in-suspend;
564 monitored-battery = <&battery>;
565 rockchip,resistor-sense-micro-ohms = <10000>;
566 rockchip,sleep-enter-current-microamp = <300000>;
567 rockchip,sleep-filter-current-microamp = <100000>;
577 vccio1-supply = <&vcc_3v0_pmu>;
578 vccio2-supply = <&vccio_sd>;
579 vccio3-supply = <&vcc_3v0>;
580 vccio4-supply = <&vcc_3v0>;
581 vccio5-supply = <&vcc_3v0>;
582 vccio6-supply = <&vcc_3v0>;
587 bluetooth-pins {
588 bt_reset: bt-reset {
593 bt_wake_dev: bt-wake-dev {
598 bt_wake_host: bt-wake-host {
605 hp_det: hp-det {
611 gpio-btns {
612 btn_pins_ctrl: btn-pins-ctrl {
632 gpio-leds {
633 led_pins: led-pins {
644 pmic_int: pmic-int {
665 sdio-pwrseq {
666 wifi_enable_h: wifi-enable-h {
673 spk_amp_enable_h: spk-amp-enable-h {
681 pmuio1-supply = <&vcc_1v8>;
682 pmuio2-supply = <&vcc_3v0_pmu>;
699 vref-supply = <&vcc_1v8>;
704 bus-width = <4>;
705 cap-sd-highspeed;
706 cap-sdio-irq;
707 disable-wp;
708 keep-power-in-suspend;
709 mmc-pwrseq = <&sdio_pwrseq>;
710 no-mmc;
711 no-sd;
712 non-removable;
713 sd-uhs-sdr104;
718 cap-mmc-highspeed;
719 cap-sd-highspeed;
720 no-sdio;
721 sd-uhs-sdr12;
722 sd-uhs-sdr25;
723 sd-uhs-sdr50;
724 sd-uhs-sdr104;
725 vmmc-supply = <&vcc_sd>;
726 vqmmc-supply = <&vccio_sd>;
731 #address-cells = <1>;
732 pinctrl-0 = <&sfc_clk &sfc_cs0 &sfc_bus2>;
733 pinctrl-names = "default";
734 #size-cells = <0>;
738 compatible = "jedec,spi-nor";
740 spi-max-frequency = <108000000>;
741 spi-rx-bus-width = <2>;
742 spi-tx-bus-width = <1>;
753 u2phy_otg: otg-port {
763 * The right ADC joystick exists connected to an unknown ADC
765 * is an 8-pin SOIC with no markings located right next to the left ADC
767 * be pin 1 - VCC (2.8v), pin 2 - 1.8v (clk maybe?), pin 3 - GPIO 10,
768 * pin 4 - unknown, pin 5 - unknown, pin 6 - analog in, pin 7 - analog in,
769 * pin 8 - ground. There is currently a userspace UART driver for this
782 /delete-property/ dma-names;
783 /delete-property/ dmas;
784 uart-has-rtscts;
788 compatible = "realtek,rtl8723ds-bt";
789 device-wake-gpios = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
790 enable-gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
791 host-wake-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_HIGH>;
792 pinctrl-0 = <&bt_reset>, <&bt_wake_dev>, <&bt_wake_host>;
793 pinctrl-names = "default";
798 pinctrl-0 = <&uart2m1_xfer>;
799 pinctrl-names = "default";