Fabio Estevam | 5349f2a | 2012-04-11 22:12:11 -0300 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 Sascha Hauer, Pengutronix |
| 3 | * |
| 4 | * The code contained herein is licensed under the GNU General Public |
| 5 | * License. You may obtain a copy of the GNU General Public License |
| 6 | * Version 2 or later at the following locations: |
| 7 | * |
| 8 | * http://www.opensource.org/licenses/gpl-license.html |
| 9 | * http://www.gnu.org/copyleft/gpl.html |
| 10 | */ |
| 11 | |
| 12 | /dts-v1/; |
Shawn Guo | 36dffd8 | 2013-04-07 10:49:34 +0800 | [diff] [blame] | 13 | #include "imx27.dtsi" |
Fabio Estevam | 5349f2a | 2012-04-11 22:12:11 -0300 | [diff] [blame] | 14 | |
| 15 | / { |
Fabio Estevam | 991eb58 | 2012-12-25 09:10:51 -0200 | [diff] [blame] | 16 | model = "Freescale i.MX27 Product Development Kit"; |
| 17 | compatible = "fsl,imx27-pdk", "fsl,imx27"; |
Fabio Estevam | 5349f2a | 2012-04-11 22:12:11 -0300 | [diff] [blame] | 18 | |
| 19 | memory { |
Fabio Estevam | 88308ed | 2014-04-02 19:25:44 -0300 | [diff] [blame] | 20 | reg = <0xa0000000 0x08000000>; |
Fabio Estevam | 5349f2a | 2012-04-11 22:12:11 -0300 | [diff] [blame] | 21 | }; |
Fabio Estevam | dd860a9 | 2014-04-16 14:53:20 -0300 | [diff] [blame] | 22 | |
| 23 | usbphy { |
| 24 | compatible = "simple-bus"; |
| 25 | #address-cells = <1>; |
| 26 | #size-cells = <0>; |
| 27 | |
| 28 | usbphy0: usbphy@0 { |
| 29 | compatible = "usb-nop-xceiv"; |
| 30 | reg = <0>; |
Alexander Shiyan | ea336fa8 | 2014-07-05 09:36:07 +0400 | [diff] [blame] | 31 | clocks = <&clks IMX27_CLK_DUMMY>; |
Fabio Estevam | dd860a9 | 2014-04-16 14:53:20 -0300 | [diff] [blame] | 32 | clock-names = "main_clk"; |
| 33 | }; |
| 34 | }; |
Shawn Guo | be4ccfc | 2012-12-31 11:32:48 +0800 | [diff] [blame] | 35 | }; |
Fabio Estevam | 5349f2a | 2012-04-11 22:12:11 -0300 | [diff] [blame] | 36 | |
Fabio Estevam | 2636c1e | 2014-04-15 18:55:12 -0300 | [diff] [blame] | 37 | &cspi2 { |
| 38 | pinctrl-names = "default"; |
| 39 | pinctrl-0 = <&pinctrl_cspi2>; |
| 40 | fsl,spi-num-chipselects = <1>; |
| 41 | cs-gpios = <&gpio4 21 GPIO_ACTIVE_HIGH>; |
| 42 | status = "okay"; |
| 43 | |
| 44 | pmic: mc13783@0 { |
Fabio Estevam | 2636c1e | 2014-04-15 18:55:12 -0300 | [diff] [blame] | 45 | compatible = "fsl,mc13783"; |
| 46 | reg = <0>; |
| 47 | spi-cs-high; |
| 48 | spi-max-frequency = <1000000>; |
| 49 | interrupt-parent = <&gpio3>; |
| 50 | interrupts = <14 IRQ_TYPE_LEVEL_HIGH>; |
| 51 | |
| 52 | regulators { |
| 53 | vgen_reg: vgen { |
| 54 | regulator-min-microvolt = <1500000>; |
| 55 | regulator-max-microvolt = <1500000>; |
| 56 | regulator-always-on; |
| 57 | regulator-boot-on; |
| 58 | }; |
| 59 | |
| 60 | vmmc1_reg: vmmc1 { |
| 61 | regulator-min-microvolt = <1600000>; |
| 62 | regulator-max-microvolt = <3000000>; |
| 63 | }; |
| 64 | |
| 65 | gpo1_reg: gpo1 { |
| 66 | regulator-always-on; |
| 67 | regulator-boot-on; |
| 68 | }; |
| 69 | |
| 70 | gpo3_reg: gpo3 { |
| 71 | regulator-always-on; |
| 72 | regulator-boot-on; |
| 73 | }; |
| 74 | }; |
| 75 | }; |
| 76 | }; |
Fabio Estevam | 09c7450 | 2014-04-13 11:48:41 -0300 | [diff] [blame] | 77 | |
| 78 | &fec { |
Fabio Estevam | 702fbb8 | 2014-04-13 11:48:43 -0300 | [diff] [blame] | 79 | phy-mode = "mii"; |
| 80 | pinctrl-names = "default"; |
| 81 | pinctrl-0 = <&pinctrl_fec>; |
Shawn Guo | be4ccfc | 2012-12-31 11:32:48 +0800 | [diff] [blame] | 82 | status = "okay"; |
| 83 | }; |
Fabio Estevam | 5349f2a | 2012-04-11 22:12:11 -0300 | [diff] [blame] | 84 | |
Fabio Estevam | f6bd3f3 | 2014-04-17 15:23:31 -0300 | [diff] [blame] | 85 | &kpp { |
| 86 | linux,keymap = < |
| 87 | MATRIX_KEY(0, 0, KEY_UP) |
| 88 | MATRIX_KEY(0, 1, KEY_DOWN) |
| 89 | MATRIX_KEY(1, 0, KEY_RIGHT) |
| 90 | MATRIX_KEY(1, 1, KEY_LEFT) |
| 91 | MATRIX_KEY(1, 2, KEY_ENTER) |
| 92 | MATRIX_KEY(2, 0, KEY_F6) |
| 93 | MATRIX_KEY(2, 1, KEY_F8) |
| 94 | MATRIX_KEY(2, 2, KEY_F9) |
| 95 | MATRIX_KEY(2, 3, KEY_F10) |
| 96 | >; |
| 97 | status = "okay"; |
| 98 | }; |
| 99 | |
Fabio Estevam | b41331e | 2014-04-17 15:23:30 -0300 | [diff] [blame] | 100 | &nfc { |
| 101 | pinctrl-names = "default"; |
| 102 | pinctrl-0 = <&pinctrl_nand>; |
| 103 | nand-ecc-mode = "hw"; |
| 104 | nand-on-flash-bbt; |
| 105 | status = "okay"; |
| 106 | }; |
| 107 | |
Fabio Estevam | 09c7450 | 2014-04-13 11:48:41 -0300 | [diff] [blame] | 108 | &uart1 { |
| 109 | fsl,uart-has-rtscts; |
Fabio Estevam | e587732 | 2014-04-13 11:48:42 -0300 | [diff] [blame] | 110 | pinctrl-names = "default"; |
| 111 | pinctrl-0 = <&pinctrl_uart1>; |
Shawn Guo | be4ccfc | 2012-12-31 11:32:48 +0800 | [diff] [blame] | 112 | status = "okay"; |
Fabio Estevam | 5349f2a | 2012-04-11 22:12:11 -0300 | [diff] [blame] | 113 | }; |
Fabio Estevam | e587732 | 2014-04-13 11:48:42 -0300 | [diff] [blame] | 114 | |
Fabio Estevam | dd860a9 | 2014-04-16 14:53:20 -0300 | [diff] [blame] | 115 | &usbotg { |
| 116 | pinctrl-names = "default"; |
| 117 | pinctrl-0 = <&pinctrl_usbotg>; |
| 118 | dr_mode = "otg"; |
| 119 | fsl,usbphy = <&usbphy0>; |
| 120 | phy_type = "ulpi"; |
| 121 | status = "okay"; |
| 122 | }; |
| 123 | |
Fabio Estevam | e587732 | 2014-04-13 11:48:42 -0300 | [diff] [blame] | 124 | &iomuxc { |
| 125 | imx27-pdk { |
Fabio Estevam | 2636c1e | 2014-04-15 18:55:12 -0300 | [diff] [blame] | 126 | pinctrl_cspi2: cspi2grp { |
| 127 | fsl,pins = < |
| 128 | MX27_PAD_CSPI2_MISO__CSPI2_MISO 0x0 |
| 129 | MX27_PAD_CSPI2_MOSI__CSPI2_MOSI 0x0 |
| 130 | MX27_PAD_CSPI2_SCLK__CSPI2_SCLK 0x0 |
| 131 | MX27_PAD_CSPI2_SS0__GPIO4_21 0x0 /* SPI2 CS0 */ |
| 132 | MX27_PAD_TOUT__GPIO3_14 0x0 /* PMIC IRQ */ |
| 133 | >; |
| 134 | }; |
| 135 | |
Fabio Estevam | 702fbb8 | 2014-04-13 11:48:43 -0300 | [diff] [blame] | 136 | pinctrl_fec: fecgrp { |
| 137 | fsl,pins = < |
| 138 | MX27_PAD_SD3_CMD__FEC_TXD0 0x0 |
| 139 | MX27_PAD_SD3_CLK__FEC_TXD1 0x0 |
| 140 | MX27_PAD_ATA_DATA0__FEC_TXD2 0x0 |
| 141 | MX27_PAD_ATA_DATA1__FEC_TXD3 0x0 |
| 142 | MX27_PAD_ATA_DATA2__FEC_RX_ER 0x0 |
| 143 | MX27_PAD_ATA_DATA3__FEC_RXD1 0x0 |
| 144 | MX27_PAD_ATA_DATA4__FEC_RXD2 0x0 |
| 145 | MX27_PAD_ATA_DATA5__FEC_RXD3 0x0 |
| 146 | MX27_PAD_ATA_DATA6__FEC_MDIO 0x0 |
| 147 | MX27_PAD_ATA_DATA7__FEC_MDC 0x0 |
| 148 | MX27_PAD_ATA_DATA8__FEC_CRS 0x0 |
| 149 | MX27_PAD_ATA_DATA9__FEC_TX_CLK 0x0 |
| 150 | MX27_PAD_ATA_DATA10__FEC_RXD0 0x0 |
| 151 | MX27_PAD_ATA_DATA11__FEC_RX_DV 0x0 |
| 152 | MX27_PAD_ATA_DATA12__FEC_RX_CLK 0x0 |
| 153 | MX27_PAD_ATA_DATA13__FEC_COL 0x0 |
| 154 | MX27_PAD_ATA_DATA14__FEC_TX_ER 0x0 |
| 155 | MX27_PAD_ATA_DATA15__FEC_TX_EN 0x0 |
| 156 | >; |
| 157 | }; |
| 158 | |
Fabio Estevam | b41331e | 2014-04-17 15:23:30 -0300 | [diff] [blame] | 159 | pinctrl_nand: nandgrp { |
| 160 | fsl,pins = < |
| 161 | MX27_PAD_NFRB__NFRB 0x0 |
| 162 | MX27_PAD_NFCLE__NFCLE 0x0 |
| 163 | MX27_PAD_NFWP_B__NFWP_B 0x0 |
| 164 | MX27_PAD_NFCE_B__NFCE_B 0x0 |
| 165 | MX27_PAD_NFALE__NFALE 0x0 |
| 166 | MX27_PAD_NFRE_B__NFRE_B 0x0 |
| 167 | MX27_PAD_NFWE_B__NFWE_B 0x0 |
| 168 | >; |
| 169 | }; |
| 170 | |
Fabio Estevam | e587732 | 2014-04-13 11:48:42 -0300 | [diff] [blame] | 171 | pinctrl_uart1: uart1grp { |
| 172 | fsl,pins = < |
| 173 | MX27_PAD_UART1_TXD__UART1_TXD 0x0 |
| 174 | MX27_PAD_UART1_RXD__UART1_RXD 0x0 |
| 175 | MX27_PAD_UART1_CTS__UART1_CTS 0x0 |
| 176 | MX27_PAD_UART1_RTS__UART1_RTS 0x0 |
| 177 | >; |
| 178 | }; |
Fabio Estevam | dd860a9 | 2014-04-16 14:53:20 -0300 | [diff] [blame] | 179 | |
| 180 | pinctrl_usbotg: usbotggrp { |
| 181 | fsl,pins = < |
| 182 | MX27_PAD_USBOTG_NXT__USBOTG_NXT 0x0 |
| 183 | MX27_PAD_USBOTG_STP__USBOTG_STP 0x0 |
| 184 | MX27_PAD_USBOTG_DIR__USBOTG_DIR 0x0 |
| 185 | MX27_PAD_USBOTG_CLK__USBOTG_CLK 0x0 |
| 186 | MX27_PAD_USBOTG_DATA0__USBOTG_DATA0 0x0 |
| 187 | MX27_PAD_USBOTG_DATA1__USBOTG_DATA1 0x0 |
| 188 | MX27_PAD_USBOTG_DATA2__USBOTG_DATA2 0x0 |
| 189 | MX27_PAD_USBOTG_DATA3__USBOTG_DATA3 0x0 |
| 190 | MX27_PAD_USBOTG_DATA4__USBOTG_DATA4 0x0 |
| 191 | MX27_PAD_USBOTG_DATA5__USBOTG_DATA5 0x0 |
| 192 | MX27_PAD_USBOTG_DATA6__USBOTG_DATA6 0x0 |
| 193 | MX27_PAD_USBOTG_DATA7__USBOTG_DATA7 0x0 |
| 194 | >; |
| 195 | }; |
Fabio Estevam | e587732 | 2014-04-13 11:48:42 -0300 | [diff] [blame] | 196 | }; |
| 197 | }; |