Merge branch 'liblockdep-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git...
[pandora-kernel.git] / arch / arm / boot / dts / imx53-m53evk.dts
1 /*
2  * Copyright (C) 2013 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 "imx53.dtsi"
14
15 / {
16         model = "DENX M53EVK";
17         compatible = "denx,imx53-m53evk", "fsl,imx53";
18
19         memory {
20                 reg = <0x70000000 0x20000000>;
21         };
22
23         soc {
24                 display1: display@di1 {
25                         compatible = "fsl,imx-parallel-display";
26                         interface-pix-fmt = "bgr666";
27                         pinctrl-names = "default";
28                         pinctrl-0 = <&pinctrl_ipu_disp2_1>;
29
30                         display-timings {
31                                 800x480p60 {
32                                         native-mode;
33                                         clock-frequency = <31500000>;
34                                         hactive = <800>;
35                                         vactive = <480>;
36                                         hfront-porch = <40>;
37                                         hback-porch = <88>;
38                                         hsync-len = <128>;
39                                         vback-porch = <33>;
40                                         vfront-porch = <9>;
41                                         vsync-len = <3>;
42                                         vsync-active = <1>;
43                                 };
44                         };
45                 };
46
47                 port {
48                         display1_in: endpoint {
49                                 remote-endpoint = <&ipu_di1_disp1>;
50                         };
51                 };
52         };
53
54         backlight {
55                 compatible = "pwm-backlight";
56                 pwms = <&pwm1 0 3000>;
57                 brightness-levels = <0 4 8 16 32 64 128 255>;
58                 default-brightness-level = <6>;
59         };
60
61         leds {
62                 compatible = "gpio-leds";
63                 pinctrl-names = "default";
64                 pinctrl-0 = <&led_pin_gpio>;
65
66                 user1 {
67                         label = "user1";
68                         gpios = <&gpio2 8 0>;
69                         linux,default-trigger = "heartbeat";
70                 };
71
72                 user2 {
73                         label = "user2";
74                         gpios = <&gpio2 9 0>;
75                         linux,default-trigger = "heartbeat";
76                 };
77         };
78
79         regulators {
80                 compatible = "simple-bus";
81
82                 reg_3p2v: 3p2v {
83                         compatible = "regulator-fixed";
84                         regulator-name = "3P2V";
85                         regulator-min-microvolt = <3200000>;
86                         regulator-max-microvolt = <3200000>;
87                         regulator-always-on;
88                 };
89         };
90
91         sound {
92                 compatible = "fsl,imx53-m53evk-sgtl5000",
93                              "fsl,imx-audio-sgtl5000";
94                 model = "imx53-m53evk-sgtl5000";
95                 ssi-controller = <&ssi2>;
96                 audio-codec = <&sgtl5000>;
97                 audio-routing =
98                         "MIC_IN", "Mic Jack",
99                         "Mic Jack", "Mic Bias",
100                         "LINE_IN", "Line In Jack",
101                         "Headphone Jack", "HP_OUT",
102                         "Ext Spk", "LINE_OUT";
103                 mux-int-port = <2>;
104                 mux-ext-port = <4>;
105         };
106 };
107
108 &audmux {
109         pinctrl-names = "default";
110         pinctrl-0 = <&pinctrl_audmux_2>;
111         status = "okay";
112 };
113
114 &can1 {
115         pinctrl-names = "default";
116         pinctrl-0 = <&pinctrl_can1_3>;
117         status = "okay";
118 };
119
120 &can2 {
121         pinctrl-names = "default";
122         pinctrl-0 = <&pinctrl_can2_1>;
123         status = "okay";
124 };
125
126 &esdhc1 {
127         pinctrl-names = "default";
128         pinctrl-0 = <&pinctrl_esdhc1_1>;
129         cd-gpios = <&gpio1 1 0>;
130         wp-gpios = <&gpio1 9 0>;
131         status = "okay";
132 };
133
134 &fec {
135         pinctrl-names = "default";
136         pinctrl-0 = <&pinctrl_fec_1>;
137         phy-mode = "rmii";
138         status = "okay";
139 };
140
141 &i2c1 {
142         pinctrl-names = "default";
143         pinctrl-0 = <&pinctrl_i2c1_2>;
144         status = "okay";
145
146         sgtl5000: codec@0a {
147                 compatible = "fsl,sgtl5000";
148                 reg = <0x0a>;
149                 VDDA-supply = <&reg_3p2v>;
150                 VDDIO-supply = <&reg_3p2v>;
151                 clocks = <&clks 150>;
152         };
153 };
154
155 &i2c2 {
156         pinctrl-names = "default";
157         pinctrl-0 = <&pinctrl_i2c2_2>;
158         clock-frequency = <400000>;
159         status = "okay";
160
161         stmpe610@41 {
162                 compatible = "st,stmpe610";
163                 #address-cells = <1>;
164                 #size-cells = <0>;
165                 reg = <0x41>;
166                 id = <0>;
167                 blocks = <0x5>;
168                 interrupts = <6 0x0>;
169                 interrupt-parent = <&gpio7>;
170                 irq-trigger = <0x1>;
171
172                 stmpe_touchscreen {
173                         compatible = "stmpe,ts";
174                         reg = <0>;
175                         ts,sample-time = <4>;
176                         ts,mod-12b = <1>;
177                         ts,ref-sel = <0>;
178                         ts,adc-freq = <1>;
179                         ts,ave-ctrl = <3>;
180                         ts,touch-det-delay = <3>;
181                         ts,settling = <4>;
182                         ts,fraction-z = <7>;
183                         ts,i-drive = <1>;
184                 };
185         };
186
187         eeprom: eeprom@50 {
188                 compatible = "atmel,24c128";
189                 reg = <0x50>;
190                 pagesize = <32>;
191         };
192
193         rtc: rtc@68 {
194                 compatible = "stm,m41t62";
195                 reg = <0x68>;
196         };
197 };
198
199 &i2c3 {
200         pinctrl-names = "default";
201         pinctrl-0 = <&pinctrl_i2c3_1>;
202         status = "okay";
203 };
204
205 &iomuxc {
206         pinctrl-names = "default";
207         pinctrl-0 = <&pinctrl_hog>;
208
209         hog {
210                 pinctrl_hog: hoggrp {
211                         fsl,pins = <
212                                 MX53_PAD_GPIO_0__CCM_SSI_EXT1_CLK       0x80000000
213                                 MX53_PAD_EIM_EB3__GPIO2_31              0x80000000
214                                 MX53_PAD_PATA_DA_0__GPIO7_6             0x80000000
215                                 MX53_PAD_DISP0_DAT8__PWM1_PWMO          0x5
216
217                         >;
218                 };
219
220                 led_pin_gpio: led_gpio@0 {
221                         fsl,pins = <
222                                 MX53_PAD_PATA_DATA8__GPIO2_8            0x80000000
223                                 MX53_PAD_PATA_DATA9__GPIO2_9            0x80000000
224                         >;
225                 };
226         };
227 };
228
229 &ipu_di1_disp1 {
230         remote-endpoint = <&display1_in>;
231 };
232
233 &nfc {
234         pinctrl-names = "default";
235         pinctrl-0 = <&pinctrl_nand_1>;
236         nand-bus-width = <8>;
237         nand-ecc-mode = "hw";
238         status = "okay";
239 };
240
241 &pwm1 {
242         pinctrl-names = "default";
243         pinctrl-0 = <&pinctrl_pwm1_1>;
244         status = "okay";
245 };
246
247 &ssi2 {
248         fsl,mode = "i2s-slave";
249         status = "okay";
250 };
251
252 &uart1 {
253         pinctrl-names = "default";
254         pinctrl-0 = <&pinctrl_uart1_2>;
255         status = "okay";
256 };
257
258 &uart2 {
259         pinctrl-names = "default";
260         pinctrl-0 = <&pinctrl_uart2_1>;
261         status = "okay";
262 };
263
264 &uart3 {
265         pinctrl-names = "default";
266         pinctrl-0 = <&pinctrl_uart3_1>;
267         status = "okay";
268 };