Lines Matching +full:opp +full:- +full:microamp

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";
20 chassis-type = "laptop";
29 stdout-path = "serial2:1500000n8";
32 backlight: edp-backlight {
33 compatible = "pwm-backlight";
34 power-supply = <&vcc_12v>;
39 compatible = "simple-battery";
40 charge-full-design-microamp-hours = <9800000>;
41 voltage-max-design-microvolt = <4350000>;
42 voltage-min-design-microvolt = <3000000>;
45 edp_panel: edp-panel {
48 enable-gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
49 pinctrl-names = "default";
50 pinctrl-0 = <&panel_en_pin>;
51 power-supply = <&vcc3v3_panel>;
54 #address-cells = <1>;
55 #size-cells = <0>;
59 #address-cells = <1>;
60 #size-cells = <0>;
64 remote-endpoint = <&edp_out_panel>;
71 * Use separate nodes for gpio-keys to allow for selective deactivation
74 gpio-key-lid {
75 compatible = "gpio-keys";
76 pinctrl-names = "default";
77 pinctrl-0 = <&lidbtn_pin>;
79 switch-lid {
80 debounce-interval = <20>;
84 linux,input-type = <EV_SW>;
85 wakeup-event-action = <EV_ACT_DEASSERTED>;
86 wakeup-source;
90 gpio-key-power {
91 compatible = "gpio-keys";
92 pinctrl-names = "default";
93 pinctrl-0 = <&pwrbtn_pin>;
95 key-power {
96 debounce-interval = <20>;
100 wakeup-source;
105 compatible = "gpio-leds";
106 pinctrl-names = "default";
107 pinctrl-0 = <&pwr_led_pin &slp_led_pin>;
109 green_led: led-0 {
111 default-state = "on";
117 red_led: led-1 {
119 default-state = "off";
123 panic-indicator;
124 retain-state-suspended;
129 sdio_pwrseq: sdio-pwrseq {
130 compatible = "mmc-pwrseq-simple";
132 clock-names = "ext_clock";
133 pinctrl-names = "default";
134 pinctrl-0 = <&wifi_enable_h_pin>;
135 post-power-on-delay-ms = <100>;
136 power-off-delay-us = <500000>;
139 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
143 es8316-sound {
144 compatible = "simple-audio-card";
145 pinctrl-names = "default";
146 pinctrl-0 = <&hp_det_pin>;
147 simple-audio-card,name = "rockchip,es8316-codec";
148 simple-audio-card,format = "i2s";
149 simple-audio-card,mclk-fs = <256>;
151 simple-audio-card,widgets =
155 simple-audio-card,routing =
164 simple-audio-card,hp-det-gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
165 simple-audio-card,aux-devs = <&speaker_amp>;
166 simple-audio-card,pin-switches = "Speaker";
168 simple-audio-card,cpu {
169 sound-dai = <&i2s1>;
172 simple-audio-card,codec {
173 sound-dai = <&es8316>;
177 speaker_amp: speaker-amplifier {
178 compatible = "simple-audio-amplifier";
179 enable-gpios = <&gpio4 RK_PD3 GPIO_ACTIVE_HIGH>;
180 sound-name-prefix = "Speaker Amplifier";
181 VCC-supply = <&pa_5v>;
186 vcc_sysin: vcc-sysin {
187 compatible = "regulator-fixed";
188 regulator-name = "vcc_sysin";
189 regulator-always-on;
190 regulator-boot-on;
195 vcc_12v: vcc-12v {
196 compatible = "regulator-fixed";
197 regulator-name = "vcc_12v";
198 regulator-always-on;
199 regulator-boot-on;
200 regulator-min-microvolt = <12000000>;
201 regulator-max-microvolt = <12000000>;
202 vin-supply = <&vcc_sysin>;
204 regulator-state-mem {
205 regulator-off-in-suspend;
210 vcc3v3_sys: wifi_bat: vcc3v3-sys {
211 compatible = "regulator-fixed";
212 regulator-name = "vcc3v3_sys";
213 regulator-always-on;
214 regulator-boot-on;
215 regulator-min-microvolt = <3300000>;
216 regulator-max-microvolt = <3300000>;
217 vin-supply = <&vcc_sysin>;
219 regulator-state-mem {
220 regulator-on-in-suspend;
225 vcc5v0_usb: pa_5v: vcc5v0-usb-regulator {
226 compatible = "regulator-fixed";
227 enable-active-high;
229 pinctrl-names = "default";
230 pinctrl-0 = <&pwr_5v_pin>;
231 regulator-name = "vcc5v0_usb";
232 regulator-always-on;
233 regulator-min-microvolt = <5000000>;
234 regulator-max-microvolt = <5000000>;
235 vin-supply = <&vcc_sysin>;
237 regulator-state-mem {
238 regulator-off-in-suspend;
243 vdd_log: vdd-log {
244 compatible = "pwm-regulator";
246 pwm-supply = <&vcc_sysin>;
247 regulator-name = "vdd_log";
248 regulator-always-on;
249 regulator-boot-on;
250 regulator-min-microvolt = <800000>;
251 regulator-max-microvolt = <1400000>;
253 regulator-state-mem {
254 regulator-on-in-suspend;
260 vcc_0v9: vcc-0v9 {
261 compatible = "regulator-fixed";
262 regulator-name = "vcc_0v9";
263 regulator-always-on;
264 regulator-boot-on;
265 regulator-min-microvolt = <900000>;
266 regulator-max-microvolt = <900000>;
267 vin-supply = <&vcc3v3_sys>;
271 vcca1v8_s3: vcc1v8-s3 {
272 compatible = "regulator-fixed";
273 regulator-name = "vcca1v8_s3";
274 regulator-always-on;
275 regulator-boot-on;
276 regulator-min-microvolt = <1800000>;
277 regulator-max-microvolt = <1800000>;
278 vin-supply = <&vcc3v3_sys>;
282 vcc3v0_sd: vcc3v0-sd {
283 compatible = "regulator-fixed";
284 enable-active-high;
286 pinctrl-names = "default";
287 pinctrl-0 = <&sdmmc0_pwr_h_pin>;
288 regulator-name = "vcc3v0_sd";
289 regulator-always-on;
290 regulator-min-microvolt = <3000000>;
291 regulator-max-microvolt = <3000000>;
292 vin-supply = <&vcc3v3_sys>;
294 regulator-state-mem {
295 regulator-off-in-suspend;
300 vcc3v3_panel: vcc3v3-panel {
301 compatible = "regulator-fixed";
302 enable-active-high;
304 pinctrl-names = "default";
305 pinctrl-0 = <&lcdvcc_en_pin>;
306 regulator-name = "vcc3v3_panel";
307 regulator-always-on;
308 regulator-min-microvolt = <3300000>;
309 regulator-max-microvolt = <3300000>;
310 regulator-enable-ramp-delay = <100000>;
311 vin-supply = <&vcc3v3_sys>;
313 regulator-state-mem {
314 regulator-off-in-suspend;
319 vcc3v3_ssd: vcc3v3-ssd {
320 compatible = "regulator-fixed";
321 regulator-name = "vcc3v3_ssd";
322 regulator-min-microvolt = <3300000>;
323 regulator-max-microvolt = <3300000>;
324 vin-supply = <&vcc3v3_sys>;
329 vcc5v0_otg: vcc5v0-otg {
330 compatible = "regulator-fixed";
331 enable-active-high;
333 pinctrl-names = "default";
334 pinctrl-0 = <&vcc5v0_host_en_pin>;
335 regulator-name = "vcc5v0_otg";
336 regulator-always-on;
337 regulator-min-microvolt = <5000000>;
338 regulator-max-microvolt = <5000000>;
339 vin-supply = <&vcc5v0_usb>;
341 regulator-state-mem {
342 regulator-off-in-suspend;
348 vbus_5vout: vbus_typec: vbus-5vout {
349 compatible = "regulator-fixed";
350 enable-active-high;
352 pinctrl-names = "default";
353 pinctrl-0 = <&vcc5v0_typec0_en_pin>;
354 regulator-name = "vbus_5vout";
355 regulator-min-microvolt = <5000000>;
356 regulator-max-microvolt = <5000000>;
357 vin-supply = <&vcc5v0_usb>;
359 regulator-state-mem {
360 regulator-off-in-suspend;
366 vcca0v9_s3: vcca0v9-s3 {
367 compatible = "regulator-fixed";
368 regulator-name = "vcc0v9_s3";
369 regulator-min-microvolt = <5000000>;
370 regulator-max-microvolt = <5000000>;
371 vin-supply = <&vcc_1v8>;
373 regulator-state-mem {
374 regulator-on-in-suspend;
378 mains_charger: dc-charger {
379 compatible = "gpio-charger";
380 charger-type = "mains";
384 pinctrl-names = "default";
385 pinctrl-0 = <&dc_det_pin>;
390 cpu-supply = <&vdd_cpu_b>;
394 cpu-supply = <&vdd_cpu_b>;
398 cpu-supply = <&vdd_cpu_l>;
402 cpu-supply = <&vdd_cpu_l>;
406 cpu-supply = <&vdd_cpu_l>;
410 cpu-supply = <&vdd_cpu_l>;
414 force-hpd;
415 pinctrl-names = "default";
416 pinctrl-0 = <&edp_hpd>;
422 #address-cells = <1>;
423 #size-cells = <0>;
427 remote-endpoint = <&panel_in_edp>;
438 mali-supply = <&vdd_gpu>;
447 clock-frequency = <400000>;
448 i2c-scl-falling-time-ns = <4>;
449 i2c-scl-rising-time-ns = <168>;
455 #clock-cells = <1>;
456 clock-output-names = "xin32k", "rk808-clkout2";
457 interrupt-parent = <&gpio3>;
459 pinctrl-names = "default";
460 pinctrl-0 = <&pmic_int_l_pin>;
461 rockchip,system-power-controller;
462 wakeup-source;
464 vcc1-supply = <&vcc_sysin>;
465 vcc2-supply = <&vcc_sysin>;
466 vcc3-supply = <&vcc_sysin>;
467 vcc4-supply = <&vcc_sysin>;
468 vcc6-supply = <&vcc_sysin>;
469 vcc7-supply = <&vcc_sysin>;
470 vcc8-supply = <&vcc3v3_sys>;
471 vcc9-supply = <&vcc_sysin>;
472 vcc10-supply = <&vcc_sysin>;
473 vcc11-supply = <&vcc_sysin>;
474 vcc12-supply = <&vcc3v3_sys>;
479 regulator-name = "vdd_center";
480 regulator-always-on;
481 regulator-boot-on;
482 regulator-min-microvolt = <750000>;
483 regulator-max-microvolt = <1350000>;
484 regulator-ramp-delay = <6001>;
486 regulator-state-mem {
487 regulator-off-in-suspend;
492 regulator-name = "vdd_cpu_l";
493 regulator-always-on;
494 regulator-boot-on;
495 regulator-min-microvolt = <750000>;
496 regulator-max-microvolt = <1350000>;
497 regulator-ramp-delay = <6001>;
499 regulator-state-mem {
500 regulator-off-in-suspend;
505 regulator-name = "vcc_ddr";
506 regulator-always-on;
507 regulator-boot-on;
509 regulator-state-mem {
510 regulator-on-in-suspend;
515 regulator-name = "vcc_1v8";
516 regulator-always-on;
517 regulator-boot-on;
518 regulator-min-microvolt = <1800000>;
519 regulator-max-microvolt = <1800000>;
521 regulator-state-mem {
522 regulator-on-in-suspend;
523 regulator-suspend-microvolt = <1800000>;
536 regulator-name = "vcc1v8_pmupll";
537 regulator-always-on;
538 regulator-boot-on;
539 regulator-min-microvolt = <1800000>;
540 regulator-max-microvolt = <1800000>;
542 regulator-state-mem {
543 regulator-on-in-suspend;
544 regulator-suspend-microvolt = <1800000>;
549 regulator-name = "vcc_sdio";
550 regulator-always-on;
551 regulator-boot-on;
552 regulator-min-microvolt = <1800000>;
553 regulator-max-microvolt = <3000000>;
555 regulator-state-mem {
556 regulator-on-in-suspend;
557 regulator-suspend-microvolt = <3000000>;
562 regulator-name = "vcca3v0_codec";
563 regulator-always-on;
564 regulator-boot-on;
565 regulator-min-microvolt = <3000000>;
566 regulator-max-microvolt = <3000000>;
568 regulator-state-mem {
569 regulator-off-in-suspend;
574 regulator-name = "vcc_1v5";
575 regulator-always-on;
576 regulator-boot-on;
577 regulator-min-microvolt = <1500000>;
578 regulator-max-microvolt = <1500000>;
580 regulator-state-mem {
581 regulator-on-in-suspend;
582 regulator-suspend-microvolt = <1500000>;
587 regulator-name = "vcca1v8_codec";
588 regulator-always-on;
589 regulator-boot-on;
590 regulator-min-microvolt = <1800000>;
591 regulator-max-microvolt = <1800000>;
593 regulator-state-mem {
594 regulator-off-in-suspend;
599 regulator-name = "vcc_3v0";
600 regulator-always-on;
601 regulator-boot-on;
602 regulator-min-microvolt = <3000000>;
603 regulator-max-microvolt = <3000000>;
605 regulator-state-mem {
606 regulator-on-in-suspend;
607 regulator-suspend-microvolt = <3000000>;
612 regulator-name = "vcc3v3_s3";
613 regulator-always-on;
614 regulator-boot-on;
616 regulator-state-mem {
617 regulator-off-in-suspend;
622 regulator-name = "vcc3v3_s0";
623 regulator-always-on;
624 regulator-boot-on;
626 regulator-state-mem {
627 regulator-off-in-suspend;
636 fcs,suspend-voltage-selector = <1>;
637 pinctrl-names = "default";
638 pinctrl-0 = <&vsel1_pin>;
639 regulator-name = "vdd_cpu_b";
640 regulator-always-on;
641 regulator-boot-on;
642 regulator-min-microvolt = <712500>;
643 regulator-max-microvolt = <1500000>;
644 regulator-ramp-delay = <1000>;
645 vin-supply = <&vcc_1v8>;
647 regulator-state-mem {
648 regulator-off-in-suspend;
655 fcs,suspend-voltage-selector = <1>;
656 pinctrl-names = "default";
657 pinctrl-0 = <&vsel2_pin>;
658 regulator-name = "vdd_gpu";
659 regulator-always-on;
660 regulator-boot-on;
661 regulator-min-microvolt = <712500>;
662 regulator-max-microvolt = <1500000>;
663 regulator-ramp-delay = <1000>;
664 vin-supply = <&vcc_1v8>;
666 regulator-state-mem {
667 regulator-off-in-suspend;
673 clock-frequency = <100000>;
674 i2c-scl-falling-time-ns = <4>;
675 i2c-scl-rising-time-ns = <168>;
682 clock-names = "mclk";
683 #sound-dai-cells = <0>;
688 i2c-scl-falling-time-ns = <15>;
689 i2c-scl-rising-time-ns = <450>;
694 i2c-scl-falling-time-ns = <20>;
695 i2c-scl-rising-time-ns = <600>;
701 interrupt-parent = <&gpio1>;
703 pinctrl-names = "default";
704 pinctrl-0 = <&fusb0_int_pin>;
705 vbus-supply = <&vbus_typec>;
708 compatible = "usb-c-connector";
709 data-role = "dual";
710 label = "USB-C";
711 op-sink-microwatt = <1000000>;
712 power-role = "dual";
713 sink-pdos =
715 source-pdos =
717 try-power-role = "sink";
720 #address-cells = <1>;
721 #size-cells = <0>;
727 remote-endpoint =
736 remote-endpoint =
745 remote-endpoint =
756 cellwise,battery-profile = /bits/ 8 <
766 cellwise,monitor-interval-ms = <5000>;
767 monitored-battery = <&bat>;
768 power-supplies = <&mains_charger>, <&fusb0>;
773 pinctrl-names = "default";
774 pinctrl-0 = <&i2s_8ch_mclk_pin>, <&i2s1_2ch_bus>;
775 rockchip,capture-channels = <8>;
776 rockchip,playback-channels = <8>;
781 audio-supply = <&vcc_3v0>;
782 gpio1830-supply = <&vcc_3v0>;
783 sdmmc-supply = <&vcc_sdio>;
792 bus-scan-delay-ms = <1000>;
793 ep-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>;
794 num-lanes = <4>;
795 pinctrl-names = "default";
796 pinctrl-0 = <&pcie_clkreqn_cpm>;
797 vpcie0v9-supply = <&vcca0v9_s3>;
798 vpcie1v8-supply = <&vcca1v8_s3>;
799 vpcie3v3-supply = <&vcc3v3_ssd>;
805 pwrbtn_pin: pwrbtn-pin {
809 lidbtn_pin: lidbtn-pin {
814 dc-charger {
815 dc_det_pin: dc-det-pin {
821 hp_det_pin: hp-det-pin {
827 fusb0_int_pin: fusb0-int-pin {
833 i2s_8ch_mclk_pin: i2s-8ch-mclk-pin {
838 lcd-panel {
839 lcdvcc_en_pin: lcdvcc-en-pin {
843 panel_en_pin: panel-en-pin {
847 lcd_panel_reset_pin: lcd-panel-reset-pin {
853 pwr_led_pin: pwr-led-pin {
857 slp_led_pin: slp-led-pin {
863 pmic_int_l_pin: pmic-int-l-pin {
867 vsel1_pin: vsel1-pin {
871 vsel2_pin: vsel2-pin {
877 sdmmc0_pwr_h_pin: sdmmc0-pwr-h-pin {
883 sdio-pwrseq {
884 wifi_enable_h_pin: wifi-enable-h-pin {
889 usb-typec {
890 vcc5v0_typec0_en_pin: vcc5v0-typec0-en-pin {
896 pwr_5v_pin: pwr-5v-pin {
900 vcc5v0_host_en_pin: vcc5v0-host-en-pin {
905 wireless-bluetooth {
906 bt_wake_pin: bt-wake-pin {
910 bt_host_wake_pin: bt-host-wake-pin {
914 bt_reset_pin: bt-reset-pin {
921 pmu1830-supply = <&vcc_3v0>;
934 vref-supply = <&vcca1v8_s3>;
939 bus-width = <4>;
940 cap-mmc-highspeed;
941 cap-sd-highspeed;
942 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
943 disable-wp;
944 pinctrl-names = "default";
945 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
946 sd-uhs-sdr104;
947 vmmc-supply = <&vcc3v0_sd>;
948 vqmmc-supply = <&vcc_sdio>;
953 bus-width = <4>;
954 cap-sd-highspeed;
955 cap-sdio-irq;
956 keep-power-in-suspend;
957 mmc-pwrseq = <&sdio_pwrseq>;
958 non-removable;
959 pinctrl-names = "default";
960 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
961 sd-uhs-sdr104;
966 bus-width = <8>;
967 mmc-hs200-1_8v;
968 non-removable;
973 max-freq = <10000000>;
977 compatible = "jedec,spi-nor";
979 m25p,fast-read;
980 spi-max-frequency = <10000000>;
991 remote-endpoint = <&usbc_dp>;
999 remote-endpoint = <&usbc_ss>;
1010 rockchip,hw-tshut-mode = <1>;
1012 rockchip,hw-tshut-polarity = <1>;
1019 u2phy0_otg: otg-port {
1023 u2phy0_host: host-port {
1024 phy-supply = <&vcc5v0_otg>;
1030 remote-endpoint = <&usbc_hs>;
1038 u2phy1_otg: otg-port {
1042 u2phy1_host: host-port {
1043 phy-supply = <&vcc5v0_otg>;
1049 pinctrl-names = "default";
1050 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
1051 uart-has-rtscts;
1057 clock-names = "lpo";
1058 device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
1059 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
1060 max-speed = <1500000>;
1061 pinctrl-names = "default";
1062 pinctrl-0 = <&bt_host_wake_pin &bt_wake_pin &bt_reset_pin>;
1063 shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
1064 vbat-supply = <&wifi_bat>;
1065 vddio-supply = <&vcc_wl>;