ARM: at91/dt: gpio-keys: remove address-cells and size-cells properties
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / at91sam9m10g45ek.dts
1 /*
2  * at91sam9m10g45ek.dts - Device Tree file for AT91SAM9M10G45-EK board
3  *
4  *  Copyright (C) 2011 Atmel,
5  *                2011 Nicolas Ferre <nicolas.ferre@atmel.com>
6  *
7  * Licensed under GPLv2 or later.
8  */
9 /dts-v1/;
10 /include/ "at91sam9g45.dtsi"
11
12 / {
13         model = "Atmel AT91SAM9M10G45-EK";
14         compatible = "atmel,at91sam9m10g45ek", "atmel,at91sam9g45", "atmel,at91sam9";
15
16         chosen {
17                 bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2";
18         };
19
20         memory {
21                 reg = <0x70000000 0x4000000>;
22         };
23
24         clocks {
25                 #address-cells = <1>;
26                 #size-cells = <1>;
27                 ranges;
28
29                 main_clock: clock@0 {
30                         compatible = "atmel,osc", "fixed-clock";
31                         clock-frequency = <12000000>;
32                 };
33         };
34
35         ahb {
36                 apb {
37                         dbgu: serial@ffffee00 {
38                                 status = "okay";
39                         };
40
41                         usart1: serial@fff90000 {
42                                 pinctrl-0 =
43                                         <&pinctrl_usart1
44                                          &pinctrl_usart1_rts
45                                          &pinctrl_usart1_cts>;
46                                 status = "okay";
47                         };
48
49                         macb0: ethernet@fffbc000 {
50                                 phy-mode = "rmii";
51                                 status = "okay";
52                         };
53
54                         i2c0: i2c@fff84000 {
55                                 status = "okay";
56                         };
57
58                         i2c1: i2c@fff88000 {
59                                 status = "okay";
60                         };
61
62                         mmc0: mmc@fff80000 {
63                                 pinctrl-0 = <
64                                         &pinctrl_board_mmc0
65                                         &pinctrl_mmc0_slot0_clk_cmd_dat0
66                                         &pinctrl_mmc0_slot0_dat1_3>;
67                                 status = "okay";
68                                 slot@0 {
69                                         reg = <0>;
70                                         bus-width = <4>;
71                                         cd-gpios = <&pioD 10 0>;
72                                 };
73                         };
74
75                         mmc1: mmc@fffd0000 {
76                                 pinctrl-0 = <
77                                         &pinctrl_board_mmc1
78                                         &pinctrl_mmc1_slot0_clk_cmd_dat0
79                                         &pinctrl_mmc1_slot0_dat1_3>;
80                                 status = "okay";
81                                 slot@0 {
82                                         reg = <0>;
83                                         bus-width = <4>;
84                                         cd-gpios = <&pioD 11 0>;
85                                         wp-gpios = <&pioD 29 0>;
86                                 };
87                         };
88
89                         pinctrl@fffff200 {
90                                 mmc0 {
91                                         pinctrl_board_mmc0: mmc0-board {
92                                                 atmel,pins =
93                                                         <3 10 0x0 0x5>; /* PD10 gpio CD pin pull up and deglitch */
94                                         };
95                                 };
96
97                                 mmc1 {
98                                         pinctrl_board_mmc1: mmc1-board {
99                                                 atmel,pins =
100                                                         <3 11 0x0 0x5   /* PD11 gpio CD pin pull up and deglitch */
101                                                          3 29 0x0 0x1>; /* PD29 gpio WP pin pull up */
102                                         };
103                                 };
104                         };
105                 };
106
107                 nand0: nand@40000000 {
108                         nand-bus-width = <8>;
109                         nand-ecc-mode = "soft";
110                         nand-on-flash-bbt;
111                         status = "okay";
112
113                         boot@0 {
114                                 label = "bootstrap/uboot/kernel";
115                                 reg = <0x0 0x400000>;
116                         };
117
118                         rootfs@400000 {
119                                 label = "rootfs";
120                                 reg = <0x400000 0x3C00000>;
121                         };
122
123                         data@4000000 {
124                                 label = "data";
125                                 reg = <0x4000000 0xC000000>;
126                         };
127                 };
128
129                 usb0: ohci@00700000 {
130                         status = "okay";
131                         num-ports = <2>;
132                         atmel,vbus-gpio = <&pioD 1 1
133                                            &pioD 3 1>;
134                 };
135
136                 usb1: ehci@00800000 {
137                         status = "okay";
138                 };
139         };
140
141         leds {
142                 compatible = "gpio-leds";
143
144                 d8 {
145                         label = "d8";
146                         gpios = <&pioD 30 0>;
147                         linux,default-trigger = "heartbeat";
148                 };
149
150                 d6 {
151                         label = "d6";
152                         gpios = <&pioD 0 1>;
153                         linux,default-trigger = "nand-disk";
154                 };
155
156                 d7 {
157                         label = "d7";
158                         gpios = <&pioD 31 1>;
159                         linux,default-trigger = "mmc0";
160                 };
161         };
162
163         gpio_keys {
164                 compatible = "gpio-keys";
165
166                 left_click {
167                         label = "left_click";
168                         gpios = <&pioB 6 1>;
169                         linux,code = <272>;
170                         gpio-key,wakeup;
171                 };
172
173                 right_click {
174                         label = "right_click";
175                         gpios = <&pioB 7 1>;
176                         linux,code = <273>;
177                         gpio-key,wakeup;
178                 };
179
180                 left {
181                         label = "Joystick Left";
182                         gpios = <&pioB 14 1>;
183                         linux,code = <105>;
184                 };
185
186                 right {
187                         label = "Joystick Right";
188                         gpios = <&pioB 15 1>;
189                         linux,code = <106>;
190                 };
191
192                 up {
193                         label = "Joystick Up";
194                         gpios = <&pioB 16 1>;
195                         linux,code = <103>;
196                 };
197
198                 down {
199                         label = "Joystick Down";
200                         gpios = <&pioB 17 1>;
201                         linux,code = <108>;
202                 };
203
204                 enter {
205                         label = "Joystick Press";
206                         gpios = <&pioB 18 1>;
207                         linux,code = <28>;
208                 };
209         };
210 };