3 * Lukasz Majewski, DENX Software Engineering, lukma@denx.de
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
10 * a) This file is licensed under the terms of the GNU General Public
11 * License version 2. This program is licensed "as is" without
12 * any warranty of any kind, whether express or implied.
16 * b) Permission is hereby granted, free of charge, to any person
17 * obtaining a copy of this software and associated documentation
18 * files (the "Software"), to deal in the Software without
19 * restriction, including without limitation the rights to use,
20 * copy, modify, merge, publish, distribute, sublicense, and/or
21 * sell copies of the Software, and to permit persons to whom the
22 * Software is furnished to do so, subject to the following
25 * The above copyright notice and this permission notice shall be
26 * included in all copies or substantial portions of the Software.
28 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
29 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
30 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
31 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
32 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
33 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
34 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
35 * OTHER DEALINGS IN THE SOFTWARE.
42 #include <dt-bindings/gpio/gpio.h>
43 #include <dt-bindings/pwm/pwm.h>
44 #include <dt-bindings/sound/fsl-imx-audmux.h>
47 model = "Liebherr (LWN) display5 i.MX6 Quad Board";
48 compatible = "lwn,display5", "fsl,imx6q";
51 reg = <0x10000000 0x40000000>;
54 backlight_lvds: backlight {
55 compatible = "pwm-backlight";
56 pinctrl-names = "default";
57 pinctrl-0 = <&pinctrl_backlight>;
58 pwms = <&pwm2 0 5000000 0>;
59 brightness-levels = < 0 1 2 3 4 5 6 7 8 9
60 10 11 12 13 14 15 16 17 18 19
61 20 21 22 23 24 25 26 27 28 29
62 30 31 32 33 34 35 36 37 38 39
63 40 41 42 43 44 45 46 47 48 49
64 50 51 52 53 54 55 56 57 58 59
65 60 61 62 63 64 65 66 67 68 69
66 70 71 72 73 74 75 76 77 78 79
67 80 81 82 83 84 85 86 87 88 89
68 90 91 92 93 94 95 96 97 98 99
69 100 101 102 103 104 105 106 107 108 109
70 110 111 112 113 114 115 116 117 118 119
71 120 121 122 123 124 125 126 127 128 129
72 130 131 132 133 134 135 136 137 138 139
73 140 141 142 143 144 145 146 147 148 149
74 150 151 152 153 154 155 156 157 158 159
75 160 161 162 163 164 165 166 167 168 169
76 170 171 172 173 174 175 176 177 178 179
77 180 181 182 183 184 185 186 187 188 189
78 190 191 192 193 194 195 196 197 198 199
79 200 201 202 203 204 205 206 207 208 209
80 210 211 212 213 214 215 216 217 218 219
81 220 221 222 223 224 225 226 227 228 229
82 230 231 232 233 234 235 236 237 238 239
83 240 241 242 243 244 245 246 247 248 249
84 250 251 252 253 254 255>;
85 default-brightness-level = <250>;
86 enable-gpios = <&gpio5 7 GPIO_ACTIVE_HIGH>;
89 reg_lvds: regulator-lvds {
90 compatible = "regulator-fixed";
91 regulator-name = "lvds_ppen";
92 regulator-min-microvolt = <3300000>;
93 regulator-max-microvolt = <3300000>;
96 pinctrl-names = "default";
97 pinctrl-0 = <&pinctrl_reg_lvds>;
98 gpio = <&gpio5 13 GPIO_ACTIVE_HIGH>;
102 reg_usbh1_vbus: usb-h1-vbus {
103 compatible = "regulator-fixed";
104 gpio = <&gpio3 31 GPIO_ACTIVE_LOW>;
105 pinctrl-names = "default";
106 pinctrl-0 = <&pinctrl_usbh1_vbus>;
107 regulator-name = "usb_h1_vbus";
108 regulator-min-microvolt = <5000000>;
109 regulator-max-microvolt = <5000000>;
110 regulator-enable-ramp-delay = <300000>;
114 compatible = "simple-audio-card";
115 label = "tfa9879-mono";
117 simple-audio-card,dai-link {
120 bitclock-master = <&dailink_master>;
121 frame-master = <&dailink_master>;
123 dailink_master: cpu {
127 sound-dai = <&codec>;
133 backlight = <&backlight_lvds>;
134 power-supply = <®_lvds>;
137 panel_in_lvds0: endpoint {
138 remote-endpoint = <&lvds0_out>;
145 pinctrl-names = "default";
146 pinctrl-0 = <&pinctrl_audmux>;
150 fsl,audmux-port = <1>;
152 (IMX_AUDMUX_V2_PTCR_SYN |
153 IMX_AUDMUX_V2_PTCR_TFSEL(5) |
154 IMX_AUDMUX_V2_PTCR_TCSEL(5) |
155 IMX_AUDMUX_V2_PTCR_TFSDIR |
156 IMX_AUDMUX_V2_PTCR_TCLKDIR)
157 IMX_AUDMUX_V2_PDCR_RXDSEL(5)
162 fsl,audmux-port = <5>;
164 (IMX_AUDMUX_V2_PTCR_RFSEL(8) |
165 IMX_AUDMUX_V2_PTCR_RCSEL(8) |
166 IMX_AUDMUX_V2_PTCR_TFSEL(1) |
167 IMX_AUDMUX_V2_PTCR_TCSEL(1) |
168 IMX_AUDMUX_V2_PTCR_RFSDIR |
169 IMX_AUDMUX_V2_PTCR_RCLKDIR |
170 IMX_AUDMUX_V2_PTCR_TFSDIR |
171 IMX_AUDMUX_V2_PTCR_TCLKDIR)
172 IMX_AUDMUX_V2_PDCR_RXDSEL(1)
178 cs-gpios = <&gpio5 29 GPIO_ACTIVE_LOW>;
179 pinctrl-names = "default";
180 pinctrl-0 = <&pinctrl_ecspi2 &pinctrl_ecspi2_cs &pinctrl_ecspi2_flwp>;
184 #address-cells = <1>;
186 compatible = "jedec,spi-nor";
187 spi-max-frequency = <40000000>;
196 label = "u-boot (spi)";
197 reg = <0x20000 0x100000>;
201 label = "uboot-env (spi)";
202 reg = <0x120000 0x10000>;
205 label = "uboot-envr (spi)";
206 reg = <0x130000 0x10000>;
209 label = "linux-recovery (spi)";
210 reg = <0x140000 0x800000>;
213 label = "swupdate-fitImg (spi)";
214 reg = <0x940000 0x400000>;
217 label = "swupdate-initramfs (spi)";
218 reg = <0xD40000 0x800000>;
224 cs-gpios = <&gpio4 24 GPIO_ACTIVE_LOW>;
225 pinctrl-names = "default";
226 pinctrl-0 = <&pinctrl_ecspi3 &pinctrl_ecspi3_cs &pinctrl_ecspi3_flwp>;
231 pinctrl-names = "default";
232 pinctrl-0 = <&pinctrl_enet>;
233 phy-handle = <ðernet_phy0>;
234 phy-mode = "rgmii-id";
238 #address-cells = <1>;
240 ethernet_phy0: ethernet-phy@0 {
241 compatible = "marvell,88E1510";
242 device_type = "ethernet-phy";
243 /* Set LED0 control: */
244 /* On - Link, Blink - Activity, Off - No Link */
245 marvell,reg-init = <3 0x10 0 0x1011>;
253 clock-frequency = <400000>;
254 pinctrl-names = "default";
255 pinctrl-0 = <&pinctrl_i2c1>;
259 #sound-dai-cells = <0>;
260 compatible = "nxp,tfa9879";
266 clock-frequency = <400000>;
267 pinctrl-names = "default";
268 pinctrl-0 = <&pinctrl_i2c2>;
273 clock-frequency = <400000>;
274 pinctrl-names = "default";
275 pinctrl-0 = <&pinctrl_i2c3>;
279 compatible = "atmel,24c256";
285 compatible = "fsl,pfuze100";
290 regulator-min-microvolt = <300000>;
291 regulator-max-microvolt = <1875000>;
294 regulator-ramp-delay = <6250>;
298 regulator-min-microvolt = <300000>;
299 regulator-max-microvolt = <1875000>;
302 regulator-ramp-delay = <6250>;
306 regulator-min-microvolt = <800000>;
307 regulator-max-microvolt = <3950000>;
313 regulator-min-microvolt = <400000>;
314 regulator-max-microvolt = <1975000>;
320 regulator-min-microvolt = <400000>;
321 regulator-max-microvolt = <1975000>;
327 regulator-min-microvolt = <800000>;
328 regulator-max-microvolt = <3300000>;
332 regulator-min-microvolt = <5000000>;
333 regulator-max-microvolt = <5150000>;
337 regulator-min-microvolt = <1000000>;
338 regulator-max-microvolt = <3000000>;
349 regulator-min-microvolt = <800000>;
350 regulator-max-microvolt = <1550000>;
354 regulator-min-microvolt = <800000>;
355 regulator-max-microvolt = <1550000>;
359 regulator-min-microvolt = <1800000>;
360 regulator-max-microvolt = <3300000>;
364 regulator-min-microvolt = <1800000>;
365 regulator-max-microvolt = <3300000>;
370 regulator-min-microvolt = <1800000>;
371 regulator-max-microvolt = <3300000>;
376 regulator-min-microvolt = <1800000>;
377 regulator-max-microvolt = <3300000>;
387 lvds0: lvds-channel@0 {
393 lvds0_out: endpoint {
394 remote-endpoint = <&panel_in_lvds0>;
402 pinctrl-names = "default";
403 pinctrl-0 = <&pinctrl_pwm2>;
412 pinctrl-names = "default";
413 pinctrl-0 = <&pinctrl_uart4>;
419 pinctrl-names = "default";
420 pinctrl-0 = <&pinctrl_uart5>;
425 vbus-supply = <®_usbh1_vbus>;
426 pinctrl-0 = <&pinctrl_usbh1>;
431 pinctrl-names = "default";
432 pinctrl-0 = <&pinctrl_usdhc4>;
439 pinctrl_audmux: audmuxgrp {
442 MX6QDL_PAD_DI0_PIN4__AUD6_RXD 0x130b0
443 MX6QDL_PAD_DI0_PIN2__AUD6_TXD 0x130b0
444 MX6QDL_PAD_DI0_PIN3__AUD6_TXFS 0x130b0
445 MX6QDL_PAD_DI0_PIN15__AUD6_TXC 0x130b0
449 pinctrl_backlight: dispgrp {
452 MX6QDL_PAD_DISP0_DAT13__GPIO5_IO07 0x1b0b0
456 pinctrl_ecspi2: ecspi2grp {
458 MX6QDL_PAD_CSI0_DAT10__ECSPI2_MISO 0x100b1
459 MX6QDL_PAD_CSI0_DAT9__ECSPI2_MOSI 0x100b1
460 MX6QDL_PAD_CSI0_DAT8__ECSPI2_SCLK 0x100b1
464 pinctrl_ecspi2_cs: ecspi2csgrp {
466 MX6QDL_PAD_CSI0_DAT11__GPIO5_IO29 0x100b1
470 pinctrl_ecspi2_flwp: ecspi2flwpgrp {
472 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x1b0b0
476 pinctrl_ecspi3: ecspi3grp {
478 MX6QDL_PAD_DISP0_DAT2__ECSPI3_MISO 0x100b1
479 MX6QDL_PAD_DISP0_DAT1__ECSPI3_MOSI 0x100b1
480 MX6QDL_PAD_DISP0_DAT0__ECSPI3_SCLK 0x100b1
484 pinctrl_ecspi3_cs: ecspi3csgrp {
486 MX6QDL_PAD_DISP0_DAT3__GPIO4_IO24 0x1b0b0
490 pinctrl_ecspi3_flwp: ecspi3flwpgrp {
492 MX6QDL_PAD_DISP0_DAT6__GPIO4_IO27 0x1b0b0
496 pinctrl_enet: enetgrp {
498 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
499 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
500 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b0b0
501 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b0b0
502 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b0b0
503 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b0b0
504 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b0b0
505 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b0b0
506 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
507 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b0b0
508 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b0b0
509 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b0b0
510 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b0b0
511 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b0b0
512 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b0b0
513 MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x4001b0a8
514 MX6QDL_PAD_GPIO_6__ENET_IRQ 0x000b1
515 MX6QDL_PAD_ENET_RXD0__GPIO1_IO27 0x1b0b0
519 pinctrl_i2c1: i2c1grp {
521 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
522 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
526 pinctrl_i2c2: i2c2grp {
528 MX6QDL_PAD_EIM_EB2__I2C2_SCL 0x4001b8b1
529 MX6QDL_PAD_EIM_D16__I2C2_SDA 0x4001b8b1
533 pinctrl_i2c3: i2c3grp {
535 MX6QDL_PAD_EIM_D17__I2C3_SCL 0x4001b8b1
536 MX6QDL_PAD_EIM_D18__I2C3_SDA 0x4001b8b1
540 pinctrl_pwm2: pwm2grp {
542 MX6QDL_PAD_DISP0_DAT9__PWM2_OUT 0x1b0b1
546 pinctrl_reg_lvds: reqlvdsgrp {
549 MX6QDL_PAD_DISP0_DAT19__GPIO5_IO13 0x1b0b0
553 pinctrl_uart4: uart4grp {
555 MX6QDL_PAD_CSI0_DAT12__UART4_TX_DATA 0x1b0b1
556 MX6QDL_PAD_CSI0_DAT13__UART4_RX_DATA 0x1b0b1
557 MX6QDL_PAD_CSI0_DAT16__UART4_RTS_B 0x1b0b1
558 MX6QDL_PAD_CSI0_DAT17__UART4_CTS_B 0x1b0b1
562 pinctrl_uart5: uart5grp {
564 MX6QDL_PAD_CSI0_DAT14__UART5_TX_DATA 0x1b0b1
565 MX6QDL_PAD_CSI0_DAT15__UART5_RX_DATA 0x1b0b1
569 pinctrl_usbh1: usbh1grp {
571 MX6QDL_PAD_EIM_D30__USB_H1_OC 0x030b0
575 pinctrl_usbh1_vbus: usbh1_vbus_grp {
577 MX6QDL_PAD_EIM_D31__GPIO3_IO31 0x1b0b0
581 pinctrl_usdhc4: usdhc4grp {
583 MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059
584 MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059
585 MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059
586 MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059
587 MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059
588 MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059
589 MX6QDL_PAD_SD4_DAT4__SD4_DATA4 0x17059
590 MX6QDL_PAD_SD4_DAT5__SD4_DATA5 0x17059
591 MX6QDL_PAD_SD4_DAT6__SD4_DATA6 0x17059
592 MX6QDL_PAD_SD4_DAT7__SD4_DATA7 0x17059
593 MX6QDL_PAD_NANDF_ALE__SD4_RESET 0x17059