1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later
2*724ba675SRob Herring/*
3*724ba675SRob Herring * DTS file for SPEAr320 Evaluation Baord
4*724ba675SRob Herring *
5*724ba675SRob Herring * Copyright 2012 Shiraz Hashim <shiraz.linux.kernel@gmail.com>
6*724ba675SRob Herring */
7*724ba675SRob Herring
8*724ba675SRob Herring/dts-v1/;
9*724ba675SRob Herring/include/ "spear320.dtsi"
10*724ba675SRob Herring
11*724ba675SRob Herring/ {
12*724ba675SRob Herring	model = "ST SPEAr320 HMI Board";
13*724ba675SRob Herring	compatible = "st,spear320-hmi", "st,spear320";
14*724ba675SRob Herring	#address-cells = <1>;
15*724ba675SRob Herring	#size-cells = <1>;
16*724ba675SRob Herring
17*724ba675SRob Herring	memory {
18*724ba675SRob Herring		reg = <0 0x40000000>;
19*724ba675SRob Herring	};
20*724ba675SRob Herring
21*724ba675SRob Herring	ahb {
22*724ba675SRob Herring		pinmux@b3000000 {
23*724ba675SRob Herring			st,pinmux-mode = <4>;
24*724ba675SRob Herring			pinctrl-names = "default";
25*724ba675SRob Herring			pinctrl-0 = <&state_default>;
26*724ba675SRob Herring
27*724ba675SRob Herring			state_default: pinmux {
28*724ba675SRob Herring				i2c0 {
29*724ba675SRob Herring					st,pins = "i2c0_grp";
30*724ba675SRob Herring					st,function = "i2c0";
31*724ba675SRob Herring				};
32*724ba675SRob Herring				ssp0 {
33*724ba675SRob Herring					st,pins = "ssp0_grp";
34*724ba675SRob Herring					st,function = "ssp0";
35*724ba675SRob Herring				};
36*724ba675SRob Herring				uart0 {
37*724ba675SRob Herring					st,pins = "uart0_grp";
38*724ba675SRob Herring					st,function = "uart0";
39*724ba675SRob Herring				};
40*724ba675SRob Herring				clcd {
41*724ba675SRob Herring					st,pins = "clcd_grp";
42*724ba675SRob Herring					st,function = "clcd";
43*724ba675SRob Herring				};
44*724ba675SRob Herring				fsmc {
45*724ba675SRob Herring					st,pins = "fsmc_8bit_grp";
46*724ba675SRob Herring					st,function = "fsmc";
47*724ba675SRob Herring				};
48*724ba675SRob Herring				sdhci {
49*724ba675SRob Herring					st,pins = "sdhci_cd_12_grp";
50*724ba675SRob Herring					st,function = "sdhci";
51*724ba675SRob Herring				};
52*724ba675SRob Herring				i2s {
53*724ba675SRob Herring					st,pins = "i2s_grp";
54*724ba675SRob Herring					st,function = "i2s";
55*724ba675SRob Herring				};
56*724ba675SRob Herring				uart1 {
57*724ba675SRob Herring					st,pins = "uart1_grp";
58*724ba675SRob Herring					st,function = "uart1";
59*724ba675SRob Herring				};
60*724ba675SRob Herring				uart2 {
61*724ba675SRob Herring					st,pins = "uart2_grp";
62*724ba675SRob Herring					st,function = "uart2";
63*724ba675SRob Herring				};
64*724ba675SRob Herring				can0 {
65*724ba675SRob Herring					st,pins = "can0_grp";
66*724ba675SRob Herring					st,function = "can0";
67*724ba675SRob Herring				};
68*724ba675SRob Herring				can1 {
69*724ba675SRob Herring					st,pins = "can1_grp";
70*724ba675SRob Herring					st,function = "can1";
71*724ba675SRob Herring				};
72*724ba675SRob Herring				mii0_1 {
73*724ba675SRob Herring					st,pins = "rmii0_1_grp";
74*724ba675SRob Herring					st,function = "mii0_1";
75*724ba675SRob Herring				};
76*724ba675SRob Herring				pwm0_1 {
77*724ba675SRob Herring					st,pins = "pwm0_1_pin_37_38_grp";
78*724ba675SRob Herring					st,function = "pwm0_1";
79*724ba675SRob Herring				};
80*724ba675SRob Herring				pwm2 {
81*724ba675SRob Herring					st,pins = "pwm2_pin_34_grp";
82*724ba675SRob Herring					st,function = "pwm2";
83*724ba675SRob Herring				};
84*724ba675SRob Herring			};
85*724ba675SRob Herring		};
86*724ba675SRob Herring
87*724ba675SRob Herring		clcd@90000000 {
88*724ba675SRob Herring			status = "okay";
89*724ba675SRob Herring		};
90*724ba675SRob Herring
91*724ba675SRob Herring		dma@fc400000 {
92*724ba675SRob Herring			status = "okay";
93*724ba675SRob Herring		};
94*724ba675SRob Herring
95*724ba675SRob Herring		ehci@e1800000 {
96*724ba675SRob Herring			status = "okay";
97*724ba675SRob Herring		};
98*724ba675SRob Herring
99*724ba675SRob Herring		fsmc: flash@4c000000 {
100*724ba675SRob Herring			status = "okay";
101*724ba675SRob Herring
102*724ba675SRob Herring			partition@0 {
103*724ba675SRob Herring				label = "xloader";
104*724ba675SRob Herring				reg = <0x0 0x80000>;
105*724ba675SRob Herring			};
106*724ba675SRob Herring			partition@80000 {
107*724ba675SRob Herring				label = "u-boot";
108*724ba675SRob Herring				reg = <0x80000 0x140000>;
109*724ba675SRob Herring			};
110*724ba675SRob Herring			partition@1C0000 {
111*724ba675SRob Herring				label = "environment";
112*724ba675SRob Herring				reg = <0x1C0000 0x40000>;
113*724ba675SRob Herring			};
114*724ba675SRob Herring			partition@200000 {
115*724ba675SRob Herring				label = "dtb";
116*724ba675SRob Herring				reg = <0x200000 0x40000>;
117*724ba675SRob Herring			};
118*724ba675SRob Herring			partition@240000 {
119*724ba675SRob Herring				label = "linux";
120*724ba675SRob Herring				reg = <0x240000 0xC00000>;
121*724ba675SRob Herring			};
122*724ba675SRob Herring			partition@E40000 {
123*724ba675SRob Herring				label = "rootfs";
124*724ba675SRob Herring				reg = <0xE40000 0x0>;
125*724ba675SRob Herring			};
126*724ba675SRob Herring		};
127*724ba675SRob Herring
128*724ba675SRob Herring		gpio_keys {
129*724ba675SRob Herring			compatible = "gpio-keys";
130*724ba675SRob Herring			#address-cells = <1>;
131*724ba675SRob Herring			#size-cells = <0>;
132*724ba675SRob Herring
133*724ba675SRob Herring			button@1 {
134*724ba675SRob Herring				label = "user button 1";
135*724ba675SRob Herring				linux,code = <0x100>;
136*724ba675SRob Herring				gpios = <&stmpegpio 3 0x4>;
137*724ba675SRob Herring				debounce-interval = <20>;
138*724ba675SRob Herring				wakeup-source;
139*724ba675SRob Herring			};
140*724ba675SRob Herring
141*724ba675SRob Herring			button@2 {
142*724ba675SRob Herring				label = "user button 2";
143*724ba675SRob Herring				linux,code = <0x200>;
144*724ba675SRob Herring				gpios = <&stmpegpio 2 0x4>;
145*724ba675SRob Herring				debounce-interval = <20>;
146*724ba675SRob Herring				wakeup-source;
147*724ba675SRob Herring			};
148*724ba675SRob Herring		};
149*724ba675SRob Herring
150*724ba675SRob Herring		ohci@e1900000 {
151*724ba675SRob Herring			status = "okay";
152*724ba675SRob Herring		};
153*724ba675SRob Herring
154*724ba675SRob Herring		ohci@e2100000 {
155*724ba675SRob Herring			status = "okay";
156*724ba675SRob Herring		};
157*724ba675SRob Herring
158*724ba675SRob Herring		pwm: pwm@a8000000 {
159*724ba675SRob Herring			status = "okay";
160*724ba675SRob Herring		};
161*724ba675SRob Herring
162*724ba675SRob Herring		sdhci@70000000 {
163*724ba675SRob Herring			power-gpio = <&gpiopinctrl 50 1>;
164*724ba675SRob Herring			power_always_enb;
165*724ba675SRob Herring			status = "okay";
166*724ba675SRob Herring		};
167*724ba675SRob Herring
168*724ba675SRob Herring		smi: flash@fc000000 {
169*724ba675SRob Herring			status = "okay";
170*724ba675SRob Herring			clock-rate = <50000000>;
171*724ba675SRob Herring
172*724ba675SRob Herring			flash@f8000000 {
173*724ba675SRob Herring				#address-cells = <1>;
174*724ba675SRob Herring				#size-cells = <1>;
175*724ba675SRob Herring				reg = <0xf8000000 0x800000>;
176*724ba675SRob Herring				st,smi-fast-mode;
177*724ba675SRob Herring
178*724ba675SRob Herring				partition@0 {
179*724ba675SRob Herring					label = "xloader";
180*724ba675SRob Herring					reg = <0x0 0x10000>;
181*724ba675SRob Herring				};
182*724ba675SRob Herring				partition@10000 {
183*724ba675SRob Herring					label = "u-boot";
184*724ba675SRob Herring					reg = <0x10000 0x50000>;
185*724ba675SRob Herring				};
186*724ba675SRob Herring				partition@60000 {
187*724ba675SRob Herring					label = "environment";
188*724ba675SRob Herring					reg = <0x60000 0x10000>;
189*724ba675SRob Herring				};
190*724ba675SRob Herring				partition@70000 {
191*724ba675SRob Herring					label = "dtb";
192*724ba675SRob Herring					reg = <0x70000 0x10000>;
193*724ba675SRob Herring				};
194*724ba675SRob Herring				partition@80000 {
195*724ba675SRob Herring					label = "linux";
196*724ba675SRob Herring					reg = <0x80000 0x310000>;
197*724ba675SRob Herring				};
198*724ba675SRob Herring				partition@390000 {
199*724ba675SRob Herring					label = "rootfs";
200*724ba675SRob Herring					reg = <0x390000 0x0>;
201*724ba675SRob Herring				};
202*724ba675SRob Herring			};
203*724ba675SRob Herring		};
204*724ba675SRob Herring
205*724ba675SRob Herring		spi0: spi@d0100000 {
206*724ba675SRob Herring			status = "okay";
207*724ba675SRob Herring		};
208*724ba675SRob Herring
209*724ba675SRob Herring		spi1: spi@a5000000 {
210*724ba675SRob Herring			status = "okay";
211*724ba675SRob Herring		};
212*724ba675SRob Herring
213*724ba675SRob Herring		spi2: spi@a6000000 {
214*724ba675SRob Herring			status = "okay";
215*724ba675SRob Herring		};
216*724ba675SRob Herring
217*724ba675SRob Herring		usbd@e1100000 {
218*724ba675SRob Herring			status = "okay";
219*724ba675SRob Herring		};
220*724ba675SRob Herring
221*724ba675SRob Herring		apb {
222*724ba675SRob Herring			gpio0: gpio@fc980000 {
223*724ba675SRob Herring			       status = "okay";
224*724ba675SRob Herring			};
225*724ba675SRob Herring
226*724ba675SRob Herring			gpio@b3000000 {
227*724ba675SRob Herring				status = "okay";
228*724ba675SRob Herring			};
229*724ba675SRob Herring
230*724ba675SRob Herring			i2c0: i2c@d0180000 {
231*724ba675SRob Herring				status = "okay";
232*724ba675SRob Herring
233*724ba675SRob Herring				stmpe811@41 {
234*724ba675SRob Herring					compatible = "st,stmpe811";
235*724ba675SRob Herring					#address-cells = <1>;
236*724ba675SRob Herring					#size-cells = <0>;
237*724ba675SRob Herring					reg = <0x41>;
238*724ba675SRob Herring					irq-gpios = <&gpiopinctrl 29 0x4>;
239*724ba675SRob Herring					id = <0>;
240*724ba675SRob Herring					blocks = <0x5>;
241*724ba675SRob Herring					irq-trigger = <0x1>;
242*724ba675SRob Herring
243*724ba675SRob Herring					stmpegpio: stmpe-gpio {
244*724ba675SRob Herring						compatible = "st,stmpe-gpio";
245*724ba675SRob Herring						reg = <0>;
246*724ba675SRob Herring						gpio-controller;
247*724ba675SRob Herring						#gpio-cells = <2>;
248*724ba675SRob Herring						gpio,norequest-mask = <0xF3>;
249*724ba675SRob Herring					};
250*724ba675SRob Herring
251*724ba675SRob Herring					stmpe610-ts {
252*724ba675SRob Herring						compatible = "stmpe,ts";
253*724ba675SRob Herring						reg = <0>;
254*724ba675SRob Herring						ts,sample-time = <4>;
255*724ba675SRob Herring						ts,mod-12b = <1>;
256*724ba675SRob Herring						ts,ref-sel = <0>;
257*724ba675SRob Herring						ts,adc-freq = <1>;
258*724ba675SRob Herring						ts,ave-ctrl = <1>;
259*724ba675SRob Herring						ts,touch-det-delay = <3>;
260*724ba675SRob Herring						ts,settling = <4>;
261*724ba675SRob Herring						ts,fraction-z = <7>;
262*724ba675SRob Herring						ts,i-drive = <1>;
263*724ba675SRob Herring					};
264*724ba675SRob Herring				};
265*724ba675SRob Herring			};
266*724ba675SRob Herring
267*724ba675SRob Herring			i2c1: i2c@a7000000 {
268*724ba675SRob Herring			       status = "okay";
269*724ba675SRob Herring			};
270*724ba675SRob Herring
271*724ba675SRob Herring			rtc@fc900000 {
272*724ba675SRob Herring			       status = "okay";
273*724ba675SRob Herring			};
274*724ba675SRob Herring
275*724ba675SRob Herring			serial@d0000000 {
276*724ba675SRob Herring			       status = "okay";
277*724ba675SRob Herring				pinctrl-names = "default";
278*724ba675SRob Herring				pinctrl-0 = <>;
279*724ba675SRob Herring			};
280*724ba675SRob Herring
281*724ba675SRob Herring			serial@a3000000 {
282*724ba675SRob Herring			       status = "okay";
283*724ba675SRob Herring				pinctrl-names = "default";
284*724ba675SRob Herring				pinctrl-0 = <>;
285*724ba675SRob Herring			};
286*724ba675SRob Herring
287*724ba675SRob Herring			serial@a4000000 {
288*724ba675SRob Herring			       status = "okay";
289*724ba675SRob Herring				pinctrl-names = "default";
290*724ba675SRob Herring				pinctrl-0 = <>;
291*724ba675SRob Herring			};
292*724ba675SRob Herring
293*724ba675SRob Herring			wdt@fc880000 {
294*724ba675SRob Herring			       status = "okay";
295*724ba675SRob Herring			};
296*724ba675SRob Herring		};
297*724ba675SRob Herring	};
298*724ba675SRob Herring};
299