Shawn Guo | 7d740f8 | 2011-09-06 13:53:26 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2011 Freescale Semiconductor, Inc. |
| 3 | * Copyright 2011 Linaro Ltd. |
| 4 | * |
| 5 | * The code contained herein is licensed under the GNU General Public |
| 6 | * License. You may obtain a copy of the GNU General Public License |
| 7 | * Version 2 or later at the following locations: |
| 8 | * |
| 9 | * http://www.opensource.org/licenses/gpl-license.html |
| 10 | * http://www.gnu.org/copyleft/gpl.html |
| 11 | */ |
| 12 | |
| 13 | /dts-v1/; |
Shawn Guo | 36dffd8 | 2013-04-07 10:49:34 +0800 | [diff] [blame] | 14 | #include "imx6q.dtsi" |
Shawn Guo | 7d740f8 | 2011-09-06 13:53:26 +0800 | [diff] [blame] | 15 | |
| 16 | / { |
Dirk Behme | 752baf56 | 2011-12-08 08:22:01 +0100 | [diff] [blame] | 17 | model = "Freescale i.MX6 Quad Armadillo2 Board"; |
| 18 | compatible = "fsl,imx6q-arm2", "fsl,imx6q"; |
Shawn Guo | 7d740f8 | 2011-09-06 13:53:26 +0800 | [diff] [blame] | 19 | |
Shawn Guo | 7d740f8 | 2011-09-06 13:53:26 +0800 | [diff] [blame] | 20 | memory { |
| 21 | reg = <0x10000000 0x80000000>; |
| 22 | }; |
| 23 | |
Shawn Guo | 648162a | 2012-02-27 17:11:12 +0800 | [diff] [blame] | 24 | regulators { |
| 25 | compatible = "simple-bus"; |
| 26 | |
| 27 | reg_3p3v: 3p3v { |
| 28 | compatible = "regulator-fixed"; |
| 29 | regulator-name = "3P3V"; |
| 30 | regulator-min-microvolt = <3300000>; |
| 31 | regulator-max-microvolt = <3300000>; |
| 32 | regulator-always-on; |
| 33 | }; |
Peter Chen | 67339b3 | 2013-10-28 14:05:02 +0800 | [diff] [blame] | 34 | |
| 35 | reg_usb_otg_vbus: usb_otg_vbus { |
| 36 | compatible = "regulator-fixed"; |
| 37 | 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 Guo | 648162a | 2012-02-27 17:11:12 +0800 | [diff] [blame] | 43 | }; |
| 44 | |
Shawn Guo | 7d740f8 | 2011-09-06 13:53:26 +0800 | [diff] [blame] | 45 | leds { |
| 46 | compatible = "gpio-leds"; |
| 47 | |
| 48 | debug-led { |
| 49 | label = "Heartbeat"; |
Richard Zhao | 4d19186 | 2011-12-14 09:26:44 +0800 | [diff] [blame] | 50 | gpios = <&gpio3 25 0>; |
Shawn Guo | 7d740f8 | 2011-09-06 13:53:26 +0800 | [diff] [blame] | 51 | linux,default-trigger = "heartbeat"; |
| 52 | }; |
| 53 | }; |
| 54 | }; |
Shawn Guo | be4ccfc | 2012-12-31 11:32:48 +0800 | [diff] [blame] | 55 | |
| 56 | &gpmi { |
| 57 | pinctrl-names = "default"; |
Shawn Guo | 817c27a | 2013-10-23 15:36:09 +0800 | [diff] [blame] | 58 | pinctrl-0 = <&pinctrl_gpmi_nand>; |
Shawn Guo | be4ccfc | 2012-12-31 11:32:48 +0800 | [diff] [blame] | 59 | status = "disabled"; /* gpmi nand conflicts with SD */ |
| 60 | }; |
| 61 | |
| 62 | &iomuxc { |
| 63 | pinctrl-names = "default"; |
| 64 | pinctrl-0 = <&pinctrl_hog>; |
| 65 | |
Shawn Guo | 817c27a | 2013-10-23 15:36:09 +0800 | [diff] [blame] | 66 | imx6q-arm2 { |
Shawn Guo | be4ccfc | 2012-12-31 11:32:48 +0800 | [diff] [blame] | 67 | pinctrl_hog: hoggrp { |
| 68 | fsl,pins = < |
Shawn Guo | c56009b2f | 2013-07-11 13:58:36 +0800 | [diff] [blame] | 69 | MX6QDL_PAD_EIM_D25__GPIO3_IO25 0x80000000 |
Shawn Guo | be4ccfc | 2012-12-31 11:32:48 +0800 | [diff] [blame] | 70 | >; |
| 71 | }; |
Shawn Guo | be4ccfc | 2012-12-31 11:32:48 +0800 | [diff] [blame] | 72 | |
Shawn Guo | 817c27a | 2013-10-23 15:36:09 +0800 | [diff] [blame] | 73 | pinctrl_enet: enetgrp { |
| 74 | fsl,pins = < |
| 75 | MX6QDL_PAD_KEY_COL1__ENET_MDIO 0x1b0b0 |
| 76 | MX6QDL_PAD_KEY_COL2__ENET_MDC 0x1b0b0 |
| 77 | MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b0b0 |
| 78 | MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b0b0 |
| 79 | MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b0b0 |
| 80 | MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b0b0 |
| 81 | MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b0b0 |
| 82 | MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b0b0 |
| 83 | MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0 |
| 84 | MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b0b0 |
| 85 | MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b0b0 |
| 86 | MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b0b0 |
| 87 | MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b0b0 |
| 88 | MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b0b0 |
| 89 | MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b0b0 |
| 90 | >; |
| 91 | }; |
| 92 | |
| 93 | pinctrl_gpmi_nand: gpminandgrp { |
| 94 | fsl,pins = < |
| 95 | MX6QDL_PAD_NANDF_CLE__NAND_CLE 0xb0b1 |
| 96 | MX6QDL_PAD_NANDF_ALE__NAND_ALE 0xb0b1 |
| 97 | MX6QDL_PAD_NANDF_WP_B__NAND_WP_B 0xb0b1 |
| 98 | MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000 |
| 99 | MX6QDL_PAD_NANDF_CS0__NAND_CE0_B 0xb0b1 |
| 100 | MX6QDL_PAD_NANDF_CS1__NAND_CE1_B 0xb0b1 |
| 101 | MX6QDL_PAD_SD4_CMD__NAND_RE_B 0xb0b1 |
| 102 | MX6QDL_PAD_SD4_CLK__NAND_WE_B 0xb0b1 |
| 103 | MX6QDL_PAD_NANDF_D0__NAND_DATA00 0xb0b1 |
| 104 | MX6QDL_PAD_NANDF_D1__NAND_DATA01 0xb0b1 |
| 105 | MX6QDL_PAD_NANDF_D2__NAND_DATA02 0xb0b1 |
| 106 | MX6QDL_PAD_NANDF_D3__NAND_DATA03 0xb0b1 |
| 107 | MX6QDL_PAD_NANDF_D4__NAND_DATA04 0xb0b1 |
| 108 | MX6QDL_PAD_NANDF_D5__NAND_DATA05 0xb0b1 |
| 109 | MX6QDL_PAD_NANDF_D6__NAND_DATA06 0xb0b1 |
| 110 | MX6QDL_PAD_NANDF_D7__NAND_DATA07 0xb0b1 |
| 111 | MX6QDL_PAD_SD4_DAT0__NAND_DQS 0x00b1 |
| 112 | >; |
| 113 | }; |
| 114 | |
| 115 | pinctrl_uart2: uart2grp { |
| 116 | fsl,pins = < |
| 117 | MX6QDL_PAD_EIM_D26__UART2_RX_DATA 0x1b0b1 |
| 118 | MX6QDL_PAD_EIM_D27__UART2_TX_DATA 0x1b0b1 |
| 119 | MX6QDL_PAD_EIM_D28__UART2_DTE_CTS_B 0x1b0b1 |
| 120 | MX6QDL_PAD_EIM_D29__UART2_DTE_RTS_B 0x1b0b1 |
| 121 | >; |
| 122 | }; |
| 123 | |
| 124 | pinctrl_uart4: uart4grp { |
| 125 | fsl,pins = < |
| 126 | MX6QDL_PAD_KEY_COL0__UART4_TX_DATA 0x1b0b1 |
| 127 | MX6QDL_PAD_KEY_ROW0__UART4_RX_DATA 0x1b0b1 |
| 128 | >; |
| 129 | }; |
| 130 | |
| 131 | pinctrl_usbotg: usbotggrp { |
| 132 | fsl,pins = < |
| 133 | MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059 |
| 134 | >; |
| 135 | }; |
| 136 | |
| 137 | pinctrl_usdhc3: usdhc3grp { |
| 138 | fsl,pins = < |
| 139 | MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059 |
| 140 | MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059 |
| 141 | MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059 |
| 142 | MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059 |
| 143 | MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059 |
| 144 | MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059 |
| 145 | MX6QDL_PAD_SD3_DAT4__SD3_DATA4 0x17059 |
| 146 | MX6QDL_PAD_SD3_DAT5__SD3_DATA5 0x17059 |
| 147 | MX6QDL_PAD_SD3_DAT6__SD3_DATA6 0x17059 |
| 148 | MX6QDL_PAD_SD3_DAT7__SD3_DATA7 0x17059 |
| 149 | >; |
| 150 | }; |
| 151 | |
| 152 | pinctrl_usdhc3_cdwp: usdhc3cdwp { |
Shawn Guo | be4ccfc | 2012-12-31 11:32:48 +0800 | [diff] [blame] | 153 | fsl,pins = < |
Shawn Guo | c56009b2f | 2013-07-11 13:58:36 +0800 | [diff] [blame] | 154 | MX6QDL_PAD_NANDF_CS0__GPIO6_IO11 0x80000000 |
| 155 | MX6QDL_PAD_NANDF_CS1__GPIO6_IO14 0x80000000 |
Shawn Guo | be4ccfc | 2012-12-31 11:32:48 +0800 | [diff] [blame] | 156 | >; |
| 157 | }; |
Shawn Guo | 817c27a | 2013-10-23 15:36:09 +0800 | [diff] [blame] | 158 | |
| 159 | pinctrl_usdhc4: usdhc4grp { |
| 160 | fsl,pins = < |
| 161 | MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059 |
| 162 | MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059 |
| 163 | MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059 |
| 164 | MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059 |
| 165 | MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059 |
| 166 | MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059 |
| 167 | MX6QDL_PAD_SD4_DAT4__SD4_DATA4 0x17059 |
| 168 | MX6QDL_PAD_SD4_DAT5__SD4_DATA5 0x17059 |
| 169 | MX6QDL_PAD_SD4_DAT6__SD4_DATA6 0x17059 |
| 170 | MX6QDL_PAD_SD4_DAT7__SD4_DATA7 0x17059 |
| 171 | >; |
| 172 | }; |
Shawn Guo | be4ccfc | 2012-12-31 11:32:48 +0800 | [diff] [blame] | 173 | }; |
| 174 | }; |
| 175 | |
| 176 | &fec { |
| 177 | pinctrl-names = "default"; |
Shawn Guo | 817c27a | 2013-10-23 15:36:09 +0800 | [diff] [blame] | 178 | pinctrl-0 = <&pinctrl_enet>; |
Shawn Guo | be4ccfc | 2012-12-31 11:32:48 +0800 | [diff] [blame] | 179 | phy-mode = "rgmii"; |
| 180 | status = "okay"; |
| 181 | }; |
| 182 | |
Peter Chen | 67339b3 | 2013-10-28 14:05:02 +0800 | [diff] [blame] | 183 | &usbotg { |
| 184 | vbus-supply = <®_usb_otg_vbus>; |
| 185 | pinctrl-names = "default"; |
Shawn Guo | 817c27a | 2013-10-23 15:36:09 +0800 | [diff] [blame] | 186 | pinctrl-0 = <&pinctrl_usbotg>; |
Peter Chen | 67339b3 | 2013-10-28 14:05:02 +0800 | [diff] [blame] | 187 | disable-over-current; |
| 188 | status = "okay"; |
| 189 | }; |
| 190 | |
Shawn Guo | be4ccfc | 2012-12-31 11:32:48 +0800 | [diff] [blame] | 191 | &usdhc3 { |
| 192 | cd-gpios = <&gpio6 11 0>; |
| 193 | wp-gpios = <&gpio6 14 0>; |
| 194 | vmmc-supply = <®_3p3v>; |
| 195 | pinctrl-names = "default"; |
Shawn Guo | 817c27a | 2013-10-23 15:36:09 +0800 | [diff] [blame] | 196 | pinctrl-0 = <&pinctrl_usdhc3 |
| 197 | &pinctrl_usdhc3_cdwp>; |
Shawn Guo | be4ccfc | 2012-12-31 11:32:48 +0800 | [diff] [blame] | 198 | status = "okay"; |
| 199 | }; |
| 200 | |
| 201 | &usdhc4 { |
| 202 | non-removable; |
| 203 | vmmc-supply = <®_3p3v>; |
| 204 | pinctrl-names = "default"; |
Shawn Guo | 817c27a | 2013-10-23 15:36:09 +0800 | [diff] [blame] | 205 | pinctrl-0 = <&pinctrl_usdhc4>; |
Shawn Guo | be4ccfc | 2012-12-31 11:32:48 +0800 | [diff] [blame] | 206 | status = "okay"; |
| 207 | }; |
| 208 | |
Huang Shijie | 51056d9 | 2013-07-08 17:14:22 +0800 | [diff] [blame] | 209 | &uart2 { |
| 210 | pinctrl-names = "default"; |
Shawn Guo | 817c27a | 2013-10-23 15:36:09 +0800 | [diff] [blame] | 211 | pinctrl-0 = <&pinctrl_uart2>; |
Huang Shijie | 51056d9 | 2013-07-08 17:14:22 +0800 | [diff] [blame] | 212 | fsl,dte-mode; |
| 213 | fsl,uart-has-rtscts; |
Huang Shijie | 51056d9 | 2013-07-08 17:14:22 +0800 | [diff] [blame] | 214 | status = "okay"; |
| 215 | }; |
| 216 | |
Shawn Guo | be4ccfc | 2012-12-31 11:32:48 +0800 | [diff] [blame] | 217 | &uart4 { |
| 218 | pinctrl-names = "default"; |
Shawn Guo | 817c27a | 2013-10-23 15:36:09 +0800 | [diff] [blame] | 219 | pinctrl-0 = <&pinctrl_uart4>; |
Shawn Guo | be4ccfc | 2012-12-31 11:32:48 +0800 | [diff] [blame] | 220 | status = "okay"; |
| 221 | }; |