1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Supports Symphony evaluation board versions >= 1.4a.
5 * Copyright 2019-2020 Variscite Ltd.
6 * Copyright (C) 2020 Krzysztof Kozlowski <krzk@kernel.org>
11 #include <dt-bindings/usb/pd.h>
12 #include "imx8mn-var-som.dtsi"
15 model = "Variscite VAR-SOM-MX8MN Symphony evaluation board";
16 compatible = "variscite,var-som-mx8mn-symphony", "variscite,var-som-mx8mn", "fsl,imx8mn";
18 reg_usdhc2_vmmc: regulator-usdhc2-vmmc {
19 compatible = "regulator-fixed";
20 pinctrl-names = "default";
21 pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>;
22 regulator-name = "VSD_3V3";
23 regulator-min-microvolt = <3300000>;
24 regulator-max-microvolt = <3300000>;
25 gpio = <&gpio4 22 GPIO_ACTIVE_HIGH>;
30 compatible = "gpio-keys";
34 gpios = <&pca9534 1 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_BACK>;
40 gpios = <&pca9534 2 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_HOME>;
46 gpios = <&pca9534 3 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_MENU>;
52 compatible = "gpio-leds";
56 gpios = <&pca9534 0 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "heartbeat";
61 /* Peripherals supply, enabled by Q2 after SOM_3V3 rises. */
62 reg_per_3v3: regulator-peripheral-3v3 {
63 compatible = "regulator-fixed";
64 regulator-name = "per_3v3";
65 regulator-min-microvolt = <3300000>;
66 regulator-max-microvolt = <3300000>;
72 reset-gpios = <&pca9534 5 GPIO_ACTIVE_HIGH>;
76 clock-frequency = <400000>;
77 pinctrl-names = "default";
78 pinctrl-0 = <&pinctrl_i2c2>;
82 compatible = "nxp,pca9534";
85 pinctrl-names = "default";
86 pinctrl-0 = <&pinctrl_pca9534>;
87 interrupt-parent = <&gpio1>;
88 interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
91 vcc-supply = <®_per_3v3>;
93 /* USB 3.0 OTG (usbotg1) / SATA port switch, set to USB 3.0 */
96 gpios = <4 GPIO_ACTIVE_HIGH>;
98 line-name = "usb3_sata_sel";
103 gpios = <6 GPIO_ACTIVE_HIGH>;
105 line-name = "som_vselect";
110 gpios = <7 GPIO_ACTIVE_HIGH>;
112 line-name = "enet_sel";
117 * For Symphony board version <= 1.4, the PTN5150 IRQ pin is connected
118 * to GPIO1_IO11 on the SoM (R106 present, R132 absent). From Symphony
119 * board version >= 1.4a, the PTN5150 ID pin is connected to GPIO1_IO11
120 * on the SoM (R106 absent, R132 present).
122 extcon_usbotg1: typec@3d {
123 compatible = "nxp,ptn5150";
125 interrupt-parent = <&gpio1>;
126 interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
127 pinctrl-names = "default";
128 pinctrl-0 = <&pinctrl_ptn5150>;
132 typec1_dr_sw: endpoint {
133 remote-endpoint = <&usb1_drd_sw>;
140 /* Capacitive touch controller */
141 ft5x06_ts: touchscreen@38 {
142 compatible = "edt,edt-ft5406";
144 pinctrl-names = "default";
145 pinctrl-0 = <&pinctrl_captouch>;
146 interrupt-parent = <&gpio5>;
147 interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
149 touchscreen-size-x = <800>;
150 touchscreen-size-y = <480>;
151 touchscreen-inverted-x;
152 touchscreen-inverted-y;
156 compatible = "dallas,ds1337";
163 pinctrl-names = "default";
164 pinctrl-0 = <&pinctrl_uart1>;
170 pinctrl-names = "default";
171 pinctrl-0 = <&pinctrl_uart3>;
181 disable-over-current;
182 samsung,picophy-pre-emp-curr-control = <3>;
183 samsung,picophy-dc-vol-level-adjust = <7>;
187 usb1_drd_sw: endpoint {
188 remote-endpoint = <&typec1_dr_sw>;
194 pinctrl_captouch: captouchgrp {
196 MX8MN_IOMUXC_SPDIF_RX_GPIO5_IO4 0x16
200 pinctrl_i2c2: i2c2grp {
202 MX8MN_IOMUXC_I2C2_SCL_I2C2_SCL 0x400001c3
203 MX8MN_IOMUXC_I2C2_SDA_I2C2_SDA 0x400001c3
207 pinctrl_pca9534: pca9534grp {
209 MX8MN_IOMUXC_GPIO1_IO07_GPIO1_IO7 0x16
213 pinctrl_ptn5150: ptn5150grp {
215 MX8MN_IOMUXC_GPIO1_IO11_GPIO1_IO11 0x16
219 pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp {
221 MX8MN_IOMUXC_SAI2_RXC_GPIO4_IO22 0x41
225 pinctrl_uart1: uart1grp {
227 MX8MN_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140
228 MX8MN_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140
232 pinctrl_uart3: uart3grp {
234 MX8MN_IOMUXC_UART3_RXD_UART3_DCE_RX 0x140
235 MX8MN_IOMUXC_UART3_TXD_UART3_DCE_TX 0x140