Marek Vasut | 8fa62e1 | 2012-07-07 21:21:38 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 Marek Vasut <marex@denx.de> |
| 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/; |
| 13 | /include/ "imx28.dtsi" |
| 14 | |
| 15 | / { |
| 16 | model = "DENX M28EVK"; |
| 17 | compatible = "denx,m28evk", "fsl,imx28"; |
| 18 | |
| 19 | memory { |
| 20 | reg = <0x40000000 0x08000000>; |
| 21 | }; |
| 22 | |
| 23 | apb@80000000 { |
| 24 | apbh@80000000 { |
| 25 | gpmi-nand@8000c000 { |
Marek Vasut | 91ed493 | 2012-08-26 14:59:31 +0200 | [diff] [blame] | 26 | #address-cells = <1>; |
| 27 | #size-cells = <1>; |
Marek Vasut | 8fa62e1 | 2012-07-07 21:21:38 +0800 | [diff] [blame] | 28 | pinctrl-names = "default"; |
| 29 | pinctrl-0 = <&gpmi_pins_a &gpmi_status_cfg>; |
| 30 | status = "okay"; |
| 31 | |
| 32 | partition@0 { |
| 33 | label = "bootloader"; |
| 34 | reg = <0x00000000 0x00300000>; |
| 35 | read-only; |
| 36 | }; |
| 37 | |
| 38 | partition@1 { |
| 39 | label = "environment"; |
| 40 | reg = <0x00300000 0x00080000>; |
| 41 | }; |
| 42 | |
| 43 | partition@2 { |
| 44 | label = "redundant-environment"; |
| 45 | reg = <0x00380000 0x00080000>; |
| 46 | }; |
| 47 | |
| 48 | partition@3 { |
| 49 | label = "kernel"; |
| 50 | reg = <0x00400000 0x00400000>; |
| 51 | }; |
| 52 | |
| 53 | partition@4 { |
| 54 | label = "filesystem"; |
| 55 | reg = <0x00800000 0x0f800000>; |
| 56 | }; |
| 57 | }; |
| 58 | |
| 59 | ssp0: ssp@80010000 { |
| 60 | compatible = "fsl,imx28-mmc"; |
| 61 | pinctrl-names = "default"; |
| 62 | pinctrl-0 = <&mmc0_8bit_pins_a |
| 63 | &mmc0_cd_cfg |
| 64 | &mmc0_sck_cfg>; |
| 65 | bus-width = <8>; |
Marek Vasut | acd3b69 | 2012-09-05 04:56:56 +0200 | [diff] [blame] | 66 | wp-gpios = <&gpio3 10 0>; |
Marek Vasut | 91ed493 | 2012-08-26 14:59:31 +0200 | [diff] [blame] | 67 | vmmc-supply = <®_vddio_sd0>; |
Marek Vasut | 8fa62e1 | 2012-07-07 21:21:38 +0800 | [diff] [blame] | 68 | status = "okay"; |
| 69 | }; |
| 70 | |
Marek Vasut | 91ed493 | 2012-08-26 14:59:31 +0200 | [diff] [blame] | 71 | ssp2: ssp@80014000 { |
| 72 | #address-cells = <1>; |
| 73 | #size-cells = <0>; |
| 74 | compatible = "fsl,imx28-spi"; |
| 75 | pinctrl-names = "default"; |
| 76 | pinctrl-0 = <&spi2_pins_a>; |
| 77 | status = "okay"; |
| 78 | |
| 79 | flash: m25p80@0 { |
| 80 | #address-cells = <1>; |
| 81 | #size-cells = <1>; |
| 82 | compatible = "m25p80"; |
| 83 | spi-max-frequency = <40000000>; |
| 84 | reg = <0>; |
| 85 | }; |
| 86 | }; |
| 87 | |
Marek Vasut | 8fa62e1 | 2012-07-07 21:21:38 +0800 | [diff] [blame] | 88 | pinctrl@80018000 { |
| 89 | pinctrl-names = "default"; |
| 90 | pinctrl-0 = <&hog_pins_a>; |
| 91 | |
Fabio Estevam | e0e35b4 | 2012-08-22 13:25:31 -0300 | [diff] [blame] | 92 | hog_pins_a: hog@0 { |
Marek Vasut | 8fa62e1 | 2012-07-07 21:21:38 +0800 | [diff] [blame] | 93 | reg = <0>; |
| 94 | fsl,pinmux-ids = < |
Marek Vasut | 91ed493 | 2012-08-26 14:59:31 +0200 | [diff] [blame] | 95 | 0x31c3 /* MX28_PAD_PWM3__GPIO_3_28 */ |
Marek Vasut | 8fa62e1 | 2012-07-07 21:21:38 +0800 | [diff] [blame] | 96 | 0x30a3 /* MX28_PAD_AUART2_CTS__GPIO_3_10 */ |
| 97 | 0x30b3 /* MX28_PAD_AUART2_RTS__GPIO_3_11 */ |
Marek Vasut | 91ed493 | 2012-08-26 14:59:31 +0200 | [diff] [blame] | 98 | 0x30c3 /* MX28_PAD_AUART3_RX__GPIO_3_12 */ |
| 99 | 0x30d3 /* MX28_PAD_AUART3_TX__GPIO_3_13 */ |
Marek Vasut | 8fa62e1 | 2012-07-07 21:21:38 +0800 | [diff] [blame] | 100 | >; |
| 101 | fsl,drive-strength = <0>; |
| 102 | fsl,voltage = <1>; |
| 103 | fsl,pull-up = <0>; |
| 104 | }; |
| 105 | |
| 106 | lcdif_pins_m28: lcdif-m28@0 { |
| 107 | reg = <0>; |
| 108 | fsl,pinmux-ids = < |
| 109 | 0x11e0 /* MX28_PAD_LCD_DOTCLK__LCD_DOTCLK */ |
| 110 | 0x11f0 /* MX28_PAD_LCD_ENABLE__LCD_ENABLE */ |
| 111 | >; |
| 112 | fsl,drive-strength = <0>; |
| 113 | fsl,voltage = <1>; |
| 114 | fsl,pull-up = <0>; |
| 115 | }; |
| 116 | }; |
| 117 | |
| 118 | lcdif@80030000 { |
| 119 | pinctrl-names = "default"; |
| 120 | pinctrl-0 = <&lcdif_24bit_pins_a |
| 121 | &lcdif_pins_m28>; |
| 122 | status = "okay"; |
| 123 | }; |
| 124 | |
| 125 | can0: can@80032000 { |
| 126 | pinctrl-names = "default"; |
| 127 | pinctrl-0 = <&can0_pins_a>; |
| 128 | status = "okay"; |
| 129 | }; |
| 130 | |
| 131 | can1: can@80034000 { |
| 132 | pinctrl-names = "default"; |
| 133 | pinctrl-0 = <&can1_pins_a>; |
| 134 | status = "okay"; |
| 135 | }; |
| 136 | }; |
| 137 | |
| 138 | apbx@80040000 { |
| 139 | saif0: saif@80042000 { |
| 140 | pinctrl-names = "default"; |
| 141 | pinctrl-0 = <&saif0_pins_a>; |
| 142 | status = "okay"; |
| 143 | }; |
| 144 | |
| 145 | saif1: saif@80046000 { |
| 146 | pinctrl-names = "default"; |
| 147 | pinctrl-0 = <&saif1_pins_a>; |
| 148 | fsl,saif-master = <&saif0>; |
| 149 | status = "okay"; |
| 150 | }; |
| 151 | |
| 152 | i2c0: i2c@80058000 { |
| 153 | pinctrl-names = "default"; |
| 154 | pinctrl-0 = <&i2c0_pins_a>; |
Marek Vasut | 91ed493 | 2012-08-26 14:59:31 +0200 | [diff] [blame] | 155 | clock-frequency = <400000>; |
Marek Vasut | 8fa62e1 | 2012-07-07 21:21:38 +0800 | [diff] [blame] | 156 | status = "okay"; |
| 157 | |
| 158 | sgtl5000: codec@0a { |
| 159 | compatible = "fsl,sgtl5000"; |
| 160 | reg = <0x0a>; |
| 161 | VDDA-supply = <®_3p3v>; |
| 162 | VDDIO-supply = <®_3p3v>; |
| 163 | |
| 164 | }; |
| 165 | |
| 166 | eeprom: eeprom@51 { |
| 167 | compatible = "atmel,24c128"; |
| 168 | reg = <0x51>; |
| 169 | pagesize = <32>; |
| 170 | }; |
| 171 | |
| 172 | rtc: rtc@68 { |
| 173 | compatible = "stm,mt41t62"; |
| 174 | reg = <0x68>; |
| 175 | }; |
| 176 | }; |
| 177 | |
Marek Vasut | 91ed493 | 2012-08-26 14:59:31 +0200 | [diff] [blame] | 178 | lradc@80050000 { |
| 179 | status = "okay"; |
Marek Vasut | da021ee | 2013-01-12 00:35:08 +0100 | [diff] [blame^] | 180 | fsl,lradc-touchscreen-wires = <4>; |
Marek Vasut | 91ed493 | 2012-08-26 14:59:31 +0200 | [diff] [blame] | 181 | }; |
| 182 | |
Marek Vasut | 8fa62e1 | 2012-07-07 21:21:38 +0800 | [diff] [blame] | 183 | duart: serial@80074000 { |
| 184 | pinctrl-names = "default"; |
| 185 | pinctrl-0 = <&duart_pins_a>; |
| 186 | status = "okay"; |
| 187 | }; |
| 188 | |
Marek Vasut | 91ed493 | 2012-08-26 14:59:31 +0200 | [diff] [blame] | 189 | usbphy0: usbphy@8007c000 { |
| 190 | status = "okay"; |
| 191 | }; |
| 192 | |
| 193 | usbphy1: usbphy@8007e000 { |
| 194 | status = "okay"; |
| 195 | }; |
| 196 | |
Marek Vasut | 8fa62e1 | 2012-07-07 21:21:38 +0800 | [diff] [blame] | 197 | auart0: serial@8006a000 { |
| 198 | pinctrl-names = "default"; |
| 199 | pinctrl-0 = <&auart0_2pins_a>; |
| 200 | status = "okay"; |
| 201 | }; |
Marek Vasut | 8fa62e1 | 2012-07-07 21:21:38 +0800 | [diff] [blame] | 202 | }; |
| 203 | }; |
| 204 | |
| 205 | ahb@80080000 { |
Marek Vasut | 91ed493 | 2012-08-26 14:59:31 +0200 | [diff] [blame] | 206 | usb0: usb@80080000 { |
| 207 | vbus-supply = <®_usb0_vbus>; |
| 208 | pinctrl-names = "default"; |
| 209 | pinctrl-0 = <&usbphy0_pins_a>; |
| 210 | status = "okay"; |
| 211 | }; |
| 212 | |
| 213 | usb1: usb@80090000 { |
| 214 | vbus-supply = <®_usb1_vbus>; |
| 215 | pinctrl-names = "default"; |
| 216 | pinctrl-0 = <&usbphy1_pins_a>; |
| 217 | status = "okay"; |
| 218 | }; |
| 219 | |
Marek Vasut | 8fa62e1 | 2012-07-07 21:21:38 +0800 | [diff] [blame] | 220 | mac0: ethernet@800f0000 { |
| 221 | phy-mode = "rmii"; |
| 222 | pinctrl-names = "default"; |
| 223 | pinctrl-0 = <&mac0_pins_a>; |
Marek Vasut | 8fa62e1 | 2012-07-07 21:21:38 +0800 | [diff] [blame] | 224 | status = "okay"; |
| 225 | }; |
| 226 | |
| 227 | mac1: ethernet@800f4000 { |
| 228 | phy-mode = "rmii"; |
| 229 | pinctrl-names = "default"; |
| 230 | pinctrl-0 = <&mac1_pins_a>; |
| 231 | status = "okay"; |
| 232 | }; |
| 233 | }; |
| 234 | |
| 235 | regulators { |
| 236 | compatible = "simple-bus"; |
| 237 | |
| 238 | reg_3p3v: 3p3v { |
| 239 | compatible = "regulator-fixed"; |
| 240 | regulator-name = "3P3V"; |
| 241 | regulator-min-microvolt = <3300000>; |
| 242 | regulator-max-microvolt = <3300000>; |
| 243 | regulator-always-on; |
| 244 | }; |
Marek Vasut | 91ed493 | 2012-08-26 14:59:31 +0200 | [diff] [blame] | 245 | |
| 246 | reg_vddio_sd0: vddio-sd0 { |
| 247 | compatible = "regulator-fixed"; |
| 248 | regulator-name = "vddio-sd0"; |
| 249 | regulator-min-microvolt = <3300000>; |
| 250 | regulator-max-microvolt = <3300000>; |
| 251 | gpio = <&gpio3 28 0>; |
| 252 | }; |
| 253 | |
| 254 | reg_usb0_vbus: usb0_vbus { |
| 255 | compatible = "regulator-fixed"; |
| 256 | regulator-name = "usb0_vbus"; |
| 257 | regulator-min-microvolt = <5000000>; |
| 258 | regulator-max-microvolt = <5000000>; |
| 259 | gpio = <&gpio3 12 0>; |
| 260 | }; |
| 261 | |
| 262 | reg_usb1_vbus: usb1_vbus { |
| 263 | compatible = "regulator-fixed"; |
| 264 | regulator-name = "usb1_vbus"; |
| 265 | regulator-min-microvolt = <5000000>; |
| 266 | regulator-max-microvolt = <5000000>; |
| 267 | gpio = <&gpio3 13 0>; |
| 268 | }; |
Marek Vasut | 8fa62e1 | 2012-07-07 21:21:38 +0800 | [diff] [blame] | 269 | }; |
| 270 | |
| 271 | sound { |
| 272 | compatible = "denx,m28evk-sgtl5000", |
| 273 | "fsl,mxs-audio-sgtl5000"; |
| 274 | model = "m28evk-sgtl5000"; |
| 275 | saif-controllers = <&saif0 &saif1>; |
| 276 | audio-codec = <&sgtl5000>; |
| 277 | }; |
| 278 | }; |