Loading...
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#include <dt-bindings/input/input.h>
11
12/ {
13 model = "Atmel at91sam9260ek";
14 compatible = "atmel,at91sam9260ek", "atmel,at91sam9260", "atmel,at91sam9";
15
16 chosen {
17 stdout-path = &dbgu;
18 };
19
20 memory@20000000 {
21 reg = <0x20000000 0x4000000>;
22 };
23
24 clocks {
25 slow_xtal {
26 clock-frequency = <32768>;
27 };
28
29 main_xtal {
30 clock-frequency = <18432000>;
31 };
32 };
33
34 ahb {
35 apb {
36 tcb0: timer@fffa0000 {
37 timer@0 {
38 compatible = "atmel,tcb-timer";
39 reg = <0>, <1>;
40 };
41
42 timer@2 {
43 compatible = "atmel,tcb-timer";
44 reg = <2>;
45 };
46 };
47
48 usb1: gadget@fffa4000 {
49 atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
50 status = "okay";
51 };
52
53 mmc0: mmc@fffa8000 {
54 pinctrl-0 = <
55 &pinctrl_board_mmc0_slot1
56 &pinctrl_mmc0_clk
57 &pinctrl_mmc0_slot1_cmd_dat0
58 &pinctrl_mmc0_slot1_dat1_3>;
59 pinctrl-names = "default";
60 status = "okay";
61 slot@1 {
62 reg = <1>;
63 bus-width = <4>;
64 cd-gpios = <&pioC 9 GPIO_ACTIVE_HIGH>;
65 };
66 };
67
68 usart0: serial@fffb0000 {
69 pinctrl-0 =
70 <&pinctrl_usart0
71 &pinctrl_usart0_rts
72 &pinctrl_usart0_cts
73 &pinctrl_usart0_dtr_dsr
74 &pinctrl_usart0_dcd
75 &pinctrl_usart0_ri>;
76 status = "okay";
77 };
78
79 usart1: serial@fffb4000 {
80 status = "okay";
81 };
82
83 ssc0: ssc@fffbc000 {
84 status = "okay";
85 pinctrl-0 = <&pinctrl_ssc0_tx>;
86 };
87
88 macb0: ethernet@fffc4000 {
89 phy-mode = "rmii";
90 status = "okay";
91 };
92
93 spi0: spi@fffc8000 {
94 cs-gpios = <0>, <&pioC 11 0>, <0>, <0>;
95 flash@1 {
96 compatible = "atmel,at45", "atmel,dataflash";
97 spi-max-frequency = <50000000>;
98 reg = <1>;
99 };
100 };
101
102 dbgu: serial@fffff200 {
103 status = "okay";
104 };
105
106 pinctrl@fffff400 {
107 board {
108 pinctrl_board_mmc0_slot1: mmc0_slot1-board {
109 atmel,pins =
110 <AT91_PIOC 9 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
111 };
112 };
113 };
114
115 shdwc@fffffd10 {
116 atmel,wakeup-counter = <10>;
117 atmel,wakeup-rtt-timer;
118 };
119
120 rtc@fffffd20 {
121 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
122 status = "okay";
123 };
124
125 watchdog@fffffd40 {
126 status = "okay";
127 };
128
129 gpbr: syscon@fffffd50 {
130 status = "okay";
131 };
132 };
133
134 usb0: ohci@500000 {
135 num-ports = <2>;
136 status = "okay";
137 };
138
139 nand0: nand@40000000 {
140 nand-bus-width = <8>;
141 nand-ecc-mode = "soft";
142 nand-on-flash-bbt;
143 status = "okay";
144 };
145 };
146
147 gpio-keys {
148 compatible = "gpio-keys";
149
150 button-3 {
151 label = "Button 3";
152 gpios = <&pioA 30 GPIO_ACTIVE_LOW>;
153 linux,code = <0x103>;
154 wakeup-source;
155 };
156
157 button-4 {
158 label = "Button 4";
159 gpios = <&pioA 31 GPIO_ACTIVE_LOW>;
160 linux,code = <KEY_PROG1>;
161 wakeup-source;
162 };
163 };
164
165 i2c-gpio-0 {
166 status = "okay";
167
168 24c512@50 {
169 compatible = "atmel,24c512";
170 reg = <0x50>;
171 };
172 };
173
174 leds {
175 compatible = "gpio-leds";
176
177 ds1 {
178 label = "ds1";
179 gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
180 linux,default-trigger = "heartbeat";
181 };
182
183 ds5 {
184 label = "ds5";
185 gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
186 };
187 };
188};
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 usb1: gadget@fffa4000 {
73 atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
74 status = "okay";
75 };
76
77 mmc0: mmc@fffa8000 {
78 pinctrl-0 = <
79 &pinctrl_board_mmc0_slot1
80 &pinctrl_mmc0_clk
81 &pinctrl_mmc0_slot1_cmd_dat0
82 &pinctrl_mmc0_slot1_dat1_3>;
83 status = "okay";
84 slot@1 {
85 reg = <1>;
86 bus-width = <4>;
87 cd-gpios = <&pioC 9 GPIO_ACTIVE_HIGH>;
88 };
89 };
90
91 usart0: serial@fffb0000 {
92 pinctrl-0 =
93 <&pinctrl_usart0
94 &pinctrl_usart0_rts
95 &pinctrl_usart0_cts
96 &pinctrl_usart0_dtr_dsr
97 &pinctrl_usart0_dcd
98 &pinctrl_usart0_ri>;
99 status = "okay";
100 };
101
102 usart1: serial@fffb4000 {
103 status = "okay";
104 };
105
106 ssc0: ssc@fffbc000 {
107 status = "okay";
108 pinctrl-0 = <&pinctrl_ssc0_tx>;
109 };
110
111 macb0: ethernet@fffc4000 {
112 phy-mode = "rmii";
113 status = "okay";
114 };
115
116 spi0: spi@fffc8000 {
117 cs-gpios = <0>, <&pioC 11 0>, <0>, <0>;
118 mtd_dataflash@0 {
119 compatible = "atmel,at45", "atmel,dataflash";
120 spi-max-frequency = <50000000>;
121 reg = <1>;
122 };
123 };
124
125 dbgu: serial@fffff200 {
126 status = "okay";
127 };
128
129 pinctrl@fffff400 {
130 board {
131 pinctrl_board_mmc0_slot1: mmc0_slot1-board {
132 atmel,pins =
133 <AT91_PIOC 9 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
134 };
135 };
136 };
137
138 shdwc@fffffd10 {
139 atmel,wakeup-counter = <10>;
140 atmel,wakeup-rtt-timer;
141 };
142
143 rtc@fffffd20 {
144 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
145 status = "okay";
146 };
147
148 watchdog@fffffd40 {
149 status = "okay";
150 };
151
152 gpbr: syscon@fffffd50 {
153 status = "okay";
154 };
155 };
156
157 usb0: ohci@500000 {
158 num-ports = <2>;
159 status = "okay";
160 };
161
162 nand0: nand@40000000 {
163 nand-bus-width = <8>;
164 nand-ecc-mode = "soft";
165 nand-on-flash-bbt;
166 status = "okay";
167 };
168 };
169
170 gpio_keys {
171 compatible = "gpio-keys";
172
173 btn3 {
174 label = "Button 3";
175 gpios = <&pioA 30 GPIO_ACTIVE_LOW>;
176 linux,code = <0x103>;
177 wakeup-source;
178 };
179
180 btn4 {
181 label = "Button 4";
182 gpios = <&pioA 31 GPIO_ACTIVE_LOW>;
183 linux,code = <0x104>;
184 wakeup-source;
185 };
186 };
187
188 i2c-gpio-0 {
189 status = "okay";
190
191 24c512@50 {
192 compatible = "24c512";
193 reg = <0x50>;
194 };
195 };
196
197 leds {
198 compatible = "gpio-leds";
199
200 ds1 {
201 label = "ds1";
202 gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
203 linux,default-trigger = "heartbeat";
204 };
205
206 ds5 {
207 label = "ds5";
208 gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
209 };
210 };
211};