1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Supports Symphony evaluation board versions >= 1.4a. 4 * 5 * Copyright 2019-2020 Variscite Ltd. 6 * Copyright (C) 2020 Krzysztof Kozlowski <krzk@kernel.org> 7 */ 8 9/dts-v1/; 10 11#include <dt-bindings/usb/pd.h> 12#include "imx8mn-var-som.dtsi" 13 14/ { 15 model = "Variscite VAR-SOM-MX8MN Symphony evaluation board"; 16 compatible = "variscite,var-som-mx8mn-symphony", "variscite,var-som-mx8mn", "fsl,imx8mn"; 17 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>; 26 enable-active-high; 27 }; 28 29 gpio-keys { 30 compatible = "gpio-keys"; 31 32 key-back { 33 label = "Back"; 34 gpios = <&pca9534 1 GPIO_ACTIVE_LOW>; 35 linux,code = <KEY_BACK>; 36 }; 37 38 key-home { 39 label = "Home"; 40 gpios = <&pca9534 2 GPIO_ACTIVE_LOW>; 41 linux,code = <KEY_HOME>; 42 }; 43 44 key-menu { 45 label = "Menu"; 46 gpios = <&pca9534 3 GPIO_ACTIVE_LOW>; 47 linux,code = <KEY_MENU>; 48 }; 49 }; 50 51 leds { 52 compatible = "gpio-leds"; 53 54 led { 55 label = "Heartbeat"; 56 gpios = <&pca9534 0 GPIO_ACTIVE_LOW>; 57 linux,default-trigger = "heartbeat"; 58 }; 59 }; 60 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>; 67 regulator-always-on; 68 }; 69}; 70 71ðphy { 72 reset-gpios = <&pca9534 5 GPIO_ACTIVE_HIGH>; 73}; 74 75&i2c2 { 76 clock-frequency = <400000>; 77 pinctrl-names = "default"; 78 pinctrl-0 = <&pinctrl_i2c2>; 79 status = "okay"; 80 81 pca9534: gpio@20 { 82 compatible = "nxp,pca9534"; 83 reg = <0x20>; 84 gpio-controller; 85 pinctrl-names = "default"; 86 pinctrl-0 = <&pinctrl_pca9534>; 87 interrupt-parent = <&gpio1>; 88 interrupts = <7 IRQ_TYPE_EDGE_FALLING>; 89 #gpio-cells = <2>; 90 wakeup-source; 91 vcc-supply = <®_per_3v3>; 92 93 /* USB 3.0 OTG (usbotg1) / SATA port switch, set to USB 3.0 */ 94 usb3-sata-sel-hog { 95 gpio-hog; 96 gpios = <4 GPIO_ACTIVE_HIGH>; 97 output-low; 98 line-name = "usb3_sata_sel"; 99 }; 100 101 som-vselect-hog { 102 gpio-hog; 103 gpios = <6 GPIO_ACTIVE_HIGH>; 104 output-low; 105 line-name = "som_vselect"; 106 }; 107 108 enet-sel-hog { 109 gpio-hog; 110 gpios = <7 GPIO_ACTIVE_HIGH>; 111 output-low; 112 line-name = "enet_sel"; 113 }; 114 }; 115 116 /* 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). 121 */ 122 extcon_usbotg1: typec@3d { 123 compatible = "nxp,ptn5150"; 124 reg = <0x3d>; 125 interrupt-parent = <&gpio1>; 126 interrupts = <11 IRQ_TYPE_EDGE_FALLING>; 127 pinctrl-names = "default"; 128 pinctrl-0 = <&pinctrl_ptn5150>; 129 status = "okay"; 130 131 connector { 132 compatible = "usb-c-connector"; 133 label = "USB-C"; 134 135 port { 136 typec1_dr_sw: endpoint { 137 remote-endpoint = <&usb1_drd_sw>; 138 }; 139 }; 140 }; 141 }; 142}; 143 144&i2c3 { 145 /* Capacitive touch controller */ 146 ft5x06_ts: touchscreen@38 { 147 compatible = "edt,edt-ft5406"; 148 reg = <0x38>; 149 pinctrl-names = "default"; 150 pinctrl-0 = <&pinctrl_captouch>; 151 interrupt-parent = <&gpio5>; 152 interrupts = <4 IRQ_TYPE_LEVEL_HIGH>; 153 154 touchscreen-size-x = <800>; 155 touchscreen-size-y = <480>; 156 touchscreen-inverted-x; 157 touchscreen-inverted-y; 158 }; 159 160 rtc@68 { 161 compatible = "dallas,ds1337"; 162 reg = <0x68>; 163 }; 164}; 165 166/* Header */ 167&uart1 { 168 pinctrl-names = "default"; 169 pinctrl-0 = <&pinctrl_uart1>; 170 status = "okay"; 171}; 172 173/* Header */ 174&uart3 { 175 pinctrl-names = "default"; 176 pinctrl-0 = <&pinctrl_uart3>; 177 status = "okay"; 178}; 179 180&usbotg1 { 181 dr_mode = "otg"; 182 hnp-disable; 183 srp-disable; 184 adp-disable; 185 usb-role-switch; 186 disable-over-current; 187 samsung,picophy-pre-emp-curr-control = <3>; 188 samsung,picophy-dc-vol-level-adjust = <7>; 189 status = "okay"; 190 191 port { 192 usb1_drd_sw: endpoint { 193 remote-endpoint = <&typec1_dr_sw>; 194 }; 195 }; 196}; 197 198&iomuxc { 199 pinctrl_captouch: captouchgrp { 200 fsl,pins = < 201 MX8MN_IOMUXC_SPDIF_RX_GPIO5_IO4 0x16 202 >; 203 }; 204 205 pinctrl_i2c2: i2c2grp { 206 fsl,pins = < 207 MX8MN_IOMUXC_I2C2_SCL_I2C2_SCL 0x400001c3 208 MX8MN_IOMUXC_I2C2_SDA_I2C2_SDA 0x400001c3 209 >; 210 }; 211 212 pinctrl_pca9534: pca9534grp { 213 fsl,pins = < 214 MX8MN_IOMUXC_GPIO1_IO07_GPIO1_IO7 0x16 215 >; 216 }; 217 218 pinctrl_ptn5150: ptn5150grp { 219 fsl,pins = < 220 MX8MN_IOMUXC_GPIO1_IO11_GPIO1_IO11 0x16 221 >; 222 }; 223 224 pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp { 225 fsl,pins = < 226 MX8MN_IOMUXC_SAI2_RXC_GPIO4_IO22 0x41 227 >; 228 }; 229 230 pinctrl_uart1: uart1grp { 231 fsl,pins = < 232 MX8MN_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140 233 MX8MN_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140 234 >; 235 }; 236 237 pinctrl_uart3: uart3grp { 238 fsl,pins = < 239 MX8MN_IOMUXC_UART3_RXD_UART3_DCE_RX 0x140 240 MX8MN_IOMUXC_UART3_TXD_UART3_DCE_TX 0x140 241 >; 242 }; 243}; 244