1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) 2014 Marek Vasut <marex@denx.de>
4 */
5
6#include "imx53.dtsi"
7
8/ {
9	model = "Aries/DENX M53";
10	compatible = "aries,imx53-m53", "denx,imx53-m53", "fsl,imx53";
11
12	memory@70000000 {
13		device_type = "memory";
14		reg = <0x70000000 0x20000000>,
15		      <0xb0000000 0x20000000>;
16	};
17
18	reg_3p2v: regulator-3p2v {
19		compatible = "regulator-fixed";
20		regulator-name = "3P2V";
21		regulator-min-microvolt = <3200000>;
22		regulator-max-microvolt = <3200000>;
23		regulator-always-on;
24	};
25
26	reg_backlight: regulator-backlight {
27		compatible = "regulator-fixed";
28		regulator-name = "lcd-supply";
29		regulator-min-microvolt = <3200000>;
30		regulator-max-microvolt = <3200000>;
31		regulator-always-on;
32	};
33};
34
35&i2c2 {
36	pinctrl-names = "default";
37	pinctrl-0 = <&pinctrl_i2c2>;
38	clock-frequency = <400000>;
39	status = "okay";
40
41	touchscreen@41 {
42		compatible = "st,stmpe610";
43		reg = <0x41>;
44		id = <0>;
45		blocks = <0x5>;
46		interrupts = <6 0x0>;
47		interrupt-parent = <&gpio7>;
48		irq-trigger = <0x1>;
49
50		stmpe_touchscreen {
51			compatible = "st,stmpe-ts";
52			st,sample-time = <4>;
53			st,mod-12b = <1>;
54			st,ref-sel = <0>;
55			st,adc-freq = <1>;
56			st,ave-ctrl = <3>;
57			st,touch-det-delay = <3>;
58			st,settling = <4>;
59			st,fraction-z = <7>;
60			st,i-drive = <1>;
61		};
62	};
63
64	eeprom: eeprom@50 {
65		compatible = "atmel,24c128";
66		reg = <0x50>;
67		pagesize = <32>;
68	};
69
70	rtc: rtc@68 {
71		compatible = "st,m41t62";
72		reg = <0x68>;
73	};
74};
75
76&iomuxc {
77	pinctrl-names = "default";
78	pinctrl-0 = <&pinctrl_hog>;
79
80	imx53-m53evk {
81		pinctrl_hog: hoggrp {
82			fsl,pins = <
83				MX53_PAD_GPIO_0__CCM_SSI_EXT1_CLK	0x80000000
84				MX53_PAD_EIM_EB3__GPIO2_31		0x80000000
85				MX53_PAD_PATA_DA_0__GPIO7_6		0x80000000
86			>;
87		};
88
89		pinctrl_i2c2: i2c2grp {
90			fsl,pins = <
91				MX53_PAD_EIM_D16__I2C2_SDA		0xc0000000
92				MX53_PAD_EIM_EB2__I2C2_SCL		0xc0000000
93			>;
94		};
95
96		pinctrl_nand: nandgrp {
97			fsl,pins = <
98				MX53_PAD_NANDF_WE_B__EMI_NANDF_WE_B	0x4
99				MX53_PAD_NANDF_RE_B__EMI_NANDF_RE_B	0x4
100				MX53_PAD_NANDF_CLE__EMI_NANDF_CLE	0x4
101				MX53_PAD_NANDF_ALE__EMI_NANDF_ALE	0x4
102				MX53_PAD_NANDF_WP_B__EMI_NANDF_WP_B	0xe0
103				MX53_PAD_NANDF_RB0__EMI_NANDF_RB_0	0xe0
104				MX53_PAD_NANDF_CS0__EMI_NANDF_CS_0	0x4
105				MX53_PAD_PATA_DATA0__EMI_NANDF_D_0	0xa4
106				MX53_PAD_PATA_DATA1__EMI_NANDF_D_1	0xa4
107				MX53_PAD_PATA_DATA2__EMI_NANDF_D_2	0xa4
108				MX53_PAD_PATA_DATA3__EMI_NANDF_D_3	0xa4
109				MX53_PAD_PATA_DATA4__EMI_NANDF_D_4	0xa4
110				MX53_PAD_PATA_DATA5__EMI_NANDF_D_5	0xa4
111				MX53_PAD_PATA_DATA6__EMI_NANDF_D_6	0xa4
112				MX53_PAD_PATA_DATA7__EMI_NANDF_D_7	0xa4
113			>;
114		};
115	};
116};
117
118&nfc {
119	pinctrl-names = "default";
120	pinctrl-0 = <&pinctrl_nand>;
121	nand-bus-width = <8>;
122	nand-ecc-mode = "hw";
123	status = "okay";
124};
125