1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2018-2019 Purism SPC
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"
12 #include "imx8mq.dtsi"
15 model = "Purism Librem 5 devkit";
16 compatible = "purism,librem5-devkit", "fsl,imx8mq";
18 backlight_dsi: backlight-dsi {
19 compatible = "pwm-backlight";
20 /* 200 Hz for the PAM2841 */
21 pwms = <&pwm1 0 5000000 0>;
22 brightness-levels = <0 100>;
23 num-interpolated-steps = <100>;
24 /* Default brightness level (index into the array defined by */
25 /* the "brightness-levels" property) */
26 default-brightness-level = <0>;
27 power-supply = <®_22v4_p>;
35 compatible = "gpio-keys";
36 pinctrl-names = "default";
37 pinctrl-0 = <&pinctrl_gpio_keys>;
41 gpios = <&gpio4 21 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_VOLUMEUP>;
48 gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_VOLUMEDOWN>;
55 gpios = <&gpio3 8 GPIO_ACTIVE_LOW>;
56 interrupt-parent = <&gpio3>;
57 interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
59 linux,code = <KEY_PHONE>;
64 compatible = "gpio-leds";
65 pinctrl-names = "default";
66 pinctrl-0 = <&pinctrl_gpio_leds>;
70 gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
71 default-state = "off";
75 pmic_osc: clock-pmic {
76 compatible = "fixed-clock";
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 = <®_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 = <®_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 = <®_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 = <®_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 = <®_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>;
137 gpio = <&gpio1 8 GPIO_ACTIVE_HIGH>;
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>;
149 gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
154 wwan_codec: sound-wwan-codec {
155 compatible = "option,gtm601";
156 #sound-dai-cells = <0>;
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 =
175 "Microphone", "Builtin Microphone",
176 "Microphone", "Headset Microphone",
177 "Headphone", "Headphones",
178 "Speaker", "Builtin Speaker";
179 simple-audio-card,routing =
180 "MIC_IN", "Mic Mux OUT",
181 "Mic Mux IN1", "Headset Microphone",
182 "Mic Mux IN2", "Builtin Microphone",
183 "Mic Mux OUT", "Mic Bias",
184 "Headphones", "HP_OUT",
185 "Builtin Speaker", "Speaker Amp OUTR",
186 "Speaker Amp INR", "LINE_OUT";
187 simple-audio-card,hp-det-gpio = <&gpio3 20 GPIO_ACTIVE_HIGH>;
189 simple-audio-card,cpu {
193 simple-audio-card,codec {
194 sound-dai = <&sgtl5000>;
195 clocks = <&clk IMX8MQ_CLK_SAI2_ROOT>;
202 compatible = "simple-audio-card";
203 simple-audio-card,name = "SIMCom SIM7100";
204 simple-audio-card,format = "dsp_a";
206 simple-audio-card,cpu {
210 telephony_link_master: simple-audio-card,codec {
211 sound-dai = <&wwan_codec>;
217 speaker_amp: speaker-amp {
218 compatible = "simple-audio-amplifier";
219 pinctrl-names = "default";
220 pinctrl-0 = <&pinctrl_spkamp>;
221 VCC-supply = <®_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 = <®_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>;
241 gpio = <&gpio3 5 GPIO_ACTIVE_HIGH>;
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 = <ðphy0>;
273 phy-supply = <®_3v3_p>;
277 #address-cells = <1>;
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>;
294 compatible = "rohm,bd71837";
296 pinctrl-names = "default";
297 pinctrl-0 = <&pinctrl_pmic>;
298 clocks = <&pmic_osc>;
301 clock-output-names = "pmic_clk";
302 interrupt-parent = <&gpio1>;
303 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
304 rohm,reset-snvs-powered;
308 regulator-name = "buck1";
309 regulator-min-microvolt = <700000>;
310 regulator-max-microvolt = <1300000>;
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>;
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>;
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>;
353 regulator-name = "buck6";
354 regulator-min-microvolt = <3000000>;
355 regulator-max-microvolt = <3300000>;
361 regulator-name = "buck7";
362 regulator-min-microvolt = <1605000>;
363 regulator-max-microvolt = <1995000>;
369 regulator-name = "buck8";
370 regulator-min-microvolt = <800000>;
371 regulator-max-microvolt = <1400000>;
377 regulator-name = "ldo1";
378 regulator-min-microvolt = <3000000>;
379 regulator-max-microvolt = <3300000>;
381 /* leave on for snvs power button */
386 regulator-name = "ldo2";
387 regulator-min-microvolt = <900000>;
388 regulator-max-microvolt = <900000>;
390 /* leave on for snvs power button */
395 regulator-name = "ldo3";
396 regulator-min-microvolt = <1800000>;
397 regulator-max-microvolt = <3300000>;
403 regulator-name = "ldo4";
404 regulator-min-microvolt = <900000>;
405 regulator-max-microvolt = <1800000>;
411 regulator-name = "ldo5";
412 regulator-min-microvolt = <1800000>;
413 regulator-max-microvolt = <3300000>;
418 regulator-name = "ldo6";
419 regulator-min-microvolt = <900000>;
420 regulator-max-microvolt = <1800000>;
426 regulator-name = "ldo7";
427 regulator-min-microvolt = <1800000>;
428 regulator-max-microvolt = <3300000>;
435 typec_ptn5100: usb-typec@52 {
436 compatible = "nxp,ptn5110";
438 pinctrl-names = "default";
439 pinctrl-0 = <&pinctrl_typec>;
440 interrupt-parent = <&gpio3>;
441 interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
444 compatible = "usb-c-connector";
448 try-power-role = "sink";
449 source-pdos = <PDO_FIXED(5000, 2000,
451 PDO_FIXED_DUAL_ROLE |
452 PDO_FIXED_DATA_SWAP )>;
453 sink-pdos = <PDO_FIXED(5000, 3500, PDO_FIXED_USB_COMM |
454 PDO_FIXED_DUAL_ROLE |
455 PDO_FIXED_DATA_SWAP )
456 PDO_VAR(5000, 5000, 3500)>;
457 op-sink-microwatt = <10000000>;
460 #address-cells = <1>;
466 usb_con_hs: endpoint {
467 remote-endpoint = <&typec_hs>;
474 usb_con_ss: endpoint {
475 remote-endpoint = <&typec_ss>;
483 compatible = "microcrystal,rv4162";
485 pinctrl-names = "default";
486 pinctrl-0 = <&pinctrl_rtc>;
487 interrupt-parent = <&gpio4>;
488 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
491 charger@6b { /* bq25896 */
492 compatible = "ti,bq25890";
494 pinctrl-names = "default";
495 pinctrl-0 = <&pinctrl_charger>;
496 interrupt-parent = <&gpio3>;
497 interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
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>;
520 interrupts = <19 IRQ_TYPE_LEVEL_HIGH>;
521 vdd-supply = <®_3v3_p>;
522 vddio-supply = <®_3v3_p>;
525 sgtl5000: audio-codec@a {
526 compatible = "fsl,sgtl5000";
527 clocks = <&clk IMX8MQ_CLK_SAI2_ROOT>;
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 = <®_1v8_p>;
534 VDDIO-supply = <®_3v3_p>;
535 VDDA-supply = <®_3v3_p>;
539 compatible = "goodix,gt5688";
541 pinctrl-names = "default";
542 pinctrl-0 = <&pinctrl_ts>;
543 interrupt-parent = <&gpio3>;
544 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
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 = <®_2v8_p>;
550 VDDIO-supply = <®_1v8_p>;
553 proximity-sensor@60 {
554 compatible = "vishay,vcnl4040";
556 pinctrl-0 = <&pinctrl_prox>;
560 compatible = "st,lsm9ds1-imu";
562 vdd-supply = <®_3v3_p>;
563 vddio-supply = <®_3v3_p>;
564 mount-matrix = "1", "0", "0",
573 MX8MQ_IOMUXC_GPIO1_IO01_PWM1_OUT 0x6 /* DSI_BL_PWM */
579 MX8MQ_IOMUXC_NAND_DATA05_GPIO3_IO11 0x16 /* nBT_DISABLE */
580 MX8MQ_IOMUXC_NAND_DATA01_GPIO3_IO7 0x10 /* BT_HOST_WAKE */
584 pinctrl_charger: chargergrp {
586 MX8MQ_IOMUXC_SAI5_MCLK_GPIO3_IO25 0x80 /* CHRG_nINT */
590 pinctrl_fec1: fec1grp {
592 MX8MQ_IOMUXC_ENET_MDC_ENET1_MDC 0x3
593 MX8MQ_IOMUXC_ENET_MDIO_ENET1_MDIO 0x3
594 MX8MQ_IOMUXC_ENET_TD3_ENET1_RGMII_TD3 0x1f
595 MX8MQ_IOMUXC_ENET_TD2_ENET1_RGMII_TD2 0x1f
596 MX8MQ_IOMUXC_ENET_TD1_ENET1_RGMII_TD1 0x1f
597 MX8MQ_IOMUXC_ENET_TD0_ENET1_RGMII_TD0 0x1f
598 MX8MQ_IOMUXC_ENET_RD3_ENET1_RGMII_RD3 0x91
599 MX8MQ_IOMUXC_ENET_RD2_ENET1_RGMII_RD2 0x91
600 MX8MQ_IOMUXC_ENET_RD1_ENET1_RGMII_RD1 0x91
601 MX8MQ_IOMUXC_ENET_RD0_ENET1_RGMII_RD0 0x91
602 MX8MQ_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f
603 MX8MQ_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91
604 MX8MQ_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91
605 MX8MQ_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f
606 MX8MQ_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x19
607 MX8MQ_IOMUXC_GPIO1_IO15_CCMSRCGPCMIX_CLKO2 0x1f
613 MX8MQ_IOMUXC_NAND_ALE_GPIO3_IO0 0x16 /* TOUCH INT */
614 MX8MQ_IOMUXC_GPIO1_IO05_GPIO1_IO5 0x19 /* TOUCH RST */
618 pinctrl_gpio_leds: gpioledgrp {
620 MX8MQ_IOMUXC_GPIO1_IO13_GPIO1_IO13 0x16
624 pinctrl_gpio_keys: gpiokeygrp {
626 MX8MQ_IOMUXC_SAI2_RXFS_GPIO4_IO21 0x16
627 MX8MQ_IOMUXC_SAI2_RXC_GPIO4_IO22 0x16
628 MX8MQ_IOMUXC_NAND_DATA02_GPIO3_IO8 0x80 /* nWoWWAN */
632 pinctrl_haptic: hapticgrp {
634 MX8MQ_IOMUXC_SPDIF_RX_GPIO5_IO4 0xc6 /* nHAPTIC */
638 pinctrl_hpdet: hpdetgrp {
640 MX8MQ_IOMUXC_SAI5_RXC_GPIO3_IO20 0xC0 /* HP_DET */
644 pinctrl_i2c1: i2c1grp {
646 MX8MQ_IOMUXC_I2C1_SCL_I2C1_SCL 0x4000001f
647 MX8MQ_IOMUXC_I2C1_SDA_I2C1_SDA 0x4000001f
651 pinctrl_i2c3: i2c3grp {
653 MX8MQ_IOMUXC_I2C3_SCL_I2C3_SCL 0x4000001f
654 MX8MQ_IOMUXC_I2C3_SDA_I2C3_SDA 0x4000001f
658 pinctrl_imu: imugrp {
660 MX8MQ_IOMUXC_SAI5_RXFS_GPIO3_IO19 0x8 /* IMU_INT */
664 pinctrl_micsel: micselgrp {
666 MX8MQ_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5 0xc6 /* MIC_SEL */
670 pinctrl_spkamp: spkamp {
672 MX8MQ_IOMUXC_SPDIF_TX_GPIO5_IO3 0x81 /* MUTE */
676 pinctrl_pmic: pmicgrp {
678 MX8MQ_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x80 /* PMIC intr */
682 pinctrl_prox: proxgrp {
684 MX8MQ_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x80 /* prox intr */
688 pinctrl_pwr_en: pwrengrp {
690 MX8MQ_IOMUXC_GPIO1_IO08_GPIO1_IO8 0x06
694 pinctrl_rtc: rtcgrp {
696 MX8MQ_IOMUXC_SAI3_RXC_GPIO4_IO29 0x80 /* RTC intr */
700 pinctrl_sai2: sai2grp {
702 MX8MQ_IOMUXC_SAI2_TXFS_SAI2_TX_SYNC 0xd6
703 MX8MQ_IOMUXC_SAI2_TXC_SAI2_TX_BCLK 0xd6
704 MX8MQ_IOMUXC_SAI2_TXD0_SAI2_TX_DATA0 0xd6
705 MX8MQ_IOMUXC_SAI2_RXD0_SAI2_RX_DATA0 0xd6
706 MX8MQ_IOMUXC_SAI2_MCLK_SAI2_MCLK 0xd6
710 pinctrl_sai6: sai6grp {
712 MX8MQ_IOMUXC_SAI1_RXD5_SAI6_RX_DATA0 0xd6
713 MX8MQ_IOMUXC_SAI1_RXD6_SAI6_RX_SYNC 0xd6
714 MX8MQ_IOMUXC_SAI1_TXD4_SAI6_RX_BCLK 0xd6
715 MX8MQ_IOMUXC_SAI1_TXD5_SAI6_TX_DATA0 0xd6
719 pinctrl_typec: typecgrp {
721 MX8MQ_IOMUXC_NAND_DATA06_GPIO3_IO12 0x16
722 MX8MQ_IOMUXC_NAND_CE0_B_GPIO3_IO1 0x80
726 pinctrl_uart1: uart1grp {
728 MX8MQ_IOMUXC_UART1_RXD_UART1_DCE_RX 0x49
729 MX8MQ_IOMUXC_UART1_TXD_UART1_DCE_TX 0x49
733 pinctrl_uart2: uart2grp {
735 MX8MQ_IOMUXC_UART2_TXD_UART2_DCE_TX 0x49
736 MX8MQ_IOMUXC_UART2_RXD_UART2_DCE_RX 0x49
737 MX8MQ_IOMUXC_UART4_RXD_UART2_DCE_CTS_B 0x49
738 MX8MQ_IOMUXC_UART4_TXD_UART2_DCE_RTS_B 0x49
742 pinctrl_uart3: uart3grp {
744 MX8MQ_IOMUXC_UART3_RXD_UART3_DCE_RX 0x49
745 MX8MQ_IOMUXC_UART3_TXD_UART3_DCE_TX 0x49
749 pinctrl_uart4: uart4grp {
751 MX8MQ_IOMUXC_ECSPI2_SCLK_UART4_DCE_RX 0x49
752 MX8MQ_IOMUXC_ECSPI2_MOSI_UART4_DCE_TX 0x49
753 MX8MQ_IOMUXC_ECSPI2_MISO_UART4_DCE_CTS_B 0x49
754 MX8MQ_IOMUXC_ECSPI2_SS0_UART4_DCE_RTS_B 0x49
755 MX8MQ_IOMUXC_GPIO1_IO00_ANAMIX_REF_CLK_32K 0x49
759 pinctrl_usdhc1: usdhc1grp {
761 MX8MQ_IOMUXC_SD1_CLK_USDHC1_CLK 0x83
762 MX8MQ_IOMUXC_SD1_CMD_USDHC1_CMD 0xc3
763 MX8MQ_IOMUXC_SD1_DATA0_USDHC1_DATA0 0xc3
764 MX8MQ_IOMUXC_SD1_DATA1_USDHC1_DATA1 0xc3
765 MX8MQ_IOMUXC_SD1_DATA2_USDHC1_DATA2 0xc3
766 MX8MQ_IOMUXC_SD1_DATA3_USDHC1_DATA3 0xc3
767 MX8MQ_IOMUXC_SD1_DATA4_USDHC1_DATA4 0xc3
768 MX8MQ_IOMUXC_SD1_DATA5_USDHC1_DATA5 0xc3
769 MX8MQ_IOMUXC_SD1_DATA6_USDHC1_DATA6 0xc3
770 MX8MQ_IOMUXC_SD1_DATA7_USDHC1_DATA7 0xc3
771 MX8MQ_IOMUXC_SD1_STROBE_USDHC1_STROBE 0x83
772 MX8MQ_IOMUXC_SD1_RESET_B_USDHC1_RESET_B 0xc1
776 pinctrl_usdhc1_100mhz: usdhc1-100mhzgrp {
778 MX8MQ_IOMUXC_SD1_CLK_USDHC1_CLK 0x8d
779 MX8MQ_IOMUXC_SD1_CMD_USDHC1_CMD 0xcd
780 MX8MQ_IOMUXC_SD1_DATA0_USDHC1_DATA0 0xcd
781 MX8MQ_IOMUXC_SD1_DATA1_USDHC1_DATA1 0xcd
782 MX8MQ_IOMUXC_SD1_DATA2_USDHC1_DATA2 0xcd
783 MX8MQ_IOMUXC_SD1_DATA3_USDHC1_DATA3 0xcd
784 MX8MQ_IOMUXC_SD1_DATA4_USDHC1_DATA4 0xcd
785 MX8MQ_IOMUXC_SD1_DATA5_USDHC1_DATA5 0xcd
786 MX8MQ_IOMUXC_SD1_DATA6_USDHC1_DATA6 0xcd
787 MX8MQ_IOMUXC_SD1_DATA7_USDHC1_DATA7 0xcd
788 MX8MQ_IOMUXC_SD1_STROBE_USDHC1_STROBE 0x8d
789 MX8MQ_IOMUXC_SD1_RESET_B_USDHC1_RESET_B 0xc1
793 pinctrl_usdhc1_200mhz: usdhc1-200mhzgrp {
795 MX8MQ_IOMUXC_SD1_CLK_USDHC1_CLK 0x9f
796 MX8MQ_IOMUXC_SD1_CMD_USDHC1_CMD 0xdf
797 MX8MQ_IOMUXC_SD1_DATA0_USDHC1_DATA0 0xdf
798 MX8MQ_IOMUXC_SD1_DATA1_USDHC1_DATA1 0xdf
799 MX8MQ_IOMUXC_SD1_DATA2_USDHC1_DATA2 0xdf
800 MX8MQ_IOMUXC_SD1_DATA3_USDHC1_DATA3 0xdf
801 MX8MQ_IOMUXC_SD1_DATA4_USDHC1_DATA4 0xdf
802 MX8MQ_IOMUXC_SD1_DATA5_USDHC1_DATA5 0xdf
803 MX8MQ_IOMUXC_SD1_DATA6_USDHC1_DATA6 0xdf
804 MX8MQ_IOMUXC_SD1_DATA7_USDHC1_DATA7 0xdf
805 MX8MQ_IOMUXC_SD1_STROBE_USDHC1_STROBE 0x9f
806 MX8MQ_IOMUXC_SD1_RESET_B_USDHC1_RESET_B 0xc1
810 pinctrl_usdhc2_pwr: usdhc2pwrgrp {
812 MX8MQ_IOMUXC_SD2_RESET_B_GPIO2_IO19 0x41
816 pinctrl_usdhc2_gpio: usdhc2gpiogrp {
818 MX8MQ_IOMUXC_SD2_WP_GPIO2_IO20 0x80 /* WIFI_WAKE */
822 pinctrl_usdhc2: usdhc2grp {
824 MX8MQ_IOMUXC_SD2_CLK_USDHC2_CLK 0x83
825 MX8MQ_IOMUXC_SD2_CMD_USDHC2_CMD 0xc3
826 MX8MQ_IOMUXC_SD2_DATA0_USDHC2_DATA0 0xc3
827 MX8MQ_IOMUXC_SD2_DATA1_USDHC2_DATA1 0xc3
828 MX8MQ_IOMUXC_SD2_DATA2_USDHC2_DATA2 0xc3
829 MX8MQ_IOMUXC_SD2_DATA3_USDHC2_DATA3 0xc3
833 pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp {
835 MX8MQ_IOMUXC_SD2_CLK_USDHC2_CLK 0x8d
836 MX8MQ_IOMUXC_SD2_CMD_USDHC2_CMD 0xcd
837 MX8MQ_IOMUXC_SD2_DATA0_USDHC2_DATA0 0xcd
838 MX8MQ_IOMUXC_SD2_DATA1_USDHC2_DATA1 0xcd
839 MX8MQ_IOMUXC_SD2_DATA2_USDHC2_DATA2 0xcd
840 MX8MQ_IOMUXC_SD2_DATA3_USDHC2_DATA3 0xcd
844 pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp {
846 MX8MQ_IOMUXC_SD2_CLK_USDHC2_CLK 0x9f
847 MX8MQ_IOMUXC_SD2_CMD_USDHC2_CMD 0xcf
848 MX8MQ_IOMUXC_SD2_DATA0_USDHC2_DATA0 0xcf
849 MX8MQ_IOMUXC_SD2_DATA1_USDHC2_DATA1 0xcf
850 MX8MQ_IOMUXC_SD2_DATA2_USDHC2_DATA2 0xcf
851 MX8MQ_IOMUXC_SD2_DATA3_USDHC2_DATA3 0xcf
855 pinctrl_wdog: wdoggrp {
857 MX8MQ_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0xc6
861 pinctrl_wifi_pwr_en: wifipwrengrp {
863 MX8MQ_IOMUXC_NAND_CLE_GPIO3_IO5 0x06
867 pinctrl_wwan: wwangrp {
869 MX8MQ_IOMUXC_NAND_CE3_B_GPIO3_IO4 0x09 /* nWWAN_DISABLE */
870 MX8MQ_IOMUXC_NAND_DATA02_GPIO3_IO8 0x80 /* nWoWWAN */
871 MX8MQ_IOMUXC_NAND_DATA03_GPIO3_IO9 0x19 /* WWAN_RESET */
882 #address-cells = <1>;
886 compatible = "rocktech,jh057n00900";
888 backlight = <&backlight_dsi>;
889 reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;
890 iovcc-supply = <®_1v8_p>;
891 vcc-supply = <®_2v8_p>;
894 remote-endpoint = <&mipi_dsi_out>;
902 mipi_dsi_out: endpoint {
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;
950 &uart1 { /* console */
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>;
970 vbus-supply = <®_5v_p>;
975 vbus-supply = <®_5v_p>;
980 #address-cells = <1>;
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>;
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>;
1027 vmmc-supply = <®_usdhc2_vmmc>;
1028 power-supply = <&wifi_pwr_en>;
1032 keep-power-in-suspend;
1038 pinctrl-names = "default";
1039 pinctrl-0 = <&pinctrl_wdog>;
1040 fsl,ext-reset-output;