Merge branch 'upstream/android-3.10' into linaro-android-3.10-lsk
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / at91sam9263ek.dts
1 /*
2  * at91sam9263ek.dts - Device Tree file for Atmel at91sam9263 reference board
3  *
4  *  Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
5  *
6  * Licensed under GPLv2 only
7  */
8 /dts-v1/;
9 /include/ "at91sam9263.dtsi"
10
11 / {
12         model = "Atmel at91sam9263ek";
13         compatible = "atmel,at91sam9263ek", "atmel,at91sam9263", "atmel,at91sam9";
14
15         chosen {
16                 bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock5 rw rootfstype=ubifs";
17         };
18
19         memory {
20                 reg = <0x20000000 0x4000000>;
21         };
22
23         clocks {
24                 #address-cells = <1>;
25                 #size-cells = <1>;
26                 ranges;
27
28                 main_clock: clock@0 {
29                         compatible = "atmel,osc", "fixed-clock";
30                         clock-frequency = <16367660>;
31                 };
32         };
33
34         ahb {
35                 apb {
36                         dbgu: serial@ffffee00 {
37                                 status = "okay";
38                         };
39
40                         usart0: serial@fff8c000 {
41                                 pinctrl-0 = <
42                                         &pinctrl_usart0
43                                         &pinctrl_usart0_rts
44                                         &pinctrl_usart0_cts>;
45                                 status = "okay";
46                         };
47
48                         macb0: ethernet@fffbc000 {
49                                 phy-mode = "rmii";
50                                 status = "okay";
51                         };
52
53                         usb1: gadget@fff78000 {
54                                 atmel,vbus-gpio = <&pioA 25 0>;
55                                 status = "okay";
56                         };
57
58                         mmc0: mmc@fff80000 {
59                                 pinctrl-0 = <
60                                         &pinctrl_board_mmc0
61                                         &pinctrl_mmc0_clk
62                                         &pinctrl_mmc0_slot0_cmd_dat0
63                                         &pinctrl_mmc0_slot0_dat1_3>;
64                                 status = "okay";
65                                 slot@0 {
66                                         reg = <0>;
67                                         bus-width = <4>;
68                                         cd-gpios = <&pioE 18 0>;
69                                         wp-gpios = <&pioE 19 0>;
70                                 };
71                         };
72
73                         pinctrl@fffff200 {
74                                 mmc0 {
75                                         pinctrl_board_mmc0: mmc0-board {
76                                                 atmel,pins =
77                                                         <5 18 0x0 0x5   /* PE18 gpio CD pin pull up and deglitch */
78                                                          5 19 0x0 0x1>; /* PE19 gpio WP pin pull up */
79                                         };
80                                 };
81                         };
82
83                         spi0: spi@fffa4000 {
84                                 status = "okay";
85                                 cs-gpios = <&pioA 5 0>, <0>, <0>, <0>;
86                                 mtd_dataflash@0 {
87                                         compatible = "atmel,at45", "atmel,dataflash";
88                                         spi-max-frequency = <50000000>;
89                                         reg = <0>;
90                                 };
91                         };
92                 };
93
94                 nand0: nand@40000000 {
95                         nand-bus-width = <8>;
96                         nand-ecc-mode = "soft";
97                         nand-on-flash-bbt = <1>;
98                         status = "okay";
99
100                         at91bootstrap@0 {
101                                 label = "at91bootstrap";
102                                 reg = <0x0 0x20000>;
103                         };
104
105                         barebox@20000 {
106                                 label = "barebox";
107                                 reg = <0x20000 0x40000>;
108                         };
109
110                         bareboxenv@60000 {
111                                 label = "bareboxenv";
112                                 reg = <0x60000 0x20000>;
113                         };
114
115                         bareboxenv2@80000 {
116                                 label = "bareboxenv2";
117                                 reg = <0x80000 0x20000>;
118                         };
119
120                         oftree@80000 {
121                                 label = "oftree";
122                                 reg = <0xa0000 0x20000>;
123                         };
124
125                         kernel@a0000 {
126                                 label = "kernel";
127                                 reg = <0xc0000 0x400000>;
128                         };
129
130                         rootfs@4a0000 {
131                                 label = "rootfs";
132                                 reg = <0x4c0000 0x7800000>;
133                         };
134
135                         data@7ca0000 {
136                                 label = "data";
137                                 reg = <0x7cc0000 0x8340000>;
138                         };
139                 };
140
141                 usb0: ohci@00a00000 {
142                         num-ports = <2>;
143                         status = "okay";
144                         atmel,vbus-gpio = <&pioA 24 0
145                                            &pioA 21 0
146                                           >;
147                 };
148         };
149
150         leds {
151                 compatible = "gpio-leds";
152
153                 d3 {
154                         label = "d3";
155                         gpios = <&pioB 7 0>;
156                         linux,default-trigger = "heartbeat";
157                 };
158
159                 d2 {
160                         label = "d2";
161                         gpios = <&pioC 29 1>;
162                         linux,default-trigger = "nand-disk";
163                 };
164         };
165
166         gpio_keys {
167                 compatible = "gpio-keys";
168
169                 left_click {
170                         label = "left_click";
171                         gpios = <&pioC 5 1>;
172                         linux,code = <272>;
173                         gpio-key,wakeup;
174                 };
175
176                 right_click {
177                         label = "right_click";
178                         gpios = <&pioC 4 1>;
179                         linux,code = <273>;
180                         gpio-key,wakeup;
181                 };
182         };
183
184         i2c@0 {
185                 status = "okay";
186
187                 24c512@50 {
188                         compatible = "24c512";
189                         reg = <0x50>;
190                         pagesize = <128>;
191                 };
192         };
193 };