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