Robert Nelson | cbd54fe | 2014-12-22 11:29:21 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 Freescale Semiconductor, Inc. |
| 3 | * |
| 4 | * Author: Fabio Estevam <fabio.estevam@freescale.com> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | * |
| 10 | */ |
| 11 | |
| 12 | / { |
Maciej S. Szmigiero | 880e150 | 2016-04-16 00:27:23 +0200 | [diff] [blame] | 13 | aliases { |
| 14 | backlight = &backlight; |
| 15 | panelchan = &panelchan; |
| 16 | panel7 = &panel7; |
| 17 | touchscreenp7 = &touchscreenp7; |
| 18 | }; |
| 19 | |
Robert Nelson | cbd54fe | 2014-12-22 11:29:21 -0600 | [diff] [blame] | 20 | chosen { |
| 21 | stdout-path = &uart2; |
| 22 | }; |
| 23 | |
Maciej S. Szmigiero | 880e150 | 2016-04-16 00:27:23 +0200 | [diff] [blame] | 24 | backlight: backlight { |
| 25 | compatible = "gpio-backlight"; |
| 26 | gpios = <&gpio1 4 0>; |
| 27 | default-on; |
| 28 | status = "disabled"; |
| 29 | }; |
| 30 | |
Robert Nelson | cbd54fe | 2014-12-22 11:29:21 -0600 | [diff] [blame] | 31 | memory { |
| 32 | reg = <0x10000000 0x40000000>; |
| 33 | }; |
| 34 | |
Maciej S. Szmigiero | 880e150 | 2016-04-16 00:27:23 +0200 | [diff] [blame] | 35 | panel7: panel7 { |
| 36 | /* |
| 37 | * in reality it is a -20t (parallel) model, |
| 38 | * but with LVDS bridge chip attached, |
| 39 | * so it is equivalent to -19t model in drive |
| 40 | * characteristics |
| 41 | */ |
| 42 | compatible = "urt,umsh-8596md-19t"; |
| 43 | pinctrl-names = "default"; |
| 44 | pinctrl-0 = <&pinctrl_panel>; |
| 45 | power-supply = <®_panel>; |
| 46 | backlight = <&backlight>; |
| 47 | status = "disabled"; |
| 48 | |
| 49 | port { |
| 50 | panel_in: endpoint { |
| 51 | remote-endpoint = <&lvds0_out>; |
| 52 | }; |
| 53 | }; |
| 54 | }; |
| 55 | |
Robert Nelson | cbd54fe | 2014-12-22 11:29:21 -0600 | [diff] [blame] | 56 | regulators { |
| 57 | compatible = "simple-bus"; |
| 58 | #address-cells = <1>; |
| 59 | #size-cells = <0>; |
| 60 | |
| 61 | reg_usb_h1_vbus: regulator@0 { |
| 62 | compatible = "regulator-fixed"; |
| 63 | reg = <0>; |
| 64 | regulator-name = "usb_h1_vbus"; |
| 65 | regulator-min-microvolt = <5000000>; |
| 66 | regulator-max-microvolt = <5000000>; |
| 67 | enable-active-high; |
| 68 | startup-delay-us = <2>; /* USB2415 requires a POR of 1 us minimum */ |
| 69 | gpio = <&gpio7 12 0>; |
| 70 | }; |
Maciej S. Szmigiero | 880e150 | 2016-04-16 00:27:23 +0200 | [diff] [blame] | 71 | |
| 72 | reg_panel: regulator@1 { |
| 73 | compatible = "regulator-fixed"; |
| 74 | reg = <1>; |
| 75 | regulator-name = "lcd_panel"; |
| 76 | enable-active-high; |
| 77 | gpio = <&gpio1 2 0>; |
| 78 | }; |
Robert Nelson | cbd54fe | 2014-12-22 11:29:21 -0600 | [diff] [blame] | 79 | }; |
Maciej S. Szmigiero | f904741 | 2016-01-31 00:42:35 +0100 | [diff] [blame] | 80 | |
| 81 | sound { |
| 82 | compatible = "fsl,imx6q-udoo-ac97", |
| 83 | "fsl,imx-audio-ac97"; |
| 84 | model = "fsl,imx6q-udoo-ac97"; |
| 85 | audio-cpu = <&ssi1>; |
| 86 | audio-routing = |
| 87 | "RX", "Mic Jack", |
| 88 | "Headphone Jack", "TX"; |
| 89 | mux-int-port = <1>; |
| 90 | mux-ext-port = <6>; |
| 91 | }; |
Robert Nelson | cbd54fe | 2014-12-22 11:29:21 -0600 | [diff] [blame] | 92 | }; |
| 93 | |
| 94 | &fec { |
| 95 | pinctrl-names = "default"; |
| 96 | pinctrl-0 = <&pinctrl_enet>; |
| 97 | phy-mode = "rgmii"; |
| 98 | status = "okay"; |
| 99 | }; |
| 100 | |
| 101 | &hdmi { |
| 102 | ddc-i2c-bus = <&i2c2>; |
| 103 | status = "okay"; |
| 104 | }; |
| 105 | |
| 106 | &i2c2 { |
| 107 | clock-frequency = <100000>; |
| 108 | pinctrl-names = "default"; |
| 109 | pinctrl-0 = <&pinctrl_i2c2>; |
| 110 | status = "okay"; |
| 111 | }; |
| 112 | |
Maciej S. Szmigiero | 880e150 | 2016-04-16 00:27:23 +0200 | [diff] [blame] | 113 | &i2c3 { |
| 114 | clock-frequency = <100000>; |
| 115 | pinctrl-names = "default"; |
| 116 | pinctrl-0 = <&pinctrl_i2c3>; |
| 117 | status = "okay"; |
| 118 | |
| 119 | touchscreenp7: touchscreenp7@55 { |
| 120 | compatible = "sitronix,st1232"; |
| 121 | pinctrl-names = "default"; |
| 122 | pinctrl-0 = <&pinctrl_touchscreenp7>; |
| 123 | reg = <0x55>; |
| 124 | interrupt-parent = <&gpio1>; |
| 125 | interrupts = <13 8>; |
| 126 | gpios = <&gpio1 15 0>; |
| 127 | status = "disabled"; |
| 128 | }; |
| 129 | }; |
| 130 | |
Robert Nelson | cbd54fe | 2014-12-22 11:29:21 -0600 | [diff] [blame] | 131 | &iomuxc { |
| 132 | imx6q-udoo { |
| 133 | pinctrl_enet: enetgrp { |
| 134 | fsl,pins = < |
Uwe Kleine-König | c007b3a | 2016-07-08 23:22:54 +0200 | [diff] [blame] | 135 | MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030 |
| 136 | MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030 |
| 137 | MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030 |
| 138 | MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030 |
| 139 | MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030 |
| 140 | MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030 |
| 141 | MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b030 |
| 142 | MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030 |
| 143 | MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030 |
| 144 | MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030 |
| 145 | MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030 |
| 146 | MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030 |
Robert Nelson | cbd54fe | 2014-12-22 11:29:21 -0600 | [diff] [blame] | 147 | MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0 |
| 148 | MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0 |
| 149 | MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0 |
| 150 | MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x4001b0a8 |
| 151 | >; |
| 152 | }; |
| 153 | |
| 154 | pinctrl_i2c2: i2c2grp { |
| 155 | fsl,pins = < |
| 156 | MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1 |
| 157 | MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1 |
| 158 | >; |
| 159 | }; |
| 160 | |
Maciej S. Szmigiero | 880e150 | 2016-04-16 00:27:23 +0200 | [diff] [blame] | 161 | pinctrl_i2c3: i2c3grp { |
| 162 | fsl,pins = < |
| 163 | MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001f8b1 |
| 164 | MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001f8b1 |
| 165 | >; |
| 166 | }; |
| 167 | |
| 168 | pinctrl_panel: panelgrp { |
| 169 | fsl,pins = < |
| 170 | MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x70 |
| 171 | MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x70 |
| 172 | >; |
| 173 | }; |
| 174 | |
| 175 | pinctrl_touchscreenp7: touchscreenp7grp { |
| 176 | fsl,pins = < |
| 177 | MX6QDL_PAD_SD2_DAT0__GPIO1_IO15 0x70 |
| 178 | MX6QDL_PAD_SD2_DAT2__GPIO1_IO13 0x1b0b0 |
| 179 | >; |
| 180 | }; |
| 181 | |
Robert Nelson | cbd54fe | 2014-12-22 11:29:21 -0600 | [diff] [blame] | 182 | pinctrl_uart2: uart2grp { |
| 183 | fsl,pins = < |
| 184 | MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1 |
| 185 | MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1 |
| 186 | >; |
| 187 | }; |
| 188 | |
| 189 | pinctrl_usbh: usbhgrp { |
| 190 | fsl,pins = < |
| 191 | MX6QDL_PAD_GPIO_17__GPIO7_IO12 0x80000000 |
| 192 | MX6QDL_PAD_NANDF_CS2__CCM_CLKO2 0x130b0 |
| 193 | >; |
| 194 | }; |
| 195 | |
| 196 | pinctrl_usdhc3: usdhc3grp { |
| 197 | fsl,pins = < |
| 198 | MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059 |
| 199 | MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059 |
| 200 | MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059 |
| 201 | MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059 |
| 202 | MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059 |
| 203 | MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059 |
| 204 | >; |
| 205 | }; |
Maciej S. Szmigiero | f904741 | 2016-01-31 00:42:35 +0100 | [diff] [blame] | 206 | |
| 207 | pinctrl_ac97_running: ac97running { |
| 208 | fsl,pins = < |
| 209 | MX6QDL_PAD_DI0_PIN2__AUD6_TXD 0x1b0b0 |
| 210 | MX6QDL_PAD_DI0_PIN3__AUD6_TXFS 0x1b0b0 |
Maciej S. Szmigiero | 39e0024 | 2017-11-20 20:08:30 +0100 | [diff] [blame^] | 211 | MX6QDL_PAD_DI0_PIN4__AUD6_RXD 0x13080 |
| 212 | MX6QDL_PAD_DI0_PIN15__AUD6_TXC 0x13080 |
Maciej S. Szmigiero | f904741 | 2016-01-31 00:42:35 +0100 | [diff] [blame] | 213 | MX6QDL_PAD_EIM_EB2__GPIO2_IO30 0x1b0b0 |
| 214 | >; |
| 215 | }; |
| 216 | |
| 217 | pinctrl_ac97_warm_reset: ac97warmreset { |
| 218 | fsl,pins = < |
| 219 | MX6QDL_PAD_DI0_PIN2__AUD6_TXD 0x1b0b0 |
| 220 | MX6QDL_PAD_DI0_PIN3__GPIO4_IO19 0x1b0b0 |
Maciej S. Szmigiero | 39e0024 | 2017-11-20 20:08:30 +0100 | [diff] [blame^] | 221 | MX6QDL_PAD_DI0_PIN4__AUD6_RXD 0x13080 |
| 222 | MX6QDL_PAD_DI0_PIN15__AUD6_TXC 0x13080 |
Maciej S. Szmigiero | f904741 | 2016-01-31 00:42:35 +0100 | [diff] [blame] | 223 | MX6QDL_PAD_EIM_EB2__GPIO2_IO30 0x1b0b0 |
| 224 | >; |
| 225 | }; |
| 226 | |
| 227 | pinctrl_ac97_reset: ac97reset { |
| 228 | fsl,pins = < |
| 229 | MX6QDL_PAD_DI0_PIN2__GPIO4_IO18 0x1b0b0 |
| 230 | MX6QDL_PAD_DI0_PIN3__GPIO4_IO19 0x1b0b0 |
Maciej S. Szmigiero | 39e0024 | 2017-11-20 20:08:30 +0100 | [diff] [blame^] | 231 | MX6QDL_PAD_DI0_PIN4__AUD6_RXD 0x13080 |
| 232 | MX6QDL_PAD_DI0_PIN15__AUD6_TXC 0x13080 |
Maciej S. Szmigiero | f904741 | 2016-01-31 00:42:35 +0100 | [diff] [blame] | 233 | MX6QDL_PAD_EIM_EB2__GPIO2_IO30 0x1b0b0 |
| 234 | >; |
| 235 | }; |
Robert Nelson | cbd54fe | 2014-12-22 11:29:21 -0600 | [diff] [blame] | 236 | }; |
| 237 | }; |
| 238 | |
Maciej S. Szmigiero | 880e150 | 2016-04-16 00:27:23 +0200 | [diff] [blame] | 239 | &ldb { |
| 240 | status = "okay"; |
| 241 | |
| 242 | panelchan: lvds-channel@0 { |
| 243 | port@4 { |
| 244 | reg = <4>; |
| 245 | |
| 246 | lvds0_out: endpoint { |
| 247 | remote-endpoint = <&panel_in>; |
| 248 | }; |
| 249 | }; |
| 250 | }; |
| 251 | }; |
| 252 | |
Robert Nelson | cbd54fe | 2014-12-22 11:29:21 -0600 | [diff] [blame] | 253 | &uart2 { |
| 254 | pinctrl-names = "default"; |
| 255 | pinctrl-0 = <&pinctrl_uart2>; |
| 256 | status = "okay"; |
| 257 | }; |
| 258 | |
| 259 | &usbh1 { |
| 260 | pinctrl-names = "default"; |
| 261 | pinctrl-0 = <&pinctrl_usbh>; |
| 262 | vbus-supply = <®_usb_h1_vbus>; |
Fabio Estevam | b26a68c | 2016-04-26 22:28:29 -0300 | [diff] [blame] | 263 | clocks = <&clks IMX6QDL_CLK_CKO>; |
Robert Nelson | cbd54fe | 2014-12-22 11:29:21 -0600 | [diff] [blame] | 264 | status = "okay"; |
| 265 | }; |
| 266 | |
| 267 | &usdhc3 { |
| 268 | pinctrl-names = "default"; |
| 269 | pinctrl-0 = <&pinctrl_usdhc3>; |
| 270 | non-removable; |
| 271 | status = "okay"; |
| 272 | }; |
Maciej S. Szmigiero | f904741 | 2016-01-31 00:42:35 +0100 | [diff] [blame] | 273 | |
| 274 | &audmux { |
| 275 | status = "okay"; |
| 276 | }; |
| 277 | |
| 278 | &ssi1 { |
| 279 | cell-index = <0>; |
| 280 | fsl,mode = "ac97-slave"; |
| 281 | pinctrl-names = "ac97-running", "ac97-reset", "ac97-warm-reset"; |
| 282 | pinctrl-0 = <&pinctrl_ac97_running>; |
| 283 | pinctrl-1 = <&pinctrl_ac97_reset>; |
| 284 | pinctrl-2 = <&pinctrl_ac97_warm_reset>; |
| 285 | ac97-gpios = <&gpio4 19 0 &gpio4 18 0 &gpio2 30 0>; |
| 286 | status = "okay"; |
| 287 | }; |