blob: 0b40f52268b3c9fc5aa3e62e2eb712315507d980 [file] [log] [blame]
Thomas Gleixnerfcaf2032019-05-27 08:55:08 +02001// SPDX-License-Identifier: GPL-2.0-or-later
Shawn Guo7d740f82011-09-06 13:53:26 +08002/*
3 * Copyright 2011 Freescale Semiconductor, Inc.
4 * Copyright 2011 Linaro Ltd.
Shawn Guo7d740f82011-09-06 13:53:26 +08005 */
6
7/dts-v1/;
Dong Aisheng89c1a8cf2015-07-22 20:53:02 +08008#include <dt-bindings/gpio/gpio.h>
Shawn Guo36dffd82013-04-07 10:49:34 +08009#include "imx6q.dtsi"
Shawn Guo7d740f82011-09-06 13:53:26 +080010
11/ {
Dirk Behme752baf562011-12-08 08:22:01 +010012 model = "Freescale i.MX6 Quad Armadillo2 Board";
13 compatible = "fsl,imx6q-arm2", "fsl,imx6q";
Shawn Guo7d740f82011-09-06 13:53:26 +080014
Marco Franchiad00e082018-01-24 11:22:14 -020015 memory@10000000 {
Marco Franchi404c0c92018-12-05 16:10:03 -020016 device_type = "memory";
Shawn Guo7d740f82011-09-06 13:53:26 +080017 reg = <0x10000000 0x80000000>;
18 };
19
Shawn Guo648162a2012-02-27 17:11:12 +080020 regulators {
21 compatible = "simple-bus";
Shawn Guo56160e32014-02-07 23:22:50 +080022 #address-cells = <1>;
23 #size-cells = <0>;
Shawn Guo648162a2012-02-27 17:11:12 +080024
Shawn Guo56160e32014-02-07 23:22:50 +080025 reg_3p3v: regulator@0 {
Shawn Guo648162a2012-02-27 17:11:12 +080026 compatible = "regulator-fixed";
Shawn Guo56160e32014-02-07 23:22:50 +080027 reg = <0>;
Shawn Guo648162a2012-02-27 17:11:12 +080028 regulator-name = "3P3V";
29 regulator-min-microvolt = <3300000>;
30 regulator-max-microvolt = <3300000>;
31 regulator-always-on;
32 };
Peter Chen67339b32013-10-28 14:05:02 +080033
Shawn Guo56160e32014-02-07 23:22:50 +080034 reg_usb_otg_vbus: regulator@1 {
Peter Chen67339b32013-10-28 14:05:02 +080035 compatible = "regulator-fixed";
Shawn Guo56160e32014-02-07 23:22:50 +080036 reg = <1>;
Peter Chen67339b32013-10-28 14:05:02 +080037 regulator-name = "usb_otg_vbus";
38 regulator-min-microvolt = <5000000>;
39 regulator-max-microvolt = <5000000>;
40 gpio = <&gpio3 22 0>;
41 enable-active-high;
42 };
Shawn Guo648162a2012-02-27 17:11:12 +080043 };
44
Shawn Guo7d740f82011-09-06 13:53:26 +080045 leds {
46 compatible = "gpio-leds";
47
48 debug-led {
49 label = "Heartbeat";
Richard Zhao4d191862011-12-14 09:26:44 +080050 gpios = <&gpio3 25 0>;
Shawn Guo7d740f82011-09-06 13:53:26 +080051 linux,default-trigger = "heartbeat";
52 };
53 };
54};
Shawn Guobe4ccfc2012-12-31 11:32:48 +080055
56&gpmi {
57 pinctrl-names = "default";
Shawn Guo817c27a2013-10-23 15:36:09 +080058 pinctrl-0 = <&pinctrl_gpmi_nand>;
Shawn Guobe4ccfc2012-12-31 11:32:48 +080059 status = "disabled"; /* gpmi nand conflicts with SD */
60};
61
62&iomuxc {
63 pinctrl-names = "default";
64 pinctrl-0 = <&pinctrl_hog>;
65
Shawn Guo817c27a2013-10-23 15:36:09 +080066 imx6q-arm2 {
Shawn Guobe4ccfc2012-12-31 11:32:48 +080067 pinctrl_hog: hoggrp {
68 fsl,pins = <
Shawn Guoc56009b2f2013-07-11 13:58:36 +080069 MX6QDL_PAD_EIM_D25__GPIO3_IO25 0x80000000
Shawn Guobe4ccfc2012-12-31 11:32:48 +080070 >;
71 };
Shawn Guobe4ccfc2012-12-31 11:32:48 +080072
Shawn Guo817c27a2013-10-23 15:36:09 +080073 pinctrl_enet: enetgrp {
74 fsl,pins = <
75 MX6QDL_PAD_KEY_COL1__ENET_MDIO 0x1b0b0
76 MX6QDL_PAD_KEY_COL2__ENET_MDC 0x1b0b0
Uwe Kleine-Königc007b3a2016-07-08 23:22:54 +020077 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b030
78 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030
79 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030
80 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030
81 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030
82 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030
Shawn Guo817c27a2013-10-23 15:36:09 +080083 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
Uwe Kleine-Königc007b3a2016-07-08 23:22:54 +020084 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
85 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
86 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
87 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
88 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
89 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
Troy Kisky4c2620e72013-12-20 11:47:13 -070090 MX6QDL_PAD_GPIO_6__ENET_IRQ 0x000b1
Shawn Guo817c27a2013-10-23 15:36:09 +080091 >;
92 };
93
94 pinctrl_gpmi_nand: gpminandgrp {
95 fsl,pins = <
96 MX6QDL_PAD_NANDF_CLE__NAND_CLE 0xb0b1
97 MX6QDL_PAD_NANDF_ALE__NAND_ALE 0xb0b1
98 MX6QDL_PAD_NANDF_WP_B__NAND_WP_B 0xb0b1
99 MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000
100 MX6QDL_PAD_NANDF_CS0__NAND_CE0_B 0xb0b1
101 MX6QDL_PAD_NANDF_CS1__NAND_CE1_B 0xb0b1
102 MX6QDL_PAD_SD4_CMD__NAND_RE_B 0xb0b1
103 MX6QDL_PAD_SD4_CLK__NAND_WE_B 0xb0b1
104 MX6QDL_PAD_NANDF_D0__NAND_DATA00 0xb0b1
105 MX6QDL_PAD_NANDF_D1__NAND_DATA01 0xb0b1
106 MX6QDL_PAD_NANDF_D2__NAND_DATA02 0xb0b1
107 MX6QDL_PAD_NANDF_D3__NAND_DATA03 0xb0b1
108 MX6QDL_PAD_NANDF_D4__NAND_DATA04 0xb0b1
109 MX6QDL_PAD_NANDF_D5__NAND_DATA05 0xb0b1
110 MX6QDL_PAD_NANDF_D6__NAND_DATA06 0xb0b1
111 MX6QDL_PAD_NANDF_D7__NAND_DATA07 0xb0b1
112 MX6QDL_PAD_SD4_DAT0__NAND_DQS 0x00b1
113 >;
114 };
115
116 pinctrl_uart2: uart2grp {
117 fsl,pins = <
118 MX6QDL_PAD_EIM_D26__UART2_RX_DATA 0x1b0b1
119 MX6QDL_PAD_EIM_D27__UART2_TX_DATA 0x1b0b1
120 MX6QDL_PAD_EIM_D28__UART2_DTE_CTS_B 0x1b0b1
121 MX6QDL_PAD_EIM_D29__UART2_DTE_RTS_B 0x1b0b1
122 >;
123 };
124
125 pinctrl_uart4: uart4grp {
126 fsl,pins = <
127 MX6QDL_PAD_KEY_COL0__UART4_TX_DATA 0x1b0b1
128 MX6QDL_PAD_KEY_ROW0__UART4_RX_DATA 0x1b0b1
129 >;
130 };
131
132 pinctrl_usbotg: usbotggrp {
133 fsl,pins = <
134 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
135 >;
136 };
137
138 pinctrl_usdhc3: usdhc3grp {
139 fsl,pins = <
140 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
141 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
142 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
143 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
144 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
145 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
146 MX6QDL_PAD_SD3_DAT4__SD3_DATA4 0x17059
147 MX6QDL_PAD_SD3_DAT5__SD3_DATA5 0x17059
148 MX6QDL_PAD_SD3_DAT6__SD3_DATA6 0x17059
149 MX6QDL_PAD_SD3_DAT7__SD3_DATA7 0x17059
150 >;
151 };
152
153 pinctrl_usdhc3_cdwp: usdhc3cdwp {
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800154 fsl,pins = <
Shawn Guoc56009b2f2013-07-11 13:58:36 +0800155 MX6QDL_PAD_NANDF_CS0__GPIO6_IO11 0x80000000
156 MX6QDL_PAD_NANDF_CS1__GPIO6_IO14 0x80000000
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800157 >;
158 };
Shawn Guo817c27a2013-10-23 15:36:09 +0800159
160 pinctrl_usdhc4: usdhc4grp {
161 fsl,pins = <
162 MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059
163 MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059
164 MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059
165 MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059
166 MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059
167 MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059
168 MX6QDL_PAD_SD4_DAT4__SD4_DATA4 0x17059
169 MX6QDL_PAD_SD4_DAT5__SD4_DATA5 0x17059
170 MX6QDL_PAD_SD4_DAT6__SD4_DATA6 0x17059
171 MX6QDL_PAD_SD4_DAT7__SD4_DATA7 0x17059
172 >;
173 };
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800174 };
175};
176
177&fec {
178 pinctrl-names = "default";
Shawn Guo817c27a2013-10-23 15:36:09 +0800179 pinctrl-0 = <&pinctrl_enet>;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800180 phy-mode = "rgmii";
Troy Kisky4c2620e72013-12-20 11:47:13 -0700181 interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_HIGH>,
182 <&intc 0 119 IRQ_TYPE_LEVEL_HIGH>;
Lucas Stacha28eeb42016-06-03 18:31:20 +0200183 fsl,err006687-workaround-present;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800184 status = "okay";
185};
186
Peter Chen67339b32013-10-28 14:05:02 +0800187&usbotg {
188 vbus-supply = <&reg_usb_otg_vbus>;
189 pinctrl-names = "default";
Shawn Guo817c27a2013-10-23 15:36:09 +0800190 pinctrl-0 = <&pinctrl_usbotg>;
Peter Chen67339b32013-10-28 14:05:02 +0800191 disable-over-current;
192 status = "okay";
193};
194
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800195&usdhc3 {
Dong Aisheng89c1a8cf2015-07-22 20:53:02 +0800196 cd-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
197 wp-gpios = <&gpio6 14 GPIO_ACTIVE_HIGH>;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800198 vmmc-supply = <&reg_3p3v>;
199 pinctrl-names = "default";
Shawn Guo817c27a2013-10-23 15:36:09 +0800200 pinctrl-0 = <&pinctrl_usdhc3
201 &pinctrl_usdhc3_cdwp>;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800202 status = "okay";
203};
204
205&usdhc4 {
206 non-removable;
207 vmmc-supply = <&reg_3p3v>;
208 pinctrl-names = "default";
Shawn Guo817c27a2013-10-23 15:36:09 +0800209 pinctrl-0 = <&pinctrl_usdhc4>;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800210 status = "okay";
211};
212
Huang Shijie51056d92013-07-08 17:14:22 +0800213&uart2 {
214 pinctrl-names = "default";
Shawn Guo817c27a2013-10-23 15:36:09 +0800215 pinctrl-0 = <&pinctrl_uart2>;
Huang Shijie51056d92013-07-08 17:14:22 +0800216 fsl,dte-mode;
Geert Uytterhoeven2e7c4162016-05-31 16:31:51 +0200217 uart-has-rtscts;
Huang Shijie51056d92013-07-08 17:14:22 +0800218 status = "okay";
219};
220
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800221&uart4 {
222 pinctrl-names = "default";
Shawn Guo817c27a2013-10-23 15:36:09 +0800223 pinctrl-0 = <&pinctrl_uart4>;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800224 status = "okay";
225};