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