Merge branch 'for-linus-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / at91sam9261ek.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  * at91sam9261ek.dts - Device Tree file for Atmel at91sam9261 reference board
4  *
5  *  Copyright (C) 2013 Jean-Jacques Hiblot <jjhiblot@traphandler.com>
6  */
7 /dts-v1/;
8 #include "at91sam9261.dtsi"
9
10 / {
11         model = "Atmel at91sam9261ek";
12         compatible = "atmel,at91sam9261ek", "atmel,at91sam9261", "atmel,at91sam9";
13
14         chosen {
15                 bootargs = "rootfstype=ubifs ubi.mtd=5 root=ubi0:rootfs rw";
16                 stdout-path = "serial0:115200n8";
17
18                 clocksource {
19                         timer = <&timer0>;
20                 };
21
22                 clockevent {
23                         timer = <&timer1>;
24                 };
25         };
26
27         memory {
28                 reg = <0x20000000 0x4000000>;
29         };
30
31         clocks {
32                 slow_xtal {
33                         clock-frequency = <32768>;
34                 };
35
36                 main_xtal {
37                         clock-frequency = <18432000>;
38                 };
39         };
40
41         ahb {
42                 usb0: ohci@500000 {
43                         status = "okay";
44                 };
45
46                 fb0: fb@600000 {
47                         display = <&display0>;
48                         atmel,power-control-gpio = <&pioA 12 GPIO_ACTIVE_LOW>;
49                         status = "okay";
50
51                         display0: display {
52                                 bits-per-pixel = <16>;
53                                 atmel,lcdcon-backlight;
54                                 atmel,dmacon = <0x1>;
55                                 atmel,lcdcon2 = <0x80008002>;
56                                 atmel,guard-time = <1>;
57                                 atmel,lcd-wiring-mode = "BRG";
58
59                                 display-timings {
60                                         native-mode = <&timing0>;
61                                         timing0: timing0 {
62                                                 clock-frequency = <4965000>;
63                                                 hactive = <240>;
64                                                 vactive = <320>;
65                                                 hback-porch = <1>;
66                                                 hfront-porch = <33>;
67                                                 vback-porch = <1>;
68                                                 vfront-porch = <0>;
69                                                 hsync-len = <5>;
70                                                 vsync-len = <1>;
71                                                 hsync-active = <1>;
72                                                 vsync-active = <1>;
73                                         };
74                                 };
75                         };
76                 };
77
78                 ebi: ebi@10000000 {
79                         status = "okay";
80
81                         nand_controller: nand-controller {
82                                 status = "okay";
83                                 pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
84                                 pinctrl-names = "default";
85
86                                 nand@3 {
87                                         reg = <0x3 0x0 0x800000>;
88                                         rb-gpios = <&pioC 15 GPIO_ACTIVE_HIGH>;
89                                         cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
90                                         nand-bus-width = <8>;
91                                         nand-ecc-mode = "soft";
92                                         nand-on-flash-bbt;
93                                         label = "atmel_nand";
94
95                                         partitions {
96                                                 compatible = "fixed-partitions";
97                                                 #address-cells = <1>;
98                                                 #size-cells = <1>;
99
100                                                 at91bootstrap@0 {
101                                                         label = "at91bootstrap";
102                                                         reg = <0x0 0x40000>;
103                                                 };
104
105                                                 bootloader@40000 {
106                                                         label = "bootloader";
107                                                         reg = <0x40000 0x80000>;
108                                                 };
109
110                                                 bootloaderenv@c0000 {
111                                                         label = "bootloader env";
112                                                         reg = <0xc0000 0xc0000>;
113                                                 };
114
115                                                 dtb@180000 {
116                                                         label = "device tree";
117                                                         reg = <0x180000 0x80000>;
118                                                 };
119
120                                                 kernel@200000 {
121                                                         label = "kernel";
122                                                         reg = <0x200000 0x600000>;
123                                                 };
124
125                                                 rootfs@800000 {
126                                                         label = "rootfs";
127                                                         reg = <0x800000 0x0f800000>;
128                                                 };
129                                         };
130                                 };
131                         };
132                 };
133
134                 apb {
135                         tcb0: timer@fffa0000 {
136                                 timer0: timer@0 {
137                                         compatible = "atmel,tcb-timer";
138                                         reg = <0>, <1>;
139                                 };
140
141                                 timer1: timer@2 {
142                                         compatible = "atmel,tcb-timer";
143                                         reg = <2>;
144                                 };
145                         };
146
147                         usb1: gadget@fffa4000 {
148                                 atmel,vbus-gpio = <&pioB 29 GPIO_ACTIVE_HIGH>;
149                                 status = "okay";
150                         };
151
152                         spi0: spi@fffc8000 {
153                                 cs-gpios = <&pioA 3 0>, <0>, <&pioA 28 0>, <0>;
154                                 status = "okay";
155
156                                 mtd_dataflash@0 {
157                                         compatible = "atmel,at45", "atmel,dataflash";
158                                         reg = <0>;
159                                         spi-max-frequency = <15000000>;
160                                 };
161
162                                 tsc2046@2 {
163                                         reg = <2>;
164                                         compatible = "ti,ads7843";
165                                         interrupts-extended = <&pioC 2 IRQ_TYPE_EDGE_BOTH>;
166                                         spi-max-frequency = <3000000>;
167                                         pendown-gpio = <&pioC 2 GPIO_ACTIVE_HIGH>;
168
169                                         ti,x-min = /bits/ 16 <150>;
170                                         ti,x-max = /bits/ 16 <3830>;
171                                         ti,y-min = /bits/ 16 <190>;
172                                         ti,y-max = /bits/ 16 <3830>;
173                                         ti,vref-delay-usecs = /bits/ 16 <450>;
174                                         ti,x-plate-ohms = /bits/ 16 <450>;
175                                         ti,y-plate-ohms = /bits/ 16 <250>;
176                                         ti,pressure-max = /bits/ 16 <15000>;
177                                         ti,debounce-rep = /bits/ 16 <0>;
178                                         ti,debounce-tol = /bits/ 16 <65535>;
179                                         ti,debounce-max = /bits/ 16 <1>;
180
181                                         wakeup-source;
182                                 };
183                         };
184
185                         dbgu: serial@fffff200 {
186                                 status = "okay";
187                         };
188
189                         watchdog@fffffd40 {
190                                 status = "okay";
191                         };
192
193                 };
194         };
195
196         leds {
197                 compatible = "gpio-leds";
198
199                 ds8 {
200                         label = "ds8";
201                         gpios = <&pioA 13 GPIO_ACTIVE_LOW>;
202                         linux,default-trigger = "none";
203                 };
204
205                 ds7 {
206                         label = "ds7";
207                         gpios = <&pioA 14 GPIO_ACTIVE_LOW>;
208                         linux,default-trigger = "nand-disk";
209                 };
210
211                 ds1 {
212                         label = "ds1";
213                         gpios = <&pioA 23 GPIO_ACTIVE_LOW>;
214                         linux,default-trigger = "heartbeat";
215                 };
216         };
217
218         gpio_keys {
219                 compatible = "gpio-keys";
220
221                 button_0 {
222                         label = "button_0";
223                         gpios = <&pioA 27 GPIO_ACTIVE_LOW>;
224                         linux,code = <256>;
225                         wakeup-source;
226                 };
227
228                 button_1 {
229                         label = "button_1";
230                         gpios = <&pioA 26 GPIO_ACTIVE_LOW>;
231                         linux,code = <257>;
232                         wakeup-source;
233                 };
234
235                 button_2 {
236                         label = "button_2";
237                         gpios = <&pioA 25 GPIO_ACTIVE_LOW>;
238                         linux,code = <258>;
239                         wakeup-source;
240                 };
241
242                 button_3 {
243                         label = "button_3";
244                         gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
245                         linux,code = <259>;
246                         wakeup-source;
247                 };
248         };
249 };