1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 * Copyright 2020 Compass Electronics Group, LLC
8 compatible = "gpio-leds";
12 gpios = <&pca6416_1 4 GPIO_ACTIVE_HIGH>;
13 default-state = "off";
18 gpios = <&pca6416_1 5 GPIO_ACTIVE_HIGH>;
19 default-state = "off";
24 gpios = <&pca6416_1 6 GPIO_ACTIVE_HIGH>;
25 default-state = "off";
29 pinctrl-names = "default";
30 pinctrl-0 = <&pinctrl_led3>;
32 gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>;
33 linux,default-trigger = "heartbeat";
37 reg_audio: regulator-audio {
38 compatible = "regulator-fixed";
39 regulator-name = "3v3_aud";
40 regulator-min-microvolt = <3300000>;
41 regulator-max-microvolt = <3300000>;
42 gpio = <&pca6416_1 11 GPIO_ACTIVE_HIGH>;
46 reg_camera: regulator-camera {
47 compatible = "regulator-fixed";
48 regulator-name = "mipi_pwr";
49 regulator-min-microvolt = <2800000>;
50 regulator-max-microvolt = <2800000>;
51 gpio = <&pca6416_1 0 GPIO_ACTIVE_HIGH>;
53 startup-delay-us = <100000>;
57 reg_usdhc2_vmmc: regulator-usdhc2 {
58 compatible = "regulator-fixed";
59 regulator-name = "vsd_3v3";
60 regulator-min-microvolt = <3300000>;
61 regulator-max-microvolt = <3300000>;
62 gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
66 reg_usb_otg_vbus: regulator-usb {
67 compatible = "regulator-fixed";
68 pinctrl-names = "default";
69 pinctrl-0 = <&pinctrl_reg_usb_otg>;
70 regulator-name = "usb_otg_vbus";
71 regulator-min-microvolt = <5000000>;
72 regulator-max-microvolt = <5000000>;
73 gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
78 compatible = "simple-audio-card";
79 simple-audio-card,name = "wm8962";
80 simple-audio-card,format = "i2s";
81 simple-audio-card,widgets = "Headphone", "Headphones",
82 "Microphone", "Headset Mic",
84 simple-audio-card,routing = "Headphones", "HPOUTL",
85 "Headphones", "HPOUTR",
88 "Headset Mic", "MICBIAS",
89 "IN3R", "Headset Mic";
91 simple-audio-card,cpu {
95 simple-audio-card,codec {
96 sound-dai = <&wm8962>;
97 clocks = <&clk IMX8MN_CLK_SAI3_ROOT>;
105 pinctrl-names = "default";
106 pinctrl-0 = <&pinctrl_espi2>;
107 cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
111 compatible = "microchip,at25160bn", "atmel,at25";
113 spi-max-frequency = <5000000>;
118 address-width = <16>;
123 clock-frequency = <384000>;
124 pinctrl-names = "default";
125 pinctrl-0 = <&pinctrl_i2c2>;
129 compatible = "ovti,ov5640";
130 pinctrl-names = "default";
131 pinctrl-0 = <&pinctrl_ov5640>;
133 clocks = <&clk IMX8MN_CLK_CLKO1>;
134 clock-names = "xclk";
135 assigned-clocks = <&clk IMX8MN_CLK_CLKO1>;
136 assigned-clock-parents = <&clk IMX8MN_CLK_24M>;
137 assigned-clock-rates = <24000000>;
138 AVDD-supply = <®_camera>; /* 2.8v */
139 powerdown-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
140 reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
143 /* MIPI CSI-2 bus endpoint */
144 ov5640_to_mipi_csi2: endpoint {
145 remote-endpoint = <&mipi_csi_in>;
153 clock-frequency = <400000>;
154 pinctrl-names = "default";
155 pinctrl-0 = <&pinctrl_i2c4>;
159 compatible = "nxp,pcal6416";
161 pinctrl-names = "default";
162 pinctrl-0 = <&pinctrl_pcal6414>;
165 interrupt-parent = <&gpio4>;
166 interrupts = <27 IRQ_TYPE_LEVEL_LOW>;
170 compatible = "nxp,pcal6416";
174 interrupt-parent = <&gpio4>;
175 interrupts = <27 IRQ_TYPE_LEVEL_LOW>;
178 wm8962: audio-codec@1a {
179 compatible = "wlf,wm8962";
181 clocks = <&clk IMX8MN_CLK_SAI3_ROOT>;
182 DCVDD-supply = <®_audio>;
183 DBVDD-supply = <®_audio>;
184 AVDD-supply = <®_audio>;
185 CPVDD-supply = <®_audio>;
186 MICVDD-supply = <®_audio>;
187 PLLVDD-supply = <®_audio>;
188 SPKVDD1-supply = <®_audio>;
189 SPKVDD2-supply = <®_audio>;
191 0x0000 /* 0:Default */
192 0x0000 /* 1:Default */
193 0x0000 /* 2:FN_DMICCLK */
194 0x0000 /* 3:Default */
195 0x0000 /* 4:FN_DMICCDAT */
196 0x0000 /* 5:Default */
198 #sound-dai-cells = <0>;
207 fsl,asrc-rate = <48000>;
216 mipi_csi_in: endpoint {
217 remote-endpoint = <&ov5640_to_mipi_csi2>;
225 pinctrl-names = "default";
226 pinctrl-0 = <&pinctrl_sai3>;
227 assigned-clocks = <&clk IMX8MN_CLK_SAI3>;
228 assigned-clock-parents = <&clk IMX8MN_AUDIO_PLL1_OUT>;
229 assigned-clock-rates = <24576000>;
230 fsl,sai-mclk-direction-output;
238 &uart2 { /* console */
239 pinctrl-names = "default";
240 pinctrl-0 = <&pinctrl_uart2>;
245 pinctrl-names = "default";
246 pinctrl-0 = <&pinctrl_uart3>;
247 assigned-clocks = <&clk IMX8MN_CLK_UART3>;
248 assigned-clock-parents = <&clk IMX8MN_SYS_PLL1_80M>;
254 vbus-supply = <®_usb_otg_vbus>;
255 disable-over-current;
261 pinctrl-names = "default", "state_100mhz", "state_200mhz";
262 pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
263 pinctrl-1 = <&pinctrl_usdhc2_100mhz>;
264 pinctrl-2 = <&pinctrl_usdhc2_200mhz>;
266 vmmc-supply = <®_usdhc2_vmmc>;
271 pinctrl_espi2: espi2grp {
273 MX8MN_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x82
274 MX8MN_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x82
275 MX8MN_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x82
276 MX8MN_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x41
280 pinctrl_i2c2: i2c2grp {
282 MX8MN_IOMUXC_I2C2_SCL_I2C2_SCL 0x400001c3
283 MX8MN_IOMUXC_I2C2_SDA_I2C2_SDA 0x400001c3
287 pinctrl_i2c4: i2c4grp {
289 MX8MN_IOMUXC_I2C4_SCL_I2C4_SCL 0x400001c3
290 MX8MN_IOMUXC_I2C4_SDA_I2C4_SDA 0x400001c3
294 pinctrl_led3: led3grp {
296 MX8MN_IOMUXC_SAI3_RXFS_GPIO4_IO28 0x41
300 pinctrl_ov5640: ov5640grp {
302 MX8MN_IOMUXC_GPIO1_IO07_GPIO1_IO7 0x19
303 MX8MN_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x19
304 MX8MN_IOMUXC_GPIO1_IO14_CCMSRCGPCMIX_CLKO1 0x59
308 pinctrl_pcal6414: pcal6414-gpiogrp {
310 MX8MN_IOMUXC_SAI2_MCLK_GPIO4_IO27 0x19
314 pinctrl_reg_usb_otg: reg-otggrp {
316 MX8MN_IOMUXC_SAI3_RXC_GPIO4_IO29 0x19
320 pinctrl_sai3: sai3grp {
322 MX8MN_IOMUXC_SAI3_TXFS_SAI3_TX_SYNC 0xd6
323 MX8MN_IOMUXC_SAI3_TXC_SAI3_TX_BCLK 0xd6
324 MX8MN_IOMUXC_SAI3_MCLK_SAI3_MCLK 0xd6
325 MX8MN_IOMUXC_SAI3_TXD_SAI3_TX_DATA0 0xd6
326 MX8MN_IOMUXC_SAI3_RXD_SAI3_RX_DATA0 0xd6
330 pinctrl_uart2: uart2grp {
332 MX8MN_IOMUXC_UART2_RXD_UART2_DCE_RX 0x140
333 MX8MN_IOMUXC_UART2_TXD_UART2_DCE_TX 0x140
337 pinctrl_uart3: uart3grp {
339 MX8MN_IOMUXC_ECSPI1_SCLK_UART3_DCE_RX 0x40
340 MX8MN_IOMUXC_ECSPI1_MOSI_UART3_DCE_TX 0x40
341 MX8MN_IOMUXC_ECSPI1_MISO_UART3_DCE_CTS_B 0x40
342 MX8MN_IOMUXC_ECSPI1_SS0_UART3_DCE_RTS_B 0x40
346 pinctrl_usdhc2_gpio: usdhc2gpiogrp {
348 MX8MN_IOMUXC_SD2_CD_B_USDHC2_CD_B 0x41
349 MX8MN_IOMUXC_SD2_RESET_B_GPIO2_IO19 0x41
353 pinctrl_usdhc2: usdhc2grp {
355 MX8MN_IOMUXC_SD2_CLK_USDHC2_CLK 0x190
356 MX8MN_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d0
357 MX8MN_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d0
358 MX8MN_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d0
359 MX8MN_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d0
360 MX8MN_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d0
361 MX8MN_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0
365 pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp {
367 MX8MN_IOMUXC_SD2_CLK_USDHC2_CLK 0x194
368 MX8MN_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d4
369 MX8MN_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d4
370 MX8MN_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d4
371 MX8MN_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d4
372 MX8MN_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4
373 MX8MN_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0
377 pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp {
379 MX8MN_IOMUXC_SD2_CLK_USDHC2_CLK 0x196
380 MX8MN_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d6
381 MX8MN_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d6
382 MX8MN_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d6
383 MX8MN_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d6
384 MX8MN_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d6
385 MX8MN_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0