Merge branch 'async-scsi-resume' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / arch / arm / boot / dts / at91-ariag25.dts
1 /*
2  * at91-ariag25.dts - Device Tree file for Acme Systems Aria G25 (AT91SAM9G25 based)
3  *
4  * Copyright (C) 2013 Douglas Gilbert <dgilbert@interlog.com>,
5  *                    Robert Nelson <robertcnelson@gmail.com>
6  *
7  * Licensed under GPLv2 or later.
8  */
9 /dts-v1/;
10 #include "at91sam9g25.dtsi"
11
12 / {
13         model = "Acme Systems Aria G25";
14         compatible = "acme,ariag25", "atmel,at91sam9x5ek",
15                      "atmel,at91sam9x5", "atmel,at91sam9";
16
17         aliases {
18                 serial0 = &dbgu;
19                 serial1 = &usart0;
20                 serial2 = &usart1;
21                 serial3 = &usart2;
22                 serial4 = &usart3;
23                 serial5 = &uart0;
24                 serial6 = &uart1;
25         };
26
27         chosen {
28                 bootargs = "console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait";
29         };
30
31         memory {
32                 /* 128 MB, change this for 256 MB revision */
33                 reg = <0x20000000 0x8000000>;
34         };
35
36         clocks {
37                 #address-cells = <1>;
38                 #size-cells = <1>;
39                 ranges;
40
41                 main_clock: clock@0 {
42                         compatible = "atmel,osc", "fixed-clock";
43                         clock-frequency = <12000000>;
44                 };
45         };
46
47         ahb {
48                 apb {
49                         mmc0: mmc@f0008000 {
50                                 /* N.B. Aria has no SD card detect (CD), assumed present */
51
52                                 pinctrl-0 = <
53                                         &pinctrl_mmc0_slot0_clk_cmd_dat0
54                                         &pinctrl_mmc0_slot0_dat1_3>;
55                                 status = "okay";
56                                 slot@0 {
57                                         reg = <0>;
58                                         bus-width = <4>;
59                                 };
60                         };
61
62                         i2c0: i2c@f8010000 {
63                                 status = "okay";
64                         };
65
66                         i2c1: i2c@f8014000 {
67                                 status = "okay";
68                         };
69
70                         /* TWD2+TCLK2 hidden behind ethernet, so no i2c2 */
71
72                         usart0: serial@f801c000 {
73                                 pinctrl-0 = <&pinctrl_usart0
74                                              &pinctrl_usart0_rts
75                                              &pinctrl_usart0_cts>;
76                                 status = "okay";
77                         };
78
79                         usart1: serial@f8020000 {
80                                 pinctrl-0 = <&pinctrl_usart1
81                                              /* &pinctrl_usart1_rts */
82                                              /* &pinctrl_usart1_cts */
83                                             >;
84                                 status = "okay";
85                         };
86
87                         usart2: serial@f8024000 {
88                                 /* cannot activate RTS2+CTS2, clash with
89                                  * ethernet on PB0 and PB1 */
90                                 pinctrl-0 = <&pinctrl_usart2>;
91                                 status = "okay";
92                         };
93
94                         usart3: serial@f8028000 {
95                                 compatible = "atmel,at91sam9260-usart";
96                                 reg = <0xf8028000 0x200>;
97                                 interrupts = <8 4 5>;
98                                 pinctrl-names = "default";
99                                 pinctrl-0 = <&pinctrl_usart3
100                                              /* &pinctrl_usart3_rts */
101                                              /* &pinctrl_usart3_cts */
102                                             >;
103                                 status = "okay";
104                         };
105
106                         macb0: ethernet@f802c000 {
107                                 phy-mode = "rmii";
108                                 /*
109                                  * following can be overwritten by bootloader:
110                                  * for example u-boot 'ftd set' command
111                                  */
112                                 local-mac-address = [00 00 00 00 00 00];
113                                 status = "okay";
114                         };
115
116                         /*
117                          * UART0/1 pins are marked as GPIO on
118                          * Aria documentation.
119                          * Change to "okay" if you need additional serial ports
120                          */
121                         uart0: serial@f8040000 {
122                                 status = "disabled";
123                         };
124
125                         uart1: serial@f8044000 {
126                                 status = "disabled";
127                         };
128
129                         adc0: adc@f804c000 {
130                                 status = "okay";
131                                 atmel,adc-channels-used = <0xf>;
132                         };
133
134                         dbgu: serial@fffff200 {
135                                 status = "okay";
136                         };
137
138                         pinctrl@fffff400 {
139                                 w1_0 {
140                                         pinctrl_w1_0: w1_0-0 {
141                                                 atmel,pins = <0 21 0x0 0x1>; /* PA21 PIO, pull-up */
142                                         };
143                                 };
144                         };
145
146                         rtc@fffffeb0 {
147                                 status = "okay";
148                         };
149                 };
150
151                 usb0: ohci@00600000 {
152                         status = "okay";
153                         num-ports = <3>;
154                 };
155
156                 usb1: ehci@00700000 {
157                         status = "okay";
158                 };
159         };
160
161         leds {
162                 compatible = "gpio-leds";
163
164                 /* little green LED in middle of Aria G25 module */
165                 aria_led {
166                         label = "aria_led";
167                         gpios = <&pioB 8 GPIO_ACTIVE_HIGH>; /* PB8 */
168                         linux,default-trigger = "heartbeat";
169                 };
170
171         };
172
173         onewire@0 {
174                 compatible = "w1-gpio";
175                 gpios = <&pioA 21 GPIO_ACTIVE_LOW>;
176                 pinctrl-names = "default";
177                 pinctrl-0 = <&pinctrl_w1_0>;
178         };
179 };