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