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// 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};