1// SPDX-License-Identifier: GPL-2.0 OR MIT 2// 3// Copyright 2019 Armadeus Systems <support@armadeus.com> 4 5/ { 6 chosen { 7 stdout-path = &uart1; 8 }; 9 10 backlight: backlight { 11 compatible = "pwm-backlight"; 12 pwms = <&pwm3 0 191000 0>; 13 brightness-levels = <0 4 8 16 32 64 128 255>; 14 default-brightness-level = <7>; 15 power-supply = <®_5v>; 16 status = "okay"; 17 }; 18 19 gpio-keys { 20 compatible = "gpio-keys"; 21 pinctrl-names = "default"; 22 pinctrl-0 = <&pinctrl_gpio_keys>; 23 24 user-button { 25 label = "User button"; 26 gpios = <&gpio2 11 GPIO_ACTIVE_LOW>; 27 linux,code = <BTN_MISC>; 28 wakeup-source; 29 }; 30 }; 31 32 leds { 33 compatible = "gpio-leds"; 34 35 user-led { 36 label = "User"; 37 pinctrl-names = "default"; 38 pinctrl-0 = <&pinctrl_led>; 39 gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>; 40 linux,default-trigger = "heartbeat"; 41 }; 42 }; 43 44 onewire { 45 compatible = "w1-gpio"; 46 pinctrl-names = "default"; 47 pinctrl-0 = <&pinctrl_w1>; 48 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; 49 }; 50 51 panel: panel { 52 compatible = "armadeus,st0700-adapt"; 53 power-supply = <®_3v3>; 54 backlight = <&backlight>; 55 56 port { 57 panel_in: endpoint { 58 remote-endpoint = <&lcdif_out>; 59 }; 60 }; 61 }; 62 63 reg_5v: regulator-5v { 64 compatible = "regulator-fixed"; 65 regulator-name = "5V"; 66 regulator-min-microvolt = <5000000>; 67 regulator-max-microvolt = <5000000>; 68 }; 69 70 reg_usbotg1_vbus: regulator-usbotg1vbus { 71 compatible = "regulator-fixed"; 72 regulator-name = "usbotg1vbus"; 73 regulator-min-microvolt = <5000000>; 74 regulator-max-microvolt = <5000000>; 75 pinctrl-names = "default"; 76 pinctrl-0 = <&pinctrl_usbotg1_vbus>; 77 gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>; 78 enable-active-high; 79 }; 80 81 reg_usbotg2_vbus: regulator-usbotg2vbus { 82 compatible = "regulator-fixed"; 83 regulator-name = "usbotg2vbus"; 84 regulator-min-microvolt = <5000000>; 85 regulator-max-microvolt = <5000000>; 86 pinctrl-names = "default"; 87 pinctrl-0 = <&pinctrl_usbotg2_vbus>; 88 gpio = <&gpio5 9 GPIO_ACTIVE_HIGH>; 89 enable-active-high; 90 }; 91}; 92 93&adc1 { 94 vref-supply = <®_3v3>; 95 status = "okay"; 96}; 97 98&can1 { 99 pinctrl-names = "default"; 100 pinctrl-0 = <&pinctrl_flexcan1>; 101 xceiver-supply = <®_5v>; 102 status = "okay"; 103}; 104 105&can2 { 106 pinctrl-names = "default"; 107 pinctrl-0 = <&pinctrl_flexcan2>; 108 xceiver-supply = <®_5v>; 109 status = "okay"; 110}; 111 112&ecspi4 { 113 pinctrl-names = "default"; 114 pinctrl-0 = <&pinctrl_ecspi4>; 115 cs-gpios = <&gpio4 9 GPIO_ACTIVE_LOW>, <&gpio4 3 GPIO_ACTIVE_LOW>; 116 status = "okay"; 117}; 118 119&i2c1 { 120 pinctrl-names = "default"; 121 pinctrl-0 = <&pinctrl_i2c1>; 122 clock-frequency = <400000>; 123 status = "okay"; 124}; 125 126&i2c2 { 127 pinctrl-names = "default"; 128 pinctrl-0 = <&pinctrl_i2c2>; 129 clock-frequency = <400000>; 130 status = "okay"; 131}; 132 133&lcdif { 134 pinctrl-names = "default"; 135 pinctrl-0 = <&pinctrl_lcdif>; 136 status = "okay"; 137 138 port { 139 lcdif_out: endpoint { 140 remote-endpoint = <&panel_in>; 141 }; 142 }; 143}; 144 145&pwm3 { 146 pinctrl-names = "default"; 147 pinctrl-0 = <&pinctrl_pwm3>; 148 status = "okay"; 149}; 150 151&snvs_pwrkey { 152 status = "disabled"; 153}; 154 155&tsc { 156 pinctrl-names = "default"; 157 pinctrl-0 = <&pinctrl_tsc>; 158 xnur-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; 159 measure-delay-time = <0xffff>; 160 pre-charge-time = <0xffff>; 161 status = "okay"; 162}; 163 164&uart1 { 165 pinctrl-names = "default"; 166 pinctrl-0 = <&pinctrl_uart1>; 167 status = "okay"; 168}; 169 170&uart2 { 171 pinctrl-names = "default"; 172 pinctrl-0 = <&pinctrl_uart2>; 173 status = "okay"; 174}; 175 176&usbotg1 { 177 pinctrl-names = "default"; 178 pinctrl-0 = <&pinctrl_usbotg1_id>; 179 vbus-supply = <®_usbotg1_vbus>; 180 dr_mode = "otg"; 181 disable-over-current; 182 status = "okay"; 183}; 184 185&usbotg2 { 186 vbus-supply = <®_usbotg2_vbus>; 187 dr_mode = "host"; 188 disable-over-current; 189 status = "okay"; 190}; 191 192&iomuxc { 193 pinctrl-names = "default"; 194 pinctrl-0 = <&pinctrl_gpios>; 195 196 pinctrl_ecspi4: ecspi4grp { 197 fsl,pins = < 198 MX6UL_PAD_NAND_DATA04__ECSPI4_SCLK 0x1b0b0 199 MX6UL_PAD_NAND_DATA05__ECSPI4_MOSI 0x1b0b0 200 MX6UL_PAD_NAND_DATA06__ECSPI4_MISO 0x1b0b0 201 MX6UL_PAD_NAND_DATA01__GPIO4_IO03 0x1b0b0 202 MX6UL_PAD_NAND_DATA07__GPIO4_IO09 0x1b0b0 203 >; 204 }; 205 206 pinctrl_flexcan1: flexcan1grp { 207 fsl,pins = < 208 MX6UL_PAD_UART3_CTS_B__FLEXCAN1_TX 0x0b0b0 209 MX6UL_PAD_UART3_RTS_B__FLEXCAN1_RX 0x0b0b0 210 >; 211 }; 212 213 pinctrl_flexcan2: flexcan2grp { 214 fsl,pins = < 215 MX6UL_PAD_UART2_CTS_B__FLEXCAN2_TX 0x0b0b0 216 MX6UL_PAD_UART2_RTS_B__FLEXCAN2_RX 0x0b0b0 217 >; 218 }; 219 220 pinctrl_gpios: gpiosgrp { 221 fsl,pins = < 222 MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x0b0b0 223 MX6UL_PAD_UART3_RX_DATA__GPIO1_IO25 0x0b0b0 224 MX6UL_PAD_UART3_TX_DATA__GPIO1_IO24 0x0b0b0 225 MX6UL_PAD_NAND_RE_B__GPIO4_IO00 0x0b0b0 226 MX6UL_PAD_GPIO1_IO08__GPIO1_IO08 0x0b0b0 227 MX6UL_PAD_UART1_CTS_B__GPIO1_IO18 0x0b0b0 228 MX6UL_PAD_UART1_RTS_B__GPIO1_IO19 0x0b0b0 229 MX6UL_PAD_NAND_WE_B__GPIO4_IO01 0x0b0b0 230 >; 231 }; 232 233 pinctrl_gpio_keys: gpiokeysgrp { 234 fsl,pins = < 235 MX6UL_PAD_ENET2_TX_DATA0__GPIO2_IO11 0x0b0b0 236 >; 237 }; 238 239 pinctrl_i2c1: i2c1grp { 240 fsl,pins = < 241 MX6UL_PAD_UART4_RX_DATA__I2C1_SDA 0x4001b8b0 242 MX6UL_PAD_UART4_TX_DATA__I2C1_SCL 0x4001b8b0 243 >; 244 }; 245 246 pinctrl_i2c2: i2c2grp { 247 fsl,pins = < 248 MX6UL_PAD_UART5_RX_DATA__I2C2_SDA 0x4001b8b0 249 MX6UL_PAD_UART5_TX_DATA__I2C2_SCL 0x4001b8b0 250 >; 251 }; 252 253 pinctrl_lcdif: lcdifgrp { 254 fsl,pins = < 255 MX6UL_PAD_LCD_CLK__LCDIF_CLK 0x100b1 256 MX6UL_PAD_LCD_ENABLE__LCDIF_ENABLE 0x100b1 257 MX6UL_PAD_LCD_HSYNC__LCDIF_HSYNC 0x100b1 258 MX6UL_PAD_LCD_VSYNC__LCDIF_VSYNC 0x100b1 259 MX6UL_PAD_LCD_DATA00__LCDIF_DATA00 0x100b1 260 MX6UL_PAD_LCD_DATA01__LCDIF_DATA01 0x100b1 261 MX6UL_PAD_LCD_DATA02__LCDIF_DATA02 0x100b1 262 MX6UL_PAD_LCD_DATA03__LCDIF_DATA03 0x100b1 263 MX6UL_PAD_LCD_DATA04__LCDIF_DATA04 0x100b1 264 MX6UL_PAD_LCD_DATA05__LCDIF_DATA05 0x100b1 265 MX6UL_PAD_LCD_DATA06__LCDIF_DATA06 0x100b1 266 MX6UL_PAD_LCD_DATA07__LCDIF_DATA07 0x100b1 267 MX6UL_PAD_LCD_DATA08__LCDIF_DATA08 0x100b1 268 MX6UL_PAD_LCD_DATA09__LCDIF_DATA09 0x100b1 269 MX6UL_PAD_LCD_DATA10__LCDIF_DATA10 0x100b1 270 MX6UL_PAD_LCD_DATA11__LCDIF_DATA11 0x100b1 271 MX6UL_PAD_LCD_DATA12__LCDIF_DATA12 0x100b1 272 MX6UL_PAD_LCD_DATA13__LCDIF_DATA13 0x100b1 273 MX6UL_PAD_LCD_DATA14__LCDIF_DATA14 0x100b1 274 MX6UL_PAD_LCD_DATA15__LCDIF_DATA15 0x100b1 275 MX6UL_PAD_LCD_DATA16__LCDIF_DATA16 0x100b1 276 MX6UL_PAD_LCD_DATA17__LCDIF_DATA17 0x100b1 277 >; 278 }; 279 280 pinctrl_led: ledgrp { 281 fsl,pins = < 282 MX6UL_PAD_LCD_RESET__GPIO3_IO04 0x0b0b0 283 >; 284 }; 285 286 pinctrl_pwm3: pwm3grp { 287 fsl,pins = < 288 MX6UL_PAD_NAND_ALE__PWM3_OUT 0x1b0b0 289 >; 290 }; 291 292 pinctrl_tsc: tscgrp { 293 fsl,pins = < 294 MX6UL_PAD_GPIO1_IO01__GPIO1_IO01 0xb0 295 MX6UL_PAD_GPIO1_IO02__GPIO1_IO02 0xb0 296 MX6UL_PAD_GPIO1_IO03__GPIO1_IO03 0xb0 297 MX6UL_PAD_GPIO1_IO04__GPIO1_IO04 0xb0 298 >; 299 }; 300 301 pinctrl_uart1: uart1grp { 302 fsl,pins = < 303 MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1 304 MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b1 305 >; 306 }; 307 308 pinctrl_uart2: uart2grp { 309 fsl,pins = < 310 MX6UL_PAD_UART2_TX_DATA__UART2_DCE_TX 0x1b0b1 311 MX6UL_PAD_UART2_RX_DATA__UART2_DCE_RX 0x1b0b1 312 >; 313 }; 314 315 pinctrl_usbotg1_id: usbotg1idgrp { 316 fsl,pins = < 317 MX6UL_PAD_GPIO1_IO00__ANATOP_OTG1_ID 0x1b0b0 318 >; 319 }; 320 321 pinctrl_usbotg1_vbus: usbotg1vbusgrp { 322 fsl,pins = < 323 MX6UL_PAD_GPIO1_IO05__GPIO1_IO05 0x1b0b0 324 >; 325 }; 326}; 327