Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix |
| 3 | * Copyright 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>, Pengutronix |
| 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 | |
Shawn Guo | 36dffd8 | 2013-04-07 10:49:34 +0800 | [diff] [blame] | 13 | #include "imx53.dtsi" |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 14 | |
| 15 | / { |
| 16 | model = "TQ TQMa53"; |
| 17 | compatible = "tq,tqma53", "fsl,imx53"; |
| 18 | |
| 19 | memory { |
| 20 | reg = <0x70000000 0x40000000>; /* Up to 1GiB */ |
| 21 | }; |
| 22 | |
| 23 | regulators { |
| 24 | compatible = "simple-bus"; |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 25 | #address-cells = <1>; |
| 26 | #size-cells = <0>; |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 27 | |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 28 | reg_3p3v: regulator@0 { |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 29 | compatible = "regulator-fixed"; |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 30 | reg = <0>; |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 31 | regulator-name = "3P3V"; |
| 32 | regulator-min-microvolt = <3300000>; |
| 33 | regulator-max-microvolt = <3300000>; |
| 34 | regulator-always-on; |
| 35 | }; |
| 36 | }; |
| 37 | }; |
| 38 | |
| 39 | &esdhc2 { |
| 40 | pinctrl-names = "default"; |
Shawn Guo | 7ac0f70 | 2013-11-04 14:45:46 +0800 | [diff] [blame] | 41 | pinctrl-0 = <&pinctrl_esdhc2>, |
| 42 | <&pinctrl_esdhc2_cdwp>; |
Steffen Trumtrar | 1cbf45e | 2013-06-06 11:49:36 +0200 | [diff] [blame] | 43 | vmmc-supply = <®_3p3v>; |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 44 | wp-gpios = <&gpio1 2 0>; |
| 45 | cd-gpios = <&gpio1 4 0>; |
| 46 | status = "disabled"; |
| 47 | }; |
| 48 | |
| 49 | &uart3 { |
| 50 | pinctrl-names = "default"; |
Shawn Guo | 7ac0f70 | 2013-11-04 14:45:46 +0800 | [diff] [blame] | 51 | pinctrl-0 = <&pinctrl_uart3>; |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 52 | status = "disabled"; |
| 53 | }; |
| 54 | |
| 55 | &ecspi1 { |
| 56 | pinctrl-names = "default"; |
Shawn Guo | 7ac0f70 | 2013-11-04 14:45:46 +0800 | [diff] [blame] | 57 | pinctrl-0 = <&pinctrl_ecspi1>; |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 58 | fsl,spi-num-chipselects = <4>; |
| 59 | cs-gpios = <&gpio2 30 0>, <&gpio3 19 0>, |
| 60 | <&gpio3 24 0>, <&gpio3 25 0>; |
| 61 | status = "disabled"; |
| 62 | }; |
| 63 | |
| 64 | &esdhc3 { /* EMMC */ |
| 65 | pinctrl-names = "default"; |
Shawn Guo | 7ac0f70 | 2013-11-04 14:45:46 +0800 | [diff] [blame] | 66 | pinctrl-0 = <&pinctrl_esdhc3>; |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 67 | vmmc-supply = <®_3p3v>; |
| 68 | non-removable; |
| 69 | bus-width = <8>; |
| 70 | status = "okay"; |
| 71 | }; |
| 72 | |
| 73 | &iomuxc { |
| 74 | pinctrl-names = "default"; |
| 75 | pinctrl-0 = <&pinctrl_hog>; |
| 76 | |
Shawn Guo | 7ac0f70 | 2013-11-04 14:45:46 +0800 | [diff] [blame] | 77 | imx53-tqma53 { |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 78 | pinctrl_hog: hoggrp { |
| 79 | fsl,pins = < |
Philipp Zabel | ce2c243c | 2013-06-04 11:12:29 +0200 | [diff] [blame] | 80 | MX53_PAD_GPIO_0__CCM_SSI_EXT1_CLK 0x80000000 /* SSI_MCLK */ |
Philipp Zabel | 87bcb12 | 2013-06-04 11:12:28 +0200 | [diff] [blame] | 81 | MX53_PAD_PATA_DA_1__GPIO7_7 0x80000000 /* LCD_BLT_EN */ |
| 82 | MX53_PAD_PATA_DA_2__GPIO7_8 0x80000000 /* LCD_RESET */ |
| 83 | MX53_PAD_PATA_DATA5__GPIO2_5 0x80000000 /* LCD_POWER */ |
| 84 | MX53_PAD_PATA_DATA6__GPIO2_6 0x80000000 /* PMIC_INT */ |
| 85 | MX53_PAD_PATA_DATA14__GPIO2_14 0x80000000 /* CSI_RST */ |
| 86 | MX53_PAD_PATA_DATA15__GPIO2_15 0x80000000 /* CSI_PWDN */ |
Philipp Zabel | ce2c243c | 2013-06-04 11:12:29 +0200 | [diff] [blame] | 87 | MX53_PAD_GPIO_19__GPIO4_5 0x80000000 /* #SYSTEM_DOWN */ |
Philipp Zabel | 87bcb12 | 2013-06-04 11:12:28 +0200 | [diff] [blame] | 88 | MX53_PAD_GPIO_3__GPIO1_3 0x80000000 |
Philipp Zabel | ce2c243c | 2013-06-04 11:12:29 +0200 | [diff] [blame] | 89 | MX53_PAD_PATA_DA_0__GPIO7_6 0x80000000 /* #PHY_RESET */ |
| 90 | MX53_PAD_GPIO_1__PWM2_PWMO 0x80000000 /* LCD_CONTRAST */ |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 91 | >; |
| 92 | }; |
Shawn Guo | 7ac0f70 | 2013-11-04 14:45:46 +0800 | [diff] [blame] | 93 | |
| 94 | pinctrl_audmux: audmuxgrp { |
| 95 | fsl,pins = < |
| 96 | MX53_PAD_KEY_COL0__AUDMUX_AUD5_TXC 0x80000000 |
| 97 | MX53_PAD_KEY_ROW0__AUDMUX_AUD5_TXD 0x80000000 |
| 98 | MX53_PAD_KEY_COL1__AUDMUX_AUD5_TXFS 0x80000000 |
| 99 | MX53_PAD_KEY_ROW1__AUDMUX_AUD5_RXD 0x80000000 |
| 100 | >; |
| 101 | }; |
| 102 | |
| 103 | pinctrl_can1: can1grp { |
| 104 | fsl,pins = < |
| 105 | MX53_PAD_KEY_COL2__CAN1_TXCAN 0x80000000 |
| 106 | MX53_PAD_KEY_ROW2__CAN1_RXCAN 0x80000000 |
| 107 | >; |
| 108 | }; |
| 109 | |
| 110 | pinctrl_can2: can2grp { |
| 111 | fsl,pins = < |
| 112 | MX53_PAD_KEY_COL4__CAN2_TXCAN 0x80000000 |
| 113 | MX53_PAD_KEY_ROW4__CAN2_RXCAN 0x80000000 |
| 114 | >; |
| 115 | }; |
| 116 | |
| 117 | pinctrl_cspi: cspigrp { |
| 118 | fsl,pins = < |
| 119 | MX53_PAD_SD1_DATA0__CSPI_MISO 0x1d5 |
| 120 | MX53_PAD_SD1_CMD__CSPI_MOSI 0x1d5 |
| 121 | MX53_PAD_SD1_CLK__CSPI_SCLK 0x1d5 |
| 122 | >; |
| 123 | }; |
| 124 | |
| 125 | pinctrl_ecspi1: ecspi1grp { |
| 126 | fsl,pins = < |
| 127 | MX53_PAD_EIM_D16__ECSPI1_SCLK 0x80000000 |
| 128 | MX53_PAD_EIM_D17__ECSPI1_MISO 0x80000000 |
| 129 | MX53_PAD_EIM_D18__ECSPI1_MOSI 0x80000000 |
| 130 | >; |
| 131 | }; |
| 132 | |
| 133 | pinctrl_esdhc2: esdhc2grp { |
| 134 | fsl,pins = < |
| 135 | MX53_PAD_SD2_CMD__ESDHC2_CMD 0x1d5 |
| 136 | MX53_PAD_SD2_CLK__ESDHC2_CLK 0x1d5 |
| 137 | MX53_PAD_SD2_DATA0__ESDHC2_DAT0 0x1d5 |
| 138 | MX53_PAD_SD2_DATA1__ESDHC2_DAT1 0x1d5 |
| 139 | MX53_PAD_SD2_DATA2__ESDHC2_DAT2 0x1d5 |
| 140 | MX53_PAD_SD2_DATA3__ESDHC2_DAT3 0x1d5 |
| 141 | >; |
| 142 | }; |
| 143 | |
| 144 | pinctrl_esdhc2_cdwp: esdhc2cdwp { |
| 145 | fsl,pins = < |
| 146 | MX53_PAD_GPIO_4__GPIO1_4 0x80000000 /* SD2_CD */ |
| 147 | MX53_PAD_GPIO_2__GPIO1_2 0x80000000 /* SD2_WP */ |
| 148 | >; |
| 149 | }; |
| 150 | |
| 151 | pinctrl_esdhc3: esdhc3grp { |
| 152 | fsl,pins = < |
| 153 | MX53_PAD_PATA_DATA8__ESDHC3_DAT0 0x1d5 |
| 154 | MX53_PAD_PATA_DATA9__ESDHC3_DAT1 0x1d5 |
| 155 | MX53_PAD_PATA_DATA10__ESDHC3_DAT2 0x1d5 |
| 156 | MX53_PAD_PATA_DATA11__ESDHC3_DAT3 0x1d5 |
| 157 | MX53_PAD_PATA_DATA0__ESDHC3_DAT4 0x1d5 |
| 158 | MX53_PAD_PATA_DATA1__ESDHC3_DAT5 0x1d5 |
| 159 | MX53_PAD_PATA_DATA2__ESDHC3_DAT6 0x1d5 |
| 160 | MX53_PAD_PATA_DATA3__ESDHC3_DAT7 0x1d5 |
| 161 | MX53_PAD_PATA_RESET_B__ESDHC3_CMD 0x1d5 |
| 162 | MX53_PAD_PATA_IORDY__ESDHC3_CLK 0x1d5 |
| 163 | >; |
| 164 | }; |
| 165 | |
| 166 | pinctrl_fec: fecgrp { |
| 167 | fsl,pins = < |
| 168 | MX53_PAD_FEC_MDC__FEC_MDC 0x80000000 |
| 169 | MX53_PAD_FEC_MDIO__FEC_MDIO 0x80000000 |
| 170 | MX53_PAD_FEC_REF_CLK__FEC_TX_CLK 0x80000000 |
| 171 | MX53_PAD_FEC_RX_ER__FEC_RX_ER 0x80000000 |
| 172 | MX53_PAD_FEC_CRS_DV__FEC_RX_DV 0x80000000 |
| 173 | MX53_PAD_FEC_RXD1__FEC_RDATA_1 0x80000000 |
| 174 | MX53_PAD_FEC_RXD0__FEC_RDATA_0 0x80000000 |
| 175 | MX53_PAD_FEC_TX_EN__FEC_TX_EN 0x80000000 |
| 176 | MX53_PAD_FEC_TXD1__FEC_TDATA_1 0x80000000 |
| 177 | MX53_PAD_FEC_TXD0__FEC_TDATA_0 0x80000000 |
| 178 | >; |
| 179 | }; |
| 180 | |
| 181 | pinctrl_i2c2: i2c2grp { |
| 182 | fsl,pins = < |
| 183 | MX53_PAD_KEY_ROW3__I2C2_SDA 0xc0000000 |
| 184 | MX53_PAD_KEY_COL3__I2C2_SCL 0xc0000000 |
| 185 | >; |
| 186 | }; |
| 187 | |
| 188 | pinctrl_i2c3: i2c3grp { |
| 189 | fsl,pins = < |
| 190 | MX53_PAD_GPIO_6__I2C3_SDA 0xc0000000 |
| 191 | MX53_PAD_GPIO_5__I2C3_SCL 0xc0000000 |
| 192 | >; |
| 193 | }; |
| 194 | |
| 195 | pinctrl_uart1: uart1grp { |
| 196 | fsl,pins = < |
| 197 | MX53_PAD_PATA_DIOW__UART1_TXD_MUX 0x1e4 |
| 198 | MX53_PAD_PATA_DMACK__UART1_RXD_MUX 0x1e4 |
| 199 | >; |
| 200 | }; |
| 201 | |
| 202 | pinctrl_uart2: uart2grp { |
| 203 | fsl,pins = < |
| 204 | MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX 0x1e4 |
| 205 | MX53_PAD_PATA_DMARQ__UART2_TXD_MUX 0x1e4 |
| 206 | >; |
| 207 | }; |
| 208 | |
| 209 | pinctrl_uart3: uart3grp { |
| 210 | fsl,pins = < |
| 211 | MX53_PAD_PATA_CS_0__UART3_TXD_MUX 0x1e4 |
| 212 | MX53_PAD_PATA_CS_1__UART3_RXD_MUX 0x1e4 |
| 213 | >; |
| 214 | }; |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 215 | }; |
| 216 | }; |
| 217 | |
| 218 | &uart1 { |
| 219 | pinctrl-names = "default"; |
Shawn Guo | 7ac0f70 | 2013-11-04 14:45:46 +0800 | [diff] [blame] | 220 | pinctrl-0 = <&pinctrl_uart1>; |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 221 | fsl,uart-has-rtscts; |
| 222 | status = "disabled"; |
| 223 | }; |
| 224 | |
| 225 | &uart2 { |
| 226 | pinctrl-names = "default"; |
Shawn Guo | 7ac0f70 | 2013-11-04 14:45:46 +0800 | [diff] [blame] | 227 | pinctrl-0 = <&pinctrl_uart2>; |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 228 | status = "disabled"; |
| 229 | }; |
| 230 | |
| 231 | &can1 { |
| 232 | pinctrl-names = "default"; |
Shawn Guo | 7ac0f70 | 2013-11-04 14:45:46 +0800 | [diff] [blame] | 233 | pinctrl-0 = <&pinctrl_can1>; |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 234 | status = "disabled"; |
| 235 | }; |
| 236 | |
| 237 | &can2 { |
| 238 | pinctrl-names = "default"; |
Shawn Guo | 7ac0f70 | 2013-11-04 14:45:46 +0800 | [diff] [blame] | 239 | pinctrl-0 = <&pinctrl_can2>; |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 240 | status = "disabled"; |
| 241 | }; |
| 242 | |
| 243 | &i2c3 { |
| 244 | pinctrl-names = "default"; |
Shawn Guo | 7ac0f70 | 2013-11-04 14:45:46 +0800 | [diff] [blame] | 245 | pinctrl-0 = <&pinctrl_i2c3>; |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 246 | status = "disabled"; |
| 247 | }; |
| 248 | |
| 249 | &cspi { |
| 250 | pinctrl-names = "default"; |
Shawn Guo | 7ac0f70 | 2013-11-04 14:45:46 +0800 | [diff] [blame] | 251 | pinctrl-0 = <&pinctrl_cspi>; |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 252 | fsl,spi-num-chipselects = <3>; |
| 253 | cs-gpios = <&gpio1 18 0>, <&gpio1 19 0>, |
| 254 | <&gpio1 21 0>; |
| 255 | status = "disabled"; |
| 256 | }; |
| 257 | |
| 258 | &i2c2 { |
| 259 | pinctrl-names = "default"; |
Shawn Guo | 7ac0f70 | 2013-11-04 14:45:46 +0800 | [diff] [blame] | 260 | pinctrl-0 = <&pinctrl_i2c2>; |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 261 | status = "okay"; |
| 262 | |
| 263 | pmic: mc34708@8 { |
| 264 | compatible = "fsl,mc34708"; |
| 265 | reg = <0x8>; |
| 266 | fsl,mc13xxx-uses-rtc; |
| 267 | interrupt-parent = <&gpio2>; |
Sascha Hauer | 1aa6f57 | 2013-06-04 11:12:27 +0200 | [diff] [blame] | 268 | interrupts = <6 4>; /* PATA_DATA6, active high */ |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 269 | }; |
| 270 | |
| 271 | sensor1: lm75@48 { |
| 272 | compatible = "lm75"; |
| 273 | reg = <0x48>; |
| 274 | }; |
| 275 | |
| 276 | eeprom: 24c64@50 { |
| 277 | compatible = "at,24c64"; |
| 278 | pagesize = <32>; |
| 279 | reg = <0x50>; |
| 280 | }; |
| 281 | }; |
| 282 | |
| 283 | &fec { |
| 284 | pinctrl-names = "default"; |
Shawn Guo | 7ac0f70 | 2013-11-04 14:45:46 +0800 | [diff] [blame] | 285 | pinctrl-0 = <&pinctrl_fec>; |
Sascha Hauer | b17d516 | 2013-01-09 14:44:24 +0100 | [diff] [blame] | 286 | phy-mode = "rmii"; |
| 287 | status = "disabled"; |
| 288 | }; |