2 * Copyright (C) 2016 Amarula Solutions B.V.
3 * Copyright (C) 2016 Engicam S.r.l.
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 free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * version 2 as published by the Free Software Foundation.
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
43 #include <dt-bindings/gpio/gpio.h>
44 #include <dt-bindings/input/input.h>
48 reg = <0x10000000 0x80000000>;
52 compatible = "pwm-backlight";
53 pwms = <&pwm3 0 100000>;
54 brightness-levels = <0 4 8 16 32 64 128 255>;
55 default-brightness-level = <7>;
58 reg_3p3v: regulator-3p3v {
59 compatible = "regulator-fixed";
60 regulator-name = "3P3V";
61 regulator-min-microvolt = <3300000>;
62 regulator-max-microvolt = <3300000>;
67 reg_usb_h1_vbus: regulator-usb-h1-vbus {
68 compatible = "regulator-fixed";
69 regulator-name = "usb_h1_vbus";
70 regulator-min-microvolt = <5000000>;
71 regulator-max-microvolt = <5000000>;
76 reg_usb_otg_vbus: regulator-usb-otg-vbus {
77 compatible = "regulator-fixed";
78 regulator-name = "usb_otg_vbus";
79 regulator-min-microvolt = <5000000>;
80 regulator-max-microvolt = <5000000>;
85 rmii_clk: clock-rmii-clk {
86 compatible = "fixed-clock";
88 clock-frequency = <25000000>; /* 25MHz for example */
93 pinctrl-names = "default";
94 pinctrl-0 = <&pinctrl_flexcan1>;
95 xceiver-supply = <®_3p3v>;
99 pinctrl-names = "default";
100 pinctrl-0 = <&pinctrl_flexcan2>;
101 xceiver-supply = <®_3p3v>;
105 assigned-clocks = <&clks IMX6QDL_CLK_LVDS2_SEL>;
106 assigned-clock-parents = <&clks IMX6QDL_CLK_OSC>;
110 pinctrl-names = "default";
111 pinctrl-0 = <&pinctrl_enet>;
112 phy-reset-gpios = <&gpio7 12 GPIO_ACTIVE_LOW>;
113 clocks = <&clks IMX6QDL_CLK_ENET>, <&clks IMX6QDL_CLK_ENET>, <&rmii_clk>;
119 pinctrl-names = "default";
120 pinctrl-0 = <&pinctrl_gpmi_nand>;
126 clock-frequency = <100000>;
127 pinctrl-names = "default";
128 pinctrl-0 = <&pinctrl_i2c1>;
133 clock-frequency = <100000>;
134 pinctrl-names = "default";
135 pinctrl-0 = <&pinctrl_i2c2>;
140 clock-frequency = <100000>;
141 pinctrl-names = "default";
142 pinctrl-0 = <&pinctrl_i2c3>;
147 pinctrl-names = "default";
148 pinctrl-0 = <&pinctrl_pwm3>;
153 pinctrl-names = "default";
154 pinctrl-0 = <&pinctrl_uart4>;
159 vbus-supply = <®_usb_h1_vbus>;
160 disable-over-current;
165 vbus-supply = <®_usb_otg_vbus>;
166 pinctrl-names = "default";
167 pinctrl-0 = <&pinctrl_usbotg>;
168 disable-over-current;
173 pinctrl-names = "default";
174 pinctrl-0 = <&pinctrl_usdhc1>;
175 cd-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
181 pinctrl_enet: enetgrp {
183 MX6QDL_PAD_ENET_CRS_DV__ENET_RX_EN 0x1b0b0
184 MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x1b0b1
185 MX6QDL_PAD_ENET_TX_EN__ENET_TX_EN 0x1b0b0
186 MX6QDL_PAD_ENET_RXD1__ENET_RX_DATA1 0x1b0b0
187 MX6QDL_PAD_ENET_RXD0__ENET_RX_DATA0 0x1b0b0
188 MX6QDL_PAD_ENET_TXD1__ENET_TX_DATA1 0x1b0b0
189 MX6QDL_PAD_ENET_TXD0__ENET_TX_DATA0 0x1b0b0
190 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
191 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
192 MX6QDL_PAD_ENET_REF_CLK__GPIO1_IO23 0x1b0b0
193 MX6QDL_PAD_GPIO_17__GPIO7_IO12 0x1b0b0
197 pinctrl_flexcan1: flexcan1grp {
199 MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x1b020
200 MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX 0x1b020
204 pinctrl_flexcan2: flexcan2grp {
206 MX6QDL_PAD_KEY_COL4__FLEXCAN2_TX 0x1b020
207 MX6QDL_PAD_KEY_ROW4__FLEXCAN2_RX 0x1b020
211 pinctrl_gpmi_nand: gpmi-nand {
213 MX6QDL_PAD_NANDF_CLE__NAND_CLE 0xb0b1
214 MX6QDL_PAD_NANDF_ALE__NAND_ALE 0xb0b1
215 MX6QDL_PAD_NANDF_WP_B__NAND_WP_B 0xb0b1
216 MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000
217 MX6QDL_PAD_NANDF_CS0__NAND_CE0_B 0xb0b1
218 MX6QDL_PAD_NANDF_CS1__NAND_CE1_B 0xb0b1
219 MX6QDL_PAD_SD4_CMD__NAND_RE_B 0xb0b1
220 MX6QDL_PAD_SD4_CLK__NAND_WE_B 0xb0b1
221 MX6QDL_PAD_NANDF_D0__NAND_DATA00 0xb0b1
222 MX6QDL_PAD_NANDF_D1__NAND_DATA01 0xb0b1
223 MX6QDL_PAD_NANDF_D2__NAND_DATA02 0xb0b1
224 MX6QDL_PAD_NANDF_D3__NAND_DATA03 0xb0b1
225 MX6QDL_PAD_NANDF_D4__NAND_DATA04 0xb0b1
226 MX6QDL_PAD_NANDF_D5__NAND_DATA05 0xb0b1
227 MX6QDL_PAD_NANDF_D6__NAND_DATA06 0xb0b1
228 MX6QDL_PAD_NANDF_D7__NAND_DATA07 0xb0b1
229 MX6QDL_PAD_SD4_DAT0__NAND_DQS 0x00b1
233 pinctrl_i2c1: i2c1grp {
235 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
236 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
240 pinctrl_i2c2: i2c2grp {
242 MX6QDL_PAD_EIM_EB2__I2C2_SCL 0x4001b8b1
243 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
247 pinctrl_i2c3: i2c3grp {
249 MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001b8b1
250 MX6QDL_PAD_EIM_D18__I2C3_SDA 0x4001b8b1
251 MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0
255 pinctrl_uart4: uart4grp {
257 MX6QDL_PAD_KEY_COL0__UART4_TX_DATA 0x1b0b1
258 MX6QDL_PAD_KEY_ROW0__UART4_RX_DATA 0x1b0b1
262 pinctrl_pwm3: pwm3grp {
264 MX6QDL_PAD_SD4_DAT1__PWM3_OUT 0x1b0b1
268 pinctrl_usbotg: usbotggrp {
270 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
274 pinctrl_usdhc1: usdhc1grp {
276 MX6QDL_PAD_SD1_CMD__SD1_CMD 0x17070
277 MX6QDL_PAD_SD1_CLK__SD1_CLK 0x10070
278 MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x17070
279 MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x17070
280 MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x17070
281 MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x17070