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>; 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 spidev0: spi@0 { 119 compatible = "spidev"; 120 reg = <0>; 121 spi-max-frequency = <5000000>; 122 }; 123 124 spidev1: spi@1 { 125 compatible = "spidev"; 126 reg = <1>; 127 spi-max-frequency = <5000000>; 128 }; 129}; 130 131&i2c1 { 132 pinctrl-names = "default"; 133 pinctrl-0 = <&pinctrl_i2c1>; 134 clock-frequency = <400000>; 135 status = "okay"; 136}; 137 138&i2c2 { 139 pinctrl-names = "default"; 140 pinctrl-0 = <&pinctrl_i2c2>; 141 clock-frequency = <400000>; 142 status = "okay"; 143}; 144 145&lcdif { 146 pinctrl-names = "default"; 147 pinctrl-0 = <&pinctrl_lcdif>; 148 status = "okay"; 149 150 port { 151 lcdif_out: endpoint { 152 remote-endpoint = <&panel_in>; 153 }; 154 }; 155}; 156 157&pwm3 { 158 #pwm-cells = <2>; 159 pinctrl-names = "default"; 160 pinctrl-0 = <&pinctrl_pwm3>; 161 status = "okay"; 162}; 163 164&snvs_pwrkey { 165 status = "disabled"; 166}; 167 168&tsc { 169 pinctrl-names = "default"; 170 pinctrl-0 = <&pinctrl_tsc>; 171 xnur-gpio = <&gpio1 3 GPIO_ACTIVE_LOW>; 172 measure-delay-time = <0xffff>; 173 pre-charge-time = <0xffff>; 174 status = "okay"; 175}; 176 177&uart1 { 178 pinctrl-names = "default"; 179 pinctrl-0 = <&pinctrl_uart1>; 180 status = "okay"; 181}; 182 183&uart2 { 184 pinctrl-names = "default"; 185 pinctrl-0 = <&pinctrl_uart2>; 186 status = "okay"; 187}; 188 189&usbotg1 { 190 pinctrl-names = "default"; 191 pinctrl-0 = <&pinctrl_usbotg1_id>; 192 vbus-supply = <®_usbotg1_vbus>; 193 dr_mode = "otg"; 194 disable-over-current; 195 status = "okay"; 196}; 197 198&usbotg2 { 199 vbus-supply = <®_usbotg2_vbus>; 200 dr_mode = "host"; 201 disable-over-current; 202 status = "okay"; 203}; 204 205&iomuxc { 206 pinctrl-names = "default"; 207 pinctrl-0 = <&pinctrl_gpios>; 208 209 pinctrl_ecspi4: ecspi4grp { 210 fsl,pins = < 211 MX6UL_PAD_NAND_DATA04__ECSPI4_SCLK 0x1b0b0 212 MX6UL_PAD_NAND_DATA05__ECSPI4_MOSI 0x1b0b0 213 MX6UL_PAD_NAND_DATA06__ECSPI4_MISO 0x1b0b0 214 MX6UL_PAD_NAND_DATA01__GPIO4_IO03 0x1b0b0 215 MX6UL_PAD_NAND_DATA07__GPIO4_IO09 0x1b0b0 216 >; 217 }; 218 219 pinctrl_flexcan1: flexcan1grp { 220 fsl,pins = < 221 MX6UL_PAD_UART3_CTS_B__FLEXCAN1_TX 0x0b0b0 222 MX6UL_PAD_UART3_RTS_B__FLEXCAN1_RX 0x0b0b0 223 >; 224 }; 225 226 pinctrl_flexcan2: flexcan2grp { 227 fsl,pins = < 228 MX6UL_PAD_UART2_CTS_B__FLEXCAN2_TX 0x0b0b0 229 MX6UL_PAD_UART2_RTS_B__FLEXCAN2_RX 0x0b0b0 230 >; 231 }; 232 233 pinctrl_gpios: gpiosgrp { 234 fsl,pins = < 235 MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x0b0b0 236 MX6UL_PAD_UART3_RX_DATA__GPIO1_IO25 0x0b0b0 237 MX6UL_PAD_UART3_TX_DATA__GPIO1_IO24 0x0b0b0 238 MX6UL_PAD_NAND_RE_B__GPIO4_IO00 0x0b0b0 239 MX6UL_PAD_GPIO1_IO08__GPIO1_IO08 0x0b0b0 240 MX6UL_PAD_UART1_CTS_B__GPIO1_IO18 0x0b0b0 241 MX6UL_PAD_UART1_RTS_B__GPIO1_IO19 0x0b0b0 242 MX6UL_PAD_NAND_WE_B__GPIO4_IO01 0x0b0b0 243 >; 244 }; 245 246 pinctrl_gpio_keys: gpiokeysgrp { 247 fsl,pins = < 248 MX6UL_PAD_ENET2_TX_DATA0__GPIO2_IO11 0x0b0b0 249 >; 250 }; 251 252 pinctrl_i2c1: i2c1grp { 253 fsl,pins = < 254 MX6UL_PAD_UART4_RX_DATA__I2C1_SDA 0x4001b8b0 255 MX6UL_PAD_UART4_TX_DATA__I2C1_SCL 0x4001b8b0 256 >; 257 }; 258 259 pinctrl_i2c2: i2c2grp { 260 fsl,pins = < 261 MX6UL_PAD_UART5_RX_DATA__I2C2_SDA 0x4001b8b0 262 MX6UL_PAD_UART5_TX_DATA__I2C2_SCL 0x4001b8b0 263 >; 264 }; 265 266 pinctrl_lcdif: lcdifgrp { 267 fsl,pins = < 268 MX6UL_PAD_LCD_CLK__LCDIF_CLK 0x100b1 269 MX6UL_PAD_LCD_ENABLE__LCDIF_ENABLE 0x100b1 270 MX6UL_PAD_LCD_HSYNC__LCDIF_HSYNC 0x100b1 271 MX6UL_PAD_LCD_VSYNC__LCDIF_VSYNC 0x100b1 272 MX6UL_PAD_LCD_DATA00__LCDIF_DATA00 0x100b1 273 MX6UL_PAD_LCD_DATA01__LCDIF_DATA01 0x100b1 274 MX6UL_PAD_LCD_DATA02__LCDIF_DATA02 0x100b1 275 MX6UL_PAD_LCD_DATA03__LCDIF_DATA03 0x100b1 276 MX6UL_PAD_LCD_DATA04__LCDIF_DATA04 0x100b1 277 MX6UL_PAD_LCD_DATA05__LCDIF_DATA05 0x100b1 278 MX6UL_PAD_LCD_DATA06__LCDIF_DATA06 0x100b1 279 MX6UL_PAD_LCD_DATA07__LCDIF_DATA07 0x100b1 280 MX6UL_PAD_LCD_DATA08__LCDIF_DATA08 0x100b1 281 MX6UL_PAD_LCD_DATA09__LCDIF_DATA09 0x100b1 282 MX6UL_PAD_LCD_DATA10__LCDIF_DATA10 0x100b1 283 MX6UL_PAD_LCD_DATA11__LCDIF_DATA11 0x100b1 284 MX6UL_PAD_LCD_DATA12__LCDIF_DATA12 0x100b1 285 MX6UL_PAD_LCD_DATA13__LCDIF_DATA13 0x100b1 286 MX6UL_PAD_LCD_DATA14__LCDIF_DATA14 0x100b1 287 MX6UL_PAD_LCD_DATA15__LCDIF_DATA15 0x100b1 288 MX6UL_PAD_LCD_DATA16__LCDIF_DATA16 0x100b1 289 MX6UL_PAD_LCD_DATA17__LCDIF_DATA17 0x100b1 290 >; 291 }; 292 293 pinctrl_led: ledgrp { 294 fsl,pins = < 295 MX6UL_PAD_LCD_RESET__GPIO3_IO04 0x0b0b0 296 >; 297 }; 298 299 pinctrl_pwm3: pwm3grp { 300 fsl,pins = < 301 MX6UL_PAD_NAND_ALE__PWM3_OUT 0x1b0b0 302 >; 303 }; 304 305 pinctrl_tsc: tscgrp { 306 fsl,pins = < 307 MX6UL_PAD_GPIO1_IO01__GPIO1_IO01 0xb0 308 MX6UL_PAD_GPIO1_IO02__GPIO1_IO02 0xb0 309 MX6UL_PAD_GPIO1_IO03__GPIO1_IO03 0xb0 310 MX6UL_PAD_GPIO1_IO04__GPIO1_IO04 0xb0 311 >; 312 }; 313 314 pinctrl_uart1: uart1grp { 315 fsl,pins = < 316 MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1 317 MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b1 318 >; 319 }; 320 321 pinctrl_uart2: uart2grp { 322 fsl,pins = < 323 MX6UL_PAD_UART2_TX_DATA__UART2_DCE_TX 0x1b0b1 324 MX6UL_PAD_UART2_RX_DATA__UART2_DCE_RX 0x1b0b1 325 >; 326 }; 327 328 pinctrl_usbotg1_id: usbotg1idgrp { 329 fsl,pins = < 330 MX6UL_PAD_GPIO1_IO00__ANATOP_OTG1_ID 0x1b0b0 331 >; 332 }; 333 334 pinctrl_usbotg1_vbus: usbotg1vbusgrp { 335 fsl,pins = < 336 MX6UL_PAD_GPIO1_IO05__GPIO1_IO05 0x1b0b0 337 >; 338 }; 339}; 340