Merge git://git.denx.de/u-boot-dm
[oweals/u-boot.git] / arch / arm / dts / at91sam9260ek.dts
1 /*
2  * Device Tree file for Atmel at91sam9260 Evaluation Kit
3  *
4  *  Copyright (C) 2016 Atmel,
5  *                2016 Nicolas Ferre <nicolas.ferre@atmel.com>
6  *
7  * This file is dual-licensed: you can use it either under the terms
8  * of the GPL or the X11 license, at your option. Note that this dual
9  * licensing only applies to this file, and not this project as a
10  * whole.
11  *
12  *  a) This file is free software; you can redistribute it and/or
13  *     modify it under the terms of the GNU General Public License as
14  *     published by the Free Software Foundation; either version 2 of the
15  *     License, or (at your option) any later version.
16  *
17  *     This file is distributed in the hope that it will be useful,
18  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
19  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  *     GNU General Public License for more details.
21  *
22  * Or, alternatively,
23  *
24  *  b) Permission is hereby granted, free of charge, to any person
25  *     obtaining a copy of this software and associated documentation
26  *     files (the "Software"), to deal in the Software without
27  *     restriction, including without limitation the rights to use,
28  *     copy, modify, merge, publish, distribute, sublicense, and/or
29  *     sell copies of the Software, and to permit persons to whom the
30  *     Software is furnished to do so, subject to the following
31  *     conditions:
32  *
33  *     The above copyright notice and this permission notice shall be
34  *     included in all copies or substantial portions of the Software.
35  *
36  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
38  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
40  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
41  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43  *     OTHER DEALINGS IN THE SOFTWARE.
44  */
45 /dts-v1/;
46 #include "at91sam9260.dtsi"
47
48 / {
49         model = "Atmel at91sam9260ek";
50         compatible = "atmel,at91sam9260ek", "atmel,at91sam9260", "atmel,at91sam9";
51
52         chosen {
53                 u-boot,dm-pre-reloc;
54                 stdout-path = &dbgu;
55         };
56
57         memory {
58                 reg = <0x20000000 0x4000000>;
59         };
60
61         clocks {
62                 slow_xtal {
63                         clock-frequency = <32768>;
64                 };
65
66                 main_xtal {
67                         clock-frequency = <18432000>;
68                 };
69         };
70
71         ahb {
72                 apb {
73                         usb1: gadget@fffa4000 {
74                                 atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
75                                 status = "okay";
76                         };
77
78                         mmc0: mmc@fffa8000 {
79                                 pinctrl-0 = <
80                                         &pinctrl_board_mmc0_slot1
81                                         &pinctrl_mmc0_clk
82                                         &pinctrl_mmc0_slot1_cmd_dat0
83                                         &pinctrl_mmc0_slot1_dat1_3>;
84                                 status = "okay";
85                                 slot@1 {
86                                         reg = <1>;
87                                         bus-width = <4>;
88                                         cd-gpios = <&pioC 9 GPIO_ACTIVE_HIGH>;
89                                 };
90                         };
91
92                         usart0: serial@fffb0000 {
93                                 pinctrl-0 =
94                                         <&pinctrl_usart0
95                                          &pinctrl_usart0_rts
96                                          &pinctrl_usart0_cts
97                                          &pinctrl_usart0_dtr_dsr
98                                          &pinctrl_usart0_dcd
99                                          &pinctrl_usart0_ri>;
100                                 status = "okay";
101                         };
102
103                         usart1: serial@fffb4000 {
104                                 status = "okay";
105                         };
106
107                         ssc0: ssc@fffbc000 {
108                                 status = "okay";
109                                 pinctrl-0 = <&pinctrl_ssc0_tx>;
110                         };
111
112                         macb0: ethernet@fffc4000 {
113                                 phy-mode = "rmii";
114                                 status = "okay";
115                         };
116
117                         spi0: spi@fffc8000 {
118                                 cs-gpios = <0>, <&pioC 11 0>, <0>, <0>;
119                                 mtd_dataflash@0 {
120                                         compatible = "atmel,at45", "atmel,dataflash";
121                                         spi-max-frequency = <50000000>;
122                                         reg = <1>;
123                                 };
124                         };
125
126                         dbgu: serial@fffff200 {
127                                 u-boot,dm-pre-reloc;
128                                 status = "okay";
129                         };
130
131                         pinctrl@fffff400 {
132                                 board {
133                                         pinctrl_board_mmc0_slot1: mmc0_slot1-board {
134                                                 atmel,pins =
135                                                         <AT91_PIOC 9 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
136                                         };
137                                 };
138                         };
139
140                         shdwc@fffffd10 {
141                                 atmel,wakeup-counter = <10>;
142                                 atmel,wakeup-rtt-timer;
143                         };
144
145                         rtc@fffffd20 {
146                                 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
147                                 status = "okay";
148                         };
149
150                         watchdog@fffffd40 {
151                                 status = "okay";
152                         };
153
154                         gpbr: syscon@fffffd50 {
155                                 status = "okay";
156                         };
157                 };
158
159                 usb0: ohci@00500000 {
160                         num-ports = <2>;
161                         status = "okay";
162                 };
163
164                 nand0: nand@40000000 {
165                         nand-bus-width = <8>;
166                         nand-ecc-mode = "soft";
167                         nand-on-flash-bbt;
168                         status = "okay";
169                 };
170         };
171
172         gpio_keys {
173                 compatible = "gpio-keys";
174
175                 btn3 {
176                         label = "Button 3";
177                         gpios = <&pioA 30 GPIO_ACTIVE_LOW>;
178                         linux,code = <0x103>;
179                         wakeup-source;
180                 };
181
182                 btn4 {
183                         label = "Button 4";
184                         gpios = <&pioA 31 GPIO_ACTIVE_LOW>;
185                         linux,code = <0x104>;
186                         wakeup-source;
187                 };
188         };
189
190         i2c-gpio-0 {
191                 #address-cells = <1>;
192                 #size-cells = <0>;
193                 status = "okay";
194
195                 24c512@50 {
196                         compatible = "24c512";
197                         reg = <0x50>;
198                 };
199         };
200
201         leds {
202                 compatible = "gpio-leds";
203
204                 ds1 {
205                         label = "ds1";
206                         gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
207                         linux,default-trigger = "heartbeat";
208                 };
209
210                 ds5 {
211                         label = "ds5";
212                         gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
213                 };
214         };
215 };