1// SPDX-License-Identifier: GPL-2.0 OR X11 2/* 3 * Copyright 2015 Boundary Devices, Inc. 4 */ 5#include <dt-bindings/gpio/gpio.h> 6#include <dt-bindings/input/input.h> 7 8/ { 9 chosen { 10 stdout-path = &uart2; 11 }; 12 13 memory@10000000 { 14 device_type = "memory"; 15 reg = <0x10000000 0x20000000>; 16 }; 17 18 reg_2p5v: regulator-2p5v { 19 compatible = "regulator-fixed"; 20 regulator-name = "2P5V"; 21 regulator-min-microvolt = <2500000>; 22 regulator-max-microvolt = <2500000>; 23 regulator-always-on; 24 }; 25 26 reg_3p3v: regulator-3p3v { 27 compatible = "regulator-fixed"; 28 regulator-name = "3P3V"; 29 regulator-min-microvolt = <3300000>; 30 regulator-max-microvolt = <3300000>; 31 regulator-always-on; 32 }; 33 34 reg_usb_otg_vbus: regulator-usb-otg-vbus { 35 compatible = "regulator-fixed"; 36 regulator-name = "usb_otg_vbus"; 37 regulator-min-microvolt = <5000000>; 38 regulator-max-microvolt = <5000000>; 39 gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>; 40 enable-active-high; 41 }; 42 43 reg_wlan_vmmc: regulator-wlan-vmmc { 44 compatible = "regulator-fixed"; 45 pinctrl-names = "default"; 46 pinctrl-0 = <&pinctrl_wlan_vmmc>; 47 regulator-name = "reg_wlan_vmmc"; 48 regulator-min-microvolt = <1800000>; 49 regulator-max-microvolt = <1800000>; 50 gpio = <&gpio6 7 GPIO_ACTIVE_HIGH>; 51 startup-delay-us = <70000>; 52 enable-active-high; 53 }; 54 55 gpio-keys { 56 compatible = "gpio-keys"; 57 pinctrl-names = "default"; 58 pinctrl-0 = <&pinctrl_gpio_keys>; 59 60 home { 61 label = "Home"; 62 gpios = <&gpio7 13 IRQ_TYPE_LEVEL_LOW>; 63 linux,code = <102>; 64 }; 65 66 back { 67 label = "Back"; 68 gpios = <&gpio4 5 IRQ_TYPE_LEVEL_LOW>; 69 linux,code = <158>; 70 }; 71 }; 72 73 leds { 74 compatible = "gpio-leds"; 75 pinctrl-names = "default"; 76 pinctrl-0 = <&pinctrl_leds>; 77 78 led-j14-pin1 { 79 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; 80 retain-state-suspended; 81 default-state = "off"; 82 }; 83 84 led-j14-pin3 { 85 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; 86 retain-state-suspended; 87 default-state = "off"; 88 }; 89 90 led-j14-pins8-9 { 91 gpios = <&gpio3 29 GPIO_ACTIVE_LOW>; 92 retain-state-suspended; 93 default-state = "off"; 94 }; 95 96 led-j46-pin2 { 97 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; 98 retain-state-suspended; 99 default-state = "off"; 100 }; 101 102 led-j46-pin3 { 103 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; 104 retain-state-suspended; 105 default-state = "off"; 106 }; 107 }; 108 109 backlight-lcd { 110 compatible = "pwm-backlight"; 111 pwms = <&pwm1 0 5000000 0>; 112 brightness-levels = <0 4 8 16 32 64 128 255>; 113 default-brightness-level = <7>; 114 power-supply = <®_3p3v>; 115 status = "okay"; 116 }; 117 118 backlight_lvds0: backlight-lvds0 { 119 compatible = "pwm-backlight"; 120 pwms = <&pwm4 0 5000000 0>; 121 brightness-levels = <0 4 8 16 32 64 128 255>; 122 default-brightness-level = <7>; 123 power-supply = <®_3p3v>; 124 status = "okay"; 125 }; 126 127 panel-lvds0 { 128 compatible = "hannstar,hsd100pxn1"; 129 backlight = <&backlight_lvds0>; 130 131 port { 132 panel_in_lvds0: endpoint { 133 remote-endpoint = <&lvds0_out>; 134 }; 135 }; 136 }; 137 138 sound { 139 compatible = "fsl,imx6dl-nit6xlite-sgtl5000", 140 "fsl,imx-audio-sgtl5000"; 141 model = "imx6dl-nit6xlite-sgtl5000"; 142 ssi-controller = <&ssi1>; 143 audio-codec = <&codec>; 144 audio-routing = 145 "MIC_IN", "Mic Jack", 146 "Mic Jack", "Mic Bias", 147 "Headphone Jack", "HP_OUT"; 148 mux-int-port = <1>; 149 mux-ext-port = <3>; 150 }; 151}; 152 153&audmux { 154 pinctrl-names = "default"; 155 pinctrl-0 = <&pinctrl_audmux>; 156 status = "okay"; 157}; 158 159&clks { 160 assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>, 161 <&clks IMX6QDL_CLK_LDB_DI1_SEL>; 162 assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>, 163 <&clks IMX6QDL_CLK_PLL3_USB_OTG>; 164}; 165 166&ecspi1 { 167 cs-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>; 168 pinctrl-names = "default"; 169 pinctrl-0 = <&pinctrl_ecspi1>; 170 status = "okay"; 171 172 flash: flash@0 { 173 compatible = "microchip,sst25vf016b"; 174 spi-max-frequency = <20000000>; 175 reg = <0>; 176 }; 177}; 178 179&fec { 180 pinctrl-names = "default"; 181 pinctrl-0 = <&pinctrl_enet>; 182 phy-mode = "rgmii"; 183 phy-handle = <ðphy>; 184 phy-reset-gpios = <&gpio1 27 GPIO_ACTIVE_LOW>; 185 /delete-property/ interrupts; 186 interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_HIGH>, 187 <&intc 0 119 IRQ_TYPE_LEVEL_HIGH>; 188 fsl,err006687-workaround-present; 189 status = "okay"; 190 191 mdio { 192 #address-cells = <1>; 193 #size-cells = <0>; 194 195 ethphy: ethernet-phy { 196 compatible = "ethernet-phy-ieee802.3-c22"; 197 txen-skew-ps = <0>; 198 txc-skew-ps = <3000>; 199 rxdv-skew-ps = <0>; 200 rxc-skew-ps = <3000>; 201 rxd0-skew-ps = <0>; 202 rxd1-skew-ps = <0>; 203 rxd2-skew-ps = <0>; 204 rxd3-skew-ps = <0>; 205 txd0-skew-ps = <0>; 206 txd1-skew-ps = <0>; 207 txd2-skew-ps = <0>; 208 txd3-skew-ps = <0>; 209 }; 210 }; 211}; 212 213&hdmi { 214 ddc-i2c-bus = <&i2c2>; 215 status = "okay"; 216}; 217 218&i2c1 { 219 clock-frequency = <100000>; 220 pinctrl-names = "default"; 221 pinctrl-0 = <&pinctrl_i2c1>; 222 status = "okay"; 223 224 codec: sgtl5000@a { 225 compatible = "fsl,sgtl5000"; 226 pinctrl-names = "default"; 227 pinctrl-0 = <&pinctrl_sgtl5000>; 228 reg = <0x0a>; 229 #sound-dai-cells = <0>; 230 clocks = <&clks IMX6QDL_CLK_CKO>; 231 VDDA-supply = <®_2p5v>; 232 VDDIO-supply = <®_3p3v>; 233 }; 234}; 235 236&i2c2 { 237 clock-frequency = <100000>; 238 pinctrl-names = "default"; 239 pinctrl-0 = <&pinctrl_i2c2>; 240 status = "okay"; 241}; 242 243&i2c3 { 244 clock-frequency = <100000>; 245 pinctrl-names = "default"; 246 pinctrl-0 = <&pinctrl_i2c3>; 247 status = "okay"; 248 249 touchscreen@4 { 250 compatible = "eeti,egalax_ts"; 251 reg = <0x04>; 252 interrupt-parent = <&gpio1>; 253 interrupts = <9 IRQ_TYPE_EDGE_FALLING>; 254 wakeup-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; 255 }; 256 257 touchscreen@38 { 258 compatible = "edt,edt-ft5x06"; 259 reg = <0x38>; 260 interrupt-parent = <&gpio1>; 261 interrupts = <9 IRQ_TYPE_EDGE_FALLING>; 262 wakeup-source; 263 }; 264 265 rtc@6f { 266 compatible = "isil,isl1208"; 267 pinctrl-names = "default"; 268 pinctrl-0 = <&pinctrl_rtc>; 269 reg = <0x6f>; 270 interrupts-extended = <&gpio2 26 IRQ_TYPE_LEVEL_LOW>; 271 }; 272}; 273 274&iomuxc { 275 pinctrl-names = "default"; 276 pinctrl-0 = <&pinctrl_j10>; 277 pinctrl-1 = <&pinctrl_j28>; 278 279 pinctrl_audmux: audmuxgrp { 280 fsl,pins = < 281 MX6QDL_PAD_CSI0_DAT7__AUD3_RXD 0x130b0 282 MX6QDL_PAD_CSI0_DAT4__AUD3_TXC 0x130b0 283 MX6QDL_PAD_CSI0_DAT5__AUD3_TXD 0x110b0 284 MX6QDL_PAD_CSI0_DAT6__AUD3_TXFS 0x130b0 285 >; 286 }; 287 288 pinctrl_ecspi1: ecspi1grp { 289 fsl,pins = < 290 MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1 291 MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1 292 MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1 293 MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x000b1 294 >; 295 }; 296 297 pinctrl_enet: enetgrp { 298 fsl,pins = < 299 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x100b0 300 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x100b0 301 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x100b0 302 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x100b0 303 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x100b0 304 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x100b0 305 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x100b0 306 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x100b0 307 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x100b0 308 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030 309 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030 310 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030 311 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030 312 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030 313 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030 314 /* Phy reset */ 315 MX6QDL_PAD_ENET_RXD0__GPIO1_IO27 0x0f0b0 316 MX6QDL_PAD_ENET_TX_EN__GPIO1_IO28 0x1b0b0 317 MX6QDL_PAD_GPIO_6__ENET_IRQ 0x000b1 318 >; 319 }; 320 321 pinctrl_gpio_keys: gpio-keysgrp { 322 fsl,pins = < 323 /* Home Button: J14 pin 5 */ 324 MX6QDL_PAD_GPIO_18__GPIO7_IO13 0x1b0b0 325 /* Back Button: J14 pin 7 */ 326 MX6QDL_PAD_GPIO_19__GPIO4_IO05 0x1b0b0 327 >; 328 }; 329 330 pinctrl_i2c1: i2c1grp { 331 fsl,pins = < 332 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1 333 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1 334 >; 335 }; 336 337 pinctrl_i2c2: i2c2grp { 338 fsl,pins = < 339 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1 340 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1 341 >; 342 }; 343 344 pinctrl_i2c3: i2c3grp { 345 fsl,pins = < 346 MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001b8b1 347 MX6QDL_PAD_GPIO_16__I2C3_SDA 0x4001b8b1 348 /* Touch IRQ: J7 pin 4 */ 349 MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x1b0b0 350 /* tcs2004 IRQ */ 351 MX6QDL_PAD_EIM_LBA__GPIO2_IO27 0x1b0b0 352 /* tsc2004 reset */ 353 MX6QDL_PAD_KEY_COL2__GPIO4_IO10 0x0b0b0 354 >; 355 }; 356 357 pinctrl_j10: j10grp { 358 fsl,pins = < 359 /* Broadcom WiFi module pins */ 360 MX6QDL_PAD_NANDF_D0__GPIO2_IO00 0x1b0b0 361 MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x1b0b0 362 MX6QDL_PAD_NANDF_D3__GPIO2_IO03 0x1b0b0 363 MX6QDL_PAD_NANDF_D4__GPIO2_IO04 0x1b0b0 364 MX6QDL_PAD_NANDF_WP_B__GPIO6_IO09 0x0b0b0 365 MX6QDL_PAD_NANDF_CS1__GPIO6_IO14 0x1b0b0 366 MX6QDL_PAD_SD1_CLK__OSC32K_32K_OUT 0x000b0 367 >; 368 }; 369 370 pinctrl_j28: j28grp { 371 fsl,pins = < 372 MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1b0b0 373 >; 374 }; 375 376 pinctrl_leds: ledsgrp { 377 fsl,pins = < 378 MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x0b0b0 379 MX6QDL_PAD_GPIO_3__GPIO1_IO03 0x0b0b0 380 MX6QDL_PAD_EIM_D29__GPIO3_IO29 0x030b0 381 MX6QDL_PAD_GPIO_7__GPIO1_IO07 0x0b0b0 382 MX6QDL_PAD_GPIO_8__GPIO1_IO08 0x0b0b0 383 >; 384 }; 385 386 pinctrl_pwm1: pwm1grp { 387 fsl,pins = < 388 MX6QDL_PAD_SD1_DAT3__PWM1_OUT 0x1b0b1 389 >; 390 }; 391 392 pinctrl_pwm3: pwm3grp { 393 fsl,pins = < 394 MX6QDL_PAD_SD1_DAT1__PWM3_OUT 0x1b0b1 395 >; 396 }; 397 398 pinctrl_pwm4: pwm4grp { 399 fsl,pins = < 400 MX6QDL_PAD_SD1_CMD__PWM4_OUT 0x1b0b1 401 >; 402 }; 403 404 pinctrl_wlan_vmmc: wlan-vmmcgrp { 405 fsl,pins = < 406 MX6QDL_PAD_NANDF_CLE__GPIO6_IO07 0x030b0 407 >; 408 }; 409 410 pinctrl_rtc: rtcgrp { 411 fsl,pins = < 412 MX6QDL_PAD_EIM_RW__GPIO2_IO26 0x1b0b0 413 >; 414 }; 415 416 pinctrl_sgtl5000: sgtl5000grp { 417 fsl,pins = < 418 MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x000b0 419 MX6QDL_PAD_EIM_A25__GPIO5_IO02 0x1b0b0 420 >; 421 }; 422 423 pinctrl_uart1: uart1grp { 424 fsl,pins = < 425 MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1 426 MX6QDL_PAD_SD3_DAT6__UART1_RX_DATA 0x1b0b1 427 >; 428 }; 429 430 pinctrl_uart2: uart2grp { 431 fsl,pins = < 432 MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1 433 MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1 434 >; 435 }; 436 437 pinctrl_uart3: uart3grp { 438 fsl,pins = < 439 MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1 440 MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1 441 MX6QDL_PAD_EIM_D23__UART3_CTS_B 0x1b0b1 442 MX6QDL_PAD_EIM_D31__UART3_RTS_B 0x1b0b1 443 >; 444 }; 445 446 pinctrl_usbotg: usbotggrp { 447 fsl,pins = < 448 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059 449 MX6QDL_PAD_KEY_COL4__USB_OTG_OC 0x1b0b0 450 /* power enable, high active */ 451 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x000b0 452 >; 453 }; 454 455 pinctrl_usdhc2: usdhc2grp { 456 fsl,pins = < 457 MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059 458 MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059 459 MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059 460 MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059 461 MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059 462 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x17059 463 >; 464 }; 465 466 pinctrl_usdhc3: usdhc3grp { 467 fsl,pins = < 468 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059 469 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059 470 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059 471 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059 472 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059 473 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059 474 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x1b0b0 475 >; 476 }; 477}; 478 479&ldb { 480 status = "okay"; 481 482 lvds-channel@0 { 483 status = "okay"; 484 485 port@4 { 486 reg = <4>; 487 488 lvds0_out: endpoint { 489 remote-endpoint = <&panel_in_lvds0>; 490 }; 491 }; 492 }; 493}; 494 495&pcie { 496 status = "okay"; 497}; 498 499&pwm1 { 500 pinctrl-names = "default"; 501 pinctrl-0 = <&pinctrl_pwm1>; 502 status = "okay"; 503}; 504 505&pwm3 { 506 pinctrl-names = "default"; 507 pinctrl-0 = <&pinctrl_pwm3>; 508 status = "okay"; 509}; 510 511&pwm4 { 512 pinctrl-names = "default"; 513 pinctrl-0 = <&pinctrl_pwm4>; 514 status = "okay"; 515}; 516 517&ssi1 { 518 status = "okay"; 519}; 520 521&uart1 { 522 pinctrl-names = "default"; 523 pinctrl-0 = <&pinctrl_uart1>; 524 status = "okay"; 525}; 526 527&uart2 { 528 pinctrl-names = "default"; 529 pinctrl-0 = <&pinctrl_uart2>; 530 status = "okay"; 531}; 532 533&uart3 { 534 pinctrl-names = "default"; 535 pinctrl-0 = <&pinctrl_uart3>; 536 uart-has-rtscts; 537 status = "okay"; 538}; 539 540&usbh1 { 541 status = "okay"; 542}; 543 544&usbotg { 545 vbus-supply = <®_usb_otg_vbus>; 546 pinctrl-names = "default"; 547 pinctrl-0 = <&pinctrl_usbotg>; 548 disable-over-current; 549 status = "okay"; 550}; 551 552&usdhc2 { 553 pinctrl-names = "default"; 554 pinctrl-0 = <&pinctrl_usdhc2>; 555 bus-width = <4>; 556 non-removable; 557 vmmc-supply = <®_3p3v>; 558 vqmmc-supply = <®_wlan_vmmc>; 559 cap-power-off-card; 560 keep-power-in-suspend; 561 status = "okay"; 562}; 563 564&usdhc3 { 565 pinctrl-names = "default"; 566 pinctrl-0 = <&pinctrl_usdhc3>; 567 cd-gpios = <&gpio7 0 GPIO_ACTIVE_LOW>; 568 vmmc-supply = <®_3p3v>; 569 status = "okay"; 570}; 571