xref: /freebsd-src/sys/contrib/device-tree/src/arm/nxp/mxs/imx28-evk.dts (revision 01950c46b8155250f64374fb72fc11faa44bf099)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+
2f126890aSEmmanuel Vadot//
3f126890aSEmmanuel Vadot// Copyright 2012 Freescale Semiconductor, Inc.
4f126890aSEmmanuel Vadot
5f126890aSEmmanuel Vadot/dts-v1/;
6f126890aSEmmanuel Vadot#include "imx28.dtsi"
7f126890aSEmmanuel Vadot
8f126890aSEmmanuel Vadot/ {
9f126890aSEmmanuel Vadot	model = "Freescale i.MX28 Evaluation Kit";
10f126890aSEmmanuel Vadot	compatible = "fsl,imx28-evk", "fsl,imx28";
11f126890aSEmmanuel Vadot
12f126890aSEmmanuel Vadot	memory@40000000 {
13f126890aSEmmanuel Vadot		device_type = "memory";
14f126890aSEmmanuel Vadot		reg = <0x40000000 0x08000000>;
15f126890aSEmmanuel Vadot	};
16f126890aSEmmanuel Vadot
17f126890aSEmmanuel Vadot
18f126890aSEmmanuel Vadot	reg_3p3v: regulator-3p3v {
19f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
20f126890aSEmmanuel Vadot		regulator-name = "3P3V";
21f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
22f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
23f126890aSEmmanuel Vadot		regulator-always-on;
24f126890aSEmmanuel Vadot	};
25f126890aSEmmanuel Vadot
26f126890aSEmmanuel Vadot	reg_vddio_sd0: regulator-vddio-sd0 {
27f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
28f126890aSEmmanuel Vadot		regulator-name = "vddio-sd0";
29f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
30f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
31f126890aSEmmanuel Vadot		gpio = <&gpio3 28 0>;
32f126890aSEmmanuel Vadot	};
33f126890aSEmmanuel Vadot
34f126890aSEmmanuel Vadot	reg_fec_3v3: regulator-fec-3v3 {
35f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
36f126890aSEmmanuel Vadot		regulator-name = "fec-3v3";
37f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
38f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
39f126890aSEmmanuel Vadot		gpio = <&gpio2 15 0>;
40f126890aSEmmanuel Vadot	};
41f126890aSEmmanuel Vadot
42f126890aSEmmanuel Vadot	reg_usb0_vbus: regulator-usb0-vbus {
43f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
44f126890aSEmmanuel Vadot		regulator-name = "usb0_vbus";
45f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
46f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
47f126890aSEmmanuel Vadot		gpio = <&gpio3 9 0>;
48f126890aSEmmanuel Vadot		enable-active-high;
49f126890aSEmmanuel Vadot	};
50f126890aSEmmanuel Vadot
51f126890aSEmmanuel Vadot	reg_usb1_vbus: regulator-usb1-vbus {
52f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
53f126890aSEmmanuel Vadot		regulator-name = "usb1_vbus";
54f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
55f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
56f126890aSEmmanuel Vadot		gpio = <&gpio3 8 0>;
57f126890aSEmmanuel Vadot		enable-active-high;
58f126890aSEmmanuel Vadot	};
59f126890aSEmmanuel Vadot
60f126890aSEmmanuel Vadot	reg_lcd_3v3: regulator-lcd-3v3 {
61f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
62f126890aSEmmanuel Vadot		regulator-name = "lcd-3v3";
63f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
64f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
65f126890aSEmmanuel Vadot		gpio = <&gpio3 30 0>;
66f126890aSEmmanuel Vadot		enable-active-high;
67f126890aSEmmanuel Vadot	};
68f126890aSEmmanuel Vadot
69f126890aSEmmanuel Vadot	reg_can_3v3: regulator-can-3v3 {
70f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
71f126890aSEmmanuel Vadot		regulator-name = "can-3v3";
72f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
73f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
74f126890aSEmmanuel Vadot		gpio = <&gpio2 13 0>;
75f126890aSEmmanuel Vadot		enable-active-high;
76f126890aSEmmanuel Vadot	};
77f126890aSEmmanuel Vadot
78f126890aSEmmanuel Vadot	reg_lcd_5v: regulator-lcd-5v {
79f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
80f126890aSEmmanuel Vadot		regulator-name = "lcd-5v";
81f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
82f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
83f126890aSEmmanuel Vadot	};
84f126890aSEmmanuel Vadot
85f126890aSEmmanuel Vadot	panel {
86f126890aSEmmanuel Vadot		compatible = "sii,43wvf1g";
87f126890aSEmmanuel Vadot		backlight = <&backlight_display>;
88f126890aSEmmanuel Vadot		dvdd-supply = <&reg_lcd_3v3>;
89f126890aSEmmanuel Vadot		avdd-supply = <&reg_lcd_5v>;
90f126890aSEmmanuel Vadot
91f126890aSEmmanuel Vadot		port {
92f126890aSEmmanuel Vadot			panel_in: endpoint {
93f126890aSEmmanuel Vadot				remote-endpoint = <&display_out>;
94f126890aSEmmanuel Vadot			};
95f126890aSEmmanuel Vadot		};
96f126890aSEmmanuel Vadot	};
97f126890aSEmmanuel Vadot
98f126890aSEmmanuel Vadot	sound {
99f126890aSEmmanuel Vadot		compatible = "fsl,imx28-evk-sgtl5000",
100f126890aSEmmanuel Vadot			     "fsl,mxs-audio-sgtl5000";
101f126890aSEmmanuel Vadot		model = "imx28-evk-sgtl5000";
102f126890aSEmmanuel Vadot		saif-controllers = <&saif0 &saif1>;
103f126890aSEmmanuel Vadot		audio-codec = <&sgtl5000>;
104f126890aSEmmanuel Vadot	};
105f126890aSEmmanuel Vadot
106f126890aSEmmanuel Vadot	leds {
107f126890aSEmmanuel Vadot		compatible = "gpio-leds";
108f126890aSEmmanuel Vadot		pinctrl-names = "default";
109f126890aSEmmanuel Vadot		pinctrl-0 = <&led_pin_gpio3_5>;
110f126890aSEmmanuel Vadot
111f126890aSEmmanuel Vadot		user {
112f126890aSEmmanuel Vadot			label = "Heartbeat";
113f126890aSEmmanuel Vadot			gpios = <&gpio3 5 0>;
114f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
115f126890aSEmmanuel Vadot		};
116f126890aSEmmanuel Vadot	};
117f126890aSEmmanuel Vadot
118f126890aSEmmanuel Vadot	backlight_display: backlight {
119f126890aSEmmanuel Vadot		compatible = "pwm-backlight";
12084943d6fSEmmanuel Vadot		pwms = <&pwm 2 5000000 0>;
121f126890aSEmmanuel Vadot		brightness-levels = <0 4 8 16 32 64 128 255>;
122f126890aSEmmanuel Vadot		default-brightness-level = <6>;
123f126890aSEmmanuel Vadot	};
124f126890aSEmmanuel Vadot};
125f126890aSEmmanuel Vadot
126f126890aSEmmanuel Vadot&auart0 {
127f126890aSEmmanuel Vadot	pinctrl-names = "default";
128f126890aSEmmanuel Vadot	pinctrl-0 = <&auart0_pins_a>;
129f126890aSEmmanuel Vadot	uart-has-rtscts;
130f126890aSEmmanuel Vadot	status = "okay";
131f126890aSEmmanuel Vadot};
132f126890aSEmmanuel Vadot
133f126890aSEmmanuel Vadot&auart3 {
134f126890aSEmmanuel Vadot	pinctrl-names = "default";
135f126890aSEmmanuel Vadot	pinctrl-0 = <&auart3_pins_a>;
136f126890aSEmmanuel Vadot	status = "okay";
137f126890aSEmmanuel Vadot};
138f126890aSEmmanuel Vadot
139f126890aSEmmanuel Vadot&can0 {
140f126890aSEmmanuel Vadot	pinctrl-names = "default";
141f126890aSEmmanuel Vadot	pinctrl-0 = <&can0_pins_a>;
142f126890aSEmmanuel Vadot	xceiver-supply = <&reg_can_3v3>;
143f126890aSEmmanuel Vadot	status = "okay";
144f126890aSEmmanuel Vadot};
145f126890aSEmmanuel Vadot
146f126890aSEmmanuel Vadot&can1 {
147f126890aSEmmanuel Vadot	pinctrl-names = "default";
148f126890aSEmmanuel Vadot	pinctrl-0 = <&can1_pins_a>;
149f126890aSEmmanuel Vadot	xceiver-supply = <&reg_can_3v3>;
150f126890aSEmmanuel Vadot	status = "okay";
151f126890aSEmmanuel Vadot};
152f126890aSEmmanuel Vadot
153f126890aSEmmanuel Vadot&duart {
154f126890aSEmmanuel Vadot	pinctrl-names = "default";
155f126890aSEmmanuel Vadot	pinctrl-0 = <&duart_pins_a>;
156f126890aSEmmanuel Vadot	status = "okay";
157f126890aSEmmanuel Vadot};
158f126890aSEmmanuel Vadot
159f126890aSEmmanuel Vadot&gpmi {
160f126890aSEmmanuel Vadot	pinctrl-names = "default";
161f126890aSEmmanuel Vadot	pinctrl-0 = <&gpmi_pins_a &gpmi_status_cfg
162f126890aSEmmanuel Vadot		     &gpmi_pins_evk>;
163f126890aSEmmanuel Vadot	status = "okay";
164f126890aSEmmanuel Vadot};
165f126890aSEmmanuel Vadot
166f126890aSEmmanuel Vadot&lcdif {
167f126890aSEmmanuel Vadot	pinctrl-names = "default";
168f126890aSEmmanuel Vadot	pinctrl-0 = <&lcdif_24bit_pins_a
169f126890aSEmmanuel Vadot		     &lcdif_pins_evk>;
170f126890aSEmmanuel Vadot	status = "okay";
171f126890aSEmmanuel Vadot
172f126890aSEmmanuel Vadot	port {
173f126890aSEmmanuel Vadot		display_out: endpoint {
174f126890aSEmmanuel Vadot			remote-endpoint = <&panel_in>;
175f126890aSEmmanuel Vadot		};
176f126890aSEmmanuel Vadot	};
177f126890aSEmmanuel Vadot};
178f126890aSEmmanuel Vadot
179f126890aSEmmanuel Vadot&lradc {
180f126890aSEmmanuel Vadot	fsl,lradc-touchscreen-wires = <4>;
181f126890aSEmmanuel Vadot	fsl,ave-ctrl = <4>;
182f126890aSEmmanuel Vadot	fsl,ave-delay = <2>;
183f126890aSEmmanuel Vadot	fsl,settling = <10>;
184f126890aSEmmanuel Vadot	status = "okay";
185f126890aSEmmanuel Vadot};
186f126890aSEmmanuel Vadot
187f126890aSEmmanuel Vadot&i2c0 {
188f126890aSEmmanuel Vadot	pinctrl-names = "default";
189f126890aSEmmanuel Vadot	pinctrl-0 = <&i2c0_pins_a>;
190f126890aSEmmanuel Vadot	status = "okay";
191f126890aSEmmanuel Vadot
192f126890aSEmmanuel Vadot	sgtl5000: codec@a {
193f126890aSEmmanuel Vadot		compatible = "fsl,sgtl5000";
194f126890aSEmmanuel Vadot		reg = <0x0a>;
195f126890aSEmmanuel Vadot		#sound-dai-cells = <0>;
196f126890aSEmmanuel Vadot		VDDA-supply = <&reg_3p3v>;
197f126890aSEmmanuel Vadot		VDDIO-supply = <&reg_3p3v>;
198f126890aSEmmanuel Vadot		clocks = <&saif0>;
199f126890aSEmmanuel Vadot	};
200f126890aSEmmanuel Vadot
201*01950c46SEmmanuel Vadot	eeprom@51 {
202f126890aSEmmanuel Vadot		compatible = "atmel,24c32";
203f126890aSEmmanuel Vadot		pagesize = <32>;
204f126890aSEmmanuel Vadot		reg = <0x51>;
205f126890aSEmmanuel Vadot	};
206f126890aSEmmanuel Vadot};
207f126890aSEmmanuel Vadot
208f126890aSEmmanuel Vadot&mac0 {
209f126890aSEmmanuel Vadot	phy-mode = "rmii";
210f126890aSEmmanuel Vadot	pinctrl-names = "default";
211f126890aSEmmanuel Vadot	pinctrl-0 = <&mac0_pins_a>;
212f126890aSEmmanuel Vadot	phy-supply = <&reg_fec_3v3>;
213f126890aSEmmanuel Vadot	phy-reset-gpios = <&gpio4 13 GPIO_ACTIVE_LOW>;
214f126890aSEmmanuel Vadot	phy-reset-duration = <100>;
215f126890aSEmmanuel Vadot	status = "okay";
216f126890aSEmmanuel Vadot};
217f126890aSEmmanuel Vadot
218f126890aSEmmanuel Vadot&mac1 {
219f126890aSEmmanuel Vadot	phy-mode = "rmii";
220f126890aSEmmanuel Vadot	pinctrl-names = "default";
221f126890aSEmmanuel Vadot	pinctrl-0 = <&mac1_pins_a>;
222f126890aSEmmanuel Vadot	status = "okay";
223f126890aSEmmanuel Vadot};
224f126890aSEmmanuel Vadot
225f126890aSEmmanuel Vadot&pinctrl {
226f126890aSEmmanuel Vadot	pinctrl-names = "default";
227f126890aSEmmanuel Vadot	pinctrl-0 = <&hog_pins_a>;
228f126890aSEmmanuel Vadot
229f126890aSEmmanuel Vadot	hog_pins_a: hog@0 {
230f126890aSEmmanuel Vadot		reg = <0>;
231f126890aSEmmanuel Vadot		fsl,pinmux-ids = <
232f126890aSEmmanuel Vadot			MX28_PAD_SSP1_CMD__GPIO_2_13
233f126890aSEmmanuel Vadot			MX28_PAD_SSP1_DATA3__GPIO_2_15
234f126890aSEmmanuel Vadot			MX28_PAD_ENET0_RX_CLK__GPIO_4_13
235f126890aSEmmanuel Vadot			MX28_PAD_SSP1_SCK__GPIO_2_12
236f126890aSEmmanuel Vadot			MX28_PAD_PWM3__GPIO_3_28
237f126890aSEmmanuel Vadot			MX28_PAD_LCD_RESET__GPIO_3_30
238f126890aSEmmanuel Vadot			MX28_PAD_AUART2_RX__GPIO_3_8
239f126890aSEmmanuel Vadot			MX28_PAD_AUART2_TX__GPIO_3_9
240f126890aSEmmanuel Vadot		>;
241f126890aSEmmanuel Vadot		fsl,drive-strength = <MXS_DRIVE_4mA>;
242f126890aSEmmanuel Vadot		fsl,voltage = <MXS_VOLTAGE_HIGH>;
243f126890aSEmmanuel Vadot		fsl,pull-up = <MXS_PULL_DISABLE>;
244f126890aSEmmanuel Vadot	};
245f126890aSEmmanuel Vadot
246f126890aSEmmanuel Vadot	led_pin_gpio3_5: led_gpio3_5@0 {
247f126890aSEmmanuel Vadot		reg = <0>;
248f126890aSEmmanuel Vadot		fsl,pinmux-ids = <
249f126890aSEmmanuel Vadot			MX28_PAD_AUART1_TX__GPIO_3_5
250f126890aSEmmanuel Vadot		>;
251f126890aSEmmanuel Vadot		fsl,drive-strength = <MXS_DRIVE_4mA>;
252f126890aSEmmanuel Vadot		fsl,voltage = <MXS_VOLTAGE_HIGH>;
253f126890aSEmmanuel Vadot		fsl,pull-up = <MXS_PULL_DISABLE>;
254f126890aSEmmanuel Vadot	};
255f126890aSEmmanuel Vadot
256f126890aSEmmanuel Vadot	gpmi_pins_evk: gpmi-nand-evk@0 {
257f126890aSEmmanuel Vadot		reg = <0>;
258f126890aSEmmanuel Vadot		fsl,pinmux-ids = <
259f126890aSEmmanuel Vadot			MX28_PAD_GPMI_CE1N__GPMI_CE1N
260f126890aSEmmanuel Vadot			MX28_PAD_GPMI_RDY1__GPMI_READY1
261f126890aSEmmanuel Vadot		>;
262f126890aSEmmanuel Vadot		fsl,drive-strength = <MXS_DRIVE_4mA>;
263f126890aSEmmanuel Vadot		fsl,voltage = <MXS_VOLTAGE_HIGH>;
264f126890aSEmmanuel Vadot		fsl,pull-up = <MXS_PULL_DISABLE>;
265f126890aSEmmanuel Vadot	};
266f126890aSEmmanuel Vadot
267f126890aSEmmanuel Vadot	lcdif_pins_evk: lcdif-evk@0 {
268f126890aSEmmanuel Vadot		reg = <0>;
269f126890aSEmmanuel Vadot		fsl,pinmux-ids = <
270f126890aSEmmanuel Vadot			MX28_PAD_LCD_RD_E__LCD_VSYNC
271f126890aSEmmanuel Vadot			MX28_PAD_LCD_WR_RWN__LCD_HSYNC
272f126890aSEmmanuel Vadot			MX28_PAD_LCD_RS__LCD_DOTCLK
273f126890aSEmmanuel Vadot			MX28_PAD_LCD_CS__LCD_ENABLE
274f126890aSEmmanuel Vadot		>;
275f126890aSEmmanuel Vadot		fsl,drive-strength = <MXS_DRIVE_4mA>;
276f126890aSEmmanuel Vadot		fsl,voltage = <MXS_VOLTAGE_HIGH>;
277f126890aSEmmanuel Vadot		fsl,pull-up = <MXS_PULL_DISABLE>;
278f126890aSEmmanuel Vadot	};
279f126890aSEmmanuel Vadot};
280f126890aSEmmanuel Vadot
281f126890aSEmmanuel Vadot&pwm {
282f126890aSEmmanuel Vadot	pinctrl-names = "default";
283f126890aSEmmanuel Vadot	pinctrl-0 = <&pwm2_pins_a>;
284f126890aSEmmanuel Vadot	status = "okay";
285f126890aSEmmanuel Vadot};
286f126890aSEmmanuel Vadot
287f126890aSEmmanuel Vadot&saif0 {
288f126890aSEmmanuel Vadot	pinctrl-names = "default";
289f126890aSEmmanuel Vadot	pinctrl-0 = <&saif0_pins_a>;
290f126890aSEmmanuel Vadot	status = "okay";
291f126890aSEmmanuel Vadot};
292f126890aSEmmanuel Vadot
293f126890aSEmmanuel Vadot&saif1 {
294f126890aSEmmanuel Vadot	pinctrl-names = "default";
295f126890aSEmmanuel Vadot	pinctrl-0 = <&saif1_pins_a>;
296f126890aSEmmanuel Vadot	fsl,saif-master = <&saif0>;
297f126890aSEmmanuel Vadot	status = "okay";
298f126890aSEmmanuel Vadot};
299f126890aSEmmanuel Vadot
300f126890aSEmmanuel Vadot&ssp0 {
301f126890aSEmmanuel Vadot	compatible = "fsl,imx28-mmc";
302f126890aSEmmanuel Vadot	pinctrl-names = "default";
303f126890aSEmmanuel Vadot	pinctrl-0 = <&mmc0_8bit_pins_a
304f126890aSEmmanuel Vadot		&mmc0_cd_cfg &mmc0_sck_cfg>;
305f126890aSEmmanuel Vadot	bus-width = <8>;
306f126890aSEmmanuel Vadot	wp-gpios = <&gpio2 12 0>;
307f126890aSEmmanuel Vadot	vmmc-supply = <&reg_vddio_sd0>;
308f126890aSEmmanuel Vadot	status = "okay";
309f126890aSEmmanuel Vadot};
310f126890aSEmmanuel Vadot
311f126890aSEmmanuel Vadot&ssp1 {
312f126890aSEmmanuel Vadot	compatible = "fsl,imx28-mmc";
313f126890aSEmmanuel Vadot	bus-width = <8>;
314f126890aSEmmanuel Vadot	wp-gpios = <&gpio0 28 0>;
315f126890aSEmmanuel Vadot};
316f126890aSEmmanuel Vadot
317f126890aSEmmanuel Vadot&ssp2 {
318f126890aSEmmanuel Vadot	#address-cells = <1>;
319f126890aSEmmanuel Vadot	#size-cells = <0>;
320f126890aSEmmanuel Vadot	compatible = "fsl,imx28-spi";
321f126890aSEmmanuel Vadot	pinctrl-names = "default";
322f126890aSEmmanuel Vadot	pinctrl-0 = <&spi2_pins_a>;
323f126890aSEmmanuel Vadot	status = "okay";
324f126890aSEmmanuel Vadot
325f126890aSEmmanuel Vadot	flash: flash@0 {
326f126890aSEmmanuel Vadot		reg = <0>;
327f126890aSEmmanuel Vadot		#address-cells = <1>;
328f126890aSEmmanuel Vadot		#size-cells = <1>;
329f126890aSEmmanuel Vadot		compatible = "sst,sst25vf016b", "jedec,spi-nor";
330f126890aSEmmanuel Vadot		spi-max-frequency = <40000000>;
331f126890aSEmmanuel Vadot	};
332f126890aSEmmanuel Vadot};
333f126890aSEmmanuel Vadot
334f126890aSEmmanuel Vadot&usb0 {
335f126890aSEmmanuel Vadot	pinctrl-names = "default";
336f126890aSEmmanuel Vadot	pinctrl-0 = <&usb0_id_pins_a>;
337f126890aSEmmanuel Vadot	vbus-supply = <&reg_usb0_vbus>;
338f126890aSEmmanuel Vadot	status = "okay";
339f126890aSEmmanuel Vadot};
340f126890aSEmmanuel Vadot
341f126890aSEmmanuel Vadot&usb1 {
342f126890aSEmmanuel Vadot	vbus-supply = <&reg_usb1_vbus>;
343f126890aSEmmanuel Vadot	status = "okay";
344f126890aSEmmanuel Vadot};
345f126890aSEmmanuel Vadot
346f126890aSEmmanuel Vadot&usbphy0 {
347f126890aSEmmanuel Vadot	status = "okay";
348f126890aSEmmanuel Vadot};
349f126890aSEmmanuel Vadot
350f126890aSEmmanuel Vadot&usbphy1 {
351f126890aSEmmanuel Vadot	status = "okay";
352f126890aSEmmanuel Vadot};
353