1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2018-2020 Purism SPC
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"
13 #include "imx8mq.dtsi"
16 model = "Purism Librem 5";
17 compatible = "purism,librem5", "fsl,imx8mq";
18 chassis-type = "handset";
20 backlight_dsi: backlight-dsi {
21 compatible = "led-backlight";
22 leds = <&led_backlight>;
25 pmic_osc: clock-pmic {
26 compatible = "fixed-clock";
28 clock-frequency = <32768>;
29 clock-output-names = "pmic_osc";
37 compatible = "gpio-keys";
38 pinctrl-names = "default";
39 pinctrl-0 = <&pinctrl_keys>;
43 gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_VOLUMEDOWN>;
45 debounce-interval = <50>;
51 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_VOLUMEUP>;
53 debounce-interval = <50>;
59 compatible = "pwm-leds-multicolor";
62 color = <LED_COLOR_ID_RGB>;
63 function = LED_FUNCTION_STATUS;
64 max-brightness = <248>;
67 color = <LED_COLOR_ID_BLUE>;
68 pwms = <&pwm2 0 50000 0>;
72 color = <LED_COLOR_ID_GREEN>;
73 pwms = <&pwm4 0 50000 0>;
77 color = <LED_COLOR_ID_RED>;
78 pwms = <&pwm3 0 50000 0>;
83 reg_aud_1v8: regulator-audio-1v8 {
84 compatible = "regulator-fixed";
85 pinctrl-names = "default";
86 pinctrl-0 = <&pinctrl_audiopwr>;
87 regulator-name = "AUDIO_PWR_EN";
88 regulator-min-microvolt = <1800000>;
89 regulator-max-microvolt = <1800000>;
90 gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>;
95 * the pinctrl for reg_csi_1v8 and reg_vcam_1v8 is added to the PMIC
96 * since we can't have it twice in the 2 different regulator nodes.
98 reg_csi_1v8: regulator-csi-1v8 {
99 compatible = "regulator-fixed";
100 regulator-name = "CAMERA_VDDIO_1V8";
101 regulator-min-microvolt = <1800000>;
102 regulator-max-microvolt = <1800000>;
103 vin-supply = <®_vdd_3v3>;
104 gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
108 /* controlled by the CAMERA_POWER_KEY HKS */
109 reg_vcam_1v2: regulator-vcam-1v2 {
110 compatible = "regulator-fixed";
111 regulator-name = "CAMERA_VDDD_1V2";
112 regulator-min-microvolt = <1200000>;
113 regulator-max-microvolt = <1200000>;
114 vin-supply = <®_vdd_1v8>;
118 reg_vcam_2v8: regulator-vcam-2v8 {
119 compatible = "regulator-fixed";
120 regulator-name = "CAMERA_VDDA_2V8";
121 regulator-min-microvolt = <2800000>;
122 regulator-max-microvolt = <2800000>;
123 vin-supply = <®_vdd_3v3>;
124 gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
128 reg_gnss: regulator-gnss {
129 compatible = "regulator-fixed";
130 pinctrl-names = "default";
131 pinctrl-0 = <&pinctrl_gnsspwr>;
132 regulator-name = "GNSS";
133 regulator-min-microvolt = <3300000>;
134 regulator-max-microvolt = <3300000>;
135 gpio = <&gpio3 12 GPIO_ACTIVE_HIGH>;
139 reg_hub: regulator-hub {
140 compatible = "regulator-fixed";
141 pinctrl-names = "default";
142 pinctrl-0 = <&pinctrl_hub_pwr>;
143 regulator-name = "HUB";
144 regulator-min-microvolt = <3300000>;
145 regulator-max-microvolt = <3300000>;
146 gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
150 reg_lcd_1v8: regulator-lcd-1v8 {
151 compatible = "regulator-fixed";
152 pinctrl-names = "default";
153 pinctrl-0 = <&pinctrl_dsien>;
154 regulator-name = "LCD_1V8";
155 regulator-min-microvolt = <1800000>;
156 regulator-max-microvolt = <1800000>;
157 vin-supply = <®_vdd_1v8>;
158 gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>;
160 /* Otherwise i2c3 is not functional */
164 reg_lcd_3v4: regulator-lcd-3v4 {
165 compatible = "regulator-fixed";
166 regulator-name = "LCD_3V4";
167 pinctrl-names = "default";
168 pinctrl-0 = <&pinctrl_dsibiasen>;
169 vin-supply = <®_vsys_3v4>;
170 gpio = <&gpio1 20 GPIO_ACTIVE_HIGH>;
174 reg_vdd_sen: regulator-vdd-sen {
175 compatible = "regulator-fixed";
176 regulator-name = "VDD_SEN";
177 regulator-min-microvolt = <3300000>;
178 regulator-max-microvolt = <3300000>;
181 reg_vdd_1v8: regulator-vdd-1v8 {
182 compatible = "regulator-fixed";
183 regulator-name = "VDD_1V8";
184 regulator-min-microvolt = <1800000>;
185 regulator-max-microvolt = <1800000>;
186 vin-supply = <&buck7_reg>;
189 reg_vdd_3v3: regulator-vdd-3v3 {
190 compatible = "regulator-fixed";
191 regulator-name = "VDD_3V3";
192 regulator-min-microvolt = <3300000>;
193 regulator-max-microvolt = <3300000>;
196 reg_vsys_3v4: regulator-vsys-3v4 {
197 compatible = "regulator-fixed";
198 regulator-name = "VSYS_3V4";
199 regulator-min-microvolt = <3400000>;
200 regulator-max-microvolt = <3400000>;
204 reg_wifi_3v3: regulator-wifi-3v3 {
205 compatible = "regulator-fixed";
206 pinctrl-names = "default";
207 pinctrl-0 = <&pinctrl_wifi_pwr>;
208 regulator-name = "3V3_WIFI";
209 regulator-min-microvolt = <3300000>;
210 regulator-max-microvolt = <3300000>;
211 gpio = <&gpio3 10 GPIO_ACTIVE_HIGH>;
213 vin-supply = <®_vdd_3v3>;
217 compatible = "simple-audio-card";
218 pinctrl-names = "default";
219 pinctrl-0 = <&pinctrl_hp>;
220 simple-audio-card,name = "Librem 5";
221 simple-audio-card,format = "i2s";
222 simple-audio-card,widgets =
223 "Headphone", "Headphones",
224 "Microphone", "Headset Mic",
225 "Microphone", "Digital Mic",
226 "Speaker", "Speaker";
227 simple-audio-card,routing =
228 "Headphones", "HPOUTL",
229 "Headphones", "HPOUTR",
230 "Speaker", "SPKOUTL",
231 "Speaker", "SPKOUTR",
232 "Headset Mic", "MICBIAS",
233 "IN3R", "Headset Mic",
234 "DMICDAT", "Digital Mic";
235 simple-audio-card,hp-det-gpio = <&gpio3 9 GPIO_ACTIVE_HIGH>;
237 simple-audio-card,cpu {
241 simple-audio-card,codec {
242 sound-dai = <&codec>;
243 clocks = <&clk IMX8MQ_CLK_SAI2_ROOT>;
250 compatible = "simple-audio-card";
251 simple-audio-card,name = "Modem";
252 simple-audio-card,format = "i2s";
254 simple-audio-card,cpu {
259 simple-audio-card,codec {
260 sound-dai = <&bm818_codec>;
266 usdhc2_pwrseq: pwrseq {
267 pinctrl-names = "default";
268 pinctrl-0 = <&pinctrl_bt>, <&pinctrl_wifi_disable>;
269 compatible = "mmc-pwrseq-simple";
270 reset-gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>,
271 <&gpio4 29 GPIO_ACTIVE_HIGH>;
274 bm818_codec: sound-wwan-codec {
275 compatible = "broadmobi,bm818", "option,gtm601";
276 #sound-dai-cells = <0>;
280 compatible = "pwm-vibrator";
281 pwms = <&pwm1 0 1000000000 0>;
282 pwm-names = "enable";
283 vcc-supply = <®_vdd_3v3>;
288 cpu-supply = <&buck2_reg>;
292 cpu-supply = <&buck2_reg>;
296 cpu-supply = <&buck2_reg>;
300 cpu-supply = <&buck2_reg>;
308 operating-points-v2 = <&ddrc_opp_table>;
311 ddrc_opp_table: opp-table {
312 compatible = "operating-points-v2";
315 opp-hz = /bits/ 64 <25000000>;
319 opp-hz = /bits/ 64 <100000000>;
323 opp-hz = /bits/ 64 <800000000>;
333 pinctrl-names = "default";
334 pinctrl-0 = <&pinctrl_ecspi1>;
335 cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
336 #address-cells = <1>;
341 compatible = "jedec,spi-nor";
343 spi-max-frequency = <1000000>;
344 #address-cells = <1>;
348 label = "protected0";
355 reg = <0x30000 0x1d0000>;
362 pinctrl-names = "default";
363 pinctrl-0 = <&pinctrl_pmic_5v>;
367 gpios = <1 GPIO_ACTIVE_HIGH>;
369 lane-mapping = "pmic-5v";
374 pinctrl_audiopwr: audiopwrgrp {
376 /* AUDIO_POWER_EN_3V3 */
377 MX8MQ_IOMUXC_GPIO1_IO04_GPIO1_IO4 0x83
384 MX8MQ_IOMUXC_NAND_DQS_GPIO3_IO14 0x83
391 MX8MQ_IOMUXC_SAI5_MCLK_GPIO3_IO25 0x83
395 pinctrl_camera_pwr: camerapwrgrp {
397 /* CAMERA_PWR_EN_3V3 */
398 MX8MQ_IOMUXC_GPIO1_IO00_GPIO1_IO0 0x83
402 pinctrl_csi1: csi1grp {
405 MX8MQ_IOMUXC_ENET_RXC_GPIO1_IO25 0x83
409 pinctrl_charger_in: chargeringrp {
412 MX8MQ_IOMUXC_NAND_CE2_B_GPIO3_IO3 0x80
416 pinctrl_dsibiasen: dsibiasengrp {
419 MX8MQ_IOMUXC_ENET_TD1_GPIO1_IO20 0x83
423 pinctrl_dsien: dsiengrp {
426 MX8MQ_IOMUXC_GPIO1_IO05_GPIO1_IO5 0x83
430 pinctrl_dsirst: dsirstgrp {
433 MX8MQ_IOMUXC_ENET_RD3_GPIO1_IO29 0x83
435 MX8MQ_IOMUXC_ENET_RD2_GPIO1_IO28 0x83
437 MX8MQ_IOMUXC_ENET_RX_CTL_GPIO1_IO24 0x83
441 pinctrl_ecspi1: ecspigrp {
443 MX8MQ_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI 0x83
444 MX8MQ_IOMUXC_ECSPI1_MISO_ECSPI1_MISO 0x83
445 MX8MQ_IOMUXC_ECSPI1_SS0_GPIO5_IO9 0x19
446 MX8MQ_IOMUXC_ECSPI1_SCLK_ECSPI1_SCLK 0x83
450 pinctrl_gauge: gaugegrp {
453 MX8MQ_IOMUXC_SAI5_RXC_GPIO3_IO20 0x80
457 pinctrl_gnsspwr: gnsspwrgrp {
460 MX8MQ_IOMUXC_NAND_DATA06_GPIO3_IO12 0x83
464 pinctrl_haptic: hapticgrp {
467 MX8MQ_IOMUXC_SPDIF_EXT_CLK_PWM1_OUT 0x83
473 /* HEADPHONE_DET_1V8 */
474 MX8MQ_IOMUXC_NAND_DATA03_GPIO3_IO9 0x180
478 pinctrl_hub_pwr: hubpwrgrp {
481 MX8MQ_IOMUXC_GPIO1_IO14_GPIO1_IO14 0x83
485 pinctrl_i2c1: i2c1grp {
487 MX8MQ_IOMUXC_I2C1_SCL_I2C1_SCL 0x40000026
488 MX8MQ_IOMUXC_I2C1_SDA_I2C1_SDA 0x40000026
492 pinctrl_i2c2: i2c2grp {
494 MX8MQ_IOMUXC_I2C2_SCL_I2C2_SCL 0x40000026
495 MX8MQ_IOMUXC_I2C2_SDA_I2C2_SDA 0x40000026
499 pinctrl_i2c3: i2c3grp {
501 MX8MQ_IOMUXC_I2C3_SCL_I2C3_SCL 0x40000026
502 MX8MQ_IOMUXC_I2C3_SDA_I2C3_SDA 0x40000026
506 pinctrl_i2c4: i2c4grp {
508 MX8MQ_IOMUXC_I2C4_SCL_I2C4_SCL 0x40000026
509 MX8MQ_IOMUXC_I2C4_SDA_I2C4_SDA 0x40000026
513 pinctrl_keys: keysgrp {
516 MX8MQ_IOMUXC_ENET_MDIO_GPIO1_IO17 0x01C0
518 MX8MQ_IOMUXC_ENET_MDC_GPIO1_IO16 0x01C0
522 pinctrl_led_b: ledbgrp {
525 MX8MQ_IOMUXC_GPIO1_IO13_PWM2_OUT 0x06
529 pinctrl_led_g: ledggrp {
532 MX8MQ_IOMUXC_SAI3_MCLK_PWM4_OUT 0x06
536 pinctrl_led_r: ledrgrp {
539 MX8MQ_IOMUXC_SPDIF_TX_PWM3_OUT 0x06
543 pinctrl_mag: maggrp {
546 MX8MQ_IOMUXC_SAI5_RXD1_GPIO3_IO22 0x80
550 pinctrl_pmic: pmicgrp {
553 MX8MQ_IOMUXC_GPIO1_IO07_GPIO1_IO7 0x80
557 pinctrl_pmic_5v: pmic5vgrp {
560 MX8MQ_IOMUXC_GPIO1_IO01_GPIO1_IO1 0x80
564 pinctrl_prox: proxgrp {
567 MX8MQ_IOMUXC_NAND_DATA01_GPIO3_IO7 0x80
571 pinctrl_rtc: rtcgrp {
574 MX8MQ_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x80
578 pinctrl_sai2: sai2grp {
580 MX8MQ_IOMUXC_SAI2_TXD0_SAI2_TX_DATA0 0xd6
581 MX8MQ_IOMUXC_SAI2_TXFS_SAI2_TX_SYNC 0xd6
582 MX8MQ_IOMUXC_SAI2_MCLK_SAI2_MCLK 0xd6
583 MX8MQ_IOMUXC_SAI2_RXD0_SAI2_RX_DATA0 0xd6
584 MX8MQ_IOMUXC_SAI2_TXC_SAI2_TX_BCLK 0xd6
588 pinctrl_sai6: sai6grp {
590 MX8MQ_IOMUXC_SAI1_RXD5_SAI6_RX_DATA0 0xd6
591 MX8MQ_IOMUXC_SAI1_RXD6_SAI6_RX_SYNC 0xd6
592 MX8MQ_IOMUXC_SAI1_TXD4_SAI6_RX_BCLK 0xd6
593 MX8MQ_IOMUXC_SAI1_TXD5_SAI6_TX_DATA0 0xd6
597 pinctrl_tcpc: tcpcgrp {
600 MX8MQ_IOMUXC_GPIO1_IO10_GPIO1_IO10 0x01C0
604 pinctrl_touch: touchgrp {
607 MX8MQ_IOMUXC_ENET_RD1_GPIO1_IO27 0x80
611 pinctrl_typec: typecgrp {
614 MX8MQ_IOMUXC_GPIO1_IO11_GPIO1_IO11 0x83
618 pinctrl_uart1: uart1grp {
620 MX8MQ_IOMUXC_UART1_RXD_UART1_DCE_RX 0x49
621 MX8MQ_IOMUXC_UART1_TXD_UART1_DCE_TX 0x49
625 pinctrl_uart2: uart2grp {
627 MX8MQ_IOMUXC_UART2_TXD_UART2_DCE_TX 0x49
628 MX8MQ_IOMUXC_UART2_RXD_UART2_DCE_RX 0x49
632 pinctrl_uart3: uart3grp {
634 MX8MQ_IOMUXC_UART3_RXD_UART3_DCE_RX 0x49
635 MX8MQ_IOMUXC_UART3_TXD_UART3_DCE_TX 0x49
639 pinctrl_uart4: uart4grp {
641 MX8MQ_IOMUXC_ECSPI2_SCLK_UART4_DCE_RX 0x49
642 MX8MQ_IOMUXC_ECSPI2_MOSI_UART4_DCE_TX 0x49
643 MX8MQ_IOMUXC_ECSPI2_MISO_UART4_DCE_CTS_B 0x49
644 MX8MQ_IOMUXC_ECSPI2_SS0_UART4_DCE_RTS_B 0x49
648 pinctrl_usdhc1: usdhc1grp {
650 MX8MQ_IOMUXC_SD1_CLK_USDHC1_CLK 0x83
651 MX8MQ_IOMUXC_SD1_CMD_USDHC1_CMD 0xc3
652 MX8MQ_IOMUXC_SD1_DATA0_USDHC1_DATA0 0xc3
653 MX8MQ_IOMUXC_SD1_DATA1_USDHC1_DATA1 0xc3
654 MX8MQ_IOMUXC_SD1_DATA2_USDHC1_DATA2 0xc3
655 MX8MQ_IOMUXC_SD1_DATA3_USDHC1_DATA3 0xc3
656 MX8MQ_IOMUXC_SD1_DATA4_USDHC1_DATA4 0xc3
657 MX8MQ_IOMUXC_SD1_DATA5_USDHC1_DATA5 0xc3
658 MX8MQ_IOMUXC_SD1_DATA6_USDHC1_DATA6 0xc3
659 MX8MQ_IOMUXC_SD1_DATA7_USDHC1_DATA7 0xc3
660 MX8MQ_IOMUXC_SD1_STROBE_USDHC1_STROBE 0x83
661 MX8MQ_IOMUXC_SD1_RESET_B_USDHC1_RESET_B 0xc1
665 pinctrl_usdhc1_100mhz: usdhc1grp100mhz {
667 MX8MQ_IOMUXC_SD1_CLK_USDHC1_CLK 0x8d
668 MX8MQ_IOMUXC_SD1_CMD_USDHC1_CMD 0xcd
669 MX8MQ_IOMUXC_SD1_DATA0_USDHC1_DATA0 0xcd
670 MX8MQ_IOMUXC_SD1_DATA1_USDHC1_DATA1 0xcd
671 MX8MQ_IOMUXC_SD1_DATA2_USDHC1_DATA2 0xcd
672 MX8MQ_IOMUXC_SD1_DATA3_USDHC1_DATA3 0xcd
673 MX8MQ_IOMUXC_SD1_DATA4_USDHC1_DATA4 0xcd
674 MX8MQ_IOMUXC_SD1_DATA5_USDHC1_DATA5 0xcd
675 MX8MQ_IOMUXC_SD1_DATA6_USDHC1_DATA6 0xcd
676 MX8MQ_IOMUXC_SD1_DATA7_USDHC1_DATA7 0xcd
677 MX8MQ_IOMUXC_SD1_STROBE_USDHC1_STROBE 0x8d
678 MX8MQ_IOMUXC_SD1_RESET_B_USDHC1_RESET_B 0xc1
682 pinctrl_usdhc1_200mhz: usdhc1grp200mhz {
684 MX8MQ_IOMUXC_SD1_CLK_USDHC1_CLK 0x9f
685 MX8MQ_IOMUXC_SD1_CMD_USDHC1_CMD 0xdf
686 MX8MQ_IOMUXC_SD1_DATA0_USDHC1_DATA0 0xdf
687 MX8MQ_IOMUXC_SD1_DATA1_USDHC1_DATA1 0xdf
688 MX8MQ_IOMUXC_SD1_DATA2_USDHC1_DATA2 0xdf
689 MX8MQ_IOMUXC_SD1_DATA3_USDHC1_DATA3 0xdf
690 MX8MQ_IOMUXC_SD1_DATA4_USDHC1_DATA4 0xdf
691 MX8MQ_IOMUXC_SD1_DATA5_USDHC1_DATA5 0xdf
692 MX8MQ_IOMUXC_SD1_DATA6_USDHC1_DATA6 0xdf
693 MX8MQ_IOMUXC_SD1_DATA7_USDHC1_DATA7 0xdf
694 MX8MQ_IOMUXC_SD1_STROBE_USDHC1_STROBE 0x9f
695 MX8MQ_IOMUXC_SD1_RESET_B_USDHC1_RESET_B 0xc1
699 pinctrl_usdhc2: usdhc2grp {
701 MX8MQ_IOMUXC_SD2_CD_B_GPIO2_IO12 0x80
702 MX8MQ_IOMUXC_SD2_CLK_USDHC2_CLK 0x83
703 MX8MQ_IOMUXC_SD2_CMD_USDHC2_CMD 0xc3
704 MX8MQ_IOMUXC_SD2_DATA0_USDHC2_DATA0 0xc3
705 MX8MQ_IOMUXC_SD2_DATA1_USDHC2_DATA1 0xc3
706 MX8MQ_IOMUXC_SD2_DATA2_USDHC2_DATA2 0xc3
707 MX8MQ_IOMUXC_SD2_DATA3_USDHC2_DATA3 0xc3
708 MX8MQ_IOMUXC_SD2_RESET_B_USDHC2_RESET_B 0xc1
712 pinctrl_usdhc2_100mhz: usdhc2grp100mhz {
714 MX8MQ_IOMUXC_SD2_CD_B_GPIO2_IO12 0x80
715 MX8MQ_IOMUXC_SD2_CLK_USDHC2_CLK 0x8d
716 MX8MQ_IOMUXC_SD2_CMD_USDHC2_CMD 0xcd
717 MX8MQ_IOMUXC_SD2_DATA0_USDHC2_DATA0 0xcd
718 MX8MQ_IOMUXC_SD2_DATA1_USDHC2_DATA1 0xcd
719 MX8MQ_IOMUXC_SD2_DATA2_USDHC2_DATA2 0xcd
720 MX8MQ_IOMUXC_SD2_DATA3_USDHC2_DATA3 0xcd
721 MX8MQ_IOMUXC_SD2_RESET_B_USDHC2_RESET_B 0xc1
725 pinctrl_usdhc2_200mhz: usdhc2grp200mhz {
727 MX8MQ_IOMUXC_SD2_CD_B_GPIO2_IO12 0x80
728 MX8MQ_IOMUXC_SD2_CLK_USDHC2_CLK 0x9f
729 MX8MQ_IOMUXC_SD2_CMD_USDHC2_CMD 0xcf
730 MX8MQ_IOMUXC_SD2_DATA0_USDHC2_DATA0 0xcf
731 MX8MQ_IOMUXC_SD2_DATA1_USDHC2_DATA1 0xcf
732 MX8MQ_IOMUXC_SD2_DATA2_USDHC2_DATA2 0xcf
733 MX8MQ_IOMUXC_SD2_DATA3_USDHC2_DATA3 0xcf
734 MX8MQ_IOMUXC_SD2_RESET_B_USDHC2_RESET_B 0xc1
738 pinctrl_wifi_disable: wifidisablegrp {
741 MX8MQ_IOMUXC_SAI3_RXC_GPIO4_IO29 0x83
745 pinctrl_wifi_pwr: wifipwrgrp {
748 MX8MQ_IOMUXC_NAND_DATA04_GPIO3_IO10 0x83
752 pinctrl_wdog: wdoggrp {
755 MX8MQ_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0x1f
761 clock-frequency = <387000>;
762 pinctrl-names = "default";
763 pinctrl-0 = <&pinctrl_i2c1>;
766 typec_pd: usb-pd@3f {
767 compatible = "ti,tps6598x";
769 pinctrl-names = "default";
770 pinctrl-0 = <&pinctrl_typec>, <&pinctrl_tcpc>;
771 interrupt-parent = <&gpio1>;
772 interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
773 interrupt-names = "irq";
776 compatible = "usb-c-connector";
781 #address-cells = <1>;
787 usb_con_hs: endpoint {
788 remote-endpoint = <&typec_hs>;
795 usb_con_ss: endpoint {
796 remote-endpoint = <&typec_ss>;
804 compatible = "rohm,bd71837";
806 pinctrl-names = "default";
807 pinctrl-0 = <&pinctrl_pmic>, <&pinctrl_camera_pwr>;
808 clocks = <&pmic_osc>;
810 clock-output-names = "pmic_clk";
811 interrupt-parent = <&gpio1>;
812 interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
813 rohm,reset-snvs-powered;
817 regulator-name = "buck1";
818 regulator-min-microvolt = <700000>;
819 regulator-max-microvolt = <1300000>;
821 regulator-ramp-delay = <1250>;
822 rohm,dvs-run-voltage = <900000>;
823 rohm,dvs-idle-voltage = <850000>;
824 rohm,dvs-suspend-voltage = <800000>;
829 regulator-name = "buck2";
830 regulator-min-microvolt = <700000>;
831 regulator-max-microvolt = <1300000>;
833 regulator-ramp-delay = <1250>;
834 rohm,dvs-run-voltage = <1000000>;
835 rohm,dvs-idle-voltage = <900000>;
840 regulator-name = "buck3";
841 regulator-min-microvolt = <700000>;
842 regulator-max-microvolt = <1300000>;
844 rohm,dvs-run-voltage = <900000>;
848 regulator-name = "buck4";
849 regulator-min-microvolt = <700000>;
850 regulator-max-microvolt = <1300000>;
851 rohm,dvs-run-voltage = <1000000>;
855 regulator-name = "buck5";
856 regulator-min-microvolt = <700000>;
857 regulator-max-microvolt = <1350000>;
863 regulator-name = "buck6";
864 regulator-min-microvolt = <3000000>;
865 regulator-max-microvolt = <3300000>;
871 regulator-name = "buck7";
872 regulator-min-microvolt = <1605000>;
873 regulator-max-microvolt = <1995000>;
879 regulator-name = "buck8";
880 regulator-min-microvolt = <800000>;
881 regulator-max-microvolt = <1400000>;
887 regulator-name = "ldo1";
888 regulator-min-microvolt = <3000000>;
889 regulator-max-microvolt = <3300000>;
891 /* leave on for snvs power button */
896 regulator-name = "ldo2";
897 regulator-min-microvolt = <900000>;
898 regulator-max-microvolt = <900000>;
900 /* leave on for snvs power button */
905 regulator-name = "ldo3";
906 regulator-min-microvolt = <1800000>;
907 regulator-max-microvolt = <3300000>;
913 regulator-name = "ldo4";
914 regulator-min-microvolt = <900000>;
915 regulator-max-microvolt = <1800000>;
921 /* VDD_PHY_0V9 - MIPI and HDMI domains */
922 regulator-name = "ldo5";
923 regulator-min-microvolt = <1800000>;
924 regulator-max-microvolt = <3300000>;
929 /* VDD_PHY_0V9 - MIPI, HDMI and USB domains */
930 regulator-name = "ldo6";
931 regulator-min-microvolt = <900000>;
932 regulator-max-microvolt = <1800000>;
938 /* VDD_PHY_3V3 - USB domain */
939 regulator-name = "ldo7";
940 regulator-min-microvolt = <1800000>;
941 regulator-max-microvolt = <3300000>;
949 compatible = "microcrystal,rv4162";
951 pinctrl-names = "default";
952 pinctrl-0 = <&pinctrl_rtc>;
953 interrupt-parent = <&gpio1>;
954 interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
959 clock-frequency = <387000>;
960 pinctrl-names = "default";
961 pinctrl-0 = <&pinctrl_i2c2>;
965 compatible = "st,lsm9ds1-magn";
967 pinctrl-names = "default";
968 pinctrl-0 = <&pinctrl_mag>;
969 interrupt-parent = <&gpio3>;
970 interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
971 vdd-supply = <®_vdd_sen>;
972 vddio-supply = <®_vdd_1v8>;
976 compatible = "tps65132";
980 regulator-name = "LCD_AVDD";
981 vin-supply = <®_lcd_3v4>;
985 regulator-name = "LCD_AVEE";
986 vin-supply = <®_lcd_3v4>;
991 compatible = "vishay,vcnl4040";
993 pinctrl-names = "default";
994 pinctrl-0 = <&pinctrl_prox>;
995 interrupt-parent = <&gpio3>;
996 interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
999 accel_gyro: accel-gyro@6a {
1000 compatible = "st,lsm9ds1-imu";
1002 vdd-supply = <®_vdd_sen>;
1003 vddio-supply = <®_vdd_1v8>;
1008 clock-frequency = <387000>;
1009 pinctrl-names = "default";
1010 pinctrl-0 = <&pinctrl_i2c3>;
1013 codec: audio-codec@1a {
1014 compatible = "wlf,wm8962";
1016 clocks = <&clk IMX8MQ_CLK_SAI2_ROOT>;
1017 assigned-clocks = <&clk IMX8MQ_CLK_SAI2>;
1018 assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1_OUT>;
1019 assigned-clock-rates = <24576000>;
1020 #sound-dai-cells = <0>;
1022 DCVDD-supply = <®_aud_1v8>;
1023 DBVDD-supply = <®_aud_1v8>;
1024 AVDD-supply = <®_aud_1v8>;
1025 CPVDD-supply = <®_aud_1v8>;
1026 MICVDD-supply = <®_aud_1v8>;
1027 PLLVDD-supply = <®_aud_1v8>;
1028 SPKVDD1-supply = <®_vsys_3v4>;
1029 SPKVDD2-supply = <®_vsys_3v4>;
1032 0x0001 /* gpio2, 1: default */
1033 0x0013 /* gpio3, 2: dmicclk */
1034 0x0000 /* n/c, 3: default */
1035 0x8014 /* gpio5, 4: dmic_dat */
1036 0x0000 /* gpio6, 5: default */
1040 camera_front: camera@20 {
1041 compatible = "hynix,hi846";
1043 pinctrl-names = "default";
1044 pinctrl-0 = <&pinctrl_csi1>;
1045 clocks = <&clk IMX8MQ_CLK_CLKO2>;
1046 assigned-clocks = <&clk IMX8MQ_CLK_CLKO2>;
1047 assigned-clock-rates = <25000000>;
1048 reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
1049 vdda-supply = <®_vcam_2v8>;
1050 vddd-supply = <®_vcam_1v2>;
1051 vddio-supply = <®_csi_1v8>;
1056 camera1_ep: endpoint {
1058 link-frequencies = /bits/ 64
1059 <80000000 200000000 300000000>;
1060 remote-endpoint = <&mipi1_sensor_ep>;
1066 compatible = "ti,lm36922";
1068 pinctrl-names = "default";
1069 pinctrl-0 = <&pinctrl_bl>;
1070 #address-cells = <1>;
1072 enable-gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
1073 vled-supply = <®_vsys_3v4>;
1074 ti,ovp-microvolt = <25000000>;
1076 led_backlight: led@0 {
1078 label = ":backlight";
1079 linux,default-trigger = "backlight";
1080 led-max-microamp = <20000>;
1085 compatible = "edt,edt-ft5506";
1087 pinctrl-names = "default";
1088 pinctrl-0 = <&pinctrl_touch>;
1089 interrupt-parent = <&gpio1>;
1090 interrupts = <27 IRQ_TYPE_EDGE_FALLING>;
1091 touchscreen-size-x = <720>;
1092 touchscreen-size-y = <1440>;
1093 vcc-supply = <®_lcd_1v8>;
1098 clock-frequency = <387000>;
1099 pinctrl-names = "default";
1100 pinctrl-0 = <&pinctrl_i2c4>;
1104 compatible = "dongwoon,dw9714";
1106 vcc-supply = <®_csi_1v8>;
1109 bat: fuel-gauge@36 {
1110 compatible = "maxim,max17055";
1112 interrupt-parent = <&gpio3>;
1113 interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
1114 pinctrl-names = "default";
1115 pinctrl-0 = <&pinctrl_gauge>;
1116 power-supplies = <&bq25895>;
1117 maxim,over-heat-temp = <700>;
1118 maxim,over-volt = <4500>;
1119 maxim,rsns-microohm = <5000>;
1122 bq25895: charger@6a {
1123 compatible = "ti,bq25895", "ti,bq25890";
1125 pinctrl-names = "default";
1126 pinctrl-0 = <&pinctrl_charger_in>;
1127 interrupt-parent = <&gpio3>;
1128 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
1129 phys = <&usb3_phy0>;
1130 ti,precharge-current = <130000>; /* uA */
1131 ti,minimum-sys-voltage = <3700000>; /* uV */
1132 ti,boost-voltage = <5000000>; /* uV */
1133 ti,boost-max-current = <1500000>; /* uA */
1134 ti,use-vinmin-threshold = <1>; /* enable VINDPM */
1135 ti,vinmin-threshold = <3900000>; /* uV */
1136 monitored-battery = <&bat>;
1137 power-supplies = <&typec_pd>;
1146 assigned-clock-rates = <266000000>, <200000000>, <66000000>;
1153 mipi1_sensor_ep: endpoint {
1154 remote-endpoint = <&camera1_ep>;
1162 #address-cells = <1>;
1166 lcd_panel: panel@0 {
1167 compatible = "mantix,mlaf057we51-x";
1169 pinctrl-names = "default";
1170 pinctrl-0 = <&pinctrl_dsirst>;
1171 avdd-supply = <®_lcd_avdd>;
1172 avee-supply = <®_lcd_avee>;
1173 vddi-supply = <®_lcd_1v8>;
1174 backlight = <&backlight_dsi>;
1175 reset-gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
1176 mantix,tp-rstn-gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
1179 panel_in: endpoint {
1180 remote-endpoint = <&mipi_dsi_out>;
1189 mipi_dsi_out: endpoint {
1190 remote-endpoint = <&panel_in>;
1197 power-supply = <&buck3_reg>;
1201 power-supply = <&ldo5_reg>;
1205 power-supply = <&buck4_reg>;
1209 pinctrl-names = "default";
1210 pinctrl-0 = <&pinctrl_haptic>;
1215 pinctrl-names = "default";
1216 pinctrl-0 = <&pinctrl_led_b>;
1221 pinctrl-names = "default";
1222 pinctrl-0 = <&pinctrl_led_r>;
1227 pinctrl-names = "default";
1228 pinctrl-0 = <&pinctrl_led_g>;
1233 pinctrl-names = "default";
1234 pinctrl-0 = <&pinctrl_sai2>;
1235 assigned-clocks = <&clk IMX8MQ_CLK_SAI2>;
1236 assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1_OUT>;
1237 assigned-clock-rates = <24576000>;
1242 pinctrl-names = "default";
1243 pinctrl-0 = <&pinctrl_sai6>;
1244 assigned-clocks = <&clk IMX8MQ_CLK_SAI6>;
1245 assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1_OUT>;
1246 assigned-clock-rates = <24576000>;
1247 fsl,sai-synchronous-rx;
1256 status = "disabled";
1259 &uart1 { /* console */
1260 pinctrl-names = "default";
1261 pinctrl-0 = <&pinctrl_uart1>;
1265 &uart2 { /* TPS - GPS - DEBUG */
1266 pinctrl-names = "default";
1267 pinctrl-0 = <&pinctrl_uart2>;
1271 compatible = "globaltop,pa6h";
1272 vcc-supply = <®_gnss>;
1273 current-speed = <9600>;
1278 pinctrl-names = "default";
1279 pinctrl-0 = <&pinctrl_uart3>;
1284 pinctrl-names = "default";
1285 pinctrl-0 = <&pinctrl_uart4>;
1295 vbus-supply = <®_hub>;
1300 #address-cells = <1>;
1303 snps,dis_u3_susphy_quirk;
1310 typec_hs: endpoint {
1311 remote-endpoint = <&usb_con_hs>;
1318 typec_ss: endpoint {
1319 remote-endpoint = <&usb_con_ss>;
1327 #address-cells = <1>;
1330 /* Microchip USB2642 */
1332 compatible = "usb424,2640";
1334 #address-cells = <1>;
1338 compatible = "usb424,4041";
1345 assigned-clocks = <&clk IMX8MQ_CLK_USDHC1>;
1346 assigned-clock-rates = <400000000>;
1347 pinctrl-names = "default", "state_100mhz", "state_200mhz";
1348 pinctrl-0 = <&pinctrl_usdhc1>;
1349 pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
1350 pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
1352 vmmc-supply = <®_vdd_3v3>;
1353 power-supply = <®_vdd_1v8>;
1359 assigned-clocks = <&clk IMX8MQ_CLK_USDHC2>;
1360 assigned-clock-rates = <200000000>;
1361 pinctrl-names = "default", "state_100mhz", "state_200mhz";
1362 pinctrl-0 = <&pinctrl_usdhc2>;
1363 pinctrl-1 = <&pinctrl_usdhc2_100mhz>;
1364 pinctrl-2 = <&pinctrl_usdhc2_200mhz>;
1366 vmmc-supply = <®_wifi_3v3>;
1367 mmc-pwrseq = <&usdhc2_pwrseq>;
1368 post-power-on-delay-ms = <1000>;
1369 cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
1370 max-frequency = <50000000>;
1373 keep-power-in-suspend;
1379 pinctrl-names = "default";
1380 pinctrl-0 = <&pinctrl_wdog>;
1381 fsl,ext-reset-output;