Lines Matching +full:sink +full:- +full:pdos

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/pwm/pwm.h"
11 #include "dt-bindings/usb/pd.h"
16 compatible = "purism,librem5-devkit", "fsl,imx8mq";
18 backlight_dsi: backlight-dsi {
19 compatible = "pwm-backlight";
22 brightness-levels = <0 100>;
23 num-interpolated-steps = <100>;
25 /* the "brightness-levels" property) */
26 default-brightness-level = <0>;
27 power-supply = <&reg_22v4_p>;
31 stdout-path = &uart1;
34 gpio-keys {
35 compatible = "gpio-keys";
36 pinctrl-names = "default";
37 pinctrl-0 = <&pinctrl_gpio_keys>;
39 button-1 {
42 wakeup-source;
46 button-2 {
49 wakeup-source;
53 button-3 {
56 interrupt-parent = <&gpio3>;
58 wakeup-source;
64 compatible = "gpio-leds";
65 pinctrl-names = "default";
66 pinctrl-0 = <&pinctrl_gpio_leds>;
71 default-state = "off";
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 reg_usdhc2_vmmc: regulator-usdhc2-vmmc {
143 compatible = "regulator-fixed";
144 pinctrl-names = "default";
145 pinctrl-0 = <&pinctrl_usdhc2_pwr>;
146 regulator-name = "VSD_3V3";
147 regulator-min-microvolt = <3300000>;
148 regulator-max-microvolt = <3300000>;
150 enable-active-high;
151 regulator-always-on;
154 wwan_codec: sound-wwan-codec {
156 #sound-dai-cells = <0>;
159 mic_mux: mic-mux {
160 compatible = "simple-audio-mux";
161 pinctrl-names = "default";
162 pinctrl-0 = <&pinctrl_micsel>;
163 mux-gpios = <&gpio5 5 GPIO_ACTIVE_LOW>;
164 sound-name-prefix = "Mic Mux";
168 compatible = "simple-audio-card";
169 pinctrl-names = "default";
170 pinctrl-0 = <&pinctrl_hpdet>;
171 simple-audio-card,aux-devs = <&speaker_amp>, <&mic_mux>;
172 simple-audio-card,name = "Librem 5 Devkit";
173 simple-audio-card,format = "i2s";
174 simple-audio-card,widgets =
179 simple-audio-card,routing =
187 simple-audio-card,hp-det-gpio = <&gpio3 20 GPIO_ACTIVE_HIGH>;
189 simple-audio-card,cpu {
190 sound-dai = <&sai2>;
193 simple-audio-card,codec {
194 sound-dai = <&sgtl5000>;
196 frame-master;
197 bitclock-master;
201 sound-wwan {
202 compatible = "simple-audio-card";
203 simple-audio-card,name = "SIMCom SIM7100";
204 simple-audio-card,format = "dsp_a";
206 simple-audio-card,cpu {
207 sound-dai = <&sai6>;
210 telephony_link_master: simple-audio-card,codec {
211 sound-dai = <&wwan_codec>;
212 frame-master;
213 bitclock-master;
217 speaker_amp: speaker-amp {
218 compatible = "simple-audio-amplifier";
219 pinctrl-names = "default";
220 pinctrl-0 = <&pinctrl_spkamp>;
221 VCC-supply = <&reg_3v3_p>;
222 sound-name-prefix = "Speaker Amp";
223 enable-gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>;
227 compatible = "gpio-vibrator";
228 pinctrl-names = "default";
229 pinctrl-0 = <&pinctrl_haptic>;
230 enable-gpios = <&gpio5 4 GPIO_ACTIVE_LOW>;
231 vcc-supply = <&reg_3v3_p>;
234 wifi_pwr_en: regulator-wifi-en {
235 compatible = "regulator-fixed";
236 pinctrl-names = "default";
237 pinctrl-0 = <&pinctrl_wifi_pwr_en>;
238 regulator-name = "WIFI_EN";
239 regulator-min-microvolt = <3300000>;
240 regulator-max-microvolt = <3300000>;
242 enable-active-high;
243 regulator-always-on;
248 cpu-supply = <&buck2_reg>;
252 cpu-supply = <&buck2_reg>;
256 cpu-supply = <&buck2_reg>;
260 cpu-supply = <&buck2_reg>;
268 pinctrl-names = "default";
269 pinctrl-0 = <&pinctrl_fec1>;
270 phy-mode = "rgmii-id";
271 phy-handle = <&ethphy0>;
272 fsl,magic-packet;
273 phy-supply = <&reg_3v3_p>;
277 #address-cells = <1>;
278 #size-cells = <0>;
280 ethphy0: ethernet-phy@1 {
281 compatible = "ethernet-phy-ieee802.3-c22";
288 clock-frequency = <100000>;
289 pinctrl-names = "default";
290 pinctrl-0 = <&pinctrl_i2c1>;
296 pinctrl-names = "default";
297 pinctrl-0 = <&pinctrl_pmic>;
299 clock-names = "osc";
300 #clock-cells = <0>;
301 clock-output-names = "pmic_clk";
302 interrupt-parent = <&gpio1>;
304 rohm,reset-snvs-powered;
308 regulator-name = "buck1";
309 regulator-min-microvolt = <700000>;
310 regulator-max-microvolt = <1300000>;
311 regulator-boot-on;
312 regulator-always-on;
313 regulator-ramp-delay = <1250>;
314 rohm,dvs-run-voltage = <900000>;
315 rohm,dvs-idle-voltage = <850000>;
316 rohm,dvs-suspend-voltage = <800000>;
320 regulator-name = "buck2";
321 regulator-min-microvolt = <700000>;
322 regulator-max-microvolt = <1300000>;
323 regulator-boot-on;
324 regulator-ramp-delay = <1250>;
325 rohm,dvs-run-voltage = <1000000>;
326 rohm,dvs-idle-voltage = <900000>;
330 regulator-name = "buck3";
331 regulator-min-microvolt = <700000>;
332 regulator-max-microvolt = <1300000>;
333 regulator-boot-on;
334 rohm,dvs-run-voltage = <900000>;
338 regulator-name = "buck4";
339 regulator-min-microvolt = <700000>;
340 regulator-max-microvolt = <1300000>;
341 rohm,dvs-run-voltage = <1000000>;
345 regulator-name = "buck5";
346 regulator-min-microvolt = <700000>;
347 regulator-max-microvolt = <1350000>;
348 regulator-boot-on;
349 regulator-always-on;
353 regulator-name = "buck6";
354 regulator-min-microvolt = <3000000>;
355 regulator-max-microvolt = <3300000>;
356 regulator-boot-on;
357 regulator-always-on;
361 regulator-name = "buck7";
362 regulator-min-microvolt = <1605000>;
363 regulator-max-microvolt = <1995000>;
364 regulator-boot-on;
365 regulator-always-on;
369 regulator-name = "buck8";
370 regulator-min-microvolt = <800000>;
371 regulator-max-microvolt = <1400000>;
372 regulator-boot-on;
373 regulator-always-on;
377 regulator-name = "ldo1";
378 regulator-min-microvolt = <3000000>;
379 regulator-max-microvolt = <3300000>;
380 regulator-boot-on;
382 regulator-always-on;
386 regulator-name = "ldo2";
387 regulator-min-microvolt = <900000>;
388 regulator-max-microvolt = <900000>;
389 regulator-boot-on;
391 regulator-always-on;
395 regulator-name = "ldo3";
396 regulator-min-microvolt = <1800000>;
397 regulator-max-microvolt = <3300000>;
398 regulator-boot-on;
399 regulator-always-on;
403 regulator-name = "ldo4";
404 regulator-min-microvolt = <900000>;
405 regulator-max-microvolt = <1800000>;
406 regulator-boot-on;
407 regulator-always-on;
411 regulator-name = "ldo5";
412 regulator-min-microvolt = <1800000>;
413 regulator-max-microvolt = <3300000>;
414 regulator-always-on;
418 regulator-name = "ldo6";
419 regulator-min-microvolt = <900000>;
420 regulator-max-microvolt = <1800000>;
421 regulator-boot-on;
422 regulator-always-on;
426 regulator-name = "ldo7";
427 regulator-min-microvolt = <1800000>;
428 regulator-max-microvolt = <3300000>;
429 regulator-boot-on;
430 regulator-always-on;
435 typec_ptn5100: usb-typec@52 {
438 pinctrl-names = "default";
439 pinctrl-0 = <&pinctrl_typec>;
440 interrupt-parent = <&gpio3>;
444 compatible = "usb-c-connector";
445 label = "USB-C";
446 data-role = "dual";
447 power-role = "dual";
448 try-power-role = "sink";
449 source-pdos = <PDO_FIXED(5000, 2000,
453 sink-pdos = <PDO_FIXED(5000, 3500, PDO_FIXED_USB_COMM |
457 op-sink-microwatt = <10000000>;
460 #address-cells = <1>;
461 #size-cells = <0>;
467 remote-endpoint = <&typec_hs>;
475 remote-endpoint = <&typec_ss>;
485 pinctrl-names = "default";
486 pinctrl-0 = <&pinctrl_rtc>;
487 interrupt-parent = <&gpio4>;
494 pinctrl-names = "default";
495 pinctrl-0 = <&pinctrl_charger>;
496 interrupt-parent = <&gpio3>;
498 ti,battery-regulation-voltage = <4192000>; /* 4.192V */
499 ti,charge-current = <1600000>; /* 1.6A */
500 ti,termination-current = <66000>; /* 66mA */
501 ti,precharge-current = <130000>; /* 130mA */
502 ti,minimum-sys-voltage = <3000000>; /* 3V */
503 ti,boost-voltage = <5000000>; /* 5V */
504 ti,boost-max-current = <50000>; /* 50mA */
509 clock-frequency = <100000>;
510 pinctrl-names = "default";
511 pinctrl-0 = <&pinctrl_i2c3>;
515 compatible = "st,lsm9ds1-magn";
517 pinctrl-names = "default";
518 pinctrl-0 = <&pinctrl_imu>;
519 interrupt-parent = <&gpio3>;
521 vdd-supply = <&reg_3v3_p>;
522 vddio-supply = <&reg_3v3_p>;
525 sgtl5000: audio-codec@a {
528 assigned-clocks = <&clk IMX8MQ_CLK_SAI2>;
529 assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1_OUT>;
530 assigned-clock-rates = <24576000>;
531 #sound-dai-cells = <0>;
533 VDDD-supply = <&reg_1v8_p>;
534 VDDIO-supply = <&reg_3v3_p>;
535 VDDA-supply = <&reg_3v3_p>;
541 pinctrl-names = "default";
542 pinctrl-0 = <&pinctrl_ts>;
543 interrupt-parent = <&gpio3>;
545 reset-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
546 irq-gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
547 touchscreen-size-x = <720>;
548 touchscreen-size-y = <1440>;
549 AVDD28-supply = <&reg_2v8_p>;
550 VDDIO-supply = <&reg_1v8_p>;
553 proximity-sensor@60 {
556 pinctrl-0 = <&pinctrl_prox>;
559 accel-gyro@6a {
560 compatible = "st,lsm9ds1-imu";
562 vdd-supply = <&reg_3v3_p>;
563 vddio-supply = <&reg_3v3_p>;
564 mount-matrix = "1", "0", "0",
566 "0", "0", "-1";
776 pinctrl_usdhc1_100mhz: usdhc1-100mhzgrp {
793 pinctrl_usdhc1_200mhz: usdhc1-200mhzgrp {
833 pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp {
844 pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp {
882 #address-cells = <1>;
883 #size-cells = <0>;
889 reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;
890 iovcc-supply = <&reg_1v8_p>;
891 vcc-supply = <&reg_2v8_p>;
894 remote-endpoint = <&mipi_dsi_out>;
903 remote-endpoint = <&panel_in>;
910 power-supply = <&buck3_reg>;
914 power-supply = <&buck4_reg>;
918 pinctrl-names = "default";
919 pinctrl-0 = <&pinctrl_bl>;
932 pinctrl-names = "default";
933 pinctrl-0 = <&pinctrl_sai2>;
934 assigned-clocks = <&clk IMX8MQ_CLK_SAI2>;
935 assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1_OUT>;
936 assigned-clock-rates = <24576000>;
941 pinctrl-names = "default";
942 pinctrl-0 = <&pinctrl_sai6>;
943 assigned-clocks = <&clk IMX8MQ_CLK_SAI6>;
944 assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1_OUT>;
945 assigned-clock-rates = <24576000>;
946 fsl,sai-synchronous-rx;
951 pinctrl-names = "default";
952 pinctrl-0 = <&pinctrl_uart1>;
957 pinctrl-names = "default";
958 pinctrl-0 = <&pinctrl_uart3>;
963 pinctrl-names = "default";
964 pinctrl-0 = <&pinctrl_uart4>, <&pinctrl_bt>;
965 uart-has-rtscts;
970 vbus-supply = <&reg_5v_p>;
975 vbus-supply = <&reg_5v_p>;
980 #address-cells = <1>;
981 #size-cells = <0>;
989 remote-endpoint = <&usb_con_hs>;
997 remote-endpoint = <&usb_con_ss>;
1008 assigned-clocks = <&clk IMX8MQ_CLK_USDHC1>;
1009 assigned-clock-rates = <400000000>;
1010 pinctrl-names = "default", "state_100mhz", "state_200mhz";
1011 pinctrl-0 = <&pinctrl_usdhc1>;
1012 pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
1013 pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
1014 bus-width = <8>;
1015 non-removable;
1020 assigned-clocks = <&clk IMX8MQ_CLK_USDHC2>;
1021 assigned-clock-rates = <200000000>;
1022 pinctrl-names = "default", "state_100mhz", "state_200mhz";
1023 pinctrl-0 = <&pinctrl_usdhc2>;
1024 pinctrl-1 = <&pinctrl_usdhc2_100mhz>;
1025 pinctrl-2 = <&pinctrl_usdhc2_200mhz>;
1026 bus-width = <4>;
1027 vmmc-supply = <&reg_usdhc2_vmmc>;
1028 power-supply = <&wifi_pwr_en>;
1029 broken-cd;
1030 disable-wp;
1031 cap-sdio-irq;
1032 keep-power-in-suspend;
1033 wakeup-source;
1038 pinctrl-names = "default";
1039 pinctrl-0 = <&pinctrl_wdog>;
1040 fsl,ext-reset-output;