2 * Copyright 2013 Boundary Devices, Inc.
3 * Copyright 2011 Freescale Semiconductor, Inc.
4 * Copyright 2011 Linaro Ltd.
6 * The code contained herein is licensed under the GNU General Public
7 * License. You may obtain a copy of the GNU General Public License
8 * Version 2 or later at the following locations:
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
22 reg = <0x10000000 0x40000000>;
26 compatible = "simple-bus";
30 reg_2p5v: regulator@0 {
31 compatible = "regulator-fixed";
33 regulator-name = "2P5V";
34 regulator-min-microvolt = <2500000>;
35 regulator-max-microvolt = <2500000>;
39 reg_3p3v: regulator@1 {
40 compatible = "regulator-fixed";
42 regulator-name = "3P3V";
43 regulator-min-microvolt = <3300000>;
44 regulator-max-microvolt = <3300000>;
48 reg_usb_otg_vbus: regulator@2 {
49 compatible = "regulator-fixed";
51 regulator-name = "usb_otg_vbus";
52 regulator-min-microvolt = <5000000>;
53 regulator-max-microvolt = <5000000>;
60 compatible = "gpio-keys";
61 pinctrl-names = "default";
62 pinctrl-0 = <&pinctrl_gpio_keys>;
65 label = "Power Button";
66 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_POWER>;
73 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_MENU>;
79 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_HOME>;
85 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_BACK>;
91 gpios = <&gpio7 13 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_VOLUMEUP>;
96 label = "Volume Down";
97 gpios = <&gpio4 5 GPIO_ACTIVE_LOW>;
98 linux,code = <KEY_VOLUMEDOWN>;
103 compatible = "fsl,imx6q-nitrogen6x-sgtl5000",
104 "fsl,imx-audio-sgtl5000";
105 model = "imx6q-nitrogen6x-sgtl5000";
106 ssi-controller = <&ssi1>;
107 audio-codec = <&codec>;
109 "MIC_IN", "Mic Jack",
110 "Mic Jack", "Mic Bias",
111 "Headphone Jack", "HP_OUT";
117 compatible = "pwm-backlight";
118 pwms = <&pwm1 0 5000000>;
119 brightness-levels = <0 4 8 16 32 64 128 255>;
120 default-brightness-level = <7>;
121 power-supply = <®_3p3v>;
125 backlight_lvds: backlight_lvds {
126 compatible = "pwm-backlight";
127 pwms = <&pwm4 0 5000000>;
128 brightness-levels = <0 4 8 16 32 64 128 255>;
129 default-brightness-level = <7>;
130 power-supply = <®_3p3v>;
135 compatible = "hannstar,hsd100pxn1";
136 backlight = <&backlight_lvds>;
140 remote-endpoint = <&lvds0_out>;
147 pinctrl-names = "default";
148 pinctrl-0 = <&pinctrl_audmux>;
153 fsl,spi-num-chipselects = <1>;
154 cs-gpios = <&gpio3 19 0>;
155 pinctrl-names = "default";
156 pinctrl-0 = <&pinctrl_ecspi1>;
160 compatible = "sst,sst25vf016b";
161 spi-max-frequency = <20000000>;
167 pinctrl-names = "default";
168 pinctrl-0 = <&pinctrl_enet>;
170 phy-reset-gpios = <&gpio1 27 0>;
172 txc-skew-ps = <3000>;
174 rxc-skew-ps = <3000>;
183 interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_HIGH>,
184 <&intc 0 119 IRQ_TYPE_LEVEL_HIGH>;
189 ddc-i2c-bus = <&i2c2>;
194 clock-frequency = <100000>;
195 pinctrl-names = "default";
196 pinctrl-0 = <&pinctrl_i2c1>;
200 compatible = "fsl,sgtl5000";
202 clocks = <&clks 201>;
203 VDDA-supply = <®_2p5v>;
204 VDDIO-supply = <®_3p3v>;
208 compatible = "isil,isl1208";
214 clock-frequency = <100000>;
215 pinctrl-names = "default";
216 pinctrl-0 = <&pinctrl_i2c2>;
221 clock-frequency = <100000>;
222 pinctrl-names = "default";
223 pinctrl-0 = <&pinctrl_i2c3>;
228 pinctrl-names = "default";
229 pinctrl-0 = <&pinctrl_hog>;
232 pinctrl_hog: hoggrp {
234 /* SGTL5000 sys_mclk */
235 MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x030b0
239 pinctrl_audmux: audmuxgrp {
241 MX6QDL_PAD_CSI0_DAT7__AUD3_RXD 0x130b0
242 MX6QDL_PAD_CSI0_DAT4__AUD3_TXC 0x130b0
243 MX6QDL_PAD_CSI0_DAT5__AUD3_TXD 0x110b0
244 MX6QDL_PAD_CSI0_DAT6__AUD3_TXFS 0x130b0
248 pinctrl_ecspi1: ecspi1grp {
250 MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1
251 MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1
252 MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1
253 MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x000b1 /* CS */
257 pinctrl_enet: enetgrp {
259 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x100b0
260 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x100b0
261 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x100b0
262 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x100b0
263 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x100b0
264 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x100b0
265 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x100b0
266 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x100b0
267 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x100b0
268 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b0b0
269 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b0b0
270 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b0b0
271 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b0b0
272 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b0b0
273 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b0b0
275 MX6QDL_PAD_ENET_RXD0__GPIO1_IO27 0x000b0
276 MX6QDL_PAD_GPIO_6__ENET_IRQ 0x000b1
280 pinctrl_gpio_keys: gpio_keysgrp {
283 MX6QDL_PAD_NANDF_D3__GPIO2_IO03 0x1b0b0
285 MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x1b0b0
287 MX6QDL_PAD_NANDF_D4__GPIO2_IO04 0x1b0b0
289 MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0
290 /* Volume Up Button */
291 MX6QDL_PAD_GPIO_18__GPIO7_IO13 0x1b0b0
292 /* Volume Down Button */
293 MX6QDL_PAD_GPIO_19__GPIO4_IO05 0x1b0b0
297 pinctrl_i2c1: i2c1grp {
299 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
300 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
304 pinctrl_i2c2: i2c2grp {
306 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
307 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
311 pinctrl_i2c3: i2c3grp {
313 MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001b8b1
314 MX6QDL_PAD_GPIO_16__I2C3_SDA 0x4001b8b1
318 pinctrl_pwm1: pwm1grp {
320 MX6QDL_PAD_SD1_DAT3__PWM1_OUT 0x1b0b1
324 pinctrl_pwm3: pwm3grp {
326 MX6QDL_PAD_SD1_DAT1__PWM3_OUT 0x1b0b1
330 pinctrl_pwm4: pwm4grp {
332 MX6QDL_PAD_SD1_CMD__PWM4_OUT 0x1b0b1
336 pinctrl_uart1: uart1grp {
338 MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1
339 MX6QDL_PAD_SD3_DAT6__UART1_RX_DATA 0x1b0b1
343 pinctrl_uart2: uart2grp {
345 MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1
346 MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1
350 pinctrl_usbotg: usbotggrp {
352 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
353 MX6QDL_PAD_KEY_COL4__USB_OTG_OC 0x1b0b0
354 /* power enable, high active */
355 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x000b0
359 pinctrl_usdhc3: usdhc3grp {
361 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
362 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
363 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
364 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
365 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
366 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
367 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x1b0b0 /* CD */
371 pinctrl_usdhc4: usdhc4grp {
373 MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059
374 MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059
375 MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059
376 MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059
377 MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059
378 MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059
379 MX6QDL_PAD_NANDF_D6__GPIO2_IO06 0x1b0b0 /* CD */
389 fsl,data-mapping = "spwg";
390 fsl,data-width = <18>;
396 lvds0_out: endpoint {
397 remote-endpoint = <&panel_in>;
408 pinctrl-names = "default";
409 pinctrl-0 = <&pinctrl_pwm1>;
414 pinctrl-names = "default";
415 pinctrl-0 = <&pinctrl_pwm3>;
420 pinctrl-names = "default";
421 pinctrl-0 = <&pinctrl_pwm4>;
430 pinctrl-names = "default";
431 pinctrl-0 = <&pinctrl_uart1>;
436 pinctrl-names = "default";
437 pinctrl-0 = <&pinctrl_uart2>;
446 vbus-supply = <®_usb_otg_vbus>;
447 pinctrl-names = "default";
448 pinctrl-0 = <&pinctrl_usbotg>;
449 disable-over-current;
454 pinctrl-names = "default";
455 pinctrl-0 = <&pinctrl_usdhc3>;
456 cd-gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
457 vmmc-supply = <®_3p3v>;
462 pinctrl-names = "default";
463 pinctrl-0 = <&pinctrl_usdhc4>;
464 cd-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
465 vmmc-supply = <®_3p3v>;