Lines Matching +full:opp +full:- +full:microamp +full:- +full:fast
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
9 #include <dt-bindings/input/gpio-keys.h>
10 #include <dt-bindings/input/linux-event-codes.h>
11 #include <dt-bindings/pwm/pwm.h>
12 #include <dt-bindings/usb/pd.h>
13 #include <dt-bindings/leds/common.h>
15 #include "rk3399-opp.dtsi"
19 compatible = "pine64,pinebook-pro", "rockchip,rk3399";
28 stdout-path = "serial2:1500000n8";
31 backlight: edp-backlight {
32 compatible = "pwm-backlight";
33 power-supply = <&vcc_12v>;
38 compatible = "simple-battery";
39 charge-full-design-microamp-hours = <9800000>;
40 voltage-max-design-microvolt = <4350000>;
41 voltage-min-design-microvolt = <3000000>;
44 edp_panel: edp-panel {
47 enable-gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
48 pinctrl-names = "default";
49 pinctrl-0 = <&panel_en_pin>;
50 power-supply = <&vcc3v3_panel>;
53 #address-cells = <1>;
54 #size-cells = <0>;
58 #address-cells = <1>;
59 #size-cells = <0>;
63 remote-endpoint = <&edp_out_panel>;
70 * Use separate nodes for gpio-keys to allow for selective deactivation
73 gpio-key-lid {
74 compatible = "gpio-keys";
75 pinctrl-names = "default";
76 pinctrl-0 = <&lidbtn_pin>;
79 debounce-interval = <20>;
83 linux,input-type = <EV_SW>;
84 wakeup-event-action = <EV_ACT_DEASSERTED>;
85 wakeup-source;
89 gpio-key-power {
90 compatible = "gpio-keys";
91 pinctrl-names = "default";
92 pinctrl-0 = <&pwrbtn_pin>;
95 debounce-interval = <20>;
99 wakeup-source;
104 compatible = "gpio-leds";
105 pinctrl-names = "default";
106 pinctrl-0 = <&pwr_led_pin &slp_led_pin>;
108 green_led: led-0 {
110 default-state = "on";
116 red_led: led-1 {
118 default-state = "off";
122 panic-indicator;
123 retain-state-suspended;
128 sdio_pwrseq: sdio-pwrseq {
129 compatible = "mmc-pwrseq-simple";
131 clock-names = "ext_clock";
132 pinctrl-names = "default";
133 pinctrl-0 = <&wifi_enable_h_pin>;
134 post-power-on-delay-ms = <100>;
135 power-off-delay-us = <500000>;
138 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
142 es8316-sound {
143 compatible = "simple-audio-card";
144 pinctrl-names = "default";
145 pinctrl-0 = <&hp_det_pin>;
146 simple-audio-card,name = "rockchip,es8316-codec";
147 simple-audio-card,format = "i2s";
148 simple-audio-card,mclk-fs = <256>;
150 simple-audio-card,widgets =
154 simple-audio-card,routing =
163 simple-audio-card,hp-det-gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
164 simple-audio-card,aux-devs = <&speaker_amp>;
165 simple-audio-card,pin-switches = "Speaker";
167 simple-audio-card,cpu {
168 sound-dai = <&i2s1>;
171 simple-audio-card,codec {
172 sound-dai = <&es8316>;
176 speaker_amp: speaker-amplifier {
177 compatible = "simple-audio-amplifier";
178 enable-gpios = <&gpio4 RK_PD3 GPIO_ACTIVE_HIGH>;
179 sound-name-prefix = "Speaker Amplifier";
180 VCC-supply = <&pa_5v>;
185 vcc_sysin: vcc-sysin {
186 compatible = "regulator-fixed";
187 regulator-name = "vcc_sysin";
188 regulator-always-on;
189 regulator-boot-on;
194 vcc_12v: vcc-12v {
195 compatible = "regulator-fixed";
196 regulator-name = "vcc_12v";
197 regulator-always-on;
198 regulator-boot-on;
199 regulator-min-microvolt = <12000000>;
200 regulator-max-microvolt = <12000000>;
201 vin-supply = <&vcc_sysin>;
203 regulator-state-mem {
204 regulator-off-in-suspend;
209 vcc3v3_sys: wifi_bat: vcc3v3-sys {
210 compatible = "regulator-fixed";
211 regulator-name = "vcc3v3_sys";
212 regulator-always-on;
213 regulator-boot-on;
214 regulator-min-microvolt = <3300000>;
215 regulator-max-microvolt = <3300000>;
216 vin-supply = <&vcc_sysin>;
218 regulator-state-mem {
219 regulator-on-in-suspend;
224 vcc5v0_usb: pa_5v: vcc5v0-usb-regulator {
225 compatible = "regulator-fixed";
226 enable-active-high;
228 pinctrl-names = "default";
229 pinctrl-0 = <&pwr_5v_pin>;
230 regulator-name = "vcc5v0_usb";
231 regulator-always-on;
232 regulator-min-microvolt = <5000000>;
233 regulator-max-microvolt = <5000000>;
234 vin-supply = <&vcc_sysin>;
236 regulator-state-mem {
237 regulator-off-in-suspend;
242 vdd_log: vdd-log {
243 compatible = "pwm-regulator";
245 regulator-name = "vdd_log";
246 regulator-always-on;
247 regulator-boot-on;
248 regulator-min-microvolt = <800000>;
249 regulator-max-microvolt = <1400000>;
250 vin-supply = <&vcc_sysin>;
252 regulator-state-mem {
253 regulator-on-in-suspend;
259 vcc_0v9: vcc-0v9 {
260 compatible = "regulator-fixed";
261 regulator-name = "vcc_0v9";
262 regulator-always-on;
263 regulator-boot-on;
264 regulator-min-microvolt = <900000>;
265 regulator-max-microvolt = <900000>;
266 vin-supply = <&vcc3v3_sys>;
270 vcca1v8_s3: vcc1v8-s3 {
271 compatible = "regulator-fixed";
272 regulator-name = "vcca1v8_s3";
273 regulator-always-on;
274 regulator-boot-on;
275 regulator-min-microvolt = <1800000>;
276 regulator-max-microvolt = <1800000>;
277 vin-supply = <&vcc3v3_sys>;
281 vcc3v0_sd: vcc3v0-sd {
282 compatible = "regulator-fixed";
283 enable-active-high;
285 pinctrl-names = "default";
286 pinctrl-0 = <&sdmmc0_pwr_h_pin>;
287 regulator-name = "vcc3v0_sd";
288 regulator-always-on;
289 regulator-min-microvolt = <3000000>;
290 regulator-max-microvolt = <3000000>;
291 vin-supply = <&vcc3v3_sys>;
293 regulator-state-mem {
294 regulator-off-in-suspend;
299 vcc3v3_panel: vcc3v3-panel {
300 compatible = "regulator-fixed";
301 enable-active-high;
303 pinctrl-names = "default";
304 pinctrl-0 = <&lcdvcc_en_pin>;
305 regulator-name = "vcc3v3_panel";
306 regulator-always-on;
307 regulator-min-microvolt = <3300000>;
308 regulator-max-microvolt = <3300000>;
309 regulator-enable-ramp-delay = <100000>;
310 vin-supply = <&vcc3v3_sys>;
312 regulator-state-mem {
313 regulator-off-in-suspend;
318 vcc3v3_ssd: vcc3v3-ssd {
319 compatible = "regulator-fixed";
320 regulator-name = "vcc3v3_ssd";
321 regulator-min-microvolt = <3300000>;
322 regulator-max-microvolt = <3300000>;
323 vin-supply = <&vcc3v3_sys>;
328 vcc5v0_otg: vcc5v0-otg {
329 compatible = "regulator-fixed";
330 enable-active-high;
332 pinctrl-names = "default";
333 pinctrl-0 = <&vcc5v0_host_en_pin>;
334 regulator-name = "vcc5v0_otg";
335 regulator-always-on;
336 regulator-min-microvolt = <5000000>;
337 regulator-max-microvolt = <5000000>;
338 vin-supply = <&vcc5v0_usb>;
340 regulator-state-mem {
341 regulator-off-in-suspend;
347 vbus_5vout: vbus_typec: vbus-5vout {
348 compatible = "regulator-fixed";
349 enable-active-high;
351 pinctrl-names = "default";
352 pinctrl-0 = <&vcc5v0_typec0_en_pin>;
353 regulator-name = "vbus_5vout";
354 regulator-min-microvolt = <5000000>;
355 regulator-max-microvolt = <5000000>;
356 vin-supply = <&vcc5v0_usb>;
358 regulator-state-mem {
359 regulator-off-in-suspend;
365 vcca0v9_s3: vcca0v9-s3 {
366 compatible = "regulator-fixed";
367 regulator-name = "vcc0v9_s3";
368 regulator-min-microvolt = <5000000>;
369 regulator-max-microvolt = <5000000>;
370 vin-supply = <&vcc_1v8>;
372 regulator-state-mem {
373 regulator-on-in-suspend;
377 mains_charger: dc-charger {
378 compatible = "gpio-charger";
379 charger-type = "mains";
383 pinctrl-names = "default";
384 pinctrl-0 = <&dc_det_pin>;
393 cpu-supply = <&vdd_cpu_b>;
397 cpu-supply = <&vdd_cpu_b>;
401 cpu-supply = <&vdd_cpu_l>;
405 cpu-supply = <&vdd_cpu_l>;
409 cpu-supply = <&vdd_cpu_l>;
413 cpu-supply = <&vdd_cpu_l>;
417 force-hpd;
418 pinctrl-names = "default";
419 pinctrl-0 = <&edp_hpd>;
425 #address-cells = <1>;
426 #size-cells = <0>;
430 remote-endpoint = <&panel_in_edp>;
441 mali-supply = <&vdd_gpu>;
450 clock-frequency = <400000>;
451 i2c-scl-falling-time-ns = <4>;
452 i2c-scl-rising-time-ns = <168>;
458 #clock-cells = <1>;
459 clock-output-names = "xin32k", "rk808-clkout2";
460 interrupt-parent = <&gpio3>;
462 pinctrl-names = "default";
463 pinctrl-0 = <&pmic_int_l_pin>;
464 rockchip,system-power-controller;
465 wakeup-source;
467 vcc1-supply = <&vcc_sysin>;
468 vcc2-supply = <&vcc_sysin>;
469 vcc3-supply = <&vcc_sysin>;
470 vcc4-supply = <&vcc_sysin>;
471 vcc6-supply = <&vcc_sysin>;
472 vcc7-supply = <&vcc_sysin>;
473 vcc8-supply = <&vcc3v3_sys>;
474 vcc9-supply = <&vcc_sysin>;
475 vcc10-supply = <&vcc_sysin>;
476 vcc11-supply = <&vcc_sysin>;
477 vcc12-supply = <&vcc3v3_sys>;
478 vcc13-supply = <&vcc_sysin>;
479 vcc14-supply = <&vcc_sysin>;
484 regulator-name = "vdd_center";
485 regulator-always-on;
486 regulator-boot-on;
487 regulator-min-microvolt = <750000>;
488 regulator-max-microvolt = <1350000>;
489 regulator-ramp-delay = <6001>;
491 regulator-state-mem {
492 regulator-off-in-suspend;
497 regulator-name = "vdd_cpu_l";
498 regulator-always-on;
499 regulator-boot-on;
500 regulator-min-microvolt = <750000>;
501 regulator-max-microvolt = <1350000>;
502 regulator-ramp-delay = <6001>;
504 regulator-state-mem {
505 regulator-off-in-suspend;
510 regulator-name = "vcc_ddr";
511 regulator-always-on;
512 regulator-boot-on;
514 regulator-state-mem {
515 regulator-on-in-suspend;
520 regulator-name = "vcc_1v8";
521 regulator-always-on;
522 regulator-boot-on;
523 regulator-min-microvolt = <1800000>;
524 regulator-max-microvolt = <1800000>;
526 regulator-state-mem {
527 regulator-on-in-suspend;
528 regulator-suspend-microvolt = <1800000>;
541 regulator-name = "vcc1v8_pmupll";
542 regulator-always-on;
543 regulator-boot-on;
544 regulator-min-microvolt = <1800000>;
545 regulator-max-microvolt = <1800000>;
547 regulator-state-mem {
548 regulator-on-in-suspend;
549 regulator-suspend-microvolt = <1800000>;
554 regulator-name = "vcc_sdio";
555 regulator-always-on;
556 regulator-boot-on;
557 regulator-min-microvolt = <1800000>;
558 regulator-max-microvolt = <3000000>;
560 regulator-state-mem {
561 regulator-on-in-suspend;
562 regulator-suspend-microvolt = <3000000>;
567 regulator-name = "vcca3v0_codec";
568 regulator-always-on;
569 regulator-boot-on;
570 regulator-min-microvolt = <3000000>;
571 regulator-max-microvolt = <3000000>;
573 regulator-state-mem {
574 regulator-off-in-suspend;
579 regulator-name = "vcc_1v5";
580 regulator-always-on;
581 regulator-boot-on;
582 regulator-min-microvolt = <1500000>;
583 regulator-max-microvolt = <1500000>;
585 regulator-state-mem {
586 regulator-on-in-suspend;
587 regulator-suspend-microvolt = <1500000>;
592 regulator-name = "vcca1v8_codec";
593 regulator-always-on;
594 regulator-boot-on;
595 regulator-min-microvolt = <1800000>;
596 regulator-max-microvolt = <1800000>;
598 regulator-state-mem {
599 regulator-off-in-suspend;
604 regulator-name = "vcc_3v0";
605 regulator-always-on;
606 regulator-boot-on;
607 regulator-min-microvolt = <3000000>;
608 regulator-max-microvolt = <3000000>;
610 regulator-state-mem {
611 regulator-on-in-suspend;
612 regulator-suspend-microvolt = <3000000>;
617 regulator-name = "vcc3v3_s3";
618 regulator-always-on;
619 regulator-boot-on;
621 regulator-state-mem {
622 regulator-off-in-suspend;
627 regulator-name = "vcc3v3_s0";
628 regulator-always-on;
629 regulator-boot-on;
631 regulator-state-mem {
632 regulator-off-in-suspend;
641 fcs,suspend-voltage-selector = <1>;
642 pinctrl-names = "default";
643 pinctrl-0 = <&vsel1_pin>;
644 regulator-name = "vdd_cpu_b";
645 regulator-always-on;
646 regulator-boot-on;
647 regulator-min-microvolt = <712500>;
648 regulator-max-microvolt = <1500000>;
649 regulator-ramp-delay = <1000>;
650 vin-supply = <&vcc_1v8>;
652 regulator-state-mem {
653 regulator-off-in-suspend;
660 fcs,suspend-voltage-selector = <1>;
661 pinctrl-names = "default";
662 pinctrl-0 = <&vsel2_pin>;
663 regulator-name = "vdd_gpu";
664 regulator-always-on;
665 regulator-boot-on;
666 regulator-min-microvolt = <712500>;
667 regulator-max-microvolt = <1500000>;
668 regulator-ramp-delay = <1000>;
669 vin-supply = <&vcc_1v8>;
671 regulator-state-mem {
672 regulator-off-in-suspend;
678 clock-frequency = <100000>;
679 i2c-scl-falling-time-ns = <4>;
680 i2c-scl-rising-time-ns = <168>;
687 clock-names = "mclk";
688 #sound-dai-cells = <0>;
693 i2c-scl-falling-time-ns = <15>;
694 i2c-scl-rising-time-ns = <450>;
699 i2c-scl-falling-time-ns = <20>;
700 i2c-scl-rising-time-ns = <600>;
706 interrupt-parent = <&gpio1>;
708 pinctrl-names = "default";
709 pinctrl-0 = <&fusb0_int_pin>;
710 vbus-supply = <&vbus_typec>;
713 compatible = "usb-c-connector";
714 data-role = "host";
715 label = "USB-C";
716 op-sink-microwatt = <1000000>;
717 power-role = "dual";
718 sink-pdos =
720 source-pdos =
722 try-power-role = "sink";
725 #address-cells = <1>;
726 #size-cells = <0>;
732 remote-endpoint =
741 remote-endpoint =
750 remote-endpoint =
761 cellwise,battery-profile = /bits/ 8 <
771 cellwise,monitor-interval-ms = <5000>;
772 monitored-battery = <&bat>;
773 power-supplies = <&mains_charger>, <&fusb0>;
778 pinctrl-names = "default";
779 pinctrl-0 = <&i2s_8ch_mclk_pin>, <&i2s1_2ch_bus>;
780 rockchip,capture-channels = <8>;
781 rockchip,playback-channels = <8>;
786 audio-supply = <&vcc_3v0>;
787 gpio1830-supply = <&vcc_3v0>;
788 sdmmc-supply = <&vcc_sdio>;
797 bus-scan-delay-ms = <1000>;
798 ep-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>;
799 num-lanes = <4>;
800 pinctrl-names = "default";
801 pinctrl-0 = <&pcie_clkreqn_cpm>;
802 vpcie0v9-supply = <&vcca0v9_s3>;
803 vpcie1v8-supply = <&vcca1v8_s3>;
804 vpcie3v3-supply = <&vcc3v3_ssd>;
810 pwrbtn_pin: pwrbtn-pin {
814 lidbtn_pin: lidbtn-pin {
819 dc-charger {
820 dc_det_pin: dc-det-pin {
826 hp_det_pin: hp-det-pin {
832 fusb0_int_pin: fusb0-int-pin {
838 i2s_8ch_mclk_pin: i2s-8ch-mclk-pin {
843 lcd-panel {
844 lcdvcc_en_pin: lcdvcc-en-pin {
848 panel_en_pin: panel-en-pin {
852 lcd_panel_reset_pin: lcd-panel-reset-pin {
858 pwr_led_pin: pwr-led-pin {
862 slp_led_pin: slp-led-pin {
868 pmic_int_l_pin: pmic-int-l-pin {
872 vsel1_pin: vsel1-pin {
876 vsel2_pin: vsel2-pin {
882 sdmmc0_pwr_h_pin: sdmmc0-pwr-h-pin {
888 sdio-pwrseq {
889 wifi_enable_h_pin: wifi-enable-h-pin {
894 usb-typec {
895 vcc5v0_typec0_en_pin: vcc5v0-typec0-en-pin {
901 pwr_5v_pin: pwr-5v-pin {
905 vcc5v0_host_en_pin: vcc5v0-host-en-pin {
910 wireless-bluetooth {
911 bt_wake_pin: bt-wake-pin {
915 bt_host_wake_pin: bt-host-wake-pin {
919 bt_reset_pin: bt-reset-pin {
926 pmu1830-supply = <&vcc_3v0>;
939 vref-supply = <&vcca1v8_s3>;
944 bus-width = <4>;
945 cap-mmc-highspeed;
946 cap-sd-highspeed;
947 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
948 disable-wp;
949 pinctrl-names = "default";
950 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
951 sd-uhs-sdr104;
952 vmmc-supply = <&vcc3v0_sd>;
953 vqmmc-supply = <&vcc_sdio>;
958 bus-width = <4>;
959 cap-sd-highspeed;
960 cap-sdio-irq;
961 keep-power-in-suspend;
962 mmc-pwrseq = <&sdio_pwrseq>;
963 non-removable;
964 pinctrl-names = "default";
965 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
966 sd-uhs-sdr104;
971 bus-width = <8>;
972 mmc-hs200-1_8v;
973 non-removable;
978 max-freq = <10000000>;
982 compatible = "jedec,spi-nor";
984 m25p,fast-read;
985 spi-max-frequency = <10000000>;
996 remote-endpoint = <&usbc_dp>;
1004 remote-endpoint = <&usbc_ss>;
1015 rockchip,hw-tshut-mode = <1>;
1017 rockchip,hw-tshut-polarity = <1>;
1024 u2phy0_otg: otg-port {
1028 u2phy0_host: host-port {
1029 phy-supply = <&vcc5v0_otg>;
1035 remote-endpoint = <&usbc_hs>;
1043 u2phy1_otg: otg-port {
1047 u2phy1_host: host-port {
1048 phy-supply = <&vcc5v0_otg>;
1054 pinctrl-names = "default";
1055 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
1056 uart-has-rtscts;
1062 clock-names = "lpo";
1063 device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
1064 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
1065 max-speed = <1500000>;
1066 pinctrl-names = "default";
1067 pinctrl-0 = <&bt_host_wake_pin &bt_wake_pin &bt_reset_pin>;
1068 shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
1069 vbat-supply = <&wifi_bat>;
1070 vddio-supply = <&vcc_wl>;