Lines Matching +full:buck3 +full:- +full:in +full:- +full:supply

1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2018-2019 Purism SPC
6 /dts-v1/;
8 #include "dt-bindings/input/input.h"
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/leds/common.h>
11 #include "dt-bindings/pwm/pwm.h"
12 #include "dt-bindings/usb/pd.h"
17 compatible = "purism,librem5-devkit", "fsl,imx8mq";
19 backlight_dsi: backlight-dsi {
20 compatible = "pwm-backlight";
23 brightness-levels = <0 100>;
24 num-interpolated-steps = <100>;
26 /* the "brightness-levels" property) */
27 default-brightness-level = <0>;
28 power-supply = <&reg_22v4_p>;
32 stdout-path = &uart1;
35 gpio-keys {
36 compatible = "gpio-keys";
37 pinctrl-names = "default";
38 pinctrl-0 = <&pinctrl_gpio_keys>;
40 button-1 {
43 wakeup-source;
47 button-2 {
50 wakeup-source;
54 button-3 {
57 interrupt-parent = <&gpio3>;
59 wakeup-source;
65 compatible = "pwm-leds";
67 led-1 {
70 max-brightness = <248>;
75 pmic_osc: clock-pmic {
76 compatible = "fixed-clock";
77 #clock-cells = <0>;
78 clock-frequency = <32768>;
79 clock-output-names = "pmic_osc";
82 reg_1v8_p: regulator-1v8-p {
83 compatible = "regulator-fixed";
84 regulator-name = "1v8_p";
85 regulator-min-microvolt = <1800000>;
86 regulator-max-microvolt = <1800000>;
87 vin-supply = <&reg_pwr_en>;
90 reg_2v8_p: regulator-2v8-p {
91 compatible = "regulator-fixed";
92 regulator-name = "2v8_p";
93 regulator-min-microvolt = <2800000>;
94 regulator-max-microvolt = <2800000>;
95 vin-supply = <&reg_pwr_en>;
98 reg_3v3_p: regulator-3v3-p {
99 compatible = "regulator-fixed";
100 regulator-name = "3v3_p";
101 regulator-min-microvolt = <3300000>;
102 regulator-max-microvolt = <3300000>;
103 vin-supply = <&reg_pwr_en>;
105 regulator-state-mem {
106 regulator-on-in-suspend;
110 reg_5v_p: regulator-5v-p {
111 compatible = "regulator-fixed";
112 regulator-name = "5v_p";
113 regulator-min-microvolt = <5000000>;
114 regulator-max-microvolt = <5000000>;
115 vin-supply = <&reg_pwr_en>;
117 regulator-state-mem {
118 regulator-on-in-suspend;
122 reg_22v4_p: regulator-22v4-p {
123 compatible = "regulator-fixed";
124 regulator-name = "22v4_P";
125 regulator-min-microvolt = <22400000>;
126 regulator-max-microvolt = <22400000>;
127 vin-supply = <&reg_pwr_en>;
130 reg_pwr_en: regulator-pwr-en {
131 compatible = "regulator-fixed";
132 pinctrl-names = "default";
133 pinctrl-0 = <&pinctrl_pwr_en>;
134 regulator-name = "PWR_EN";
135 regulator-min-microvolt = <3300000>;
136 regulator-max-microvolt = <3300000>;
138 enable-active-high;
139 regulator-always-on;
142 wwan_codec: sound-wwan-codec {
144 #sound-dai-cells = <0>;
147 mic_mux: mic-mux {
148 compatible = "simple-audio-mux";
149 pinctrl-names = "default";
150 pinctrl-0 = <&pinctrl_micsel>;
151 mux-gpios = <&gpio5 5 GPIO_ACTIVE_LOW>;
152 sound-name-prefix = "Mic Mux";
156 compatible = "simple-audio-card";
157 pinctrl-names = "default";
158 pinctrl-0 = <&pinctrl_hpdet>;
159 simple-audio-card,aux-devs = <&speaker_amp>, <&mic_mux>;
160 simple-audio-card,name = "Librem 5 Devkit";
161 simple-audio-card,format = "i2s";
162 simple-audio-card,widgets =
167 simple-audio-card,routing =
175 simple-audio-card,hp-det-gpio = <&gpio3 20 GPIO_ACTIVE_HIGH>;
177 simple-audio-card,cpu {
178 sound-dai = <&sai2>;
181 simple-audio-card,codec {
182 sound-dai = <&sgtl5000>;
184 frame-master;
185 bitclock-master;
189 sound-wwan {
190 compatible = "simple-audio-card";
191 simple-audio-card,name = "SIMCom SIM7100";
192 simple-audio-card,format = "dsp_a";
194 simple-audio-card,cpu {
195 sound-dai = <&sai6>;
198 telephony_link_master: simple-audio-card,codec {
199 sound-dai = <&wwan_codec>;
200 frame-master;
201 bitclock-master;
205 speaker_amp: speaker-amp {
206 compatible = "simple-audio-amplifier";
207 pinctrl-names = "default";
208 pinctrl-0 = <&pinctrl_spkamp>;
209 VCC-supply = <&reg_3v3_p>;
210 sound-name-prefix = "Speaker Amp";
211 enable-gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>;
215 compatible = "gpio-vibrator";
216 pinctrl-names = "default";
217 pinctrl-0 = <&pinctrl_haptic>;
218 enable-gpios = <&gpio5 4 GPIO_ACTIVE_LOW>;
219 vcc-supply = <&reg_3v3_p>;
222 wifi_pwr_en: regulator-wifi-en {
223 compatible = "regulator-fixed";
224 pinctrl-names = "default";
225 pinctrl-0 = <&pinctrl_wifi_pwr_en>;
226 regulator-name = "WIFI_EN";
227 regulator-min-microvolt = <3300000>;
228 regulator-max-microvolt = <3300000>;
230 enable-active-high;
231 regulator-always-on;
235 pinctrl-names = "default";
236 pinctrl-0 = <&pinctrl_usdhc2_rst>;
237 compatible = "mmc-pwrseq-simple";
238 reset-gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
243 cpu-supply = <&buck2_reg>;
247 cpu-supply = <&buck2_reg>;
251 cpu-supply = <&buck2_reg>;
255 cpu-supply = <&buck2_reg>;
263 pinctrl-names = "default";
264 pinctrl-0 = <&pinctrl_fec1>;
265 phy-mode = "rgmii-id";
266 phy-handle = <&ethphy0>;
267 fsl,magic-packet;
268 phy-supply = <&reg_3v3_p>;
272 #address-cells = <1>;
273 #size-cells = <0>;
275 ethphy0: ethernet-phy@1 {
276 compatible = "ethernet-phy-ieee802.3-c22";
283 clock-frequency = <100000>;
284 pinctrl-names = "default";
285 pinctrl-0 = <&pinctrl_i2c1>;
291 pinctrl-names = "default";
292 pinctrl-0 = <&pinctrl_pmic>;
294 clock-names = "osc";
295 #clock-cells = <0>;
296 clock-output-names = "pmic_clk";
297 interrupt-parent = <&gpio1>;
299 rohm,reset-snvs-powered;
303 regulator-name = "buck1";
304 regulator-min-microvolt = <700000>;
305 regulator-max-microvolt = <1300000>;
306 regulator-boot-on;
307 regulator-always-on;
308 regulator-ramp-delay = <1250>;
309 rohm,dvs-run-voltage = <900000>;
310 rohm,dvs-idle-voltage = <850000>;
311 rohm,dvs-suspend-voltage = <800000>;
315 regulator-name = "buck2";
316 regulator-min-microvolt = <700000>;
317 regulator-max-microvolt = <1300000>;
318 regulator-boot-on;
319 regulator-ramp-delay = <1250>;
320 rohm,dvs-run-voltage = <1000000>;
321 rohm,dvs-idle-voltage = <900000>;
322 regulator-always-on;
325 buck3_reg: BUCK3 {
326 regulator-name = "buck3";
327 regulator-min-microvolt = <700000>;
328 regulator-max-microvolt = <1300000>;
329 regulator-boot-on;
330 rohm,dvs-run-voltage = <900000>;
334 regulator-name = "buck4";
335 regulator-min-microvolt = <700000>;
336 regulator-max-microvolt = <1300000>;
337 rohm,dvs-run-voltage = <1000000>;
341 regulator-name = "buck5";
342 regulator-min-microvolt = <700000>;
343 regulator-max-microvolt = <1350000>;
344 regulator-boot-on;
345 regulator-always-on;
349 regulator-name = "buck6";
350 regulator-min-microvolt = <3000000>;
351 regulator-max-microvolt = <3300000>;
352 regulator-boot-on;
353 regulator-always-on;
357 regulator-name = "buck7";
358 regulator-min-microvolt = <1605000>;
359 regulator-max-microvolt = <1995000>;
360 regulator-boot-on;
361 regulator-always-on;
365 regulator-name = "buck8";
366 regulator-min-microvolt = <800000>;
367 regulator-max-microvolt = <1400000>;
368 regulator-boot-on;
369 regulator-always-on;
373 regulator-name = "ldo1";
374 regulator-min-microvolt = <3000000>;
375 regulator-max-microvolt = <3300000>;
376 regulator-boot-on;
378 regulator-always-on;
382 regulator-name = "ldo2";
383 regulator-min-microvolt = <900000>;
384 regulator-max-microvolt = <900000>;
385 regulator-boot-on;
387 regulator-always-on;
391 regulator-name = "ldo3";
392 regulator-min-microvolt = <1800000>;
393 regulator-max-microvolt = <3300000>;
394 regulator-boot-on;
395 regulator-always-on;
399 regulator-name = "ldo4";
400 regulator-min-microvolt = <900000>;
401 regulator-max-microvolt = <1800000>;
402 regulator-boot-on;
403 regulator-always-on;
407 regulator-name = "ldo5";
408 regulator-min-microvolt = <1800000>;
409 regulator-max-microvolt = <3300000>;
410 regulator-always-on;
414 regulator-name = "ldo6";
415 regulator-min-microvolt = <900000>;
416 regulator-max-microvolt = <1800000>;
417 regulator-boot-on;
418 regulator-always-on;
422 regulator-name = "ldo7";
423 regulator-min-microvolt = <1800000>;
424 regulator-max-microvolt = <3300000>;
425 regulator-boot-on;
426 regulator-always-on;
431 typec_ptn5100: usb-typec@52 {
434 pinctrl-names = "default";
435 pinctrl-0 = <&pinctrl_typec>;
436 interrupt-parent = <&gpio3>;
440 compatible = "usb-c-connector";
441 label = "USB-C";
442 data-role = "dual";
443 power-role = "dual";
444 try-power-role = "sink";
445 source-pdos = <PDO_FIXED(5000, 2000,
449 sink-pdos = <PDO_FIXED(5000, 3500, PDO_FIXED_USB_COMM |
453 op-sink-microwatt = <10000000>;
456 #address-cells = <1>;
457 #size-cells = <0>;
463 remote-endpoint = <&typec_hs>;
471 remote-endpoint = <&typec_ss>;
481 pinctrl-names = "default";
482 pinctrl-0 = <&pinctrl_rtc>;
483 interrupt-parent = <&gpio4>;
490 pinctrl-names = "default";
491 pinctrl-0 = <&pinctrl_charger>;
492 interrupt-parent = <&gpio3>;
494 ti,battery-regulation-voltage = <4192000>; /* 4.192V */
495 ti,charge-current = <1600000>; /* 1.6A */
496 ti,termination-current = <66000>; /* 66mA */
497 ti,precharge-current = <130000>; /* 130mA */
498 ti,minimum-sys-voltage = <3000000>; /* 3V */
499 ti,boost-voltage = <5000000>; /* 5V */
500 ti,boost-max-current = <50000>; /* 50mA */
505 clock-frequency = <100000>;
506 pinctrl-names = "default";
507 pinctrl-0 = <&pinctrl_i2c3>;
511 compatible = "st,lsm9ds1-magn";
513 pinctrl-names = "default";
514 pinctrl-0 = <&pinctrl_imu>;
515 interrupt-parent = <&gpio3>;
517 vdd-supply = <&reg_3v3_p>;
518 vddio-supply = <&reg_3v3_p>;
521 sgtl5000: audio-codec@a {
524 assigned-clocks = <&clk IMX8MQ_CLK_SAI2>;
525 assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1_OUT>;
526 assigned-clock-rates = <24576000>;
527 #sound-dai-cells = <0>;
529 VDDD-supply = <&reg_1v8_p>;
530 VDDIO-supply = <&reg_3v3_p>;
531 VDDA-supply = <&reg_3v3_p>;
537 pinctrl-names = "default";
538 pinctrl-0 = <&pinctrl_ts>;
539 interrupt-parent = <&gpio3>;
541 reset-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
542 irq-gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
543 touchscreen-size-x = <720>;
544 touchscreen-size-y = <1440>;
545 AVDD28-supply = <&reg_2v8_p>;
546 VDDIO-supply = <&reg_1v8_p>;
549 proximity-sensor@60 {
552 pinctrl-0 = <&pinctrl_prox>;
555 accel-gyro@6a {
556 compatible = "st,lsm9ds1-imu";
558 vdd-supply = <&reg_3v3_p>;
559 vddio-supply = <&reg_3v3_p>;
560 mount-matrix = "1", "0", "0",
562 "0", "0", "-1";
772 pinctrl_usdhc1_100mhz: usdhc1-100mhzgrp {
789 pinctrl_usdhc1_200mhz: usdhc1-200mhzgrp {
829 pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp {
840 pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp {
878 #address-cells = <1>;
879 #size-cells = <0>;
885 reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;
886 iovcc-supply = <&reg_1v8_p>;
887 vcc-supply = <&reg_2v8_p>;
890 remote-endpoint = <&mipi_dsi_out>;
899 remote-endpoint = <&panel_in>;
906 power-supply = <&buck3_reg>;
910 power-supply = <&buck4_reg>;
914 pinctrl-names = "default";
915 pinctrl-0 = <&pinctrl_bl>;
920 pinctrl-names = "default";
921 pinctrl-0 = <&pinctrl_pwm_led>;
934 pinctrl-names = "default";
935 pinctrl-0 = <&pinctrl_sai2>;
936 assigned-clocks = <&clk IMX8MQ_CLK_SAI2>;
937 assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1_OUT>;
938 assigned-clock-rates = <24576000>;
943 pinctrl-names = "default";
944 pinctrl-0 = <&pinctrl_sai6>;
945 assigned-clocks = <&clk IMX8MQ_CLK_SAI6>;
946 assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1_OUT>;
947 assigned-clock-rates = <24576000>;
948 fsl,sai-synchronous-rx;
953 pinctrl-names = "default";
954 pinctrl-0 = <&pinctrl_uart1>;
959 pinctrl-names = "default";
960 pinctrl-0 = <&pinctrl_uart3>;
965 pinctrl-names = "default";
966 pinctrl-0 = <&pinctrl_uart4>, <&pinctrl_bt>;
967 uart-has-rtscts;
972 vbus-supply = <&reg_5v_p>;
977 vbus-supply = <&reg_5v_p>;
982 #address-cells = <1>;
983 #size-cells = <0>;
991 remote-endpoint = <&usb_con_hs>;
999 remote-endpoint = <&usb_con_ss>;
1010 assigned-clocks = <&clk IMX8MQ_CLK_USDHC1>;
1011 assigned-clock-rates = <400000000>;
1012 pinctrl-names = "default", "state_100mhz", "state_200mhz";
1013 pinctrl-0 = <&pinctrl_usdhc1>;
1014 pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
1015 pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
1016 bus-width = <8>;
1017 non-removable;
1022 assigned-clocks = <&clk IMX8MQ_CLK_USDHC2>;
1023 assigned-clock-rates = <200000000>;
1024 pinctrl-names = "default", "state_100mhz", "state_200mhz";
1025 pinctrl-0 = <&pinctrl_usdhc2>;
1026 pinctrl-1 = <&pinctrl_usdhc2_100mhz>;
1027 pinctrl-2 = <&pinctrl_usdhc2_200mhz>;
1028 bus-width = <4>;
1029 vmmc-supply = <&wifi_pwr_en>;
1030 mmc-pwrseq = <&wifi_pwr_seq>;
1031 broken-cd;
1032 disable-wp;
1033 cap-sdio-irq;
1034 keep-power-in-suspend;
1035 wakeup-source;
1040 pinctrl-names = "default";
1041 pinctrl-0 = <&pinctrl_wdog>;
1042 fsl,ext-reset-output;