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