Lines Matching +full:primary +full:- +full:pmic
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>;
55 remote-endpoint = <&edp_out_panel>;
61 * Use separate nodes for gpio-keys to allow for selective deactivation
64 gpio-key-lid {
65 compatible = "gpio-keys";
66 pinctrl-names = "default";
67 pinctrl-0 = <&lidbtn_pin>;
69 switch-lid {
70 debounce-interval = <20>;
74 linux,input-type = <EV_SW>;
75 wakeup-event-action = <EV_ACT_DEASSERTED>;
76 wakeup-source;
80 gpio-key-power {
81 compatible = "gpio-keys";
82 pinctrl-names = "default";
83 pinctrl-0 = <&pwrbtn_pin>;
85 key-power {
86 debounce-interval = <20>;
90 wakeup-source;
95 compatible = "gpio-leds";
96 pinctrl-names = "default";
97 pinctrl-0 = <&pwr_led_pin &slp_led_pin>;
99 green_led: led-0 {
101 default-state = "on";
107 red_led: led-1 {
109 default-state = "off";
113 panic-indicator;
114 retain-state-suspended;
119 sdio_pwrseq: sdio-pwrseq {
120 compatible = "mmc-pwrseq-simple";
122 clock-names = "ext_clock";
123 pinctrl-names = "default";
124 pinctrl-0 = <&wifi_enable_h_pin>;
125 post-power-on-delay-ms = <100>;
126 power-off-delay-us = <500000>;
129 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
133 es8316-sound {
134 compatible = "simple-audio-card";
135 pinctrl-names = "default";
136 pinctrl-0 = <&hp_det_pin>;
137 simple-audio-card,name = "rockchip,es8316-codec";
138 simple-audio-card,format = "i2s";
139 simple-audio-card,mclk-fs = <256>;
141 simple-audio-card,widgets =
145 simple-audio-card,routing =
154 simple-audio-card,hp-det-gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
155 simple-audio-card,aux-devs = <&speaker_amp>;
156 simple-audio-card,pin-switches = "Speaker";
158 simple-audio-card,cpu {
159 sound-dai = <&i2s1>;
162 simple-audio-card,codec {
163 sound-dai = <&es8316>;
167 speaker_amp: speaker-amplifier {
168 compatible = "simple-audio-amplifier";
169 enable-gpios = <&gpio4 RK_PD3 GPIO_ACTIVE_HIGH>;
170 sound-name-prefix = "Speaker Amplifier";
171 VCC-supply = <&pa_5v>;
176 vcc_sysin: vcc-sysin {
177 compatible = "regulator-fixed";
178 regulator-name = "vcc_sysin";
179 regulator-always-on;
180 regulator-boot-on;
185 vcc_12v: vcc-12v {
186 compatible = "regulator-fixed";
187 regulator-name = "vcc_12v";
188 regulator-always-on;
189 regulator-boot-on;
190 regulator-min-microvolt = <12000000>;
191 regulator-max-microvolt = <12000000>;
192 vin-supply = <&vcc_sysin>;
194 regulator-state-mem {
195 regulator-off-in-suspend;
200 vcc3v3_sys: wifi_bat: vcc3v3-sys {
201 compatible = "regulator-fixed";
202 regulator-name = "vcc3v3_sys";
203 regulator-always-on;
204 regulator-boot-on;
205 regulator-min-microvolt = <3300000>;
206 regulator-max-microvolt = <3300000>;
207 vin-supply = <&vcc_sysin>;
209 regulator-state-mem {
210 regulator-on-in-suspend;
215 vcc5v0_usb: pa_5v: vcc5v0-usb-regulator {
216 compatible = "regulator-fixed";
217 enable-active-high;
219 pinctrl-names = "default";
220 pinctrl-0 = <&pwr_5v_pin>;
221 regulator-name = "vcc5v0_usb";
222 regulator-always-on;
223 regulator-min-microvolt = <5000000>;
224 regulator-max-microvolt = <5000000>;
225 vin-supply = <&vcc_sysin>;
227 regulator-state-mem {
228 regulator-off-in-suspend;
233 vdd_log: vdd-log {
234 compatible = "pwm-regulator";
236 pwm-supply = <&vcc_sysin>;
237 regulator-name = "vdd_log";
238 regulator-always-on;
239 regulator-boot-on;
240 regulator-min-microvolt = <800000>;
241 regulator-max-microvolt = <1400000>;
243 regulator-state-mem {
244 regulator-on-in-suspend;
250 vcc_0v9: vcc-0v9 {
251 compatible = "regulator-fixed";
252 regulator-name = "vcc_0v9";
253 regulator-always-on;
254 regulator-boot-on;
255 regulator-min-microvolt = <900000>;
256 regulator-max-microvolt = <900000>;
257 vin-supply = <&vcc3v3_sys>;
261 vcca1v8_s3: vcc1v8-s3 {
262 compatible = "regulator-fixed";
263 regulator-name = "vcca1v8_s3";
264 regulator-always-on;
265 regulator-boot-on;
266 regulator-min-microvolt = <1800000>;
267 regulator-max-microvolt = <1800000>;
268 vin-supply = <&vcc3v3_sys>;
272 vcc3v0_sd: vcc3v0-sd {
273 compatible = "regulator-fixed";
274 enable-active-high;
276 pinctrl-names = "default";
277 pinctrl-0 = <&sdmmc0_pwr_h_pin>;
278 regulator-name = "vcc3v0_sd";
279 regulator-always-on;
280 regulator-min-microvolt = <3000000>;
281 regulator-max-microvolt = <3000000>;
282 vin-supply = <&vcc3v3_sys>;
284 regulator-state-mem {
285 regulator-off-in-suspend;
290 vcc3v3_panel: vcc3v3-panel {
291 compatible = "regulator-fixed";
292 enable-active-high;
294 pinctrl-names = "default";
295 pinctrl-0 = <&lcdvcc_en_pin>;
296 regulator-name = "vcc3v3_panel";
297 regulator-always-on;
298 regulator-min-microvolt = <3300000>;
299 regulator-max-microvolt = <3300000>;
300 regulator-enable-ramp-delay = <100000>;
301 vin-supply = <&vcc3v3_sys>;
303 regulator-state-mem {
304 regulator-off-in-suspend;
309 vcc3v3_ssd: vcc3v3-ssd {
310 compatible = "regulator-fixed";
311 regulator-name = "vcc3v3_ssd";
312 regulator-min-microvolt = <3300000>;
313 regulator-max-microvolt = <3300000>;
314 vin-supply = <&vcc3v3_sys>;
319 vcc5v0_otg: vcc5v0-otg {
320 compatible = "regulator-fixed";
321 enable-active-high;
323 pinctrl-names = "default";
324 pinctrl-0 = <&vcc5v0_host_en_pin>;
325 regulator-name = "vcc5v0_otg";
326 regulator-always-on;
327 regulator-min-microvolt = <5000000>;
328 regulator-max-microvolt = <5000000>;
329 vin-supply = <&vcc5v0_usb>;
331 regulator-state-mem {
332 regulator-off-in-suspend;
338 vbus_5vout: vbus_typec: vbus-5vout {
339 compatible = "regulator-fixed";
340 enable-active-high;
342 pinctrl-names = "default";
343 pinctrl-0 = <&vcc5v0_typec0_en_pin>;
344 regulator-name = "vbus_5vout";
345 regulator-min-microvolt = <5000000>;
346 regulator-max-microvolt = <5000000>;
347 vin-supply = <&vcc5v0_usb>;
349 regulator-state-mem {
350 regulator-off-in-suspend;
355 /* Primary 0.9 V LDO */
356 vcca0v9_s3: vcca0v9-s3 {
357 compatible = "regulator-fixed";
358 regulator-name = "vcc0v9_s3";
359 regulator-min-microvolt = <5000000>;
360 regulator-max-microvolt = <5000000>;
361 vin-supply = <&vcc_1v8>;
363 regulator-state-mem {
364 regulator-on-in-suspend;
368 mains_charger: dc-charger {
369 compatible = "gpio-charger";
370 charger-type = "mains";
374 pinctrl-names = "default";
375 pinctrl-0 = <&dc_det_pin>;
380 cpu-supply = <&vdd_cpu_b>;
384 cpu-supply = <&vdd_cpu_b>;
388 cpu-supply = <&vdd_cpu_l>;
392 cpu-supply = <&vdd_cpu_l>;
396 cpu-supply = <&vdd_cpu_l>;
400 cpu-supply = <&vdd_cpu_l>;
404 force-hpd;
405 pinctrl-names = "default";
406 pinctrl-0 = <&edp_hpd>;
412 #address-cells = <1>;
413 #size-cells = <0>;
417 remote-endpoint = <&panel_in_edp>;
428 mali-supply = <&vdd_gpu>;
437 clock-frequency = <400000>;
438 i2c-scl-falling-time-ns = <4>;
439 i2c-scl-rising-time-ns = <168>;
442 rk808: pmic@1b {
445 #clock-cells = <1>;
446 clock-output-names = "xin32k", "rk808-clkout2";
447 interrupt-parent = <&gpio3>;
449 pinctrl-names = "default";
450 pinctrl-0 = <&pmic_int_l_pin>;
451 rockchip,system-power-controller;
452 wakeup-source;
454 vcc1-supply = <&vcc_sysin>;
455 vcc2-supply = <&vcc_sysin>;
456 vcc3-supply = <&vcc_sysin>;
457 vcc4-supply = <&vcc_sysin>;
458 vcc6-supply = <&vcc_sysin>;
459 vcc7-supply = <&vcc_sysin>;
460 vcc8-supply = <&vcc3v3_sys>;
461 vcc9-supply = <&vcc_sysin>;
462 vcc10-supply = <&vcc_sysin>;
463 vcc11-supply = <&vcc_sysin>;
464 vcc12-supply = <&vcc3v3_sys>;
469 regulator-name = "vdd_center";
470 regulator-always-on;
471 regulator-boot-on;
472 regulator-min-microvolt = <750000>;
473 regulator-max-microvolt = <1350000>;
474 regulator-ramp-delay = <6001>;
476 regulator-state-mem {
477 regulator-off-in-suspend;
482 regulator-name = "vdd_cpu_l";
483 regulator-always-on;
484 regulator-boot-on;
485 regulator-min-microvolt = <750000>;
486 regulator-max-microvolt = <1350000>;
487 regulator-ramp-delay = <6001>;
489 regulator-state-mem {
490 regulator-off-in-suspend;
495 regulator-name = "vcc_ddr";
496 regulator-always-on;
497 regulator-boot-on;
499 regulator-state-mem {
500 regulator-on-in-suspend;
505 regulator-name = "vcc_1v8";
506 regulator-always-on;
507 regulator-boot-on;
508 regulator-min-microvolt = <1800000>;
509 regulator-max-microvolt = <1800000>;
511 regulator-state-mem {
512 regulator-on-in-suspend;
513 regulator-suspend-microvolt = <1800000>;
526 regulator-name = "vcc1v8_pmupll";
527 regulator-always-on;
528 regulator-boot-on;
529 regulator-min-microvolt = <1800000>;
530 regulator-max-microvolt = <1800000>;
532 regulator-state-mem {
533 regulator-on-in-suspend;
534 regulator-suspend-microvolt = <1800000>;
539 regulator-name = "vcc_sdio";
540 regulator-always-on;
541 regulator-boot-on;
542 regulator-min-microvolt = <1800000>;
543 regulator-max-microvolt = <3000000>;
545 regulator-state-mem {
546 regulator-on-in-suspend;
547 regulator-suspend-microvolt = <3000000>;
552 regulator-name = "vcca3v0_codec";
553 regulator-always-on;
554 regulator-boot-on;
555 regulator-min-microvolt = <3000000>;
556 regulator-max-microvolt = <3000000>;
558 regulator-state-mem {
559 regulator-off-in-suspend;
564 regulator-name = "vcc_1v5";
565 regulator-always-on;
566 regulator-boot-on;
567 regulator-min-microvolt = <1500000>;
568 regulator-max-microvolt = <1500000>;
570 regulator-state-mem {
571 regulator-on-in-suspend;
572 regulator-suspend-microvolt = <1500000>;
577 regulator-name = "vcca1v8_codec";
578 regulator-always-on;
579 regulator-boot-on;
580 regulator-min-microvolt = <1800000>;
581 regulator-max-microvolt = <1800000>;
583 regulator-state-mem {
584 regulator-off-in-suspend;
589 regulator-name = "vcc_3v0";
590 regulator-always-on;
591 regulator-boot-on;
592 regulator-min-microvolt = <3000000>;
593 regulator-max-microvolt = <3000000>;
595 regulator-state-mem {
596 regulator-on-in-suspend;
597 regulator-suspend-microvolt = <3000000>;
602 regulator-name = "vcc3v3_s3";
603 regulator-always-on;
604 regulator-boot-on;
606 regulator-state-mem {
607 regulator-off-in-suspend;
612 regulator-name = "vcc3v3_s0";
613 regulator-always-on;
614 regulator-boot-on;
616 regulator-state-mem {
617 regulator-off-in-suspend;
626 fcs,suspend-voltage-selector = <1>;
627 pinctrl-names = "default";
628 pinctrl-0 = <&vsel1_pin>;
629 regulator-name = "vdd_cpu_b";
630 regulator-always-on;
631 regulator-boot-on;
632 regulator-min-microvolt = <712500>;
633 regulator-max-microvolt = <1500000>;
634 regulator-ramp-delay = <1000>;
635 vin-supply = <&vcc_1v8>;
637 regulator-state-mem {
638 regulator-off-in-suspend;
645 fcs,suspend-voltage-selector = <1>;
646 pinctrl-names = "default";
647 pinctrl-0 = <&vsel2_pin>;
648 regulator-name = "vdd_gpu";
649 regulator-always-on;
650 regulator-boot-on;
651 regulator-min-microvolt = <712500>;
652 regulator-max-microvolt = <1500000>;
653 regulator-ramp-delay = <1000>;
654 vin-supply = <&vcc_1v8>;
656 regulator-state-mem {
657 regulator-off-in-suspend;
663 clock-frequency = <100000>;
664 i2c-scl-falling-time-ns = <4>;
665 i2c-scl-rising-time-ns = <168>;
668 es8316: audio-codec@11 {
672 clock-names = "mclk";
673 #sound-dai-cells = <0>;
678 i2c-scl-falling-time-ns = <15>;
679 i2c-scl-rising-time-ns = <450>;
684 i2c-scl-falling-time-ns = <20>;
685 i2c-scl-rising-time-ns = <600>;
691 interrupt-parent = <&gpio1>;
693 pinctrl-names = "default";
694 pinctrl-0 = <&fusb0_int_pin>;
695 vbus-supply = <&vbus_typec>;
698 compatible = "usb-c-connector";
699 data-role = "dual";
700 label = "USB-C";
701 op-sink-microwatt = <1000000>;
702 power-role = "dual";
703 sink-pdos =
705 source-pdos =
707 try-power-role = "sink";
710 #address-cells = <1>;
711 #size-cells = <0>;
717 remote-endpoint =
726 remote-endpoint =
735 remote-endpoint =
746 cellwise,battery-profile = /bits/ 8 <
756 cellwise,monitor-interval-ms = <5000>;
757 monitored-battery = <&bat>;
758 power-supplies = <&mains_charger>, <&fusb0>;
763 pinctrl-names = "default";
764 pinctrl-0 = <&i2s_8ch_mclk_pin>, <&i2s1_2ch_bus>;
765 rockchip,capture-channels = <8>;
766 rockchip,playback-channels = <8>;
771 audio-supply = <&vcc_3v0>;
772 gpio1830-supply = <&vcc_3v0>;
773 sdmmc-supply = <&vcc_sdio>;
782 bus-scan-delay-ms = <1000>;
783 ep-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>;
784 num-lanes = <4>;
785 pinctrl-names = "default";
786 pinctrl-0 = <&pcie_clkreqn_cpm>;
787 vpcie0v9-supply = <&vcca0v9_s3>;
788 vpcie1v8-supply = <&vcca1v8_s3>;
789 vpcie3v3-supply = <&vcc3v3_ssd>;
795 pwrbtn_pin: pwrbtn-pin {
799 lidbtn_pin: lidbtn-pin {
804 dc-charger {
805 dc_det_pin: dc-det-pin {
811 hp_det_pin: hp-det-pin {
817 fusb0_int_pin: fusb0-int-pin {
823 i2s_8ch_mclk_pin: i2s-8ch-mclk-pin {
828 lcd-panel {
829 lcdvcc_en_pin: lcdvcc-en-pin {
833 panel_en_pin: panel-en-pin {
837 lcd_panel_reset_pin: lcd-panel-reset-pin {
843 pwr_led_pin: pwr-led-pin {
847 slp_led_pin: slp-led-pin {
852 pmic {
853 pmic_int_l_pin: pmic-int-l-pin {
857 vsel1_pin: vsel1-pin {
861 vsel2_pin: vsel2-pin {
867 sdmmc0_pwr_h_pin: sdmmc0-pwr-h-pin {
873 sdio-pwrseq {
874 wifi_enable_h_pin: wifi-enable-h-pin {
879 usb-typec {
880 vcc5v0_typec0_en_pin: vcc5v0-typec0-en-pin {
886 pwr_5v_pin: pwr-5v-pin {
890 vcc5v0_host_en_pin: vcc5v0-host-en-pin {
895 wireless-bluetooth {
896 bt_wake_pin: bt-wake-pin {
900 bt_host_wake_pin: bt-host-wake-pin {
904 bt_reset_pin: bt-reset-pin {
911 pmu1830-supply = <&vcc_3v0>;
924 vref-supply = <&vcca1v8_s3>;
929 bus-width = <4>;
930 cap-mmc-highspeed;
931 cap-sd-highspeed;
932 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
933 disable-wp;
934 pinctrl-names = "default";
935 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
936 sd-uhs-sdr50;
937 vmmc-supply = <&vcc3v0_sd>;
938 vqmmc-supply = <&vcc_sdio>;
943 bus-width = <4>;
944 cap-sd-highspeed;
945 cap-sdio-irq;
946 keep-power-in-suspend;
947 mmc-pwrseq = <&sdio_pwrseq>;
948 non-removable;
949 pinctrl-names = "default";
950 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
951 sd-uhs-sdr104;
956 bus-width = <8>;
957 mmc-hs200-1_8v;
958 non-removable;
963 max-freq = <10000000>;
967 compatible = "jedec,spi-nor";
969 m25p,fast-read;
970 spi-max-frequency = <10000000>;
981 remote-endpoint = <&usbc_dp>;
989 remote-endpoint = <&usbc_ss>;
1000 rockchip,hw-tshut-mode = <1>;
1002 rockchip,hw-tshut-polarity = <1>;
1009 u2phy0_otg: otg-port {
1013 u2phy0_host: host-port {
1014 phy-supply = <&vcc5v0_otg>;
1020 remote-endpoint = <&usbc_hs>;
1028 u2phy1_otg: otg-port {
1032 u2phy1_host: host-port {
1033 phy-supply = <&vcc5v0_otg>;
1039 pinctrl-names = "default";
1040 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
1041 uart-has-rtscts;
1047 clock-names = "lpo";
1048 device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
1049 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
1050 max-speed = <1500000>;
1051 pinctrl-names = "default";
1052 pinctrl-0 = <&bt_host_wake_pin &bt_wake_pin &bt_reset_pin>;
1053 shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
1054 vbat-supply = <&wifi_bat>;
1055 vddio-supply = <&vcc_wl>;