ARM: at91/dt: replace gpio-key,wakeup with wakeup-source property
[linux-2.6-block.git] / arch / arm / boot / dts / at91sam9rlek.dts
CommitLineData
26489729
AB
1/*
2 * at91sam9rlek.dts - Device Tree file for Atmel at91sam9rl reference board
3 *
4 * Copyright (C) 2014 Alexandre Belloni <alexandre.belloni@free-electrons.com>
5 *
6 * Licensed under GPLv2 only
7 */
8/dts-v1/;
9#include "at91sam9rl.dtsi"
10
11/ {
12 model = "Atmel at91sam9rlek";
13 compatible = "atmel,at91sam9rlek", "atmel,at91sam9rl", "atmel,at91sam9";
14
15 chosen {
95627573
AB
16 bootargs = "rootfstype=ubifs root=ubi0:rootfs ubi.mtd=5 rw";
17 stdout-path = "serial0:115200n8";
26489729
AB
18 };
19
20 memory {
21 reg = <0x20000000 0x4000000>;
22 };
23
24 clocks {
25 #address-cells = <1>;
26 #size-cells = <1>;
27 ranges;
28
29 main_clock: clock {
30 compatible = "atmel,osc", "fixed-clock";
31 clock-frequency = <12000000>;
32 };
c2c9e78e
AB
33
34 slow_xtal {
35 clock-frequency = <32768>;
36 };
37
38 main_xtal {
39 clock-frequency = <12000000>;
40 };
26489729
AB
41 };
42
43 ahb {
3d293138
AB
44 fb0: fb@00500000 {
45 display = <&display0>;
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 = "RGB";
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
26489729
AB
75 nand0: nand@40000000 {
76 nand-bus-width = <8>;
77 nand-ecc-mode = "soft";
78 nand-on-flash-bbt = <1>;
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 mmc0: mmc@fffa4000 {
114 pinctrl-0 = <
115 &pinctrl_board_mmc0
116 &pinctrl_mmc0_clk
117 &pinctrl_mmc0_slot0_cmd_dat0
118 &pinctrl_mmc0_slot0_dat1_3>;
119 status = "okay";
120 slot@0 {
121 reg = <0>;
122 bus-width = <4>;
123 cd-gpios = <&pioA 15 GPIO_ACTIVE_HIGH>;
124 };
125 };
126
127 usart0: serial@fffb0000 {
128 pinctrl-0 = <
129 &pinctrl_usart0
130 &pinctrl_usart0_rts
131 &pinctrl_usart0_cts>;
132 status = "okay";
133 };
134
3d293138
AB
135 adc0: adc@fffd0000 {
136 pinctrl-names = "default";
137 pinctrl-0 = <
138 &pinctrl_adc0_ad0
139 &pinctrl_adc0_ad1
140 &pinctrl_adc0_ad2
141 &pinctrl_adc0_ad3
142 &pinctrl_adc0_ad4
143 &pinctrl_adc0_ad5
144 &pinctrl_adc0_adtrg>;
145 atmel,adc-ts-wires = <4>;
146 status = "okay";
147 };
148
149 usb0: gadget@fffd4000 {
150 atmel,vbus-gpio = <&pioA 8 GPIO_ACTIVE_HIGH>;
151 status = "okay";
152 };
153
154 spi0: spi@fffcc000 {
155 status = "okay";
156 cs-gpios = <&pioA 28 0>, <0>, <0>, <0>;
157 mtd_dataflash@0 {
158 compatible = "atmel,at45", "atmel,dataflash";
159 spi-max-frequency = <15000000>;
160 reg = <0>;
161 };
162 };
163
164 pwm0: pwm@fffc8000 {
165 status = "okay";
166
167 pinctrl-names = "default";
168 pinctrl-0 = <&pinctrl_pwm0_pwm1_2>,
169 <&pinctrl_pwm0_pwm2_2>;
170 };
171
26489729
AB
172 dbgu: serial@fffff200 {
173 status = "okay";
174 };
175
176 pinctrl@fffff400 {
177 mmc0 {
178 pinctrl_board_mmc0: mmc0-board {
179 atmel,pins =
180 <AT91_PIOA 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
181 };
182 };
183 };
184
185 watchdog@fffffd40 {
186 status = "okay";
187 };
ee3b67cc
AB
188
189 rtc@fffffe00 {
190 status = "okay";
191 };
26489729
AB
192 };
193 };
194
3d293138
AB
195 pwmleds {
196 compatible = "pwm-leds";
26489729
AB
197
198 ds1 {
199 label = "ds1";
3d293138
AB
200 pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>;
201 max-brightness = <255>;
26489729
AB
202 };
203
204 ds2 {
205 label = "ds2";
3d293138
AB
206 pwms = <&pwm0 2 5000 PWM_POLARITY_INVERTED>;
207 max-brightness = <255>;
26489729 208 };
3d293138
AB
209 };
210
211 leds {
212 compatible = "gpio-leds";
26489729
AB
213
214 ds3 {
215 label = "ds3";
216 gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
217 linux,default-trigger = "heartbeat";
218 };
219 };
220
221 gpio_keys {
222 compatible = "gpio-keys";
223
224 right_click {
225 label = "right_click";
226 gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
227 linux,code = <273>;
67ae8b9b 228 wakeup-source;
26489729
AB
229 };
230
231 left_click {
232 label = "left_click";
233 gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
234 linux,code = <272>;
67ae8b9b 235 wakeup-source;
26489729
AB
236 };
237 };
3d293138
AB
238
239 i2c@0 {
240 status = "okay";
241 };
242
243 i2c@1 {
244 status = "okay";
245 };
26489729 246};