Commit | Line | Data |
---|---|---|
0d67c9e8 DG |
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 | }; | |
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 | #address-cells = <1>; | |
37 | #size-cells = <1>; | |
38 | ranges; | |
39 | ||
40 | main_clock: clock@0 { | |
41 | compatible = "atmel,osc", "fixed-clock"; | |
42 | clock-frequency = <12000000>; | |
43 | }; | |
44 | }; | |
45 | ||
46 | ahb { | |
47 | apb { | |
48 | mmc0: mmc@f0008000 { | |
49 | /* N.B. Aria has no SD card detect (CD), assumed present */ | |
50 | ||
51 | pinctrl-0 = < | |
52 | &pinctrl_mmc0_slot0_clk_cmd_dat0 | |
53 | &pinctrl_mmc0_slot0_dat1_3>; | |
54 | status = "okay"; | |
55 | slot@0 { | |
56 | reg = <0>; | |
57 | bus-width = <4>; | |
58 | }; | |
59 | }; | |
60 | ||
61 | i2c0: i2c@f8010000 { | |
62 | status = "okay"; | |
63 | }; | |
64 | ||
65 | i2c1: i2c@f8014000 { | |
66 | status = "okay"; | |
67 | }; | |
68 | ||
69 | /* TWD2+TCLK2 hidden behind ethernet, so no i2c2 */ | |
70 | ||
71 | usart0: serial@f801c000 { | |
72 | pinctrl-0 = <&pinctrl_usart0 | |
73 | &pinctrl_usart0_rts | |
74 | &pinctrl_usart0_cts>; | |
75 | status = "okay"; | |
76 | }; | |
77 | ||
78 | usart1: serial@f8020000 { | |
79 | pinctrl-0 = <&pinctrl_usart1 | |
80 | /* &pinctrl_usart1_rts */ | |
81 | /* &pinctrl_usart1_cts */ | |
82 | >; | |
83 | status = "okay"; | |
84 | }; | |
85 | ||
86 | usart2: serial@f8024000 { | |
87 | /* cannot activate RTS2+CTS2, clash with | |
88 | * ethernet on PB0 and PB1 */ | |
89 | pinctrl-0 = <&pinctrl_usart2>; | |
90 | status = "okay"; | |
91 | }; | |
92 | ||
93 | usart3: serial@f8028000 { | |
94 | compatible = "atmel,at91sam9260-usart"; | |
95 | reg = <0xf8028000 0x200>; | |
96 | interrupts = <8 4 5>; | |
97 | pinctrl-names = "default"; | |
98 | pinctrl-0 = <&pinctrl_usart3 | |
99 | /* &pinctrl_usart3_rts */ | |
100 | /* &pinctrl_usart3_cts */ | |
101 | >; | |
102 | status = "okay"; | |
103 | }; | |
104 | ||
105 | macb0: ethernet@f802c000 { | |
106 | phy-mode = "rmii"; | |
107 | /* | |
108 | * following can be overwritten by bootloader: | |
109 | * for example u-boot 'ftd set' command | |
110 | */ | |
111 | local-mac-address = [00 00 00 00 00 00]; | |
112 | status = "okay"; | |
113 | }; | |
114 | ||
115 | uart0: serial@f8040000 { | |
116 | compatible = "atmel,at91sam9260-usart"; | |
117 | reg = <0xf8040000 0x200>; | |
118 | interrupts = <15 4 5>; | |
119 | pinctrl-names = "default"; | |
120 | pinctrl-0 = <&pinctrl_uart0>; | |
121 | status = "okay"; | |
122 | }; | |
123 | ||
124 | adc0: adc@f804c000 { | |
125 | status = "okay"; | |
126 | atmel,adc-channels-used = <0xf>; | |
127 | atmel,adc-num-channels = <4>; | |
128 | }; | |
129 | ||
130 | dbgu: serial@fffff200 { | |
131 | status = "okay"; | |
132 | }; | |
133 | ||
134 | pinctrl@fffff400 { | |
135 | w1_0 { | |
136 | pinctrl_w1_0: w1_0-0 { | |
137 | atmel,pins = <0 21 0x0 0x1>; /* PA21 PIO, pull-up */ | |
138 | }; | |
139 | }; | |
140 | }; | |
141 | }; | |
142 | ||
143 | usb0: ohci@00600000 { | |
144 | status = "okay"; | |
145 | num-ports = <3>; | |
146 | }; | |
147 | ||
148 | usb1: ehci@00700000 { | |
149 | status = "okay"; | |
150 | }; | |
151 | }; | |
152 | ||
153 | leds { | |
154 | compatible = "gpio-leds"; | |
155 | ||
156 | /* little green LED in middle of Aria G25 module */ | |
157 | aria_led { | |
158 | label = "aria_led"; | |
159 | gpios = <&pioB 8 0>; /* PB8 */ | |
160 | linux,default-trigger = "heartbeat"; | |
161 | }; | |
162 | ||
163 | }; | |
164 | ||
165 | onewire@0 { | |
166 | compatible = "w1-gpio"; | |
167 | gpios = <&pioA 21 1>; | |
168 | pinctrl-names = "default"; | |
169 | pinctrl-0 = <&pinctrl_w1_0>; | |
170 | }; | |
171 | }; |