Sandeep Sheriker Mallikarjun | 976c2dc | 2019-09-27 13:08:45 +0000 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | /* |
| 3 | * sam9x60ek.dts - Device Tree file for SAM9X60 EK board |
| 4 | * |
| 5 | * Copyright (C) 2018 Microchip Technology Inc. and its subsidiaries |
| 6 | * |
| 7 | * Author: Sandeep Sheriker M <Sandeepsheriker.mallikarjun@microchip.com> |
| 8 | */ |
| 9 | /dts-v1/; |
Eugen Hristev | eecfff0 | 2021-08-27 13:44:12 +0300 | [diff] [blame] | 10 | #include <dt-bindings/mfd/atmel-flexcom.h> |
Sandeep Sheriker Mallikarjun | 976c2dc | 2019-09-27 13:08:45 +0000 | [diff] [blame] | 11 | #include "sam9x60.dtsi" |
| 12 | |
| 13 | / { |
| 14 | model = "Microchip SAM9X60-Ek"; |
| 15 | compatible = "microchip,sam9x60ek", "microchip,sam9x60", "atmel,at91sam9"; |
| 16 | |
| 17 | chosen { |
| 18 | stdout-path = &dbgu; |
Eugen Hristev | eeb172b | 2019-10-09 09:23:41 +0000 | [diff] [blame] | 19 | i2c0 = &flx0; |
Sandeep Sheriker Mallikarjun | 976c2dc | 2019-09-27 13:08:45 +0000 | [diff] [blame] | 20 | }; |
Tudor Ambarus | 6c8b950 | 2019-09-27 13:09:19 +0000 | [diff] [blame] | 21 | |
Claudiu Beznea | 3de0976 | 2020-10-07 18:17:09 +0300 | [diff] [blame] | 22 | clocks { |
| 23 | slow_xtal: slow_xtal { |
| 24 | clock-frequency = <32768>; |
| 25 | }; |
| 26 | |
| 27 | main_xtal: main_xtal { |
| 28 | clock-frequency = <24000000>; |
| 29 | }; |
| 30 | }; |
| 31 | |
Eugen Hristev | e3b47be | 2019-09-30 07:28:59 +0000 | [diff] [blame] | 32 | onewire_tm: onewire { |
Eugen Hristev | 87a31d7 | 2021-06-23 16:13:35 +0300 | [diff] [blame] | 33 | gpios = <&pioD 14 GPIO_ACTIVE_HIGH>; |
Eugen Hristev | e3b47be | 2019-09-30 07:28:59 +0000 | [diff] [blame] | 34 | pinctrl-names = "default"; |
| 35 | pinctrl-0 = <&pinctrl_onewire_tm_default>; |
| 36 | status = "okay"; |
| 37 | |
| 38 | w1_eeprom: w1_eeprom@0 { |
| 39 | compatible = "maxim,ds24b33"; |
| 40 | status = "okay"; |
| 41 | }; |
| 42 | }; |
| 43 | |
Tudor Ambarus | 6c8b950 | 2019-09-27 13:09:19 +0000 | [diff] [blame] | 44 | ahb { |
| 45 | apb { |
| 46 | qspi: spi@f0014000 { |
| 47 | pinctrl-names = "default"; |
| 48 | pinctrl-0 = <&pinctrl_qspi>; |
| 49 | status = "okay"; |
| 50 | |
| 51 | nor_flash: sst26vf064@0 { |
Sergiu Moga | 9e351d7 | 2022-05-13 18:13:39 +0300 | [diff] [blame] | 52 | compatible = "jedec,spi-nor"; |
Tudor Ambarus | 6c8b950 | 2019-09-27 13:09:19 +0000 | [diff] [blame] | 53 | reg = <0>; |
| 54 | spi-max-frequency = <80000000>; |
| 55 | spi-rx-bus-width = <4>; |
| 56 | spi-tx-bus-width = <4>; |
| 57 | }; |
| 58 | }; |
| 59 | |
Eugen Hristev | eeb172b | 2019-10-09 09:23:41 +0000 | [diff] [blame] | 60 | flx0: flexcom@f801c600 { |
Eugen Hristev | eecfff0 | 2021-08-27 13:44:12 +0300 | [diff] [blame] | 61 | atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>; |
Eugen Hristev | eeb172b | 2019-10-09 09:23:41 +0000 | [diff] [blame] | 62 | status = "okay"; |
| 63 | |
| 64 | i2c@600 { |
| 65 | compatible = "atmel,sama5d2-i2c"; |
| 66 | reg = <0x600 0x200>; |
| 67 | pinctrl-names = "default"; |
| 68 | pinctrl-0 = <&pinctrl_flx0>; |
| 69 | #address-cells = <1>; |
| 70 | #size-cells = <0>; |
Claudiu Beznea | 562a864 | 2020-10-07 18:17:12 +0300 | [diff] [blame] | 71 | clocks = <&pmc PMC_TYPE_PERIPHERAL 5>; |
Eugen Hristev | eeb172b | 2019-10-09 09:23:41 +0000 | [diff] [blame] | 72 | status = "okay"; |
| 73 | |
| 74 | eeprom@53 { |
Eugen Hristev | 6ff8a64 | 2022-05-26 17:04:56 +0300 | [diff] [blame] | 75 | compatible = "atmel,24c02"; /* EEPROM is 2Kbits microchip 24aa025e48, an at24c02 with page size of 16 */ |
Eugen Hristev | eeb172b | 2019-10-09 09:23:41 +0000 | [diff] [blame] | 76 | reg = <0x53>; |
| 77 | pagesize = <16>; |
| 78 | }; |
| 79 | }; |
| 80 | }; |
| 81 | |
Tudor Ambarus | 6c8b950 | 2019-09-27 13:09:19 +0000 | [diff] [blame] | 82 | pinctrl { |
Balamanikandan Gunasundar | 557d917 | 2022-10-25 16:21:08 +0530 | [diff] [blame] | 83 | nand { |
| 84 | pinctrl_nand_oe_we: nand-oe-we-0 { |
| 85 | atmel,pins = |
| 86 | <AT91_PIOD 0 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) |
| 87 | AT91_PIOD 1 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>; |
| 88 | }; |
| 89 | |
| 90 | pinctrl_nand_rb: nand-rb-0 { |
| 91 | atmel,pins = |
| 92 | <AT91_PIOD 5 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; |
| 93 | }; |
| 94 | |
| 95 | pinctrl_nand_cs: nand-cs-0 { |
| 96 | atmel,pins = |
| 97 | <AT91_PIOD 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; |
| 98 | }; |
| 99 | }; |
| 100 | |
| 101 | ebi { |
| 102 | pinctrl_ebi_data_0_7: ebi-data-lsb-0 { |
| 103 | atmel,pins = |
| 104 | <AT91_PIOD 6 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) |
| 105 | AT91_PIOD 7 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) |
| 106 | AT91_PIOD 8 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) |
| 107 | AT91_PIOD 9 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) |
| 108 | AT91_PIOD 10 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) |
| 109 | AT91_PIOD 11 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) |
| 110 | AT91_PIOD 12 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) |
| 111 | AT91_PIOD 13 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>; |
| 112 | }; |
| 113 | |
| 114 | pinctrl_ebi_addr_nand: ebi-addr-0 { |
| 115 | atmel,pins = |
| 116 | <AT91_PIOD 2 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) |
| 117 | AT91_PIOD 3 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>; |
| 118 | }; |
| 119 | }; |
| 120 | |
Dario Binacchi | b842635 | 2022-09-20 10:32:47 +0200 | [diff] [blame] | 121 | pinctrl_qspi: qspi { |
| 122 | atmel,pins = |
| 123 | <AT91_PIOB 19 AT91_PERIPH_A AT91_PINCTRL_NONE |
| 124 | AT91_PIOB 20 AT91_PERIPH_A AT91_PINCTRL_NONE |
| 125 | AT91_PIOB 21 AT91_PERIPH_A AT91_PINCTRL_PULL_UP |
| 126 | AT91_PIOB 22 AT91_PERIPH_A AT91_PINCTRL_PULL_UP |
| 127 | AT91_PIOB 23 AT91_PERIPH_A AT91_PINCTRL_PULL_UP |
| 128 | AT91_PIOB 24 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; |
| 129 | }; |
Tudor Ambarus | 6c8b950 | 2019-09-27 13:09:19 +0000 | [diff] [blame] | 130 | |
Dario Binacchi | b842635 | 2022-09-20 10:32:47 +0200 | [diff] [blame] | 131 | pinctrl_flx0: flx0_default { |
| 132 | atmel,pins = |
| 133 | <AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_NONE |
| 134 | AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_NONE>; |
| 135 | }; |
Eugen Hristev | eeb172b | 2019-10-09 09:23:41 +0000 | [diff] [blame] | 136 | |
Dario Binacchi | b842635 | 2022-09-20 10:32:47 +0200 | [diff] [blame] | 137 | pinctrl_onewire_tm_default: onewire_tm_default { |
| 138 | atmel,pins = |
| 139 | <AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; |
| 140 | }; |
Eugen Hristev | e3b47be | 2019-09-30 07:28:59 +0000 | [diff] [blame] | 141 | |
Sergiu Moga | 534b124 | 2023-01-04 16:04:12 +0200 | [diff] [blame] | 142 | usb1 { |
| 143 | pinctrl_usb_default: usb_default { |
| 144 | atmel,pins = <AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_NONE |
| 145 | AT91_PIOD 16 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; |
| 146 | }; |
| 147 | }; |
| 148 | |
Tudor Ambarus | 6c8b950 | 2019-09-27 13:09:19 +0000 | [diff] [blame] | 149 | }; |
| 150 | }; |
| 151 | }; |
Sandeep Sheriker Mallikarjun | 976c2dc | 2019-09-27 13:08:45 +0000 | [diff] [blame] | 152 | }; |
Nicolas Ferre | d7d06bf | 2019-09-27 13:08:48 +0000 | [diff] [blame] | 153 | |
Balamanikandan Gunasundar | 557d917 | 2022-10-25 16:21:08 +0530 | [diff] [blame] | 154 | &ebi { |
| 155 | pinctrl-names = "default"; |
| 156 | pinctrl-0 = <&pinctrl_ebi_addr_nand &pinctrl_ebi_data_0_7>; |
| 157 | status = "okay"; |
| 158 | |
| 159 | nand_controller: nand-controller { |
| 160 | pinctrl-names = "default"; |
| 161 | pinctrl-0 = <&pinctrl_nand_oe_we &pinctrl_nand_cs &pinctrl_nand_rb>; |
| 162 | status = "okay"; |
| 163 | |
| 164 | nand@3 { |
| 165 | reg = <0x3 0x0 0x800000>; |
| 166 | rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>; |
| 167 | cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>; |
| 168 | nand-bus-width = <8>; |
| 169 | nand-ecc-mode = "hw"; |
| 170 | nand-ecc-strength = <8>; |
| 171 | nand-ecc-step-size = <512>; |
| 172 | nand-on-flash-bbt; |
| 173 | label = "atmel_nand"; |
| 174 | |
| 175 | partitions { |
| 176 | compatible = "fixed-partitions"; |
| 177 | #address-cells = <1>; |
| 178 | #size-cells = <1>; |
| 179 | |
| 180 | at91bootstrap@0 { |
| 181 | label = "at91bootstrap"; |
| 182 | reg = <0x0 0x40000>; |
| 183 | }; |
| 184 | |
| 185 | uboot@40000 { |
| 186 | label = "u-boot"; |
| 187 | reg = <0x40000 0xc0000>; |
| 188 | }; |
| 189 | |
| 190 | ubootenvred@100000 { |
| 191 | label = "U-Boot Env Redundant"; |
| 192 | reg = <0x100000 0x40000>; |
| 193 | }; |
| 194 | |
| 195 | ubootenv@140000 { |
| 196 | label = "U-Boot Env"; |
| 197 | reg = <0x140000 0x40000>; |
| 198 | }; |
| 199 | |
| 200 | dtb@180000 { |
| 201 | label = "device tree"; |
| 202 | reg = <0x180000 0x80000>; |
| 203 | }; |
| 204 | |
| 205 | kernel@200000 { |
| 206 | label = "kernel"; |
| 207 | reg = <0x200000 0x600000>; |
| 208 | }; |
| 209 | |
| 210 | rootfs@800000 { |
| 211 | label = "rootfs"; |
| 212 | reg = <0x800000 0x1f800000>; |
| 213 | }; |
| 214 | }; |
| 215 | }; |
| 216 | }; |
| 217 | }; |
| 218 | |
Nicolas Ferre | d7d06bf | 2019-09-27 13:08:48 +0000 | [diff] [blame] | 219 | &macb0 { |
| 220 | phy-mode = "rmii"; |
| 221 | status = "okay"; |
| 222 | }; |
Sergiu Moga | 534b124 | 2023-01-04 16:04:12 +0200 | [diff] [blame] | 223 | |
| 224 | &usb1 { |
| 225 | num-ports = <3>; |
| 226 | atmel,vbus-gpio = <0 |
| 227 | &pioD 15 GPIO_ACTIVE_HIGH |
| 228 | &pioD 16 GPIO_ACTIVE_HIGH>; |
| 229 | pinctrl-names = "default"; |
| 230 | pinctrl-0 = <&pinctrl_usb_default>; |
| 231 | status = "okay"; |
| 232 | }; |
| 233 | |
| 234 | &usb2 { |
| 235 | status = "okay"; |
| 236 | }; |