]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/blob - arch/arm/boot/dts/imx28-evk.dts
ARM: dts: DRA7: enabling optional clks in DT
[android-sdk/kernel-video.git] / arch / arm / boot / dts / imx28-evk.dts
1 /*
2  * Copyright 2012 Freescale Semiconductor, Inc.
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  */
12 /dts-v1/;
13 #include "imx28.dtsi"
15 / {
16         model = "Freescale i.MX28 Evaluation Kit";
17         compatible = "fsl,imx28-evk", "fsl,imx28";
19         memory {
20                 reg = <0x40000000 0x08000000>;
21         };
23         apb@80000000 {
24                 apbh@80000000 {
25                         gpmi-nand@8000c000 {
26                                 pinctrl-names = "default";
27                                 pinctrl-0 = <&gpmi_pins_a &gpmi_status_cfg
28                                              &gpmi_pins_evk>;
29                                 status = "okay";
30                         };
32                         ssp0: ssp@80010000 {
33                                 compatible = "fsl,imx28-mmc";
34                                 pinctrl-names = "default";
35                                 pinctrl-0 = <&mmc0_8bit_pins_a
36                                         &mmc0_cd_cfg &mmc0_sck_cfg>;
37                                 bus-width = <8>;
38                                 wp-gpios = <&gpio2 12 0>;
39                                 vmmc-supply = <&reg_vddio_sd0>;
40                                 status = "okay";
41                         };
43                         ssp1: ssp@80012000 {
44                                 compatible = "fsl,imx28-mmc";
45                                 bus-width = <8>;
46                                 wp-gpios = <&gpio0 28 0>;
47                         };
49                         ssp2: ssp@80014000 {
50                                 #address-cells = <1>;
51                                 #size-cells = <0>;
52                                 compatible = "fsl,imx28-spi";
53                                 pinctrl-names = "default";
54                                 pinctrl-0 = <&spi2_pins_a>;
55                                 status = "okay";
57                                 flash: m25p80@0 {
58                                         #address-cells = <1>;
59                                         #size-cells = <1>;
60                                         compatible = "sst,sst25vf016b";
61                                         spi-max-frequency = <40000000>;
62                                         reg = <0>;
63                                 };
64                         };
66                         pinctrl@80018000 {
67                                 pinctrl-names = "default";
68                                 pinctrl-0 = <&hog_pins_a>;
70                                 hog_pins_a: hog@0 {
71                                         reg = <0>;
72                                         fsl,pinmux-ids = <
73                                                 MX28_PAD_SSP1_CMD__GPIO_2_13
74                                                 MX28_PAD_SSP1_DATA3__GPIO_2_15
75                                                 MX28_PAD_ENET0_RX_CLK__GPIO_4_13
76                                                 MX28_PAD_SSP1_SCK__GPIO_2_12
77                                                 MX28_PAD_PWM3__GPIO_3_28
78                                                 MX28_PAD_LCD_RESET__GPIO_3_30
79                                                 MX28_PAD_AUART2_RX__GPIO_3_8
80                                                 MX28_PAD_AUART2_TX__GPIO_3_9
81                                         >;
82                                         fsl,drive-strength = <MXS_DRIVE_4mA>;
83                                         fsl,voltage = <MXS_VOLTAGE_HIGH>;
84                                         fsl,pull-up = <MXS_PULL_DISABLE>;
85                                 };
87                                 led_pin_gpio3_5: led_gpio3_5@0 {
88                                         reg = <0>;
89                                         fsl,pinmux-ids = <
90                                                 MX28_PAD_AUART1_TX__GPIO_3_5
91                                         >;
92                                         fsl,drive-strength = <MXS_DRIVE_4mA>;
93                                         fsl,voltage = <MXS_VOLTAGE_HIGH>;
94                                         fsl,pull-up = <MXS_PULL_DISABLE>;
95                                 };
97                                 gpmi_pins_evk: gpmi-nand-evk@0 {
98                                         reg = <0>;
99                                         fsl,pinmux-ids = <
100                                                 MX28_PAD_GPMI_CE1N__GPMI_CE1N
101                                                 MX28_PAD_GPMI_RDY1__GPMI_READY1
102                                         >;
103                                         fsl,drive-strength = <MXS_DRIVE_4mA>;
104                                         fsl,voltage = <MXS_VOLTAGE_HIGH>;
105                                         fsl,pull-up = <MXS_PULL_DISABLE>;
106                                 };
108                                 lcdif_pins_evk: lcdif-evk@0 {
109                                         reg = <0>;
110                                         fsl,pinmux-ids = <
111                                                 MX28_PAD_LCD_RD_E__LCD_VSYNC
112                                                 MX28_PAD_LCD_WR_RWN__LCD_HSYNC
113                                                 MX28_PAD_LCD_RS__LCD_DOTCLK
114                                                 MX28_PAD_LCD_CS__LCD_ENABLE
115                                         >;
116                                         fsl,drive-strength = <MXS_DRIVE_4mA>;
117                                         fsl,voltage = <MXS_VOLTAGE_HIGH>;
118                                         fsl,pull-up = <MXS_PULL_DISABLE>;
119                                 };
120                         };
122                         lcdif@80030000 {
123                                 pinctrl-names = "default";
124                                 pinctrl-0 = <&lcdif_24bit_pins_a
125                                              &lcdif_pins_evk>;
126                                 lcd-supply = <&reg_lcd_3v3>;
127                                 display = <&display>;
128                                 status = "okay";
130                                 display: display {
131                                         bits-per-pixel = <32>;
132                                         bus-width = <24>;
134                                         display-timings {
135                                                 native-mode = <&timing0>;
136                                                 timing0: timing0 {
137                                                         clock-frequency = <33500000>;
138                                                         hactive = <800>;
139                                                         vactive = <480>;
140                                                         hback-porch = <89>;
141                                                         hfront-porch = <164>;
142                                                         vback-porch = <23>;
143                                                         vfront-porch = <10>;
144                                                         hsync-len = <10>;
145                                                         vsync-len = <10>;
146                                                         hsync-active = <0>;
147                                                         vsync-active = <0>;
148                                                         de-active = <1>;
149                                                         pixelclk-active = <0>;
150                                                 };
151                                         };
152                                 };
153                         };
155                         can0: can@80032000 {
156                                 pinctrl-names = "default";
157                                 pinctrl-0 = <&can0_pins_a>;
158                                 xceiver-supply = <&reg_can_3v3>;
159                                 status = "okay";
160                         };
162                         can1: can@80034000 {
163                                 pinctrl-names = "default";
164                                 pinctrl-0 = <&can1_pins_a>;
165                                 xceiver-supply = <&reg_can_3v3>;
166                                 status = "okay";
167                         };
168                 };
170                 apbx@80040000 {
171                         saif0: saif@80042000 {
172                                 pinctrl-names = "default";
173                                 pinctrl-0 = <&saif0_pins_a>;
174                                 status = "okay";
175                         };
177                         saif1: saif@80046000 {
178                                 pinctrl-names = "default";
179                                 pinctrl-0 = <&saif1_pins_a>;
180                                 fsl,saif-master = <&saif0>;
181                                 status = "okay";
182                         };
184                         lradc@80050000 {
185                                 fsl,lradc-touchscreen-wires = <4>;
186                                 status = "okay";
187                                 fsl,lradc-touchscreen-wires = <4>;
188                                 fsl,ave-ctrl = <4>;
189                                 fsl,ave-delay = <2>;
190                                 fsl,settling = <10>;
191                         };
193                         i2c0: i2c@80058000 {
194                                 pinctrl-names = "default";
195                                 pinctrl-0 = <&i2c0_pins_a>;
196                                 status = "okay";
198                                 sgtl5000: codec@0a {
199                                         compatible = "fsl,sgtl5000";
200                                         reg = <0x0a>;
201                                         VDDA-supply = <&reg_3p3v>;
202                                         VDDIO-supply = <&reg_3p3v>;
203                                         clocks = <&saif0>;
204                                 };
206                                 at24@51 {
207                                         compatible = "at24,24c32";
208                                         pagesize = <32>;
209                                         reg = <0x51>;
210                                 };
211                         };
213                         pwm: pwm@80064000 {
214                                 pinctrl-names = "default";
215                                 pinctrl-0 = <&pwm2_pins_a>;
216                                 status = "okay";
217                         };
219                         duart: serial@80074000 {
220                                 pinctrl-names = "default";
221                                 pinctrl-0 = <&duart_pins_a>;
222                                 status = "okay";
223                         };
225                         auart0: serial@8006a000 {
226                                 pinctrl-names = "default";
227                                 pinctrl-0 = <&auart0_pins_a>;
228                                 fsl,uart-has-rtscts;
229                                 status = "okay";
230                         };
232                         auart3: serial@80070000 {
233                                 pinctrl-names = "default";
234                                 pinctrl-0 = <&auart3_pins_a>;
235                                 status = "okay";
236                         };
238                         usbphy0: usbphy@8007c000 {
239                                 status = "okay";
240                         };
242                         usbphy1: usbphy@8007e000 {
243                                 status = "okay";
244                         };
245                 };
246         };
248         ahb@80080000 {
249                 usb0: usb@80080000 {
250                         pinctrl-names = "default";
251                         pinctrl-0 = <&usb0_id_pins_a>;
252                         vbus-supply = <&reg_usb0_vbus>;
253                         status = "okay";
254                 };
256                 usb1: usb@80090000 {
257                         vbus-supply = <&reg_usb1_vbus>;
258                         status = "okay";
259                 };
261                 mac0: ethernet@800f0000 {
262                         phy-mode = "rmii";
263                         pinctrl-names = "default";
264                         pinctrl-0 = <&mac0_pins_a>;
265                         phy-supply = <&reg_fec_3v3>;
266                         phy-reset-gpios = <&gpio4 13 0>;
267                         phy-reset-duration = <100>;
268                         status = "okay";
269                 };
271                 mac1: ethernet@800f4000 {
272                         phy-mode = "rmii";
273                         pinctrl-names = "default";
274                         pinctrl-0 = <&mac1_pins_a>;
275                         status = "okay";
276                 };
277         };
279         regulators {
280                 compatible = "simple-bus";
282                 reg_3p3v: 3p3v {
283                         compatible = "regulator-fixed";
284                         regulator-name = "3P3V";
285                         regulator-min-microvolt = <3300000>;
286                         regulator-max-microvolt = <3300000>;
287                         regulator-always-on;
288                 };
290                 reg_vddio_sd0: vddio-sd0 {
291                         compatible = "regulator-fixed";
292                         regulator-name = "vddio-sd0";
293                         regulator-min-microvolt = <3300000>;
294                         regulator-max-microvolt = <3300000>;
295                         gpio = <&gpio3 28 0>;
296                 };
298                 reg_fec_3v3: fec-3v3 {
299                         compatible = "regulator-fixed";
300                         regulator-name = "fec-3v3";
301                         regulator-min-microvolt = <3300000>;
302                         regulator-max-microvolt = <3300000>;
303                         gpio = <&gpio2 15 0>;
304                 };
306                 reg_usb0_vbus: usb0_vbus {
307                         compatible = "regulator-fixed";
308                         regulator-name = "usb0_vbus";
309                         regulator-min-microvolt = <5000000>;
310                         regulator-max-microvolt = <5000000>;
311                         gpio = <&gpio3 9 0>;
312                         enable-active-high;
313                 };
315                 reg_usb1_vbus: usb1_vbus {
316                         compatible = "regulator-fixed";
317                         regulator-name = "usb1_vbus";
318                         regulator-min-microvolt = <5000000>;
319                         regulator-max-microvolt = <5000000>;
320                         gpio = <&gpio3 8 0>;
321                         enable-active-high;
322                 };
324                 reg_lcd_3v3: lcd-3v3 {
325                         compatible = "regulator-fixed";
326                         regulator-name = "lcd-3v3";
327                         regulator-min-microvolt = <3300000>;
328                         regulator-max-microvolt = <3300000>;
329                         gpio = <&gpio3 30 0>;
330                         enable-active-high;
331                 };
333                 reg_can_3v3: can-3v3 {
334                         compatible = "regulator-fixed";
335                         regulator-name = "can-3v3";
336                         regulator-min-microvolt = <3300000>;
337                         regulator-max-microvolt = <3300000>;
338                         gpio = <&gpio2 13 0>;
339                         enable-active-high;
340                 };
342         };
344         sound {
345                 compatible = "fsl,imx28-evk-sgtl5000",
346                              "fsl,mxs-audio-sgtl5000";
347                 model = "imx28-evk-sgtl5000";
348                 saif-controllers = <&saif0 &saif1>;
349                 audio-codec = <&sgtl5000>;
350         };
352         leds {
353                 compatible = "gpio-leds";
354                 pinctrl-names = "default";
355                 pinctrl-0 = <&led_pin_gpio3_5>;
357                 user {
358                         label = "Heartbeat";
359                         gpios = <&gpio3 5 0>;
360                         linux,default-trigger = "heartbeat";
361                 };
362         };
364         backlight {
365                 compatible = "pwm-backlight";
366                 pwms = <&pwm 2 5000000>;
367                 brightness-levels = <0 4 8 16 32 64 128 255>;
368                 default-brightness-level = <6>;
369         };
370 };