blob: 7e2b0f198dfadb801f350ee9282cc6c73bcea210 [file] [log] [blame]
Fabio Estevam1f31e252018-05-14 14:58:47 -03001// SPDX-License-Identifier: GPL-2.0+
2//
3// Copyright 2012 Freescale Semiconductor, Inc.
Dong Aishengbc3a59c2012-03-31 21:26:57 +08004
5/dts-v1/;
Lothar Waßmannbc3875f2013-09-19 08:59:48 +02006#include "imx28.dtsi"
Dong Aishengbc3a59c2012-03-31 21:26:57 +08007
8/ {
9 model = "Freescale i.MX28 Evaluation Kit";
10 compatible = "fsl,imx28-evk", "fsl,imx28";
11
Marco Franchiad00e082018-01-24 11:22:14 -020012 memory@40000000 {
Fabio Estevam32018d12018-11-26 10:08:56 -020013 device_type = "memory";
Dong Aishengbc3a59c2012-03-31 21:26:57 +080014 reg = <0x40000000 0x08000000>;
15 };
16
Fabio Estevam90a96082018-07-20 17:39:16 -030017
18 reg_3p3v: regulator-3p3v {
19 compatible = "regulator-fixed";
20 regulator-name = "3P3V";
21 regulator-min-microvolt = <3300000>;
22 regulator-max-microvolt = <3300000>;
23 regulator-always-on;
24 };
25
26 reg_vddio_sd0: regulator-vddio-sd0 {
27 compatible = "regulator-fixed";
28 regulator-name = "vddio-sd0";
29 regulator-min-microvolt = <3300000>;
30 regulator-max-microvolt = <3300000>;
31 gpio = <&gpio3 28 0>;
32 };
33
34 reg_fec_3v3: regulator-fec-3v3 {
35 compatible = "regulator-fixed";
36 regulator-name = "fec-3v3";
37 regulator-min-microvolt = <3300000>;
38 regulator-max-microvolt = <3300000>;
39 gpio = <&gpio2 15 0>;
40 };
41
42 reg_usb0_vbus: regulator-usb0-vbus {
43 compatible = "regulator-fixed";
44 regulator-name = "usb0_vbus";
45 regulator-min-microvolt = <5000000>;
46 regulator-max-microvolt = <5000000>;
47 gpio = <&gpio3 9 0>;
48 enable-active-high;
49 };
50
51 reg_usb1_vbus: regulator-usb1-vbus {
52 compatible = "regulator-fixed";
53 regulator-name = "usb1_vbus";
54 regulator-min-microvolt = <5000000>;
55 regulator-max-microvolt = <5000000>;
56 gpio = <&gpio3 8 0>;
57 enable-active-high;
58 };
59
60 reg_lcd_3v3: regulator-lcd-3v3 {
61 compatible = "regulator-fixed";
62 regulator-name = "lcd-3v3";
63 regulator-min-microvolt = <3300000>;
64 regulator-max-microvolt = <3300000>;
65 gpio = <&gpio3 30 0>;
66 enable-active-high;
67 };
68
69 reg_can_3v3: regulator-can-3v3 {
70 compatible = "regulator-fixed";
71 regulator-name = "can-3v3";
72 regulator-min-microvolt = <3300000>;
73 regulator-max-microvolt = <3300000>;
74 gpio = <&gpio2 13 0>;
75 enable-active-high;
76 };
77
Fabio Estevamc1539842018-07-20 17:39:17 -030078 reg_lcd_5v: regulator-lcd-5v {
79 compatible = "regulator-fixed";
80 regulator-name = "lcd-5v";
81 regulator-min-microvolt = <5000000>;
82 regulator-max-microvolt = <5000000>;
83 };
84
85 panel {
86 compatible = "sii,43wvf1g";
87 backlight = <&backlight_display>;
88 dvdd-supply = <&reg_lcd_3v3>;
89 avdd-supply = <&reg_lcd_5v>;
90
91 port {
92 panel_in: endpoint {
93 remote-endpoint = <&display_out>;
94 };
95 };
96 };
97
Dong Aishengbc3a59c2012-03-31 21:26:57 +080098 apb@80000000 {
Shawn Guo35d23042012-05-06 16:33:34 +080099 apbh@80000000 {
Anson Huang175808882020-07-30 21:04:06 +0800100 nand-controller@8000c000 {
Huang Shijie7a8e5142012-05-25 17:25:35 +0800101 pinctrl-names = "default";
Shawn Guodaefb692012-07-07 20:59:09 +0800102 pinctrl-0 = <&gpmi_pins_a &gpmi_status_cfg
103 &gpmi_pins_evk>;
Huang Shijie7a8e5142012-05-25 17:25:35 +0800104 status = "okay";
105 };
106
Rob Herring5a2ecf02018-09-13 13:12:29 -0500107 ssp0: spi@80010000 {
Shawn Guo35d23042012-05-06 16:33:34 +0800108 compatible = "fsl,imx28-mmc";
109 pinctrl-names = "default";
110 pinctrl-0 = <&mmc0_8bit_pins_a
111 &mmc0_cd_cfg &mmc0_sck_cfg>;
112 bus-width = <8>;
113 wp-gpios = <&gpio2 12 0>;
Shawn Guo64edbcd2012-06-28 11:45:01 +0800114 vmmc-supply = <&reg_vddio_sd0>;
Shawn Guo35d23042012-05-06 16:33:34 +0800115 status = "okay";
116 };
117
Rob Herring5a2ecf02018-09-13 13:12:29 -0500118 ssp1: spi@80012000 {
Shawn Guo35d23042012-05-06 16:33:34 +0800119 compatible = "fsl,imx28-mmc";
120 bus-width = <8>;
121 wp-gpios = <&gpio0 28 0>;
Shawn Guo35d23042012-05-06 16:33:34 +0800122 };
Shawn Guod54dbb52012-06-28 11:44:58 +0800123
Rob Herring5a2ecf02018-09-13 13:12:29 -0500124 ssp2: spi@80014000 {
Fabio Estevam5decb4b2012-08-27 13:23:27 -0300125 #address-cells = <1>;
126 #size-cells = <0>;
127 compatible = "fsl,imx28-spi";
128 pinctrl-names = "default";
129 pinctrl-0 = <&spi2_pins_a>;
130 status = "okay";
131
132 flash: m25p80@0 {
133 #address-cells = <1>;
134 #size-cells = <1>;
Rafał Miłecki79826ac2015-08-16 08:39:17 +0200135 compatible = "sst,sst25vf016b", "jedec,spi-nor";
Fabio Estevam5decb4b2012-08-27 13:23:27 -0300136 spi-max-frequency = <40000000>;
137 reg = <0>;
138 };
139 };
140
Shawn Guod54dbb52012-06-28 11:44:58 +0800141 pinctrl@80018000 {
142 pinctrl-names = "default";
143 pinctrl-0 = <&hog_pins_a>;
144
Fabio Estevame0e35b42012-08-22 13:25:31 -0300145 hog_pins_a: hog@0 {
Shawn Guod54dbb52012-06-28 11:44:58 +0800146 reg = <0>;
147 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +0200148 MX28_PAD_SSP1_CMD__GPIO_2_13
149 MX28_PAD_SSP1_DATA3__GPIO_2_15
150 MX28_PAD_ENET0_RX_CLK__GPIO_4_13
151 MX28_PAD_SSP1_SCK__GPIO_2_12
152 MX28_PAD_PWM3__GPIO_3_28
153 MX28_PAD_LCD_RESET__GPIO_3_30
154 MX28_PAD_AUART2_RX__GPIO_3_8
155 MX28_PAD_AUART2_TX__GPIO_3_9
Shawn Guod54dbb52012-06-28 11:44:58 +0800156 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +0800157 fsl,drive-strength = <MXS_DRIVE_4mA>;
158 fsl,voltage = <MXS_VOLTAGE_HIGH>;
159 fsl,pull-up = <MXS_PULL_DISABLE>;
Shawn Guod54dbb52012-06-28 11:44:58 +0800160 };
Shawn Guodaefb692012-07-07 20:59:09 +0800161
Fabio Estevam30d6e2d52012-09-23 16:18:38 -0300162 led_pin_gpio3_5: led_gpio3_5@0 {
163 reg = <0>;
164 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +0200165 MX28_PAD_AUART1_TX__GPIO_3_5
Fabio Estevam30d6e2d52012-09-23 16:18:38 -0300166 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +0800167 fsl,drive-strength = <MXS_DRIVE_4mA>;
168 fsl,voltage = <MXS_VOLTAGE_HIGH>;
169 fsl,pull-up = <MXS_PULL_DISABLE>;
Fabio Estevam30d6e2d52012-09-23 16:18:38 -0300170 };
171
Shawn Guodaefb692012-07-07 20:59:09 +0800172 gpmi_pins_evk: gpmi-nand-evk@0 {
173 reg = <0>;
174 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +0200175 MX28_PAD_GPMI_CE1N__GPMI_CE1N
176 MX28_PAD_GPMI_RDY1__GPMI_READY1
Shawn Guodaefb692012-07-07 20:59:09 +0800177 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +0800178 fsl,drive-strength = <MXS_DRIVE_4mA>;
179 fsl,voltage = <MXS_VOLTAGE_HIGH>;
180 fsl,pull-up = <MXS_PULL_DISABLE>;
Shawn Guodaefb692012-07-07 20:59:09 +0800181 };
Shawn Guo3dba2592012-07-07 21:09:51 +0800182
183 lcdif_pins_evk: lcdif-evk@0 {
184 reg = <0>;
185 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +0200186 MX28_PAD_LCD_RD_E__LCD_VSYNC
187 MX28_PAD_LCD_WR_RWN__LCD_HSYNC
188 MX28_PAD_LCD_RS__LCD_DOTCLK
189 MX28_PAD_LCD_CS__LCD_ENABLE
Shawn Guo3dba2592012-07-07 21:09:51 +0800190 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +0800191 fsl,drive-strength = <MXS_DRIVE_4mA>;
192 fsl,voltage = <MXS_VOLTAGE_HIGH>;
193 fsl,pull-up = <MXS_PULL_DISABLE>;
Shawn Guo3dba2592012-07-07 21:09:51 +0800194 };
Shawn Guod54dbb52012-06-28 11:44:58 +0800195 };
Shawn Guoa915ee42012-06-28 11:45:07 +0800196
197 lcdif@80030000 {
198 pinctrl-names = "default";
Shawn Guo3dba2592012-07-07 21:09:51 +0800199 pinctrl-0 = <&lcdif_24bit_pins_a
200 &lcdif_pins_evk>;
Shawn Guoa915ee42012-06-28 11:45:07 +0800201 status = "okay";
Shawn Guo0d9f8212013-03-14 11:37:15 +0800202
Fabio Estevamc1539842018-07-20 17:39:17 -0300203 port {
204 display_out: endpoint {
205 remote-endpoint = <&panel_in>;
Shawn Guo0d9f8212013-03-14 11:37:15 +0800206 };
207 };
Shawn Guoa915ee42012-06-28 11:45:07 +0800208 };
Shawn Guo6ca44ac2012-06-28 11:45:03 +0800209
210 can0: can@80032000 {
211 pinctrl-names = "default";
212 pinctrl-0 = <&can0_pins_a>;
Fabio Estevamb7c41142013-06-10 23:12:57 -0300213 xceiver-supply = <&reg_can_3v3>;
Shawn Guo6ca44ac2012-06-28 11:45:03 +0800214 status = "okay";
215 };
216
217 can1: can@80034000 {
218 pinctrl-names = "default";
219 pinctrl-0 = <&can1_pins_a>;
Fabio Estevamb7c41142013-06-10 23:12:57 -0300220 xceiver-supply = <&reg_can_3v3>;
Shawn Guo6ca44ac2012-06-28 11:45:03 +0800221 status = "okay";
222 };
Shawn Guo35d23042012-05-06 16:33:34 +0800223 };
224
Dong Aishengbc3a59c2012-03-31 21:26:57 +0800225 apbx@80040000 {
Shawn Guo530f1d42012-05-10 15:03:16 +0800226 saif0: saif@80042000 {
227 pinctrl-names = "default";
228 pinctrl-0 = <&saif0_pins_a>;
229 status = "okay";
230 };
231
232 saif1: saif@80046000 {
233 pinctrl-names = "default";
234 pinctrl-0 = <&saif1_pins_a>;
235 fsl,saif-master = <&saif0>;
236 status = "okay";
237 };
238
Fabio Estevam8495a242012-08-27 13:23:28 -0300239 lradc@80050000 {
240 status = "okay";
Juergen Beiserte9c88fb2013-09-23 15:36:00 +0100241 fsl,lradc-touchscreen-wires = <4>;
242 fsl,ave-ctrl = <4>;
243 fsl,ave-delay = <2>;
244 fsl,settling = <10>;
Fabio Estevam8495a242012-08-27 13:23:28 -0300245 };
246
Shawn Guo2a96e392012-05-10 15:02:10 +0800247 i2c0: i2c@80058000 {
248 pinctrl-names = "default";
249 pinctrl-0 = <&i2c0_pins_a>;
250 status = "okay";
Shawn Guo530f1d42012-05-10 15:03:16 +0800251
Rob Herring8dccafa2017-10-13 12:54:51 -0500252 sgtl5000: codec@a {
Shawn Guo530f1d42012-05-10 15:03:16 +0800253 compatible = "fsl,sgtl5000";
254 reg = <0x0a>;
Rob Herringb08d2fb2018-03-01 14:25:33 -0600255 #sound-dai-cells = <0>;
Shawn Guo530f1d42012-05-10 15:03:16 +0800256 VDDA-supply = <&reg_3p3v>;
257 VDDIO-supply = <&reg_3p3v>;
Shawn Guo66acaf32013-07-01 15:46:05 +0800258 clocks = <&saif0>;
Shawn Guo530f1d42012-05-10 15:03:16 +0800259 };
Fabio Estevamfa876ce2012-08-27 16:39:59 -0300260
261 at24@51 {
Javier Martinez Canillas30dd9fb2017-05-23 15:34:34 +0200262 compatible = "atmel,24c32";
Fabio Estevamfa876ce2012-08-27 16:39:59 -0300263 pagesize = <32>;
264 reg = <0x51>;
265 };
Shawn Guo2a96e392012-05-10 15:02:10 +0800266 };
267
Shawn Guo52f71762012-06-28 11:45:06 +0800268 pwm: pwm@80064000 {
269 pinctrl-names = "default";
270 pinctrl-0 = <&pwm2_pins_a>;
271 status = "okay";
272 };
273
Dong Aishengbc3a59c2012-03-31 21:26:57 +0800274 duart: serial@80074000 {
275 pinctrl-names = "default";
276 pinctrl-0 = <&duart_pins_a>;
277 status = "okay";
278 };
Fabio Estevam80d969e2012-06-15 12:35:56 -0300279
280 auart0: serial@8006a000 {
281 pinctrl-names = "default";
282 pinctrl-0 = <&auart0_pins_a>;
Geert Uytterhoevenaee99112016-05-31 16:31:50 +0200283 uart-has-rtscts;
Fabio Estevam80d969e2012-06-15 12:35:56 -0300284 status = "okay";
285 };
286
287 auart3: serial@80070000 {
288 pinctrl-names = "default";
289 pinctrl-0 = <&auart3_pins_a>;
290 status = "okay";
291 };
Richard Zhao5da01272012-07-12 10:25:27 +0800292
293 usbphy0: usbphy@8007c000 {
294 status = "okay";
295 };
296
297 usbphy1: usbphy@8007e000 {
298 status = "okay";
299 };
Dong Aishengbc3a59c2012-03-31 21:26:57 +0800300 };
301 };
302
303 ahb@80080000 {
Richard Zhao5da01272012-07-12 10:25:27 +0800304 usb0: usb@80080000 {
Fabio Estevam69c02f92013-08-21 10:27:03 -0300305 pinctrl-names = "default";
306 pinctrl-0 = <&usb0_id_pins_a>;
Richard Zhao5da01272012-07-12 10:25:27 +0800307 vbus-supply = <&reg_usb0_vbus>;
308 status = "okay";
309 };
310
311 usb1: usb@80090000 {
312 vbus-supply = <&reg_usb1_vbus>;
313 status = "okay";
314 };
315
Dong Aishengbc3a59c2012-03-31 21:26:57 +0800316 mac0: ethernet@800f0000 {
317 phy-mode = "rmii";
318 pinctrl-names = "default";
319 pinctrl-0 = <&mac0_pins_a>;
Shawn Guoc9987c82012-06-28 11:45:02 +0800320 phy-supply = <&reg_fec_3v3>;
Fabio Estevam12de44f2017-06-04 14:31:15 -0300321 phy-reset-gpios = <&gpio4 13 GPIO_ACTIVE_LOW>;
Shawn Guoc9987c82012-06-28 11:45:02 +0800322 phy-reset-duration = <100>;
Dong Aishengbc3a59c2012-03-31 21:26:57 +0800323 status = "okay";
324 };
325
326 mac1: ethernet@800f4000 {
327 phy-mode = "rmii";
328 pinctrl-names = "default";
329 pinctrl-0 = <&mac1_pins_a>;
330 status = "okay";
331 };
332 };
Shawn Guo530f1d42012-05-10 15:03:16 +0800333
Shawn Guo530f1d42012-05-10 15:03:16 +0800334 sound {
335 compatible = "fsl,imx28-evk-sgtl5000",
336 "fsl,mxs-audio-sgtl5000";
337 model = "imx28-evk-sgtl5000";
338 saif-controllers = <&saif0 &saif1>;
339 audio-codec = <&sgtl5000>;
340 };
Shawn Guoa600e332012-06-28 11:45:04 +0800341
342 leds {
343 compatible = "gpio-leds";
Fabio Estevam30d6e2d52012-09-23 16:18:38 -0300344 pinctrl-names = "default";
345 pinctrl-0 = <&led_pin_gpio3_5>;
Shawn Guoa600e332012-06-28 11:45:04 +0800346
347 user {
348 label = "Heartbeat";
349 gpios = <&gpio3 5 0>;
350 linux,default-trigger = "heartbeat";
351 };
352 };
Shawn Guo52f71762012-06-28 11:45:06 +0800353
Fabio Estevamc1539842018-07-20 17:39:17 -0300354 backlight_display: backlight {
Shawn Guo52f71762012-06-28 11:45:06 +0800355 compatible = "pwm-backlight";
356 pwms = <&pwm 2 5000000>;
357 brightness-levels = <0 4 8 16 32 64 128 255>;
358 default-brightness-level = <6>;
359 };
Dong Aishengbc3a59c2012-03-31 21:26:57 +0800360};