Commit | Line | Data |
---|---|---|
84e56536 | 1 | // SPDX-License-Identifier: GPL-2.0-only |
39f31cd4 JCPV |
2 | /* |
3 | * at91sam9263ek.dts - Device Tree file for Atmel at91sam9263 reference board | |
4 | * | |
5 | * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | |
39f31cd4 JCPV |
6 | */ |
7 | /dts-v1/; | |
6db64d29 | 8 | #include "at91sam9263.dtsi" |
39f31cd4 JCPV |
9 | |
10 | / { | |
11 | model = "Atmel at91sam9263ek"; | |
12 | compatible = "atmel,at91sam9263ek", "atmel,at91sam9263", "atmel,at91sam9"; | |
13 | ||
14 | chosen { | |
11cfbde4 AB |
15 | bootargs = "mem=64M root=/dev/mtdblock5 rw rootfstype=ubifs"; |
16 | stdout-path = "serial0:115200n8"; | |
39f31cd4 JCPV |
17 | }; |
18 | ||
996710a8 | 19 | memory@20000000 { |
39f31cd4 JCPV |
20 | reg = <0x20000000 0x4000000>; |
21 | }; | |
22 | ||
23 | clocks { | |
c8b41e00 AB |
24 | slow_xtal { |
25 | clock-frequency = <32768>; | |
26 | }; | |
27 | ||
28 | main_xtal { | |
29 | clock-frequency = <16367660>; | |
30 | }; | |
39f31cd4 JCPV |
31 | }; |
32 | ||
33 | ahb { | |
34 | apb { | |
35 | dbgu: serial@ffffee00 { | |
36 | status = "okay"; | |
37 | }; | |
38 | ||
50567eea AB |
39 | tcb0: timer@fff7c000 { |
40 | timer@0 { | |
41 | compatible = "atmel,tcb-timer"; | |
42 | reg = <0>, <1>; | |
43 | }; | |
44 | ||
45 | timer@2 { | |
46 | compatible = "atmel,tcb-timer"; | |
47 | reg = <2>; | |
48 | }; | |
49 | }; | |
50 | ||
39f31cd4 | 51 | usart0: serial@fff8c000 { |
c58c0c5a JCPV |
52 | pinctrl-0 = < |
53 | &pinctrl_usart0 | |
54 | &pinctrl_usart0_rts | |
55 | &pinctrl_usart0_cts>; | |
39f31cd4 JCPV |
56 | status = "okay"; |
57 | }; | |
58 | ||
59 | macb0: ethernet@fffbc000 { | |
60 | phy-mode = "rmii"; | |
61 | status = "okay"; | |
62 | }; | |
63 | ||
64 | usb1: gadget@fff78000 { | |
92f8629b | 65 | atmel,vbus-gpio = <&pioA 25 GPIO_ACTIVE_HIGH>; |
39f31cd4 JCPV |
66 | status = "okay"; |
67 | }; | |
4134a455 LD |
68 | |
69 | mmc0: mmc@fff80000 { | |
199e2ede JCPV |
70 | pinctrl-0 = < |
71 | &pinctrl_board_mmc0 | |
72 | &pinctrl_mmc0_clk | |
73 | &pinctrl_mmc0_slot0_cmd_dat0 | |
74 | &pinctrl_mmc0_slot0_dat1_3>; | |
b0d0c3bb | 75 | pinctrl-names = "default"; |
4134a455 LD |
76 | status = "okay"; |
77 | slot@0 { | |
78 | reg = <0>; | |
79 | bus-width = <4>; | |
92f8629b JCPV |
80 | cd-gpios = <&pioE 18 GPIO_ACTIVE_HIGH>; |
81 | wp-gpios = <&pioE 19 GPIO_ACTIVE_HIGH>; | |
4134a455 LD |
82 | }; |
83 | }; | |
199e2ede JCPV |
84 | |
85 | pinctrl@fffff200 { | |
86 | mmc0 { | |
87 | pinctrl_board_mmc0: mmc0-board { | |
88 | atmel,pins = | |
c9d0f317 JCPV |
89 | <AT91_PIOE 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* PE18 gpio CD pin pull up and deglitch */ |
90 | AT91_PIOE 19 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PE19 gpio WP pin pull up */ | |
199e2ede JCPV |
91 | }; |
92 | }; | |
93 | }; | |
b6811e9a RG |
94 | |
95 | spi0: spi@fffa4000 { | |
96 | status = "okay"; | |
97 | cs-gpios = <&pioA 5 0>, <0>, <0>, <0>; | |
4a6471e6 | 98 | flash@0 { |
b6811e9a RG |
99 | compatible = "atmel,at45", "atmel,dataflash"; |
100 | spi-max-frequency = <50000000>; | |
101 | reg = <0>; | |
102 | }; | |
103 | }; | |
c77bcef4 WY |
104 | |
105 | watchdog@fffffd40 { | |
106 | status = "okay"; | |
107 | }; | |
39f31cd4 JCPV |
108 | }; |
109 | ||
ed4ced0c | 110 | fb0: fb@700000 { |
510e3783 JCPV |
111 | display = <&display0>; |
112 | status = "okay"; | |
113 | ||
8a6836ee | 114 | display0: panel { |
510e3783 JCPV |
115 | bits-per-pixel = <16>; |
116 | atmel,lcdcon-backlight; | |
117 | atmel,dmacon = <0x1>; | |
118 | atmel,lcdcon2 = <0x80008002>; | |
119 | atmel,guard-time = <1>; | |
120 | ||
121 | display-timings { | |
122 | native-mode = <&timing0>; | |
123 | timing0: timing0 { | |
124 | clock-frequency = <4965000>; | |
125 | hactive = <240>; | |
126 | vactive = <320>; | |
127 | hback-porch = <1>; | |
128 | hfront-porch = <33>; | |
129 | vback-porch = <1>; | |
130 | vfront-porch = <0>; | |
131 | hsync-len = <5>; | |
132 | vsync-len = <1>; | |
133 | hsync-active = <1>; | |
134 | vsync-active = <1>; | |
135 | }; | |
136 | }; | |
137 | }; | |
138 | }; | |
139 | ||
1004a297 | 140 | ebi0: ebi@10000000 { |
39f31cd4 JCPV |
141 | status = "okay"; |
142 | ||
1004a297 BB |
143 | nand_controller: nand-controller { |
144 | status = "okay"; | |
145 | pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>; | |
146 | pinctrl-names = "default"; | |
147 | ||
148 | nand@3 { | |
149 | reg = <0x3 0x0 0x800000>; | |
150 | rb-gpios = <&pioA 22 GPIO_ACTIVE_HIGH>; | |
151 | cs-gpios = <&pioA 15 GPIO_ACTIVE_HIGH>; | |
152 | nand-bus-width = <8>; | |
153 | nand-ecc-mode = "soft"; | |
154 | nand-on-flash-bbt; | |
155 | label = "atmel_nand"; | |
156 | ||
157 | partitions { | |
158 | compatible = "fixed-partitions"; | |
159 | #address-cells = <1>; | |
160 | #size-cells = <1>; | |
161 | ||
162 | at91bootstrap@0 { | |
163 | label = "at91bootstrap"; | |
164 | reg = <0x0 0x20000>; | |
165 | }; | |
166 | ||
167 | barebox@20000 { | |
168 | label = "barebox"; | |
169 | reg = <0x20000 0x40000>; | |
170 | }; | |
171 | ||
172 | bareboxenv@60000 { | |
173 | label = "bareboxenv"; | |
174 | reg = <0x60000 0x20000>; | |
175 | }; | |
176 | ||
177 | bareboxenv2@80000 { | |
178 | label = "bareboxenv2"; | |
179 | reg = <0x80000 0x20000>; | |
180 | }; | |
181 | ||
182 | oftree@80000 { | |
183 | label = "oftree"; | |
184 | reg = <0xa0000 0x20000>; | |
185 | }; | |
186 | ||
187 | kernel@a0000 { | |
188 | label = "kernel"; | |
189 | reg = <0xc0000 0x400000>; | |
190 | }; | |
191 | ||
192 | rootfs@4a0000 { | |
193 | label = "rootfs"; | |
194 | reg = <0x4c0000 0x7800000>; | |
195 | }; | |
196 | ||
197 | data@7ca0000 { | |
198 | label = "data"; | |
199 | reg = <0x7cc0000 0x8340000>; | |
200 | }; | |
201 | }; | |
202 | }; | |
39f31cd4 JCPV |
203 | }; |
204 | }; | |
205 | ||
8dccafaa | 206 | usb0: ohci@a00000 { |
39f31cd4 JCPV |
207 | num-ports = <2>; |
208 | status = "okay"; | |
92f8629b JCPV |
209 | atmel,vbus-gpio = <&pioA 24 GPIO_ACTIVE_HIGH |
210 | &pioA 21 GPIO_ACTIVE_HIGH | |
39f31cd4 JCPV |
211 | >; |
212 | }; | |
213 | }; | |
214 | ||
215 | leds { | |
216 | compatible = "gpio-leds"; | |
217 | ||
218 | d3 { | |
219 | label = "d3"; | |
92f8629b | 220 | gpios = <&pioB 7 GPIO_ACTIVE_HIGH>; |
39f31cd4 JCPV |
221 | linux,default-trigger = "heartbeat"; |
222 | }; | |
223 | ||
224 | d2 { | |
225 | label = "d2"; | |
92f8629b | 226 | gpios = <&pioC 29 GPIO_ACTIVE_LOW>; |
39f31cd4 JCPV |
227 | linux,default-trigger = "nand-disk"; |
228 | }; | |
229 | }; | |
230 | ||
231 | gpio_keys { | |
232 | compatible = "gpio-keys"; | |
39f31cd4 JCPV |
233 | |
234 | left_click { | |
235 | label = "left_click"; | |
92f8629b | 236 | gpios = <&pioC 5 GPIO_ACTIVE_LOW>; |
39f31cd4 | 237 | linux,code = <272>; |
67ae8b9b | 238 | wakeup-source; |
39f31cd4 JCPV |
239 | }; |
240 | ||
241 | right_click { | |
242 | label = "right_click"; | |
92f8629b | 243 | gpios = <&pioC 4 GPIO_ACTIVE_LOW>; |
39f31cd4 | 244 | linux,code = <273>; |
67ae8b9b | 245 | wakeup-source; |
39f31cd4 JCPV |
246 | }; |
247 | }; | |
248 | ||
e152e3f7 | 249 | i2c-gpio-0 { |
39f31cd4 JCPV |
250 | status = "okay"; |
251 | ||
252 | 24c512@50 { | |
6fa65edf | 253 | compatible = "atmel,24c512"; |
39f31cd4 JCPV |
254 | reg = <0x50>; |
255 | pagesize = <128>; | |
256 | }; | |
257 | }; | |
258 | }; |