]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/at91sam9261ek.dts
crypto: af_alg - properly label AF_ALG socket
[karo-tx-linux.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 = "console=ttyS0,115200 rootfstype=ubifs ubi.mtd=5 root=ubi0:rootfs rw";
17         };
18
19         memory {
20                 reg = <0x20000000 0x4000000>;
21         };
22
23         main_xtal {
24                 clock-frequency = <18432000>;
25         };
26
27         clocks {
28                 #address-cells = <1>;
29                 #size-cells = <1>;
30                 ranges;
31
32                 main_clock: clock@0 {
33                         compatible = "atmel,osc", "fixed-clock";
34                         clock-frequency = <18432000>;
35                 };
36         };
37
38         ahb {
39                 usb0: ohci@00500000 {
40                         status = "okay";
41                 };
42
43                 fb0: fb@0x00600000 {
44                         display = <&display0>;
45                         atmel,power-control-gpio = <&pioA 12 GPIO_ACTIVE_LOW>;
46                         status = "okay";
47
48                         display0: display {
49                                 bits-per-pixel = <16>;
50                                 atmel,lcdcon-backlight;
51                                 atmel,dmacon = <0x1>;
52                                 atmel,lcdcon2 = <0x80008002>;
53                                 atmel,guard-time = <1>;
54                                 atmel,lcd-wiring-mode = "BRG";
55
56                                 display-timings {
57                                         native-mode = <&timing0>;
58                                         timing0: timing0 {
59                                                 clock-frequency = <4965000>;
60                                                 hactive = <240>;
61                                                 vactive = <320>;
62                                                 hback-porch = <1>;
63                                                 hfront-porch = <33>;
64                                                 vback-porch = <1>;
65                                                 vfront-porch = <0>;
66                                                 hsync-len = <5>;
67                                                 vsync-len = <1>;
68                                                 hsync-active = <1>;
69                                                 vsync-active = <1>;
70                                         };
71                                 };
72                         };
73                 };
74
75                 nand0: nand@40000000 {
76                         nand-bus-width = <8>;
77                         nand-ecc-mode = "soft";
78                         nand-on-flash-bbt;
79                         status = "okay";
80
81                         at91bootstrap@0 {
82                                 label = "at91bootstrap";
83                                 reg = <0x0 0x40000>;
84                         };
85
86                         bootloader@40000 {
87                                 label = "bootloader";
88                                 reg = <0x40000 0x80000>;
89                         };
90
91                         bootloaderenv@c0000 {
92                                 label = "bootloader env";
93                                 reg = <0xc0000 0xc0000>;
94                         };
95
96                         dtb@180000 {
97                                 label = "device tree";
98                                 reg = <0x180000 0x80000>;
99                         };
100
101                         kernel@200000 {
102                                 label = "kernel";
103                                 reg = <0x200000 0x600000>;
104                         };
105
106                         rootfs@800000 {
107                                 label = "rootfs";
108                                 reg = <0x800000 0x0f800000>;
109                         };
110                 };
111
112                 apb {
113                         usb1: gadget@fffa4000 {
114                                 atmel,vbus-gpio = <&pioB 29 GPIO_ACTIVE_HIGH>;
115                                 status = "okay";
116                         };
117
118                         spi0: spi@fffc8000 {
119                                 cs-gpios = <&pioA 3 0>, <0>, <&pioA 28 0>, <0>;
120                                 status = "okay";
121
122                                 mtd_dataflash@0 {
123                                         compatible = "atmel,at45", "atmel,dataflash";
124                                         reg = <0>;
125                                         spi-max-frequency = <15000000>;
126                                 };
127
128                                 tsc2046@0 {
129                                         reg = <2>;
130                                         compatible = "ti,ads7843";
131                                         interrupts-extended = <&pioC 2 IRQ_TYPE_EDGE_BOTH>;
132                                         spi-max-frequency = <3000000>;
133                                         pendown-gpio = <&pioC 2 GPIO_ACTIVE_HIGH>;
134
135                                         ti,x-min = /bits/ 16 <150>;
136                                         ti,x-max = /bits/ 16 <3830>;
137                                         ti,y-min = /bits/ 16 <190>;
138                                         ti,y-max = /bits/ 16 <3830>;
139                                         ti,vref-delay-usecs = /bits/ 16 <450>;
140                                         ti,x-plate-ohms = /bits/ 16 <450>;
141                                         ti,y-plate-ohms = /bits/ 16 <250>;
142                                         ti,pressure-max = /bits/ 16 <15000>;
143                                         ti,debounce-rep = /bits/ 16 <0>;
144                                         ti,debounce-tol = /bits/ 16 <65535>;
145                                         ti,debounce-max = /bits/ 16 <1>;
146
147                                         linux,wakeup;
148                                 };
149                         };
150
151                         dbgu: serial@fffff200 {
152                                 status = "okay";
153                         };
154
155                         watchdog@fffffd40 {
156                                 status = "okay";
157                         };
158
159                 };
160         };
161
162         leds {
163                 compatible = "gpio-leds";
164
165                 ds8 {
166                         label = "ds8";
167                         gpios = <&pioA 13 GPIO_ACTIVE_LOW>;
168                         linux,default-trigger = "none";
169                 };
170
171                 ds7 {
172                         label = "ds7";
173                         gpios = <&pioA 14 GPIO_ACTIVE_LOW>;
174                         linux,default-trigger = "nand-disk";
175                 };
176
177                 ds1 {
178                         label = "ds1";
179                         gpios = <&pioA 23 GPIO_ACTIVE_LOW>;
180                         linux,default-trigger = "heartbeat";
181                 };
182         };
183
184         gpio_keys {
185                 compatible = "gpio-keys";
186
187                 button_0 {
188                         label = "button_0";
189                         gpios = <&pioA 27 GPIO_ACTIVE_LOW>;
190                         linux,code = <256>;
191                         gpio-key,wakeup;
192                 };
193
194                 button_1 {
195                         label = "button_1";
196                         gpios = <&pioA 26 GPIO_ACTIVE_LOW>;
197                         linux,code = <257>;
198                         gpio-key,wakeup;
199                 };
200
201                 button_2 {
202                         label = "button_2";
203                         gpios = <&pioA 25 GPIO_ACTIVE_LOW>;
204                         linux,code = <258>;
205                         gpio-key,wakeup;
206                 };
207
208                 button_3 {
209                         label = "button_3";
210                         gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
211                         linux,code = <259>;
212                         gpio-key,wakeup;
213                 };
214         };
215 };