1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * at91-sam9x60_curiosity.dts - Device Tree file for SAM9X60 CURIOSITY board
5 * Copyright (C) 2022 Microchip Technology Inc. and its subsidiaries
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/mfd/atmel-flexcom.h>
12 #include "sam9x60.dtsi"
15 model = "Microchip SAM9X60 Curiosity";
16 compatible = "microchip,sam9x60-curiosity", "microchip,sam9x60", "atmel,at91sam9";
24 reg = <0x20000000 0x8000000>;
28 slow_xtal: slow_xtal {
29 clock-frequency = <32768>;
32 main_xtal: main_xtal {
33 clock-frequency = <24000000>;
38 compatible = "gpio-keys";
39 pinctrl-names = "default";
40 pinctrl-0 = <&pinctrl_key_gpio_default>;
44 gpios = <&pioA 29 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_PROG1>;
51 compatible = "gpio-leds";
52 pinctrl-names = "default";
53 pinctrl-0 = <&pinctrl_gpio_leds>;
57 gpios = <&pioD 17 GPIO_ACTIVE_HIGH>;
62 gpios = <&pioD 19 GPIO_ACTIVE_HIGH>;
67 gpios = <&pioD 21 GPIO_ACTIVE_HIGH>;
68 linux,default-trigger = "heartbeat";
73 gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
74 pinctrl-names = "default";
75 pinctrl-0 = <&pinctrl_onewire_tm_default>;
78 w1_eeprom: w1_eeprom@0 {
79 compatible = "maxim,ds24b33";
86 pinctrl-names = "default";
87 pinctrl-0 = <&pinctrl_ebi_addr_nand &pinctrl_ebi_data_0_7>;
90 nand_controller: nand-controller {
91 pinctrl-names = "default";
92 pinctrl-0 = <&pinctrl_nand_oe_we &pinctrl_nand_cs &pinctrl_nand_rb>;
96 reg = <0x3 0x0 0x800000>;
97 rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>;
98 cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>;
100 nand-ecc-mode = "hw";
101 nand-ecc-strength = <8>;
102 nand-ecc-step-size = <512>;
104 label = "atmel_nand";
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
112 label = "at91bootstrap";
118 reg = <0x40000 0xc0000>;
122 label = "U-Boot Env Redundant";
123 reg = <0x100000 0x40000>;
127 label = "U-Boot Env";
128 reg = <0x140000 0x40000>;
132 label = "device tree";
133 reg = <0x180000 0x80000>;
138 reg = <0x200000 0x600000>;
143 reg = <0x800000 0x1f800000>;
151 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
155 compatible = "microchip,sam9x60-i2c";
157 pinctrl-names = "default";
158 pinctrl-0 = <&pinctrl_flx0>;
159 #address-cells = <1>;
161 clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
165 compatible = "atmel,24c02";
179 pinctrl_ebi_data_0_7: ebi-data-lsb-0 {
181 <AT91_PIOD 6 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
182 AT91_PIOD 7 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
183 AT91_PIOD 8 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
184 AT91_PIOD 9 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
185 AT91_PIOD 10 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
186 AT91_PIOD 11 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
187 AT91_PIOD 12 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
188 AT91_PIOD 13 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>;
191 pinctrl_ebi_addr_nand: ebi-addr-0 {
193 <AT91_PIOD 2 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
194 AT91_PIOD 3 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>;
199 pinctrl_flx0: flx0_default {
201 <AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_NONE
202 AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_NONE>;
207 pinctrl_key_gpio_default: pinctrl-key-gpio {
208 atmel,pins = <AT91_PIOA 29 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
213 pinctrl_gpio_leds: gpio-leds {
214 atmel,pins = <AT91_PIOD 17 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
215 AT91_PIOD 19 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
216 AT91_PIOD 21 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
221 pinctrl_nand_oe_we: nand-oe-we-0 {
223 <AT91_PIOD 0 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
224 AT91_PIOD 1 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>;
227 pinctrl_nand_rb: nand-rb-0 {
229 <AT91_PIOD 5 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
232 pinctrl_nand_cs: nand-cs-0 {
234 <AT91_PIOD 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
238 pinctrl_onewire_tm_default: onewire_tm_default {
240 <AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
244 pinctrl_usb_default: usb_default {
245 atmel,pins = <AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
246 AT91_PIOD 18 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
254 &pioD 15 GPIO_ACTIVE_HIGH
255 &pioD 18 GPIO_ACTIVE_HIGH>;
256 pinctrl-names = "default";
257 pinctrl-0 = <&pinctrl_usb_default>;