blob: 9e31b37f24962e37d2eb858276b1526d3caaaf3a [file] [log] [blame]
Tim Harvey2cb156e2022-02-11 10:48:56 -08001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2022 Gateworks Corporation
4 */
5
6/dts-v1/;
7
8#include "imx8mn.dtsi"
9
10/ {
11 model = "Gateworks Venice i.MX8MM board";
12 compatible = "gw,imx8mn-venice", "fsl,imx8mn";
13
14 chosen {
15 stdout-path = &uart2;
16 };
17
18 memory@40000000 {
19 device_type = "memory";
20 reg = <0x0 0x40000000 0 0x80000000>;
21 };
22};
23
24&i2c1 {
25 clock-frequency = <100000>;
Tim Harvey3041e092022-11-11 08:03:07 -080026 pinctrl-names = "default", "gpio";
Tim Harvey2cb156e2022-02-11 10:48:56 -080027 pinctrl-0 = <&pinctrl_i2c1>;
Tim Harvey3041e092022-11-11 08:03:07 -080028 pinctrl-1 = <&pinctrl_i2c1_gpio>;
29 scl-gpios = <&gpio5 14 GPIO_ACTIVE_HIGH>;
30 sda-gpios = <&gpio5 15 GPIO_ACTIVE_HIGH>;
Tim Harvey2cb156e2022-02-11 10:48:56 -080031 status = "okay";
32
Tim Harveyfb9ec332022-04-13 08:56:40 -070033 gsc: gsc@20 {
34 compatible = "gw,gsc";
35 reg = <0x20>;
36 #address-cells = <1>;
37 #size-cells = <0>;
38 };
39
Tim Harvey2cb156e2022-02-11 10:48:56 -080040 eeprom@51 {
41 compatible = "atmel,24c02";
42 reg = <0x51>;
43 pagesize = <16>;
44 };
45};
46
47&i2c2 {
48 clock-frequency = <400000>;
49 pinctrl-names = "default";
50 pinctrl-0 = <&pinctrl_i2c2>;
51 status = "okay";
52
53 eeprom@52 {
54 compatible = "atmel,24c32";
55 reg = <0x52>;
56 pagesize = <32>;
57 };
58};
59
60/* console */
61&uart2 {
62 pinctrl-names = "default";
63 pinctrl-0 = <&pinctrl_uart2>;
64 status = "okay";
65};
66
67/* eMMC */
68&usdhc3 {
69 assigned-clocks = <&clk IMX8MN_CLK_USDHC3_ROOT>;
70 assigned-clock-rates = <400000000>;
71 pinctrl-names = "default", "state_100mhz", "state_200mhz";
72 pinctrl-0 = <&pinctrl_usdhc3>;
73 pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
74 pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
75 bus-width = <8>;
76 non-removable;
77 status = "okay";
78};
79
80&wdog1 {
81 pinctrl-names = "default";
82 pinctrl-0 = <&pinctrl_wdog>;
83 fsl,ext-reset-output;
84 status = "okay";
85};
86
87&iomuxc {
88 pinctrl_i2c1: i2c1grp {
89 fsl,pins = <
90 MX8MN_IOMUXC_I2C1_SCL_I2C1_SCL 0x400001c3
91 MX8MN_IOMUXC_I2C1_SDA_I2C1_SDA 0x400001c3
92 >;
93 };
94
Tim Harvey3041e092022-11-11 08:03:07 -080095 pinctrl_i2c1_gpio: i2c1grp-gpio-grp {
96 fsl,pins = <
97 MX8MN_IOMUXC_I2C1_SCL_GPIO5_IO14 0x400001c3
98 MX8MN_IOMUXC_I2C1_SDA_GPIO5_IO15 0x400001c3
99 >;
100 };
101
Tim Harvey2cb156e2022-02-11 10:48:56 -0800102 pinctrl_i2c2: i2c2grp {
103 fsl,pins = <
104 MX8MN_IOMUXC_I2C2_SCL_I2C2_SCL 0x400001c3
105 MX8MN_IOMUXC_I2C2_SDA_I2C2_SDA 0x400001c3
106 >;
107 };
108
109 pinctrl_uart2: uart2grp {
110 fsl,pins = <
111 MX8MN_IOMUXC_UART2_RXD_UART2_DCE_RX 0x140
112 MX8MN_IOMUXC_UART2_TXD_UART2_DCE_TX 0x140
113 >;
114 };
115
116 pinctrl_usdhc3: usdhc3grp {
117 fsl,pins = <
118 MX8MN_IOMUXC_NAND_WE_B_USDHC3_CLK 0x190
119 MX8MN_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d0
120 MX8MN_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d0
121 MX8MN_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d0
122 MX8MN_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d0
123 MX8MN_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d0
124 MX8MN_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d0
125 MX8MN_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d0
126 MX8MN_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d0
127 MX8MN_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d0
128 MX8MN_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x190
129 >;
130 };
131
132 pinctrl_usdhc3_100mhz: usdhc3grp100mhz {
133 fsl,pins = <
134 MX8MN_IOMUXC_NAND_WE_B_USDHC3_CLK 0x194
135 MX8MN_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d4
136 MX8MN_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d4
137 MX8MN_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d4
138 MX8MN_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d4
139 MX8MN_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d4
140 MX8MN_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d4
141 MX8MN_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d4
142 MX8MN_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d4
143 MX8MN_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d4
144 MX8MN_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x194
145 >;
146 };
147
148 pinctrl_usdhc3_200mhz: usdhc3grp200mhz {
149 fsl,pins = <
150 MX8MN_IOMUXC_NAND_WE_B_USDHC3_CLK 0x196
151 MX8MN_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d6
152 MX8MN_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d6
153 MX8MN_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d6
154 MX8MN_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d6
155 MX8MN_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d6
156 MX8MN_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d6
157 MX8MN_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d6
158 MX8MN_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d6
159 MX8MN_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d6
160 MX8MN_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x196
161 >;
162 };
163
164 pinctrl_wdog: wdoggrp {
165 fsl,pins = <
166 MX8MN_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0xc6
167 >;
168 };
169};