Durai Manickam KR | a050971 | 2022-04-04 11:23:19 +0530 | [diff] [blame] | 1 | // 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 Dahl | 5c3e867 | 2023-07-05 22:17:00 +0200 | [diff] [blame] | 14 | model = "Microchip SAM9X60 Curiosity"; |
Durai Manickam KR | a050971 | 2022-04-04 11:23:19 +0530 | [diff] [blame] | 15 | compatible = "microchip,sam9x60-curiosity", "microchip,sam9x60", "atmel,at91sam9"; |
| 16 | |
Durai Manickam KR | a050971 | 2022-04-04 11:23:19 +0530 | [diff] [blame] | 17 | chosen { |
| 18 | stdout-path = &dbgu; |
| 19 | i2c0 = &flx0; |
| 20 | }; |
| 21 | |
Alexander Dahl | 5c3e867 | 2023-07-05 22:17:00 +0200 | [diff] [blame] | 22 | memory { |
| 23 | reg = <0x20000000 0x8000000>; |
| 24 | }; |
| 25 | |
Durai Manickam KR | a050971 | 2022-04-04 11:23:19 +0530 | [diff] [blame] | 26 | clocks { |
| 27 | slow_xtal: slow_xtal { |
| 28 | clock-frequency = <32768>; |
| 29 | }; |
| 30 | |
| 31 | main_xtal: main_xtal { |
| 32 | clock-frequency = <24000000>; |
| 33 | }; |
| 34 | }; |
| 35 | |
Alexander Dahl | 17811e2 | 2023-08-23 15:58:54 +0200 | [diff] [blame^] | 36 | leds { |
| 37 | compatible = "gpio-leds"; |
| 38 | pinctrl-names = "default"; |
| 39 | pinctrl-0 = <&pinctrl_gpio_leds>; |
| 40 | |
| 41 | led-red { |
| 42 | label = "red"; |
| 43 | gpios = <&pioD 17 GPIO_ACTIVE_HIGH>; |
| 44 | }; |
| 45 | |
| 46 | led-green { |
| 47 | label = "green"; |
| 48 | gpios = <&pioD 19 GPIO_ACTIVE_HIGH>; |
| 49 | }; |
| 50 | |
| 51 | led-blue { |
| 52 | label = "blue"; |
| 53 | gpios = <&pioD 21 GPIO_ACTIVE_HIGH>; |
| 54 | linux,default-trigger = "heartbeat"; |
| 55 | }; |
| 56 | }; |
| 57 | |
Durai Manickam KR | ed45809 | 2022-07-07 16:40:56 +0530 | [diff] [blame] | 58 | onewire_tm: onewire { |
| 59 | gpios = <&pioD 14 GPIO_ACTIVE_HIGH>; |
| 60 | pinctrl-names = "default"; |
| 61 | pinctrl-0 = <&pinctrl_onewire_tm_default>; |
| 62 | status = "okay"; |
| 63 | |
| 64 | w1_eeprom: w1_eeprom@0 { |
| 65 | compatible = "maxim,ds24b33"; |
| 66 | status = "okay"; |
| 67 | }; |
| 68 | }; |
Durai Manickam KR | a050971 | 2022-04-04 11:23:19 +0530 | [diff] [blame] | 69 | }; |
| 70 | |
Alexander Dahl | 6a1866f | 2023-07-05 22:17:01 +0200 | [diff] [blame] | 71 | &ebi { |
| 72 | pinctrl-names = "default"; |
| 73 | pinctrl-0 = <&pinctrl_ebi_addr_nand &pinctrl_ebi_data_0_7>; |
| 74 | status = "okay"; |
| 75 | |
| 76 | nand_controller: nand-controller { |
| 77 | pinctrl-names = "default"; |
| 78 | pinctrl-0 = <&pinctrl_nand_oe_we &pinctrl_nand_cs &pinctrl_nand_rb>; |
| 79 | status = "okay"; |
| 80 | |
| 81 | nand@3 { |
| 82 | reg = <0x3 0x0 0x800000>; |
| 83 | rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>; |
| 84 | cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>; |
| 85 | nand-bus-width = <8>; |
| 86 | nand-ecc-mode = "hw"; |
| 87 | nand-ecc-strength = <8>; |
| 88 | nand-ecc-step-size = <512>; |
| 89 | nand-on-flash-bbt; |
| 90 | label = "atmel_nand"; |
| 91 | |
| 92 | partitions { |
| 93 | compatible = "fixed-partitions"; |
| 94 | #address-cells = <1>; |
| 95 | #size-cells = <1>; |
| 96 | |
| 97 | at91bootstrap@0 { |
| 98 | label = "at91bootstrap"; |
| 99 | reg = <0x0 0x40000>; |
| 100 | }; |
| 101 | |
| 102 | uboot@40000 { |
| 103 | label = "u-boot"; |
| 104 | reg = <0x40000 0xc0000>; |
| 105 | }; |
| 106 | |
| 107 | ubootenvred@100000 { |
| 108 | label = "U-Boot Env Redundant"; |
| 109 | reg = <0x100000 0x40000>; |
| 110 | }; |
| 111 | |
| 112 | ubootenv@140000 { |
| 113 | label = "U-Boot Env"; |
| 114 | reg = <0x140000 0x40000>; |
| 115 | }; |
| 116 | |
| 117 | dtb@180000 { |
| 118 | label = "device tree"; |
| 119 | reg = <0x180000 0x80000>; |
| 120 | }; |
| 121 | |
| 122 | kernel@200000 { |
| 123 | label = "kernel"; |
| 124 | reg = <0x200000 0x600000>; |
| 125 | }; |
| 126 | |
| 127 | rootfs@800000 { |
| 128 | label = "rootfs"; |
| 129 | reg = <0x800000 0x1f800000>; |
| 130 | }; |
| 131 | }; |
| 132 | }; |
| 133 | }; |
| 134 | }; |
| 135 | |
Alexander Dahl | 5c3e867 | 2023-07-05 22:17:00 +0200 | [diff] [blame] | 136 | &flx0 { |
| 137 | atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>; |
| 138 | status = "okay"; |
| 139 | |
| 140 | i2c@600 { |
| 141 | compatible = "microchip,sam9x60-i2c"; |
| 142 | reg = <0x600 0x200>; |
| 143 | pinctrl-names = "default"; |
| 144 | pinctrl-0 = <&pinctrl_flx0>; |
| 145 | #address-cells = <1>; |
| 146 | #size-cells = <0>; |
| 147 | clocks = <&pmc PMC_TYPE_PERIPHERAL 5>; |
| 148 | status = "okay"; |
| 149 | |
| 150 | eeprom@53 { |
| 151 | compatible = "atmel,24c02"; |
| 152 | reg = <0x53>; |
| 153 | pagesize = <16>; |
| 154 | }; |
| 155 | }; |
| 156 | }; |
| 157 | |
Durai Manickam KR | a050971 | 2022-04-04 11:23:19 +0530 | [diff] [blame] | 158 | &macb0 { |
| 159 | phy-mode = "rmii"; |
| 160 | status = "okay"; |
| 161 | }; |
Sergiu Moga | fd41ebf | 2023-01-04 16:04:11 +0200 | [diff] [blame] | 162 | |
Alexander Dahl | 5c3e867 | 2023-07-05 22:17:00 +0200 | [diff] [blame] | 163 | &pinctrl { |
Alexander Dahl | 6a1866f | 2023-07-05 22:17:01 +0200 | [diff] [blame] | 164 | ebi { |
| 165 | pinctrl_ebi_data_0_7: ebi-data-lsb-0 { |
| 166 | atmel,pins = |
| 167 | <AT91_PIOD 6 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) |
| 168 | AT91_PIOD 7 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) |
| 169 | AT91_PIOD 8 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) |
| 170 | AT91_PIOD 9 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) |
| 171 | AT91_PIOD 10 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) |
| 172 | AT91_PIOD 11 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) |
| 173 | AT91_PIOD 12 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) |
| 174 | AT91_PIOD 13 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>; |
| 175 | }; |
| 176 | |
| 177 | pinctrl_ebi_addr_nand: ebi-addr-0 { |
| 178 | atmel,pins = |
| 179 | <AT91_PIOD 2 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) |
| 180 | AT91_PIOD 3 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>; |
| 181 | }; |
| 182 | }; |
| 183 | |
Alexander Dahl | 5c3e867 | 2023-07-05 22:17:00 +0200 | [diff] [blame] | 184 | flexcom { |
| 185 | pinctrl_flx0: flx0_default { |
| 186 | atmel,pins = |
| 187 | <AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_NONE |
| 188 | AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_NONE>; |
| 189 | }; |
| 190 | }; |
| 191 | |
Alexander Dahl | 17811e2 | 2023-08-23 15:58:54 +0200 | [diff] [blame^] | 192 | leds { |
| 193 | pinctrl_gpio_leds: gpio-leds { |
| 194 | atmel,pins = <AT91_PIOD 17 AT91_PERIPH_GPIO AT91_PINCTRL_NONE |
| 195 | AT91_PIOD 19 AT91_PERIPH_GPIO AT91_PINCTRL_NONE |
| 196 | AT91_PIOD 21 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; |
| 197 | }; |
| 198 | }; |
| 199 | |
Alexander Dahl | 6a1866f | 2023-07-05 22:17:01 +0200 | [diff] [blame] | 200 | nand { |
| 201 | pinctrl_nand_oe_we: nand-oe-we-0 { |
| 202 | atmel,pins = |
| 203 | <AT91_PIOD 0 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) |
| 204 | AT91_PIOD 1 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>; |
| 205 | }; |
| 206 | |
| 207 | pinctrl_nand_rb: nand-rb-0 { |
| 208 | atmel,pins = |
| 209 | <AT91_PIOD 5 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; |
| 210 | }; |
| 211 | |
| 212 | pinctrl_nand_cs: nand-cs-0 { |
| 213 | atmel,pins = |
| 214 | <AT91_PIOD 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; |
| 215 | }; |
| 216 | }; |
| 217 | |
Alexander Dahl | 5c3e867 | 2023-07-05 22:17:00 +0200 | [diff] [blame] | 218 | pinctrl_onewire_tm_default: onewire_tm_default { |
| 219 | atmel,pins = |
| 220 | <AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; |
| 221 | }; |
| 222 | |
| 223 | usb1 { |
| 224 | pinctrl_usb_default: usb_default { |
| 225 | atmel,pins = <AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_NONE |
| 226 | AT91_PIOD 18 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; |
| 227 | }; |
| 228 | }; |
| 229 | }; |
| 230 | |
Sergiu Moga | fd41ebf | 2023-01-04 16:04:11 +0200 | [diff] [blame] | 231 | &usb1 { |
| 232 | num-ports = <3>; |
| 233 | atmel,vbus-gpio = <0 |
| 234 | &pioD 15 GPIO_ACTIVE_HIGH |
| 235 | &pioD 18 GPIO_ACTIVE_HIGH>; |
| 236 | pinctrl-names = "default"; |
| 237 | pinctrl-0 = <&pinctrl_usb_default>; |
| 238 | status = "okay"; |
| 239 | }; |
| 240 | |
| 241 | &usb2 { |
| 242 | status = "okay"; |
| 243 | }; |