Lines Matching +full:regulator +full:- +full:state +full:-

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";
22 stdout-path = "serial2:1500000n8";
25 backlight: edp-backlight {
26 compatible = "pwm-backlight";
27 power-supply = <&vcc_12v>;
32 compatible = "simple-battery";
33 charge-full-design-microamp-hours = <9800000>;
34 voltage-max-design-microvolt = <4350000>;
35 voltage-min-design-microvolt = <3000000>;
38 edp_panel: edp-panel {
41 enable-gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
42 pinctrl-names = "default";
43 pinctrl-0 = <&panel_en_pin>;
44 power-supply = <&vcc3v3_panel>;
47 #address-cells = <1>;
48 #size-cells = <0>;
52 #address-cells = <1>;
53 #size-cells = <0>;
57 remote-endpoint = <&edp_out_panel>;
64 * Use separate nodes for gpio-keys to allow for selective deactivation
67 gpio-key-lid {
68 compatible = "gpio-keys";
69 pinctrl-names = "default";
70 pinctrl-0 = <&lidbtn_pin>;
73 debounce-interval = <20>;
77 linux,input-type = <EV_SW>;
78 wakeup-event-action = <EV_ACT_DEASSERTED>;
79 wakeup-source;
83 gpio-key-power {
84 compatible = "gpio-keys";
85 pinctrl-names = "default";
86 pinctrl-0 = <&pwrbtn_pin>;
89 debounce-interval = <20>;
93 wakeup-source;
98 compatible = "gpio-leds";
99 pinctrl-names = "default";
100 pinctrl-0 = <&pwr_led_pin &slp_led_pin>;
102 green_led: led-0 {
104 default-state = "on";
110 red_led: led-1 {
112 default-state = "off";
116 panic-indicator;
117 retain-state-suspended;
122 sdio_pwrseq: sdio-pwrseq {
123 compatible = "mmc-pwrseq-simple";
125 clock-names = "ext_clock";
126 pinctrl-names = "default";
127 pinctrl-0 = <&wifi_enable_h_pin>;
128 post-power-on-delay-ms = <100>;
129 power-off-delay-us = <500000>;
132 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
136 es8316-sound {
137 compatible = "simple-audio-card";
138 pinctrl-names = "default";
139 pinctrl-0 = <&hp_det_pin>;
140 simple-audio-card,name = "rockchip,es8316-codec";
141 simple-audio-card,format = "i2s";
142 simple-audio-card,mclk-fs = <256>;
144 simple-audio-card,widgets =
148 simple-audio-card,routing =
157 simple-audio-card,hp-det-gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
158 simple-audio-card,aux-devs = <&speaker_amp>;
159 simple-audio-card,pin-switches = "Speaker";
161 simple-audio-card,cpu {
162 sound-dai = <&i2s1>;
165 simple-audio-card,codec {
166 sound-dai = <&es8316>;
170 speaker_amp: speaker-amplifier {
171 compatible = "simple-audio-amplifier";
172 enable-gpios = <&gpio4 RK_PD3 GPIO_ACTIVE_HIGH>;
173 sound-name-prefix = "Speaker Amplifier";
174 VCC-supply = <&pa_5v>;
179 vcc_sysin: vcc-sysin {
180 compatible = "regulator-fixed";
181 regulator-name = "vcc_sysin";
182 regulator-always-on;
183 regulator-boot-on;
188 vcc_12v: vcc-12v {
189 compatible = "regulator-fixed";
190 regulator-name = "vcc_12v";
191 regulator-always-on;
192 regulator-boot-on;
193 regulator-min-microvolt = <12000000>;
194 regulator-max-microvolt = <12000000>;
195 vin-supply = <&vcc_sysin>;
197 regulator-state-mem {
198 regulator-off-in-suspend;
203 vcc3v3_sys: wifi_bat: vcc3v3-sys {
204 compatible = "regulator-fixed";
205 regulator-name = "vcc3v3_sys";
206 regulator-always-on;
207 regulator-boot-on;
208 regulator-min-microvolt = <3300000>;
209 regulator-max-microvolt = <3300000>;
210 vin-supply = <&vcc_sysin>;
212 regulator-state-mem {
213 regulator-on-in-suspend;
218 vcc5v0_usb: pa_5v: vcc5v0-usb-regulator {
219 compatible = "regulator-fixed";
220 enable-active-high;
222 pinctrl-names = "default";
223 pinctrl-0 = <&pwr_5v_pin>;
224 regulator-name = "vcc5v0_usb";
225 regulator-always-on;
226 regulator-min-microvolt = <5000000>;
227 regulator-max-microvolt = <5000000>;
228 vin-supply = <&vcc_sysin>;
230 regulator-state-mem {
231 regulator-off-in-suspend;
236 vdd_log: vdd-log {
237 compatible = "pwm-regulator";
239 regulator-name = "vdd_log";
240 regulator-always-on;
241 regulator-boot-on;
242 regulator-min-microvolt = <800000>;
243 regulator-max-microvolt = <1400000>;
244 vin-supply = <&vcc_sysin>;
246 regulator-state-mem {
247 regulator-on-in-suspend;
253 vcc_0v9: vcc-0v9 {
254 compatible = "regulator-fixed";
255 regulator-name = "vcc_0v9";
256 regulator-always-on;
257 regulator-boot-on;
258 regulator-min-microvolt = <900000>;
259 regulator-max-microvolt = <900000>;
260 vin-supply = <&vcc3v3_sys>;
264 vcca1v8_s3: vcc1v8-s3 {
265 compatible = "regulator-fixed";
266 regulator-name = "vcca1v8_s3";
267 regulator-always-on;
268 regulator-boot-on;
269 regulator-min-microvolt = <1800000>;
270 regulator-max-microvolt = <1800000>;
271 vin-supply = <&vcc3v3_sys>;
275 vcc3v0_sd: vcc3v0-sd {
276 compatible = "regulator-fixed";
277 enable-active-high;
279 pinctrl-names = "default";
280 pinctrl-0 = <&sdmmc0_pwr_h_pin>;
281 regulator-name = "vcc3v0_sd";
282 regulator-always-on;
283 regulator-min-microvolt = <3000000>;
284 regulator-max-microvolt = <3000000>;
285 vin-supply = <&vcc3v3_sys>;
287 regulator-state-mem {
288 regulator-off-in-suspend;
293 vcc3v3_panel: vcc3v3-panel {
294 compatible = "regulator-fixed";
295 enable-active-high;
297 pinctrl-names = "default";
298 pinctrl-0 = <&lcdvcc_en_pin>;
299 regulator-name = "vcc3v3_panel";
300 regulator-always-on;
301 regulator-min-microvolt = <3300000>;
302 regulator-max-microvolt = <3300000>;
303 regulator-enable-ramp-delay = <100000>;
304 vin-supply = <&vcc3v3_sys>;
306 regulator-state-mem {
307 regulator-off-in-suspend;
312 vcc3v3_ssd: vcc3v3-ssd {
313 compatible = "regulator-fixed";
314 regulator-name = "vcc3v3_ssd";
315 regulator-min-microvolt = <3300000>;
316 regulator-max-microvolt = <3300000>;
317 vin-supply = <&vcc3v3_sys>;
321 /* USB 3 port power supply regulator */
322 vcc5v0_otg: vcc5v0-otg {
323 compatible = "regulator-fixed";
324 enable-active-high;
326 pinctrl-names = "default";
327 pinctrl-0 = <&vcc5v0_host_en_pin>;
328 regulator-name = "vcc5v0_otg";
329 regulator-always-on;
330 regulator-min-microvolt = <5000000>;
331 regulator-max-microvolt = <5000000>;
332 vin-supply = <&vcc5v0_usb>;
334 regulator-state-mem {
335 regulator-off-in-suspend;
340 /* Type C port power supply regulator */
341 vbus_5vout: vbus_typec: vbus-5vout {
342 compatible = "regulator-fixed";
343 enable-active-high;
345 pinctrl-names = "default";
346 pinctrl-0 = <&vcc5v0_typec0_en_pin>;
347 regulator-name = "vbus_5vout";
348 regulator-min-microvolt = <5000000>;
349 regulator-max-microvolt = <5000000>;
350 vin-supply = <&vcc5v0_usb>;
352 regulator-state-mem {
353 regulator-off-in-suspend;
359 vcca0v9_s3: vcca0v9-s3 {
360 compatible = "regulator-fixed";
361 regulator-name = "vcc0v9_s3";
362 regulator-min-microvolt = <5000000>;
363 regulator-max-microvolt = <5000000>;
364 vin-supply = <&vcc_1v8>;
366 regulator-state-mem {
367 regulator-on-in-suspend;
371 mains_charger: dc-charger {
372 compatible = "gpio-charger";
373 charger-type = "mains";
377 pinctrl-names = "default";
378 pinctrl-0 = <&dc_det_pin>;
387 cpu-supply = <&vdd_cpu_b>;
391 cpu-supply = <&vdd_cpu_b>;
395 cpu-supply = <&vdd_cpu_l>;
399 cpu-supply = <&vdd_cpu_l>;
403 cpu-supply = <&vdd_cpu_l>;
407 cpu-supply = <&vdd_cpu_l>;
411 force-hpd;
412 pinctrl-names = "default";
413 pinctrl-0 = <&edp_hpd>;
419 #address-cells = <1>;
420 #size-cells = <0>;
424 remote-endpoint = <&panel_in_edp>;
435 mali-supply = <&vdd_gpu>;
444 clock-frequency = <400000>;
445 i2c-scl-falling-time-ns = <4>;
446 i2c-scl-rising-time-ns = <168>;
452 #clock-cells = <1>;
453 clock-output-names = "xin32k", "rk808-clkout2";
454 interrupt-parent = <&gpio3>;
456 pinctrl-names = "default";
457 pinctrl-0 = <&pmic_int_l_pin>;
458 rockchip,system-power-controller;
459 wakeup-source;
461 vcc1-supply = <&vcc_sysin>;
462 vcc2-supply = <&vcc_sysin>;
463 vcc3-supply = <&vcc_sysin>;
464 vcc4-supply = <&vcc_sysin>;
465 vcc6-supply = <&vcc_sysin>;
466 vcc7-supply = <&vcc_sysin>;
467 vcc8-supply = <&vcc3v3_sys>;
468 vcc9-supply = <&vcc_sysin>;
469 vcc10-supply = <&vcc_sysin>;
470 vcc11-supply = <&vcc_sysin>;
471 vcc12-supply = <&vcc3v3_sys>;
472 vcc13-supply = <&vcc_sysin>;
473 vcc14-supply = <&vcc_sysin>;
478 regulator-name = "vdd_center";
479 regulator-always-on;
480 regulator-boot-on;
481 regulator-min-microvolt = <750000>;
482 regulator-max-microvolt = <1350000>;
483 regulator-ramp-delay = <6001>;
485 regulator-state-mem {
486 regulator-off-in-suspend;
491 regulator-name = "vdd_cpu_l";
492 regulator-always-on;
493 regulator-boot-on;
494 regulator-min-microvolt = <750000>;
495 regulator-max-microvolt = <1350000>;
496 regulator-ramp-delay = <6001>;
498 regulator-state-mem {
499 regulator-off-in-suspend;
504 regulator-name = "vcc_ddr";
505 regulator-always-on;
506 regulator-boot-on;
508 regulator-state-mem {
509 regulator-on-in-suspend;
514 regulator-name = "vcc_1v8";
515 regulator-always-on;
516 regulator-boot-on;
517 regulator-min-microvolt = <1800000>;
518 regulator-max-microvolt = <1800000>;
520 regulator-state-mem {
521 regulator-on-in-suspend;
522 regulator-suspend-microvolt = <1800000>;
535 regulator-name = "vcc1v8_pmupll";
536 regulator-always-on;
537 regulator-boot-on;
538 regulator-min-microvolt = <1800000>;
539 regulator-max-microvolt = <1800000>;
541 regulator-state-mem {
542 regulator-on-in-suspend;
543 regulator-suspend-microvolt = <1800000>;
548 regulator-name = "vcc_sdio";
549 regulator-always-on;
550 regulator-boot-on;
551 regulator-min-microvolt = <1800000>;
552 regulator-max-microvolt = <3000000>;
554 regulator-state-mem {
555 regulator-on-in-suspend;
556 regulator-suspend-microvolt = <3000000>;
561 regulator-name = "vcca3v0_codec";
562 regulator-always-on;
563 regulator-boot-on;
564 regulator-min-microvolt = <3000000>;
565 regulator-max-microvolt = <3000000>;
567 regulator-state-mem {
568 regulator-off-in-suspend;
573 regulator-name = "vcc_1v5";
574 regulator-always-on;
575 regulator-boot-on;
576 regulator-min-microvolt = <1500000>;
577 regulator-max-microvolt = <1500000>;
579 regulator-state-mem {
580 regulator-on-in-suspend;
581 regulator-suspend-microvolt = <1500000>;
586 regulator-name = "vcca1v8_codec";
587 regulator-always-on;
588 regulator-boot-on;
589 regulator-min-microvolt = <1800000>;
590 regulator-max-microvolt = <1800000>;
592 regulator-state-mem {
593 regulator-off-in-suspend;
598 regulator-name = "vcc_3v0";
599 regulator-always-on;
600 regulator-boot-on;
601 regulator-min-microvolt = <3000000>;
602 regulator-max-microvolt = <3000000>;
604 regulator-state-mem {
605 regulator-on-in-suspend;
606 regulator-suspend-microvolt = <3000000>;
611 regulator-name = "vcc3v3_s3";
612 regulator-always-on;
613 regulator-boot-on;
615 regulator-state-mem {
616 regulator-off-in-suspend;
621 regulator-name = "vcc3v3_s0";
622 regulator-always-on;
623 regulator-boot-on;
625 regulator-state-mem {
626 regulator-off-in-suspend;
632 vdd_cpu_b: regulator@40 {
635 fcs,suspend-voltage-selector = <1>;
636 pinctrl-names = "default";
637 pinctrl-0 = <&vsel1_pin>;
638 regulator-name = "vdd_cpu_b";
639 regulator-always-on;
640 regulator-boot-on;
641 regulator-min-microvolt = <712500>;
642 regulator-max-microvolt = <1500000>;
643 regulator-ramp-delay = <1000>;
644 vin-supply = <&vcc_1v8>;
646 regulator-state-mem {
647 regulator-off-in-suspend;
651 vdd_gpu: regulator@41 {
654 fcs,suspend-voltage-selector = <1>;
655 pinctrl-names = "default";
656 pinctrl-0 = <&vsel2_pin>;
657 regulator-name = "vdd_gpu";
658 regulator-always-on;
659 regulator-boot-on;
660 regulator-min-microvolt = <712500>;
661 regulator-max-microvolt = <1500000>;
662 regulator-ramp-delay = <1000>;
663 vin-supply = <&vcc_1v8>;
665 regulator-state-mem {
666 regulator-off-in-suspend;
672 clock-frequency = <100000>;
673 i2c-scl-falling-time-ns = <4>;
674 i2c-scl-rising-time-ns = <168>;
681 clock-names = "mclk";
682 #sound-dai-cells = <0>;
687 i2c-scl-falling-time-ns = <15>;
688 i2c-scl-rising-time-ns = <450>;
693 i2c-scl-falling-time-ns = <20>;
694 i2c-scl-rising-time-ns = <600>;
700 interrupt-parent = <&gpio1>;
702 pinctrl-names = "default";
703 pinctrl-0 = <&fusb0_int_pin>;
704 vbus-supply = <&vbus_typec>;
707 compatible = "usb-c-connector";
708 data-role = "host";
709 label = "USB-C";
710 op-sink-microwatt = <1000000>;
711 power-role = "dual";
712 sink-pdos =
714 source-pdos =
716 try-power-role = "sink";
719 #address-cells = <1>;
720 #size-cells = <0>;
726 remote-endpoint =
735 remote-endpoint =
744 remote-endpoint =
755 cellwise,battery-profile = /bits/ 8 <
765 cellwise,monitor-interval-ms = <5000>;
766 monitored-battery = <&bat>;
767 power-supplies = <&mains_charger>, <&fusb0>;
772 pinctrl-names = "default";
773 pinctrl-0 = <&i2s_8ch_mclk_pin>, <&i2s1_2ch_bus>;
774 rockchip,capture-channels = <8>;
775 rockchip,playback-channels = <8>;
780 audio-supply = <&vcc_3v0>;
781 gpio1830-supply = <&vcc_3v0>;
782 sdmmc-supply = <&vcc_sdio>;
791 bus-scan-delay-ms = <1000>;
792 ep-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>;
793 max-link-speed = <2>;
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>;