]>
Commit | Line | Data |
---|---|---|
8fa62e11 | 1 | /* |
32018d15 | 2 | |
8fa62e11 MV |
3 | * Copyright (C) 2012 Marek Vasut <marex@denx.de> |
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 | ||
13 | /dts-v1/; | |
acb7ea5e | 14 | #include "imx28-m28.dtsi" |
8fa62e11 MV |
15 | |
16 | / { | |
8df0547f MV |
17 | model = "Aries/DENX M28EVK"; |
18 | compatible = "aries,m28evk", "denx,m28evk", "fsl,imx28"; | |
8fa62e11 | 19 | |
8fa62e11 MV |
20 | apb@80000000 { |
21 | apbh@80000000 { | |
5a2ecf0d | 22 | ssp0: spi@80010000 { |
8fa62e11 MV |
23 | compatible = "fsl,imx28-mmc"; |
24 | pinctrl-names = "default"; | |
25 | pinctrl-0 = <&mmc0_8bit_pins_a | |
26 | &mmc0_cd_cfg | |
27 | &mmc0_sck_cfg>; | |
28 | bus-width = <8>; | |
acd3b69f | 29 | wp-gpios = <&gpio3 10 0>; |
91ed4938 | 30 | vmmc-supply = <®_vddio_sd0>; |
8fa62e11 MV |
31 | status = "okay"; |
32 | }; | |
33 | ||
5a2ecf0d | 34 | ssp2: spi@80014000 { |
91ed4938 MV |
35 | #address-cells = <1>; |
36 | #size-cells = <0>; | |
37 | compatible = "fsl,imx28-spi"; | |
38 | pinctrl-names = "default"; | |
39 | pinctrl-0 = <&spi2_pins_a>; | |
40 | status = "okay"; | |
41 | ||
42 | flash: m25p80@0 { | |
43 | #address-cells = <1>; | |
44 | #size-cells = <1>; | |
79826ac6 | 45 | compatible = "m25p80", "jedec,spi-nor"; |
91ed4938 MV |
46 | spi-max-frequency = <40000000>; |
47 | reg = <0>; | |
48 | }; | |
49 | }; | |
50 | ||
8fa62e11 MV |
51 | pinctrl@80018000 { |
52 | pinctrl-names = "default"; | |
53 | pinctrl-0 = <&hog_pins_a>; | |
54 | ||
e0e35b48 | 55 | hog_pins_a: hog@0 { |
8fa62e11 MV |
56 | reg = <0>; |
57 | fsl,pinmux-ids = < | |
bc3875f1 LW |
58 | MX28_PAD_PWM3__GPIO_3_28 |
59 | MX28_PAD_AUART2_CTS__GPIO_3_10 | |
60 | MX28_PAD_AUART2_RTS__GPIO_3_11 | |
61 | MX28_PAD_AUART3_RX__GPIO_3_12 | |
62 | MX28_PAD_AUART3_TX__GPIO_3_13 | |
8fa62e11 | 63 | >; |
4191c340 LW |
64 | fsl,drive-strength = <MXS_DRIVE_4mA>; |
65 | fsl,voltage = <MXS_VOLTAGE_HIGH>; | |
66 | fsl,pull-up = <MXS_PULL_DISABLE>; | |
8fa62e11 MV |
67 | }; |
68 | ||
69 | lcdif_pins_m28: lcdif-m28@0 { | |
70 | reg = <0>; | |
71 | fsl,pinmux-ids = < | |
bc3875f1 LW |
72 | MX28_PAD_LCD_DOTCLK__LCD_DOTCLK |
73 | MX28_PAD_LCD_ENABLE__LCD_ENABLE | |
8fa62e11 | 74 | >; |
4191c340 LW |
75 | fsl,drive-strength = <MXS_DRIVE_4mA>; |
76 | fsl,voltage = <MXS_VOLTAGE_HIGH>; | |
77 | fsl,pull-up = <MXS_PULL_DISABLE>; | |
8fa62e11 MV |
78 | }; |
79 | }; | |
80 | ||
81 | lcdif@80030000 { | |
82 | pinctrl-names = "default"; | |
83 | pinctrl-0 = <&lcdif_24bit_pins_a | |
84 | &lcdif_pins_m28>; | |
433fb101 | 85 | display = <&display0>; |
8fa62e11 | 86 | status = "okay"; |
0d9f8217 | 87 | |
433fb101 | 88 | display0: display0 { |
0d9f8217 SG |
89 | bits-per-pixel = <16>; |
90 | bus-width = <18>; | |
91 | ||
92 | display-timings { | |
93 | native-mode = <&timing0>; | |
94 | timing0: timing0 { | |
95 | clock-frequency = <33260000>; | |
96 | hactive = <800>; | |
97 | vactive = <480>; | |
98 | hback-porch = <0>; | |
99 | hfront-porch = <256>; | |
100 | vback-porch = <0>; | |
101 | vfront-porch = <45>; | |
102 | hsync-len = <1>; | |
103 | vsync-len = <1>; | |
104 | hsync-active = <0>; | |
105 | vsync-active = <0>; | |
106 | de-active = <1>; | |
107 | pixelclk-active = <1>; | |
108 | }; | |
109 | }; | |
110 | }; | |
8fa62e11 MV |
111 | }; |
112 | ||
113 | can0: can@80032000 { | |
114 | pinctrl-names = "default"; | |
115 | pinctrl-0 = <&can0_pins_a>; | |
116 | status = "okay"; | |
117 | }; | |
118 | ||
119 | can1: can@80034000 { | |
120 | pinctrl-names = "default"; | |
121 | pinctrl-0 = <&can1_pins_a>; | |
122 | status = "okay"; | |
123 | }; | |
124 | }; | |
125 | ||
126 | apbx@80040000 { | |
127 | saif0: saif@80042000 { | |
128 | pinctrl-names = "default"; | |
129 | pinctrl-0 = <&saif0_pins_a>; | |
130 | status = "okay"; | |
131 | }; | |
132 | ||
133 | saif1: saif@80046000 { | |
134 | pinctrl-names = "default"; | |
135 | pinctrl-0 = <&saif1_pins_a>; | |
136 | fsl,saif-master = <&saif0>; | |
137 | status = "okay"; | |
138 | }; | |
139 | ||
140 | i2c0: i2c@80058000 { | |
8dccafaa | 141 | sgtl5000: codec@a { |
8fa62e11 MV |
142 | compatible = "fsl,sgtl5000"; |
143 | reg = <0x0a>; | |
b08d2fb5 | 144 | #sound-dai-cells = <0>; |
8fa62e11 MV |
145 | VDDA-supply = <®_3p3v>; |
146 | VDDIO-supply = <®_3p3v>; | |
66acaf3f | 147 | clocks = <&saif0>; |
8fa62e11 MV |
148 | }; |
149 | ||
150 | eeprom: eeprom@51 { | |
151 | compatible = "atmel,24c128"; | |
152 | reg = <0x51>; | |
153 | pagesize = <32>; | |
154 | }; | |
8fa62e11 MV |
155 | }; |
156 | ||
91ed4938 MV |
157 | lradc@80050000 { |
158 | status = "okay"; | |
da021ee3 | 159 | fsl,lradc-touchscreen-wires = <4>; |
91ed4938 MV |
160 | }; |
161 | ||
8fa62e11 MV |
162 | duart: serial@80074000 { |
163 | pinctrl-names = "default"; | |
164 | pinctrl-0 = <&duart_pins_a>; | |
165 | status = "okay"; | |
166 | }; | |
167 | ||
91ed4938 | 168 | usbphy0: usbphy@8007c000 { |
8fa62e11 MV |
169 | status = "okay"; |
170 | }; | |
171 | ||
91ed4938 MV |
172 | usbphy1: usbphy@8007e000 { |
173 | status = "okay"; | |
174 | }; | |
175 | ||
176 | auart0: serial@8006a000 { | |
8fa62e11 | 177 | pinctrl-names = "default"; |
56924ad2 MV |
178 | pinctrl-0 = <&auart0_pins_a>; |
179 | status = "okay"; | |
180 | }; | |
181 | ||
182 | auart1: serial@8006c000 { | |
183 | pinctrl-names = "default"; | |
184 | pinctrl-0 = <&auart1_pins_a>; | |
185 | status = "okay"; | |
186 | }; | |
187 | ||
188 | auart2: serial@8006e000 { | |
189 | pinctrl-names = "default"; | |
190 | pinctrl-0 = <&auart2_2pins_b>; | |
8fa62e11 MV |
191 | status = "okay"; |
192 | }; | |
db3b9baa MV |
193 | |
194 | pwm: pwm@80064000 { | |
195 | pinctrl-names = "default"; | |
196 | pinctrl-0 = <&pwm4_pins_a>; | |
197 | status = "okay"; | |
198 | }; | |
8fa62e11 MV |
199 | }; |
200 | }; | |
201 | ||
202 | ahb@80080000 { | |
91ed4938 MV |
203 | usb0: usb@80080000 { |
204 | vbus-supply = <®_usb0_vbus>; | |
205 | pinctrl-names = "default"; | |
c8e42bc9 | 206 | pinctrl-0 = <&usb0_pins_a>; |
91ed4938 MV |
207 | status = "okay"; |
208 | }; | |
209 | ||
210 | usb1: usb@80090000 { | |
211 | vbus-supply = <®_usb1_vbus>; | |
212 | pinctrl-names = "default"; | |
c8e42bc9 | 213 | pinctrl-0 = <&usb1_pins_a>; |
91ed4938 MV |
214 | status = "okay"; |
215 | }; | |
216 | ||
8fa62e11 MV |
217 | mac0: ethernet@800f0000 { |
218 | phy-mode = "rmii"; | |
219 | pinctrl-names = "default"; | |
220 | pinctrl-0 = <&mac0_pins_a>; | |
f231a9fe WS |
221 | clocks = <&clks 57>, <&clks 57>; |
222 | clock-names = "ipg", "ahb"; | |
8fa62e11 MV |
223 | status = "okay"; |
224 | }; | |
225 | ||
226 | mac1: ethernet@800f4000 { | |
227 | phy-mode = "rmii"; | |
228 | pinctrl-names = "default"; | |
229 | pinctrl-0 = <&mac1_pins_a>; | |
230 | status = "okay"; | |
231 | }; | |
232 | }; | |
233 | ||
db3b9baa MV |
234 | backlight { |
235 | compatible = "pwm-backlight"; | |
236 | pwms = <&pwm 4 5000000>; | |
237 | brightness-levels = <0 4 8 16 32 64 128 255>; | |
238 | default-brightness-level = <6>; | |
239 | }; | |
240 | ||
8fa62e11 | 241 | regulators { |
352d318c | 242 | reg_vddio_sd0: regulator@1 { |
91ed4938 | 243 | compatible = "regulator-fixed"; |
352d318c | 244 | reg = <1>; |
91ed4938 MV |
245 | regulator-name = "vddio-sd0"; |
246 | regulator-min-microvolt = <3300000>; | |
247 | regulator-max-microvolt = <3300000>; | |
248 | gpio = <&gpio3 28 0>; | |
249 | }; | |
250 | ||
352d318c | 251 | reg_usb0_vbus: regulator@2 { |
91ed4938 | 252 | compatible = "regulator-fixed"; |
352d318c | 253 | reg = <2>; |
91ed4938 MV |
254 | regulator-name = "usb0_vbus"; |
255 | regulator-min-microvolt = <5000000>; | |
256 | regulator-max-microvolt = <5000000>; | |
257 | gpio = <&gpio3 12 0>; | |
258 | }; | |
259 | ||
352d318c | 260 | reg_usb1_vbus: regulator@3 { |
91ed4938 | 261 | compatible = "regulator-fixed"; |
352d318c | 262 | reg = <3>; |
91ed4938 MV |
263 | regulator-name = "usb1_vbus"; |
264 | regulator-min-microvolt = <5000000>; | |
265 | regulator-max-microvolt = <5000000>; | |
266 | gpio = <&gpio3 13 0>; | |
267 | }; | |
8fa62e11 MV |
268 | }; |
269 | ||
270 | sound { | |
271 | compatible = "denx,m28evk-sgtl5000", | |
272 | "fsl,mxs-audio-sgtl5000"; | |
273 | model = "m28evk-sgtl5000"; | |
274 | saif-controllers = <&saif0 &saif1>; | |
275 | audio-codec = <&sgtl5000>; | |
276 | }; | |
277 | }; |