blob: 2547b4527ce5af0a523fc24ce99565ac598f0ee8 [file] [log] [blame]
Durai Manickam KRa0509712022-04-04 11:23:19 +05301// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * at91-sam9x60_curiosity.dts - Device Tree file for SAM9X60 CURIOSITY board
4 *
5 * Copyright (C) 2022 Microchip Technology Inc. and its subsidiaries
6 *
7 * Author: Durai Manickam KR <durai.manickamkr@microchip.com>
8 */
9/dts-v1/;
10#include <dt-bindings/mfd/atmel-flexcom.h>
11#include "sam9x60.dtsi"
12
13/ {
Alexander Dahl5c3e8672023-07-05 22:17:00 +020014 model = "Microchip SAM9X60 Curiosity";
Durai Manickam KRa0509712022-04-04 11:23:19 +053015 compatible = "microchip,sam9x60-curiosity", "microchip,sam9x60", "atmel,at91sam9";
16
Durai Manickam KRa0509712022-04-04 11:23:19 +053017 chosen {
18 stdout-path = &dbgu;
19 i2c0 = &flx0;
20 };
21
Alexander Dahl5c3e8672023-07-05 22:17:00 +020022 memory {
23 reg = <0x20000000 0x8000000>;
24 };
25
Durai Manickam KRa0509712022-04-04 11:23:19 +053026 clocks {
27 slow_xtal: slow_xtal {
28 clock-frequency = <32768>;
29 };
30
31 main_xtal: main_xtal {
32 clock-frequency = <24000000>;
33 };
34 };
35
Durai Manickam KRed458092022-07-07 16:40:56 +053036 onewire_tm: onewire {
37 gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
38 pinctrl-names = "default";
39 pinctrl-0 = <&pinctrl_onewire_tm_default>;
40 status = "okay";
41
42 w1_eeprom: w1_eeprom@0 {
43 compatible = "maxim,ds24b33";
44 status = "okay";
45 };
46 };
Durai Manickam KRa0509712022-04-04 11:23:19 +053047};
48
Alexander Dahl6a1866f2023-07-05 22:17:01 +020049&ebi {
50 pinctrl-names = "default";
51 pinctrl-0 = <&pinctrl_ebi_addr_nand &pinctrl_ebi_data_0_7>;
52 status = "okay";
53
54 nand_controller: nand-controller {
55 pinctrl-names = "default";
56 pinctrl-0 = <&pinctrl_nand_oe_we &pinctrl_nand_cs &pinctrl_nand_rb>;
57 status = "okay";
58
59 nand@3 {
60 reg = <0x3 0x0 0x800000>;
61 rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>;
62 cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>;
63 nand-bus-width = <8>;
64 nand-ecc-mode = "hw";
65 nand-ecc-strength = <8>;
66 nand-ecc-step-size = <512>;
67 nand-on-flash-bbt;
68 label = "atmel_nand";
69
70 partitions {
71 compatible = "fixed-partitions";
72 #address-cells = <1>;
73 #size-cells = <1>;
74
75 at91bootstrap@0 {
76 label = "at91bootstrap";
77 reg = <0x0 0x40000>;
78 };
79
80 uboot@40000 {
81 label = "u-boot";
82 reg = <0x40000 0xc0000>;
83 };
84
85 ubootenvred@100000 {
86 label = "U-Boot Env Redundant";
87 reg = <0x100000 0x40000>;
88 };
89
90 ubootenv@140000 {
91 label = "U-Boot Env";
92 reg = <0x140000 0x40000>;
93 };
94
95 dtb@180000 {
96 label = "device tree";
97 reg = <0x180000 0x80000>;
98 };
99
100 kernel@200000 {
101 label = "kernel";
102 reg = <0x200000 0x600000>;
103 };
104
105 rootfs@800000 {
106 label = "rootfs";
107 reg = <0x800000 0x1f800000>;
108 };
109 };
110 };
111 };
112};
113
Alexander Dahl5c3e8672023-07-05 22:17:00 +0200114&flx0 {
115 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
116 status = "okay";
117
118 i2c@600 {
119 compatible = "microchip,sam9x60-i2c";
120 reg = <0x600 0x200>;
121 pinctrl-names = "default";
122 pinctrl-0 = <&pinctrl_flx0>;
123 #address-cells = <1>;
124 #size-cells = <0>;
125 clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
126 status = "okay";
127
128 eeprom@53 {
129 compatible = "atmel,24c02";
130 reg = <0x53>;
131 pagesize = <16>;
132 };
133 };
134};
135
Durai Manickam KRa0509712022-04-04 11:23:19 +0530136&macb0 {
137 phy-mode = "rmii";
138 status = "okay";
139};
Sergiu Mogafd41ebf2023-01-04 16:04:11 +0200140
Alexander Dahl5c3e8672023-07-05 22:17:00 +0200141&pinctrl {
Alexander Dahl6a1866f2023-07-05 22:17:01 +0200142 ebi {
143 pinctrl_ebi_data_0_7: ebi-data-lsb-0 {
144 atmel,pins =
145 <AT91_PIOD 6 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
146 AT91_PIOD 7 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
147 AT91_PIOD 8 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
148 AT91_PIOD 9 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
149 AT91_PIOD 10 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
150 AT91_PIOD 11 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
151 AT91_PIOD 12 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
152 AT91_PIOD 13 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>;
153 };
154
155 pinctrl_ebi_addr_nand: ebi-addr-0 {
156 atmel,pins =
157 <AT91_PIOD 2 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
158 AT91_PIOD 3 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>;
159 };
160 };
161
Alexander Dahl5c3e8672023-07-05 22:17:00 +0200162 flexcom {
163 pinctrl_flx0: flx0_default {
164 atmel,pins =
165 <AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_NONE
166 AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_NONE>;
167 };
168 };
169
Alexander Dahl6a1866f2023-07-05 22:17:01 +0200170 nand {
171 pinctrl_nand_oe_we: nand-oe-we-0 {
172 atmel,pins =
173 <AT91_PIOD 0 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
174 AT91_PIOD 1 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>;
175 };
176
177 pinctrl_nand_rb: nand-rb-0 {
178 atmel,pins =
179 <AT91_PIOD 5 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
180 };
181
182 pinctrl_nand_cs: nand-cs-0 {
183 atmel,pins =
184 <AT91_PIOD 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
185 };
186 };
187
Alexander Dahl5c3e8672023-07-05 22:17:00 +0200188 pinctrl_onewire_tm_default: onewire_tm_default {
189 atmel,pins =
190 <AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
191 };
192
193 usb1 {
194 pinctrl_usb_default: usb_default {
195 atmel,pins = <AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
196 AT91_PIOD 18 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
197 };
198 };
199};
200
Sergiu Mogafd41ebf2023-01-04 16:04:11 +0200201&usb1 {
202 num-ports = <3>;
203 atmel,vbus-gpio = <0
204 &pioD 15 GPIO_ACTIVE_HIGH
205 &pioD 18 GPIO_ACTIVE_HIGH>;
206 pinctrl-names = "default";
207 pinctrl-0 = <&pinctrl_usb_default>;
208 status = "okay";
209};
210
211&usb2 {
212 status = "okay";
213};