blob: 5c8e4e81752f9ef826a956d9a49d62ef62a6c967 [file] [log] [blame]
Ariel D'Alessandroc4c1ed62021-11-23 13:33:30 -03001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright 2019-2020 Variscite Ltd.
4 * Copyright (C) 2020 Krzysztof Kozlowski <krzk@kernel.org>
5 */
6
7/dts-v1/;
8
9#include "imx8mn-var-som.dtsi"
10
11/ {
12 model = "Variscite VAR-SOM-MX8MN Symphony evaluation board";
13 compatible = "variscite,var-som-mx8mn-symphony", "variscite,var-som-mx8mn", "fsl,imx8mn";
14
15 reg_usdhc2_vmmc: regulator-usdhc2-vmmc {
16 compatible = "regulator-fixed";
17 pinctrl-names = "default";
18 pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>;
19 regulator-name = "VSD_3V3";
20 regulator-min-microvolt = <3300000>;
21 regulator-max-microvolt = <3300000>;
22 gpio = <&gpio4 22 GPIO_ACTIVE_HIGH>;
23 enable-active-high;
24 };
25
26 gpio-keys {
27 compatible = "gpio-keys";
28
Marcel Ziswilerf067b592022-11-07 22:22:40 +010029 key-back {
Ariel D'Alessandroc4c1ed62021-11-23 13:33:30 -030030 label = "Back";
31 gpios = <&pca9534 1 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_BACK>;
33 };
34
Marcel Ziswilerf067b592022-11-07 22:22:40 +010035 key-home {
Ariel D'Alessandroc4c1ed62021-11-23 13:33:30 -030036 label = "Home";
37 gpios = <&pca9534 2 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_HOME>;
39 };
40
Marcel Ziswilerf067b592022-11-07 22:22:40 +010041 key-menu {
Ariel D'Alessandroc4c1ed62021-11-23 13:33:30 -030042 label = "Menu";
43 gpios = <&pca9534 3 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_MENU>;
45 };
46 };
47
48 leds {
49 compatible = "gpio-leds";
50
51 led {
52 label = "Heartbeat";
53 gpios = <&pca9534 0 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "heartbeat";
55 };
56 };
57};
58
Ariel D'Alessandroc4c1ed62021-11-23 13:33:30 -030059&i2c2 {
60 clock-frequency = <400000>;
61 pinctrl-names = "default";
62 pinctrl-0 = <&pinctrl_i2c2>;
63 status = "okay";
64
65 pca9534: gpio@20 {
66 compatible = "nxp,pca9534";
67 reg = <0x20>;
68 gpio-controller;
69 pinctrl-names = "default";
70 pinctrl-0 = <&pinctrl_pca9534>;
71 interrupt-parent = <&gpio1>;
72 interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
73 #gpio-cells = <2>;
74 wakeup-source;
75
76 /* USB 3.0 OTG (usbotg1) / SATA port switch, set to USB 3.0 */
77 usb3-sata-sel-hog {
78 gpio-hog;
79 gpios = <4 GPIO_ACTIVE_HIGH>;
80 output-low;
81 line-name = "usb3_sata_sel";
82 };
83
84 som-vselect-hog {
85 gpio-hog;
86 gpios = <6 GPIO_ACTIVE_HIGH>;
87 output-low;
88 line-name = "som_vselect";
89 };
90
91 enet-sel-hog {
92 gpio-hog;
93 gpios = <7 GPIO_ACTIVE_HIGH>;
94 output-low;
95 line-name = "enet_sel";
96 };
97 };
98
99 extcon_usbotg1: typec@3d {
100 compatible = "nxp,ptn5150";
101 reg = <0x3d>;
102 interrupt-parent = <&gpio1>;
103 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
104 pinctrl-names = "default";
105 pinctrl-0 = <&pinctrl_ptn5150>;
106 status = "okay";
107 };
108};
109
110&i2c3 {
111 /* Capacitive touch controller */
112 ft5x06_ts: touchscreen@38 {
113 compatible = "edt,edt-ft5406";
114 reg = <0x38>;
115 pinctrl-names = "default";
116 pinctrl-0 = <&pinctrl_captouch>;
117 interrupt-parent = <&gpio5>;
118 interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
119
120 touchscreen-size-x = <800>;
121 touchscreen-size-y = <480>;
122 touchscreen-inverted-x;
123 touchscreen-inverted-y;
124 };
125
126 rtc@68 {
127 compatible = "dallas,ds1337";
128 reg = <0x68>;
129 };
130};
131
132/* Header */
133&uart1 {
134 pinctrl-names = "default";
135 pinctrl-0 = <&pinctrl_uart1>;
136 status = "okay";
137};
138
139/* Header */
140&uart3 {
141 pinctrl-names = "default";
142 pinctrl-0 = <&pinctrl_uart3>;
143 status = "okay";
144};
145
146&usbotg1 {
147 disable-over-current;
148 extcon = <&extcon_usbotg1>, <&extcon_usbotg1>;
149};
150
151&pinctrl_fec1 {
152 fsl,pins = <
153 MX8MN_IOMUXC_ENET_MDC_ENET1_MDC 0x3
154 MX8MN_IOMUXC_ENET_MDIO_ENET1_MDIO 0x3
155 MX8MN_IOMUXC_ENET_TD3_ENET1_RGMII_TD3 0x1f
156 MX8MN_IOMUXC_ENET_TD2_ENET1_RGMII_TD2 0x1f
157 MX8MN_IOMUXC_ENET_TD1_ENET1_RGMII_TD1 0x1f
158 MX8MN_IOMUXC_ENET_TD0_ENET1_RGMII_TD0 0x1f
159 MX8MN_IOMUXC_ENET_RD3_ENET1_RGMII_RD3 0x91
160 MX8MN_IOMUXC_ENET_RD2_ENET1_RGMII_RD2 0x91
161 MX8MN_IOMUXC_ENET_RD1_ENET1_RGMII_RD1 0x91
162 MX8MN_IOMUXC_ENET_RD0_ENET1_RGMII_RD0 0x91
163 MX8MN_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f
164 MX8MN_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91
165 MX8MN_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91
166 MX8MN_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f
167 /* Remove the MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO9 as not used */
168 >;
169};
170
171&pinctrl_fec1_sleep {
172 fsl,pins = <
173 MX8MN_IOMUXC_ENET_MDC_GPIO1_IO16 0x120
174 MX8MN_IOMUXC_ENET_MDIO_GPIO1_IO17 0x120
175 MX8MN_IOMUXC_ENET_TD3_GPIO1_IO18 0x120
176 MX8MN_IOMUXC_ENET_TD2_GPIO1_IO19 0x120
177 MX8MN_IOMUXC_ENET_TD1_GPIO1_IO20 0x120
178 MX8MN_IOMUXC_ENET_TD0_GPIO1_IO21 0x120
179 MX8MN_IOMUXC_ENET_RD3_GPIO1_IO29 0x120
180 MX8MN_IOMUXC_ENET_RD2_GPIO1_IO28 0x120
181 MX8MN_IOMUXC_ENET_RD1_GPIO1_IO27 0x120
182 MX8MN_IOMUXC_ENET_RD0_GPIO1_IO26 0x120
183 MX8MN_IOMUXC_ENET_TXC_GPIO1_IO23 0x120
184 MX8MN_IOMUXC_ENET_RXC_GPIO1_IO25 0x120
185 MX8MN_IOMUXC_ENET_RX_CTL_GPIO1_IO24 0x120
186 MX8MN_IOMUXC_ENET_TX_CTL_GPIO1_IO22 0x120
187 /* Remove the MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO9 as not used */
188 >;
189};
190
191&iomuxc {
192 pinctrl_captouch: captouchgrp {
193 fsl,pins = <
194 MX8MN_IOMUXC_SPDIF_RX_GPIO5_IO4 0x16
195 >;
196 };
197
198 pinctrl_i2c2: i2c2grp {
199 fsl,pins = <
200 MX8MN_IOMUXC_I2C2_SCL_I2C2_SCL 0x400001c3
201 MX8MN_IOMUXC_I2C2_SDA_I2C2_SDA 0x400001c3
202 >;
203 };
204
205 pinctrl_pca9534: pca9534grp {
206 fsl,pins = <
207 MX8MN_IOMUXC_GPIO1_IO07_GPIO1_IO7 0x16
208 >;
209 };
210
211 pinctrl_ptn5150: ptn5150grp {
212 fsl,pins = <
213 MX8MN_IOMUXC_GPIO1_IO11_GPIO1_IO11 0x16
214 >;
215 };
216
217 pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp {
218 fsl,pins = <
219 MX8MN_IOMUXC_SAI2_RXC_GPIO4_IO22 0x41
220 >;
221 };
222
223 pinctrl_uart1: uart1grp {
224 fsl,pins = <
225 MX8MN_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140
226 MX8MN_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140
227 >;
228 };
229
230 pinctrl_uart3: uart3grp {
231 fsl,pins = <
232 MX8MN_IOMUXC_UART3_RXD_UART3_DCE_RX 0x140
233 MX8MN_IOMUXC_UART3_TXD_UART3_DCE_TX 0x140
234 >;
235 };
236};