Loading...
1/*
2 * Device Tree file for Atmel at91sam9260 Evaluation Kit
3 *
4 * Copyright (C) 2016 Atmel,
5 * 2016 Nicolas Ferre <nicolas.ferre@atmel.com>
6 *
7 * This file is dual-licensed: you can use it either under the terms
8 * of the GPL or the X11 license, at your option. Note that this dual
9 * licensing only applies to this file, and not this project as a
10 * whole.
11 *
12 * a) This file is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License as
14 * published by the Free Software Foundation; either version 2 of the
15 * License, or (at your option) any later version.
16 *
17 * This file is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * Or, alternatively,
23 *
24 * b) Permission is hereby granted, free of charge, to any person
25 * obtaining a copy of this software and associated documentation
26 * files (the "Software"), to deal in the Software without
27 * restriction, including without limitation the rights to use,
28 * copy, modify, merge, publish, distribute, sublicense, and/or
29 * sell copies of the Software, and to permit persons to whom the
30 * Software is furnished to do so, subject to the following
31 * conditions:
32 *
33 * The above copyright notice and this permission notice shall be
34 * included in all copies or substantial portions of the Software.
35 *
36 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
38 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
40 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
41 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43 * OTHER DEALINGS IN THE SOFTWARE.
44 */
45/dts-v1/;
46#include "at91sam9260.dtsi"
47
48/ {
49 model = "Atmel at91sam9260ek";
50 compatible = "atmel,at91sam9260ek", "atmel,at91sam9260", "atmel,at91sam9";
51
52 chosen {
53 stdout-path = &dbgu;
54 };
55
56 memory {
57 reg = <0x20000000 0x4000000>;
58 };
59
60 clocks {
61 slow_xtal {
62 clock-frequency = <32768>;
63 };
64
65 main_xtal {
66 clock-frequency = <18432000>;
67 };
68 };
69
70 ahb {
71 apb {
72 tcb0: timer@fffa0000 {
73 timer@0 {
74 compatible = "atmel,tcb-timer";
75 reg = <0>, <1>;
76 };
77
78 timer@2 {
79 compatible = "atmel,tcb-timer";
80 reg = <2>;
81 };
82 };
83
84 usb1: gadget@fffa4000 {
85 atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
86 status = "okay";
87 };
88
89 mmc0: mmc@fffa8000 {
90 pinctrl-0 = <
91 &pinctrl_board_mmc0_slot1
92 &pinctrl_mmc0_clk
93 &pinctrl_mmc0_slot1_cmd_dat0
94 &pinctrl_mmc0_slot1_dat1_3>;
95 status = "okay";
96 slot@1 {
97 reg = <1>;
98 bus-width = <4>;
99 cd-gpios = <&pioC 9 GPIO_ACTIVE_HIGH>;
100 };
101 };
102
103 usart0: serial@fffb0000 {
104 pinctrl-0 =
105 <&pinctrl_usart0
106 &pinctrl_usart0_rts
107 &pinctrl_usart0_cts
108 &pinctrl_usart0_dtr_dsr
109 &pinctrl_usart0_dcd
110 &pinctrl_usart0_ri>;
111 status = "okay";
112 };
113
114 usart1: serial@fffb4000 {
115 status = "okay";
116 };
117
118 ssc0: ssc@fffbc000 {
119 status = "okay";
120 pinctrl-0 = <&pinctrl_ssc0_tx>;
121 };
122
123 macb0: ethernet@fffc4000 {
124 phy-mode = "rmii";
125 status = "okay";
126 };
127
128 spi0: spi@fffc8000 {
129 cs-gpios = <0>, <&pioC 11 0>, <0>, <0>;
130 mtd_dataflash@0 {
131 compatible = "atmel,at45", "atmel,dataflash";
132 spi-max-frequency = <50000000>;
133 reg = <1>;
134 };
135 };
136
137 dbgu: serial@fffff200 {
138 status = "okay";
139 };
140
141 pinctrl@fffff400 {
142 board {
143 pinctrl_board_mmc0_slot1: mmc0_slot1-board {
144 atmel,pins =
145 <AT91_PIOC 9 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
146 };
147 };
148 };
149
150 shdwc@fffffd10 {
151 atmel,wakeup-counter = <10>;
152 atmel,wakeup-rtt-timer;
153 };
154
155 rtc@fffffd20 {
156 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
157 status = "okay";
158 };
159
160 watchdog@fffffd40 {
161 status = "okay";
162 };
163
164 gpbr: syscon@fffffd50 {
165 status = "okay";
166 };
167 };
168
169 usb0: ohci@500000 {
170 num-ports = <2>;
171 status = "okay";
172 };
173
174 nand0: nand@40000000 {
175 nand-bus-width = <8>;
176 nand-ecc-mode = "soft";
177 nand-on-flash-bbt;
178 status = "okay";
179 };
180 };
181
182 gpio_keys {
183 compatible = "gpio-keys";
184
185 btn3 {
186 label = "Button 3";
187 gpios = <&pioA 30 GPIO_ACTIVE_LOW>;
188 linux,code = <0x103>;
189 wakeup-source;
190 };
191
192 btn4 {
193 label = "Button 4";
194 gpios = <&pioA 31 GPIO_ACTIVE_LOW>;
195 linux,code = <0x104>;
196 wakeup-source;
197 };
198 };
199
200 i2c-gpio-0 {
201 status = "okay";
202
203 24c512@50 {
204 compatible = "atmel,24c512";
205 reg = <0x50>;
206 };
207 };
208
209 leds {
210 compatible = "gpio-leds";
211
212 ds1 {
213 label = "ds1";
214 gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
215 linux,default-trigger = "heartbeat";
216 };
217
218 ds5 {
219 label = "ds5";
220 gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
221 };
222 };
223};
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Device Tree file for Atmel at91sam9260 Evaluation Kit
4 *
5 * Copyright (C) 2016 Atmel,
6 * 2016 Nicolas Ferre <nicolas.ferre@atmel.com>
7 */
8/dts-v1/;
9#include "at91sam9260.dtsi"
10
11/ {
12 model = "Atmel at91sam9260ek";
13 compatible = "atmel,at91sam9260ek", "atmel,at91sam9260", "atmel,at91sam9";
14
15 chosen {
16 stdout-path = &dbgu;
17 };
18
19 memory {
20 reg = <0x20000000 0x4000000>;
21 };
22
23 clocks {
24 slow_xtal {
25 clock-frequency = <32768>;
26 };
27
28 main_xtal {
29 clock-frequency = <18432000>;
30 };
31 };
32
33 ahb {
34 apb {
35 tcb0: timer@fffa0000 {
36 timer@0 {
37 compatible = "atmel,tcb-timer";
38 reg = <0>, <1>;
39 };
40
41 timer@2 {
42 compatible = "atmel,tcb-timer";
43 reg = <2>;
44 };
45 };
46
47 usb1: gadget@fffa4000 {
48 atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
49 status = "okay";
50 };
51
52 mmc0: mmc@fffa8000 {
53 pinctrl-0 = <
54 &pinctrl_board_mmc0_slot1
55 &pinctrl_mmc0_clk
56 &pinctrl_mmc0_slot1_cmd_dat0
57 &pinctrl_mmc0_slot1_dat1_3>;
58 status = "okay";
59 slot@1 {
60 reg = <1>;
61 bus-width = <4>;
62 cd-gpios = <&pioC 9 GPIO_ACTIVE_HIGH>;
63 };
64 };
65
66 usart0: serial@fffb0000 {
67 pinctrl-0 =
68 <&pinctrl_usart0
69 &pinctrl_usart0_rts
70 &pinctrl_usart0_cts
71 &pinctrl_usart0_dtr_dsr
72 &pinctrl_usart0_dcd
73 &pinctrl_usart0_ri>;
74 status = "okay";
75 };
76
77 usart1: serial@fffb4000 {
78 status = "okay";
79 };
80
81 ssc0: ssc@fffbc000 {
82 status = "okay";
83 pinctrl-0 = <&pinctrl_ssc0_tx>;
84 };
85
86 macb0: ethernet@fffc4000 {
87 phy-mode = "rmii";
88 status = "okay";
89 };
90
91 spi0: spi@fffc8000 {
92 cs-gpios = <0>, <&pioC 11 0>, <0>, <0>;
93 mtd_dataflash@1 {
94 compatible = "atmel,at45", "atmel,dataflash";
95 spi-max-frequency = <50000000>;
96 reg = <1>;
97 };
98 };
99
100 dbgu: serial@fffff200 {
101 status = "okay";
102 };
103
104 pinctrl@fffff400 {
105 board {
106 pinctrl_board_mmc0_slot1: mmc0_slot1-board {
107 atmel,pins =
108 <AT91_PIOC 9 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
109 };
110 };
111 };
112
113 shdwc@fffffd10 {
114 atmel,wakeup-counter = <10>;
115 atmel,wakeup-rtt-timer;
116 };
117
118 rtc@fffffd20 {
119 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
120 status = "okay";
121 };
122
123 watchdog@fffffd40 {
124 status = "okay";
125 };
126
127 gpbr: syscon@fffffd50 {
128 status = "okay";
129 };
130 };
131
132 usb0: ohci@500000 {
133 num-ports = <2>;
134 status = "okay";
135 };
136
137 nand0: nand@40000000 {
138 nand-bus-width = <8>;
139 nand-ecc-mode = "soft";
140 nand-on-flash-bbt;
141 status = "okay";
142 };
143 };
144
145 gpio_keys {
146 compatible = "gpio-keys";
147
148 btn3 {
149 label = "Button 3";
150 gpios = <&pioA 30 GPIO_ACTIVE_LOW>;
151 linux,code = <0x103>;
152 wakeup-source;
153 };
154
155 btn4 {
156 label = "Button 4";
157 gpios = <&pioA 31 GPIO_ACTIVE_LOW>;
158 linux,code = <0x104>;
159 wakeup-source;
160 };
161 };
162
163 i2c-gpio-0 {
164 status = "okay";
165
166 24c512@50 {
167 compatible = "atmel,24c512";
168 reg = <0x50>;
169 };
170 };
171
172 leds {
173 compatible = "gpio-leds";
174
175 ds1 {
176 label = "ds1";
177 gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
178 linux,default-trigger = "heartbeat";
179 };
180
181 ds5 {
182 label = "ds5";
183 gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
184 };
185 };
186};