blob: cce45f5177f9f0aef6b40e0e775617f47398c48e [file] [log] [blame]
Douglas Gilbert0d67c9e2013-04-04 17:36:49 +02001/*
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/;
Jean-Christophe PLAGNIOL-VILLARD6db64d22013-05-15 01:21:50 +080010#include "at91sam9g25.dtsi"
Douglas Gilbert0d67c9e2013-04-04 17:36:49 +020011
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;
Nicolas Ferre7d813be2013-04-18 12:36:25 +020024 serial6 = &uart1;
Douglas Gilbert0d67c9e2013-04-04 17:36:49 +020025 };
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
Nicolas Ferre7d813be2013-04-18 12:36:25 +0200116 /*
117 * UART0/1 pins are marked as GPIO on
118 * Aria documentation.
119 * Change to "okay" if you need additional serial ports
120 */
Douglas Gilbert0d67c9e2013-04-04 17:36:49 +0200121 uart0: serial@f8040000 {
Nicolas Ferre7d813be2013-04-18 12:36:25 +0200122 status = "disabled";
123 };
124
125 uart1: serial@f8044000 {
126 status = "disabled";
Douglas Gilbert0d67c9e2013-04-04 17:36:49 +0200127 };
128
129 adc0: adc@f804c000 {
130 status = "okay";
131 atmel,adc-channels-used = <0xf>;
132 atmel,adc-num-channels = <4>;
133 };
134
135 dbgu: serial@fffff200 {
136 status = "okay";
137 };
138
139 pinctrl@fffff400 {
140 w1_0 {
141 pinctrl_w1_0: w1_0-0 {
142 atmel,pins = <0 21 0x0 0x1>; /* PA21 PIO, pull-up */
143 };
144 };
145 };
Nicolas Ferrecbc768f2013-04-18 10:35:08 +0200146
147 rtc@fffffeb0 {
148 status = "okay";
149 };
Douglas Gilbert0d67c9e2013-04-04 17:36:49 +0200150 };
151
152 usb0: ohci@00600000 {
153 status = "okay";
154 num-ports = <3>;
155 };
156
157 usb1: ehci@00700000 {
158 status = "okay";
159 };
160 };
161
162 leds {
163 compatible = "gpio-leds";
164
165 /* little green LED in middle of Aria G25 module */
166 aria_led {
167 label = "aria_led";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800168 gpios = <&pioB 8 GPIO_ACTIVE_HIGH>; /* PB8 */
Douglas Gilbert0d67c9e2013-04-04 17:36:49 +0200169 linux,default-trigger = "heartbeat";
170 };
171
172 };
173
174 onewire@0 {
175 compatible = "w1-gpio";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800176 gpios = <&pioA 21 GPIO_ACTIVE_LOW>;
Douglas Gilbert0d67c9e2013-04-04 17:36:49 +0200177 pinctrl-names = "default";
178 pinctrl-0 = <&pinctrl_w1_0>;
179 };
180};