Lines Matching +full:scl +full:- +full:gpios
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
9 * https://files.pine64.org/doc/PinePhonePro/PinephonePro-Schematic-V1.0-20211127.pdf
12 /dts-v1/;
13 #include <dt-bindings/input/gpio-keys.h>
14 #include <dt-bindings/input/linux-event-codes.h>
15 #include <dt-bindings/leds/common.h>
16 #include "rk3399-s.dtsi"
20 compatible = "pine64,pinephone-pro", "rockchip,rk3399";
21 chassis-type = "handset";
30 stdout-path = "serial2:115200n8";
33 adc-keys {
34 compatible = "adc-keys";
35 io-channels = <&saradc 1>;
36 io-channel-names = "buttons";
37 keyup-threshold-microvolt = <1600000>;
38 poll-interval = <100>;
40 button-up {
43 press-threshold-microvolt = <100000>;
46 button-down {
49 press-threshold-microvolt = <600000>;
54 compatible = "pwm-backlight";
58 gpio-keys {
59 compatible = "gpio-keys";
60 pinctrl-names = "default";
61 pinctrl-0 = <&pwrbtn_pin>;
63 key-power {
64 debounce-interval = <20>;
65 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
68 wakeup-source;
73 compatible = "gpio-leds";
74 pinctrl-names = "default";
75 pinctrl-0 = <&red_led_pin &green_led_pin &blue_led_pin>;
77 led_red: led-0 {
79 gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
82 led_green: led-1 {
84 gpios = <&gpio4 RK_PD5 GPIO_ACTIVE_HIGH>;
87 led_blue: led-2 {
89 gpios = <&gpio4 RK_PD6 GPIO_ACTIVE_HIGH>;
93 multi-led {
94 compatible = "leds-group-multicolor";
100 vcc_sys: regulator-vcc-sys {
101 compatible = "regulator-fixed";
102 regulator-name = "vcc_sys";
103 regulator-always-on;
104 regulator-boot-on;
107 avdd2v8_dvp: regulator-avdd2v8-dvp {
108 compatible = "regulator-fixed";
109 regulator-name = "avdd2v8_dvp";
110 regulator-always-on;
111 regulator-boot-on;
112 regulator-min-microvolt = <2800000>;
113 regulator-max-microvolt = <2800000>;
114 vin-supply = <&vcc3v3_sys>;
117 vcc3v3_sys: regulator-vcc3v3-sys {
118 compatible = "regulator-fixed";
119 regulator-name = "vcc3v3_sys";
120 regulator-always-on;
121 regulator-boot-on;
122 regulator-min-microvolt = <3300000>;
123 regulator-max-microvolt = <3300000>;
124 vin-supply = <&vcc_sys>;
127 vcca1v8_s3: regulator-vcc1v8-s3 {
128 compatible = "regulator-fixed";
129 regulator-name = "vcca1v8_s3";
130 regulator-min-microvolt = <1800000>;
131 regulator-max-microvolt = <1800000>;
132 vin-supply = <&vcc3v3_sys>;
133 regulator-always-on;
134 regulator-boot-on;
137 vcc1v8_codec: regulator-vcc1v8-codec {
138 compatible = "regulator-fixed";
139 enable-active-high;
141 pinctrl-names = "default";
142 pinctrl-0 = <&vcc1v8_codec_en>;
143 regulator-name = "vcc1v8_codec";
144 regulator-min-microvolt = <1800000>;
145 regulator-max-microvolt = <1800000>;
146 vin-supply = <&vcc3v3_sys>;
149 vcc1v2_dvp: regulator-vcc1v2-dvp {
150 compatible = "regulator-fixed";
151 regulator-name = "vcc1v2_dvp";
152 regulator-always-on;
153 regulator-boot-on;
154 regulator-min-microvolt = <1200000>;
155 regulator-max-microvolt = <1200000>;
156 vin-supply = <&vcca1v8_s3>;
159 wifi_pwrseq: sdio-wifi-pwrseq {
160 compatible = "mmc-pwrseq-simple";
162 clock-names = "ext_clock";
163 pinctrl-names = "default";
164 pinctrl-0 = <&wifi_enable_h_pin>;
166 * Wait between power-on and SDIO access for CYP43455
169 post-power-on-delay-ms = <110>;
174 power-off-delay-us = <10000>;
177 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
181 vcc1v8_lcd: regulator-vcc1v8-lcd {
182 compatible = "regulator-fixed";
183 enable-active-high;
184 regulator-name = "vcc1v8_lcd";
185 regulator-min-microvolt = <1800000>;
186 regulator-max-microvolt = <1800000>;
187 vin-supply = <&vcc3v3_sys>;
192 vcc2v8_lcd: regulator-vcc2v8-lcd {
193 compatible = "regulator-fixed";
194 enable-active-high;
195 regulator-name = "vcc2v8_lcd";
196 regulator-min-microvolt = <2800000>;
197 regulator-max-microvolt = <2800000>;
198 vin-supply = <&vcc3v3_sys>;
203 compatible = "gpio-vibrator";
204 enable-gpios = <&gpio3 RK_PB1 GPIO_ACTIVE_HIGH>;
205 vcc-supply = <&vcc3v3_sys>;
217 cpu-supply = <&vdd_cpu_l>;
221 cpu-supply = <&vdd_cpu_l>;
225 cpu-supply = <&vdd_cpu_l>;
229 cpu-supply = <&vdd_cpu_l>;
233 cpu-supply = <&vdd_cpu_b>;
237 cpu-supply = <&vdd_cpu_b>;
245 mali-supply = <&vdd_gpu>;
250 clock-frequency = <400000>;
251 i2c-scl-rising-time-ns = <168>;
252 i2c-scl-falling-time-ns = <4>;
258 interrupt-parent = <&gpio1>;
260 #clock-cells = <1>;
261 clock-output-names = "xin32k", "rk808-clkout2";
262 pinctrl-names = "default";
263 pinctrl-0 = <&pmic_int_l>;
264 system-power-controller;
265 wakeup-source;
267 vcc1-supply = <&vcc_sys>;
268 vcc2-supply = <&vcc_sys>;
269 vcc3-supply = <&vcc_sys>;
270 vcc4-supply = <&vcc_sys>;
271 vcc6-supply = <&vcc_sys>;
272 vcc7-supply = <&vcc3v3_sys>;
273 vcc8-supply = <&vcc_sys>;
274 vcc9-supply = <&vcc3v3_sys>;
278 regulator-name = "vdd_cpu_l";
279 regulator-always-on;
280 regulator-boot-on;
281 regulator-min-microvolt = <875000>;
282 regulator-max-microvolt = <975000>;
283 regulator-ramp-delay = <6001>;
284 regulator-state-mem {
285 regulator-off-in-suspend;
290 regulator-name = "vdd_center";
291 regulator-always-on;
292 regulator-boot-on;
293 regulator-min-microvolt = <800000>;
294 regulator-max-microvolt = <1000000>;
295 regulator-ramp-delay = <6001>;
296 regulator-state-mem {
297 regulator-off-in-suspend;
302 regulator-name = "vcc_ddr";
303 regulator-always-on;
304 regulator-boot-on;
305 regulator-state-mem {
306 regulator-on-in-suspend;
311 regulator-name = "vcc_1v8";
312 regulator-always-on;
313 regulator-boot-on;
314 regulator-min-microvolt = <1800000>;
315 regulator-max-microvolt = <1800000>;
316 regulator-state-mem {
317 regulator-on-in-suspend;
322 regulator-name = "vcca3v0_codec";
323 regulator-min-microvolt = <3000000>;
324 regulator-max-microvolt = <3000000>;
328 regulator-name = "vcc3v0_touch";
329 regulator-min-microvolt = <3000000>;
330 regulator-max-microvolt = <3000000>;
334 regulator-name = "vcca1v8_codec";
335 regulator-always-on;
336 regulator-boot-on;
337 regulator-min-microvolt = <1800000>;
338 regulator-max-microvolt = <1800000>;
342 regulator-name = "rk818_pwr_on";
343 regulator-always-on;
344 regulator-boot-on;
345 regulator-min-microvolt = <3300000>;
346 regulator-max-microvolt = <3300000>;
347 regulator-state-mem {
348 regulator-on-in-suspend;
353 regulator-name = "vcc_3v0";
354 regulator-always-on;
355 regulator-boot-on;
356 regulator-min-microvolt = <3000000>;
357 regulator-max-microvolt = <3000000>;
358 regulator-state-mem {
359 regulator-on-in-suspend;
364 regulator-name = "vcc_1v5";
365 regulator-always-on;
366 regulator-boot-on;
367 regulator-min-microvolt = <1500000>;
368 regulator-max-microvolt = <1500000>;
369 regulator-state-mem {
370 regulator-on-in-suspend;
375 regulator-name = "vcc1v8_dvp";
376 regulator-min-microvolt = <1800000>;
377 regulator-max-microvolt = <1800000>;
381 regulator-name = "vcc3v3_s3";
382 regulator-always-on;
383 regulator-boot-on;
384 regulator-min-microvolt = <3300000>;
385 regulator-max-microvolt = <3300000>;
386 regulator-state-mem {
387 regulator-off-in-suspend;
392 regulator-name = "vccio_sd";
393 regulator-min-microvolt = <1800000>;
394 regulator-max-microvolt = <3300000>;
398 regulator-name = "vcc3v3_s0";
399 regulator-always-on;
400 regulator-boot-on;
401 regulator-state-mem {
402 regulator-on-in-suspend;
411 fcs,suspend-voltage-selector = <1>;
412 pinctrl-names = "default";
413 pinctrl-0 = <&vsel1_pin>;
414 regulator-name = "vdd_cpu_b";
415 regulator-min-microvolt = <875000>;
416 regulator-max-microvolt = <1150000>;
417 regulator-ramp-delay = <1000>;
418 regulator-always-on;
419 regulator-boot-on;
421 regulator-state-mem {
422 regulator-off-in-suspend;
429 fcs,suspend-voltage-selector = <1>;
430 pinctrl-names = "default";
431 pinctrl-0 = <&vsel2_pin>;
432 regulator-name = "vdd_gpu";
433 regulator-min-microvolt = <875000>;
434 regulator-max-microvolt = <975000>;
435 regulator-ramp-delay = <1000>;
436 regulator-always-on;
437 regulator-boot-on;
439 regulator-state-mem {
440 regulator-off-in-suspend;
446 assigned-clocks = <&cru SCLK_CIF_OUT>;
447 assigned-clock-rates = <24000000>;
448 clock-frequency = <400000>;
449 pinctrl-names = "default";
450 pinctrl-0 = <&i2c1_xfer &cif_clkouta>;
457 lens-focus = <&wcam_lens>;
459 pinctrl-names = "default";
460 pinctrl-0 = <&camera_rst_l>;
461 reset-gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_LOW>;
464 vif-supply = <&vcc1v8_dvp>;
465 vana-supply = <&avdd2v8_dvp>;
466 vdig-supply = <&vcc1v2_dvp>; /* DVDD_DVP is the same as VCC1V2_DVP */
470 data-lanes = <1 2 3 4>;
471 link-frequencies = /bits/ 64 <636000000>;
472 remote-endpoint = <&mipi_in_wcam>;
477 wcam_lens: camera-lens@c {
481 vcc-supply = <&vcc1v8_dvp>;
488 clock-names = "xvclk";
489 dovdd-supply = <&vcc1v8_dvp>;
491 pinctrl-names = "default";
492 pinctrl-0 = <&camera2_rst_l &dvp_pdn0_h>;
493 powerdown-gpios = <&gpio2 RK_PB4 GPIO_ACTIVE_LOW>;
494 reset-gpios = <&gpio1 RK_PA4 GPIO_ACTIVE_LOW>;
499 data-lanes = <1 2 3 4>;
500 remote-endpoint = <&mipi_in_ucam>;
507 i2c-scl-rising-time-ns = <450>;
508 i2c-scl-falling-time-ns = <15>;
514 interrupt-parent = <&gpio3>;
516 irq-gpios = <&gpio3 RK_PB5 GPIO_ACTIVE_HIGH>;
517 reset-gpios = <&gpio3 RK_PB4 GPIO_ACTIVE_HIGH>;
518 AVDD28-supply = <&vcc3v0_touch>;
519 VDDIO-supply = <&vcc3v0_touch>;
520 touchscreen-size-x = <720>;
521 touchscreen-size-y = <1440>;
526 i2c-scl-rising-time-ns = <600>;
527 i2c-scl-falling-time-ns = <20>;
534 interrupt-parent = <&gpio1>;
536 vddio-supply = <&vcc_1v8>;
541 bt656-supply = <&vcc1v8_dvp>;
542 audio-supply = <&vcca1v8_codec>;
543 sdmmc-supply = <&vccio_sd>;
544 gpio1830-supply = <&vcc_3v0>;
555 data-lanes = <1 2 3 4>;
556 remote-endpoint = <&ucam_out>;
573 data-lanes = <1 2 3 4>;
574 remote-endpoint = <&wcam_out>;
589 clock-master;
590 #address-cells = <1>;
591 #size-cells = <0>;
598 iovcc-supply = <&vcc1v8_lcd>;
599 pinctrl-names = "default";
600 pinctrl-0 = <&lcd1_rst_pin>;
601 reset-gpios = <&gpio4 RK_PD1 GPIO_ACTIVE_LOW>;
602 vcc-supply = <&vcc2v8_lcd>;
606 remote-endpoint = <&mipi_out_panel>;
614 remote-endpoint = <&mipi_in_panel>;
623 pmu1830-supply = <&vcc_1v8>;
629 pwrbtn_pin: pwrbtn-pin {
635 lcd1_rst_pin: lcd1-rst-pin {
641 camera_rst_l: camera-rst-l {
644 camera2_rst_l: camera2-rst-l {
647 dvp_pdn0_h: dvp-pdn0-h {
653 red_led_pin: red-led-pin {
657 green_led_pin: green-led-pin {
661 blue_led_pin: blue-led-pin {
667 pmic_int_l: pmic-int-l {
671 vsel1_pin: vsel1-pin {
675 vsel2_pin: vsel2-pin {
680 sdio-pwrseq {
681 wifi_enable_h_pin: wifi-enable-h-pin {
687 vcc1v8_codec_en: vcc1v8-codec-en {
692 wireless-bluetooth {
693 bt_wake_pin: bt-wake-pin {
697 bt_host_wake_pin: bt-host-wake-pin {
701 bt_reset_pin: bt-reset-pin {
708 bus-width = <4>;
709 cap-sd-highspeed;
710 cap-sdio-irq;
711 disable-wp;
712 keep-power-in-suspend;
713 mmc-pwrseq = <&wifi_pwrseq>;
714 non-removable;
715 pinctrl-names = "default";
716 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
717 sd-uhs-sdr104;
726 vref-supply = <&vcca1v8_s3>;
731 bus-width = <4>;
732 cap-sd-highspeed;
733 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
734 disable-wp;
735 max-frequency = <150000000>;
736 pinctrl-names = "default";
737 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
738 vmmc-supply = <&vcc3v3_sys>;
739 vqmmc-supply = <&vccio_sd>;
744 bus-width = <8>;
745 mmc-hs200-1_8v;
746 non-removable;
754 compatible = "jedec,spi-nor";
756 spi-max-frequency = <10000000>;
761 rockchip,hw-tshut-mode = <1>;
762 rockchip,hw-tshut-polarity = <1>;
767 pinctrl-names = "default";
768 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
769 uart-has-rtscts;
775 clock-names = "lpo";
776 device-wakeup-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>;
777 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
778 max-speed = <1500000>;
779 pinctrl-names = "default";
780 pinctrl-0 = <&bt_host_wake_pin &bt_wake_pin &bt_reset_pin>;
781 shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
782 vbat-supply = <&vcc3v3_sys>;
783 vddio-supply = <&vcc_1v8>;
793 assigned-clocks = <&cru DCLK_VOP0_DIV>, <&cru DCLK_VOP0>,
795 assigned-clock-rates = <0>, <0>, <400000000>, <100000000>;
796 assigned-clock-parents = <&cru PLL_GPLL>, <&cru DCLK_VOP0_DIV>;
805 assigned-clocks = <&cru DCLK_VOP1_DIV>, <&cru DCLK_VOP1>,
807 assigned-clock-rates = <0>, <0>, <400000000>, <100000000>;
808 assigned-clock-parents = <&cru PLL_GPLL>, <&cru DCLK_VOP1_DIV>;