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