Lines Matching +full:center +full:- +full:supply
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>
18 compatible = "pine64,pinebook-pro", "rockchip,rk3399";
19 chassis-type = "laptop";
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 = <10000000>;
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>;
54 remote-endpoint = <&edp_out_panel>;
60 * Use separate nodes for gpio-keys to allow for selective deactivation
63 gpio-key-lid {
64 compatible = "gpio-keys";
65 pinctrl-names = "default";
66 pinctrl-0 = <&lidbtn_pin>;
68 switch-lid {
69 debounce-interval = <20>;
73 linux,input-type = <EV_SW>;
74 wakeup-event-action = <EV_ACT_DEASSERTED>;
75 wakeup-source;
79 gpio-key-power {
80 compatible = "gpio-keys";
81 pinctrl-names = "default";
82 pinctrl-0 = <&pwrbtn_pin>;
84 key-power {
85 debounce-interval = <20>;
89 wakeup-source;
94 compatible = "gpio-leds";
95 pinctrl-names = "default";
96 pinctrl-0 = <&pwr_led_pin &slp_led_pin>;
98 green_led: led-0 {
100 default-state = "on";
106 red_led: led-1 {
108 default-state = "off";
112 panic-indicator;
113 retain-state-suspended;
118 sdio_pwrseq: sdio-pwrseq {
119 compatible = "mmc-pwrseq-simple";
121 clock-names = "ext_clock";
122 pinctrl-names = "default";
123 pinctrl-0 = <&wifi_enable_h_pin>;
124 post-power-on-delay-ms = <100>;
125 power-off-delay-us = <500000>;
128 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
132 es8316-sound {
133 compatible = "simple-audio-card";
134 pinctrl-names = "default";
135 pinctrl-0 = <&hp_det_pin>;
136 simple-audio-card,name = "rockchip,es8316-codec";
137 simple-audio-card,format = "i2s";
138 simple-audio-card,mclk-fs = <256>;
140 simple-audio-card,widgets =
144 simple-audio-card,routing =
153 simple-audio-card,hp-det-gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
154 simple-audio-card,aux-devs = <&speaker_amp>;
155 simple-audio-card,pin-switches = "Speaker";
157 simple-audio-card,cpu {
158 sound-dai = <&i2s1>;
161 simple-audio-card,codec {
162 sound-dai = <&es8316>;
166 speaker_amp: speaker-amplifier {
167 compatible = "simple-audio-amplifier";
168 enable-gpios = <&gpio4 RK_PD3 GPIO_ACTIVE_HIGH>;
169 sound-name-prefix = "Speaker Amplifier";
170 VCC-supply = <&pa_5v>;
175 vcc_sysin: regulator-vcc-sysin {
176 compatible = "regulator-fixed";
177 regulator-name = "vcc_sysin";
178 regulator-always-on;
179 regulator-boot-on;
183 /* LCD backlight supply */
184 vcc_12v: regulator-vcc-12v {
185 compatible = "regulator-fixed";
186 regulator-name = "vcc_12v";
187 regulator-always-on;
188 regulator-boot-on;
189 regulator-min-microvolt = <12000000>;
190 regulator-max-microvolt = <12000000>;
191 vin-supply = <&vcc_sysin>;
193 regulator-state-mem {
194 regulator-off-in-suspend;
198 /* Main 3.3 V supply */
199 vcc3v3_sys: wifi_bat: regulator-vcc3v3-sys {
200 compatible = "regulator-fixed";
201 regulator-name = "vcc3v3_sys";
202 regulator-always-on;
203 regulator-boot-on;
204 regulator-min-microvolt = <3300000>;
205 regulator-max-microvolt = <3300000>;
206 vin-supply = <&vcc_sysin>;
208 regulator-state-mem {
209 regulator-on-in-suspend;
213 /* 5 V USB power supply */
214 vcc5v0_usb: pa_5v: regulator-vcc5v0-usb {
215 compatible = "regulator-fixed";
216 enable-active-high;
218 pinctrl-names = "default";
219 pinctrl-0 = <&pwr_5v_pin>;
220 regulator-name = "vcc5v0_usb";
221 regulator-always-on;
222 regulator-min-microvolt = <5000000>;
223 regulator-max-microvolt = <5000000>;
224 vin-supply = <&vcc_sysin>;
226 regulator-state-mem {
227 regulator-off-in-suspend;
231 /* RK3399 logic supply */
232 vdd_log: regulator-vdd-log {
233 compatible = "pwm-regulator";
235 pwm-supply = <&vcc_sysin>;
236 regulator-name = "vdd_log";
237 regulator-always-on;
238 regulator-boot-on;
239 regulator-min-microvolt = <800000>;
240 regulator-max-microvolt = <1400000>;
242 regulator-state-mem {
243 regulator-on-in-suspend;
248 /* 0.9 V supply, always on */
249 vcc_0v9: regulator-vcc-0v9 {
250 compatible = "regulator-fixed";
251 regulator-name = "vcc_0v9";
252 regulator-always-on;
253 regulator-boot-on;
254 regulator-min-microvolt = <900000>;
255 regulator-max-microvolt = <900000>;
256 vin-supply = <&vcc3v3_sys>;
259 /* S3 1.8 V supply, switched by vcc1v8_s3 */
260 vcca1v8_s3: regulator-vcc1v8-s3 {
261 compatible = "regulator-fixed";
262 regulator-name = "vcca1v8_s3";
263 regulator-always-on;
264 regulator-boot-on;
265 regulator-min-microvolt = <1800000>;
266 regulator-max-microvolt = <1800000>;
267 vin-supply = <&vcc3v3_sys>;
271 vcc3v0_sd: regulator-vcc3v0-sd {
272 compatible = "regulator-fixed";
273 enable-active-high;
275 pinctrl-names = "default";
276 pinctrl-0 = <&sdmmc0_pwr_h_pin>;
277 regulator-name = "vcc3v0_sd";
278 regulator-always-on;
279 regulator-min-microvolt = <3000000>;
280 regulator-max-microvolt = <3000000>;
281 vin-supply = <&vcc3v3_sys>;
283 regulator-state-mem {
284 regulator-off-in-suspend;
289 vcc3v3_panel: regulator-vcc3v3-panel {
290 compatible = "regulator-fixed";
291 enable-active-high;
293 pinctrl-names = "default";
294 pinctrl-0 = <&lcdvcc_en_pin>;
295 regulator-name = "vcc3v3_panel";
296 regulator-always-on;
297 regulator-min-microvolt = <3300000>;
298 regulator-max-microvolt = <3300000>;
299 regulator-enable-ramp-delay = <100000>;
300 vin-supply = <&vcc3v3_sys>;
302 regulator-state-mem {
303 regulator-off-in-suspend;
308 vcc3v3_ssd: regulator-vcc3v3-ssd {
309 compatible = "regulator-fixed";
310 regulator-name = "vcc3v3_ssd";
311 regulator-min-microvolt = <3300000>;
312 regulator-max-microvolt = <3300000>;
313 vin-supply = <&vcc3v3_sys>;
317 /* USB 3 port power supply regulator */
318 vcc5v0_otg: regulator-vcc5v0-otg {
319 compatible = "regulator-fixed";
320 enable-active-high;
322 pinctrl-names = "default";
323 pinctrl-0 = <&vcc5v0_host_en_pin>;
324 regulator-name = "vcc5v0_otg";
325 regulator-always-on;
326 regulator-min-microvolt = <5000000>;
327 regulator-max-microvolt = <5000000>;
328 vin-supply = <&vcc5v0_usb>;
330 regulator-state-mem {
331 regulator-off-in-suspend;
336 /* Type C port power supply regulator */
337 vbus_5vout: vbus_typec: regulator-vbus-5vout {
338 compatible = "regulator-fixed";
339 enable-active-high;
341 pinctrl-names = "default";
342 pinctrl-0 = <&vcc5v0_typec0_en_pin>;
343 regulator-name = "vbus_5vout";
344 regulator-min-microvolt = <5000000>;
345 regulator-max-microvolt = <5000000>;
346 vin-supply = <&vcc5v0_usb>;
348 regulator-state-mem {
349 regulator-off-in-suspend;
355 vcca0v9_s3: regulator-vcca0v9-s3 {
356 compatible = "regulator-fixed";
357 regulator-name = "vcc0v9_s3";
358 regulator-min-microvolt = <5000000>;
359 regulator-max-microvolt = <5000000>;
360 vin-supply = <&vcc_1v8>;
362 regulator-state-mem {
363 regulator-on-in-suspend;
367 mains_charger: dc-charger {
368 compatible = "gpio-charger";
369 charger-type = "mains";
373 pinctrl-names = "default";
374 pinctrl-0 = <&dc_det_pin>;
379 cpu-supply = <&vdd_cpu_b>;
383 cpu-supply = <&vdd_cpu_b>;
387 cpu-supply = <&vdd_cpu_l>;
391 cpu-supply = <&vdd_cpu_l>;
395 cpu-supply = <&vdd_cpu_l>;
399 cpu-supply = <&vdd_cpu_l>;
403 force-hpd;
404 pinctrl-names = "default";
405 pinctrl-0 = <&edp_hpd>;
411 remote-endpoint = <&panel_in_edp>;
420 mali-supply = <&vdd_gpu>;
429 clock-frequency = <400000>;
430 i2c-scl-falling-time-ns = <4>;
431 i2c-scl-rising-time-ns = <168>;
437 #clock-cells = <1>;
438 clock-output-names = "xin32k", "rk808-clkout2";
439 interrupt-parent = <&gpio3>;
441 pinctrl-names = "default";
442 pinctrl-0 = <&pmic_int_l_pin>;
443 system-power-controller;
444 wakeup-source;
446 vcc1-supply = <&vcc_sysin>;
447 vcc2-supply = <&vcc_sysin>;
448 vcc3-supply = <&vcc_sysin>;
449 vcc4-supply = <&vcc_sysin>;
450 vcc6-supply = <&vcc_sysin>;
451 vcc7-supply = <&vcc_sysin>;
452 vcc8-supply = <&vcc3v3_sys>;
453 vcc9-supply = <&vcc_sysin>;
454 vcc10-supply = <&vcc_sysin>;
455 vcc11-supply = <&vcc_sysin>;
456 vcc12-supply = <&vcc3v3_sys>;
459 /* rk3399 center logic supply */
461 regulator-name = "vdd_center";
462 regulator-always-on;
463 regulator-boot-on;
464 regulator-min-microvolt = <750000>;
465 regulator-max-microvolt = <1350000>;
466 regulator-ramp-delay = <6001>;
468 regulator-state-mem {
469 regulator-off-in-suspend;
474 regulator-name = "vdd_cpu_l";
475 regulator-always-on;
476 regulator-boot-on;
477 regulator-min-microvolt = <750000>;
478 regulator-max-microvolt = <1350000>;
479 regulator-ramp-delay = <6001>;
481 regulator-state-mem {
482 regulator-off-in-suspend;
487 regulator-name = "vcc_ddr";
488 regulator-always-on;
489 regulator-boot-on;
491 regulator-state-mem {
492 regulator-on-in-suspend;
497 regulator-name = "vcc_1v8";
498 regulator-always-on;
499 regulator-boot-on;
500 regulator-min-microvolt = <1800000>;
501 regulator-max-microvolt = <1800000>;
503 regulator-state-mem {
504 regulator-on-in-suspend;
505 regulator-suspend-microvolt = <1800000>;
518 regulator-name = "vcc1v8_pmupll";
519 regulator-always-on;
520 regulator-boot-on;
521 regulator-min-microvolt = <1800000>;
522 regulator-max-microvolt = <1800000>;
524 regulator-state-mem {
525 regulator-on-in-suspend;
526 regulator-suspend-microvolt = <1800000>;
531 regulator-name = "vcc_sdio";
532 regulator-always-on;
533 regulator-boot-on;
534 regulator-min-microvolt = <1800000>;
535 regulator-max-microvolt = <3000000>;
537 regulator-state-mem {
538 regulator-on-in-suspend;
539 regulator-suspend-microvolt = <3000000>;
544 regulator-name = "vcca3v0_codec";
545 regulator-always-on;
546 regulator-boot-on;
547 regulator-min-microvolt = <3000000>;
548 regulator-max-microvolt = <3000000>;
550 regulator-state-mem {
551 regulator-off-in-suspend;
556 regulator-name = "vcc_1v5";
557 regulator-always-on;
558 regulator-boot-on;
559 regulator-min-microvolt = <1500000>;
560 regulator-max-microvolt = <1500000>;
562 regulator-state-mem {
563 regulator-on-in-suspend;
564 regulator-suspend-microvolt = <1500000>;
569 regulator-name = "vcca1v8_codec";
570 regulator-always-on;
571 regulator-boot-on;
572 regulator-min-microvolt = <1800000>;
573 regulator-max-microvolt = <1800000>;
575 regulator-state-mem {
576 regulator-off-in-suspend;
581 regulator-name = "vcc_3v0";
582 regulator-always-on;
583 regulator-boot-on;
584 regulator-min-microvolt = <3000000>;
585 regulator-max-microvolt = <3000000>;
587 regulator-state-mem {
588 regulator-on-in-suspend;
589 regulator-suspend-microvolt = <3000000>;
594 regulator-name = "vcc3v3_s3";
595 regulator-always-on;
596 regulator-boot-on;
598 regulator-state-mem {
599 regulator-off-in-suspend;
604 regulator-name = "vcc3v3_s0";
605 regulator-always-on;
606 regulator-boot-on;
608 regulator-state-mem {
609 regulator-off-in-suspend;
618 fcs,suspend-voltage-selector = <1>;
619 pinctrl-names = "default";
620 pinctrl-0 = <&vsel1_pin>;
621 regulator-name = "vdd_cpu_b";
622 regulator-always-on;
623 regulator-boot-on;
624 regulator-min-microvolt = <712500>;
625 regulator-max-microvolt = <1500000>;
626 regulator-ramp-delay = <1000>;
627 vin-supply = <&vcc_1v8>;
629 regulator-state-mem {
630 regulator-off-in-suspend;
637 fcs,suspend-voltage-selector = <1>;
638 pinctrl-names = "default";
639 pinctrl-0 = <&vsel2_pin>;
640 regulator-name = "vdd_gpu";
641 regulator-always-on;
642 regulator-boot-on;
643 regulator-min-microvolt = <712500>;
644 regulator-max-microvolt = <1500000>;
645 regulator-ramp-delay = <1000>;
646 vin-supply = <&vcc_1v8>;
648 regulator-state-mem {
649 regulator-off-in-suspend;
655 clock-frequency = <100000>;
656 i2c-scl-falling-time-ns = <4>;
657 i2c-scl-rising-time-ns = <168>;
660 es8316: audio-codec@11 {
664 clock-names = "mclk";
665 #sound-dai-cells = <0>;
670 i2c-scl-falling-time-ns = <15>;
671 i2c-scl-rising-time-ns = <450>;
676 i2c-scl-falling-time-ns = <20>;
677 i2c-scl-rising-time-ns = <600>;
683 interrupt-parent = <&gpio1>;
685 pinctrl-names = "default";
686 pinctrl-0 = <&fusb0_int_pin>;
687 vbus-supply = <&vbus_typec>;
690 compatible = "usb-c-connector";
691 data-role = "dual";
692 label = "USB-C";
693 op-sink-microwatt = <1000000>;
694 power-role = "dual";
695 sink-pdos =
697 source-pdos =
699 try-power-role = "sink";
702 #address-cells = <1>;
703 #size-cells = <0>;
709 remote-endpoint =
718 remote-endpoint =
727 remote-endpoint =
738 cellwise,battery-profile = /bits/ 8 <
748 cellwise,monitor-interval-ms = <5000>;
749 monitored-battery = <&bat>;
750 power-supplies = <&mains_charger>, <&fusb0>;
755 pinctrl-names = "default";
756 pinctrl-0 = <&i2s_8ch_mclk_pin>, <&i2s1_2ch_bus>;
757 rockchip,capture-channels = <8>;
758 rockchip,playback-channels = <8>;
763 audio-supply = <&vcc_3v0>;
764 gpio1830-supply = <&vcc_3v0>;
765 sdmmc-supply = <&vcc_sdio>;
774 ep-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>;
775 num-lanes = <4>;
776 pinctrl-names = "default";
777 pinctrl-0 = <&pcie_clkreqn_cpm>;
778 vpcie0v9-supply = <&vcca0v9_s3>;
779 vpcie1v8-supply = <&vcca1v8_s3>;
780 vpcie3v3-supply = <&vcc3v3_ssd>;
786 pwrbtn_pin: pwrbtn-pin {
790 lidbtn_pin: lidbtn-pin {
795 dc-charger {
796 dc_det_pin: dc-det-pin {
802 hp_det_pin: hp-det-pin {
808 fusb0_int_pin: fusb0-int-pin {
814 i2s_8ch_mclk_pin: i2s-8ch-mclk-pin {
819 lcd-panel {
820 lcdvcc_en_pin: lcdvcc-en-pin {
824 panel_en_pin: panel-en-pin {
828 lcd_panel_reset_pin: lcd-panel-reset-pin {
834 pwr_led_pin: pwr-led-pin {
838 slp_led_pin: slp-led-pin {
844 pmic_int_l_pin: pmic-int-l-pin {
848 vsel1_pin: vsel1-pin {
852 vsel2_pin: vsel2-pin {
858 sdmmc0_pwr_h_pin: sdmmc0-pwr-h-pin {
864 sdio-pwrseq {
865 wifi_enable_h_pin: wifi-enable-h-pin {
870 usb-typec {
871 vcc5v0_typec0_en_pin: vcc5v0-typec0-en-pin {
877 pwr_5v_pin: pwr-5v-pin {
881 vcc5v0_host_en_pin: vcc5v0-host-en-pin {
886 wireless-bluetooth {
887 bt_wake_pin: bt-wake-pin {
891 bt_host_wake_pin: bt-host-wake-pin {
895 bt_reset_pin: bt-reset-pin {
902 pmu1830-supply = <&vcc_3v0>;
915 vref-supply = <&vcca1v8_s3>;
920 bus-width = <4>;
921 cap-mmc-highspeed;
922 cap-sd-highspeed;
923 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
924 disable-wp;
925 pinctrl-names = "default";
926 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
927 sd-uhs-sdr50;
928 vmmc-supply = <&vcc3v0_sd>;
929 vqmmc-supply = <&vcc_sdio>;
934 bus-width = <4>;
935 cap-sd-highspeed;
936 cap-sdio-irq;
937 keep-power-in-suspend;
938 mmc-pwrseq = <&sdio_pwrseq>;
939 non-removable;
940 pinctrl-names = "default";
941 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
942 sd-uhs-sdr104;
947 bus-width = <8>;
948 mmc-hs200-1_8v;
949 non-removable;
954 max-freq = <10000000>;
958 compatible = "jedec,spi-nor";
960 m25p,fast-read;
961 spi-max-frequency = <10000000>;
972 remote-endpoint = <&usbc_dp>;
980 remote-endpoint = <&usbc_ss>;
991 rockchip,hw-tshut-mode = <1>;
993 rockchip,hw-tshut-polarity = <1>;
1000 u2phy0_otg: otg-port {
1004 u2phy0_host: host-port {
1005 phy-supply = <&vcc5v0_otg>;
1011 remote-endpoint = <&usbc_hs>;
1019 u2phy1_otg: otg-port {
1023 u2phy1_host: host-port {
1024 phy-supply = <&vcc5v0_otg>;
1030 pinctrl-names = "default";
1031 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
1032 uart-has-rtscts;
1038 clock-names = "lpo";
1039 device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
1040 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
1041 max-speed = <1500000>;
1042 pinctrl-names = "default";
1043 pinctrl-0 = <&bt_host_wake_pin &bt_wake_pin &bt_reset_pin>;
1044 shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
1045 vbat-supply = <&wifi_bat>;
1046 vddio-supply = <&vcc_wl>;