Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 1 | /* |
| 2 | * at91-sama5d3_xplained.dts - Device Tree file for the SAMA5D3 Xplained board |
| 3 | * |
| 4 | * Copyright (C) 2014 Atmel, |
| 5 | * 2014 Nicolas Ferre <nicolas.ferre@atmel.com> |
| 6 | * |
| 7 | * Licensed under GPLv2 or later. |
| 8 | */ |
| 9 | /dts-v1/; |
| 10 | #include "sama5d36.dtsi" |
| 11 | |
| 12 | / { |
| 13 | model = "SAMA5D3 Xplained"; |
| 14 | compatible = "atmel,sama5d3-xplained", "atmel,sama5d3", "atmel,sama5"; |
| 15 | |
| 16 | chosen { |
Alexandre Belloni | a08545d | 2015-06-03 14:24:15 +0200 | [diff] [blame] | 17 | stdout-path = "serial0:115200n8"; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | memory { |
| 21 | reg = <0x20000000 0x10000000>; |
| 22 | }; |
| 23 | |
Alexandre Belloni | 334394c | 2014-06-17 15:30:20 +0200 | [diff] [blame] | 24 | clocks { |
| 25 | slow_xtal { |
| 26 | clock-frequency = <32768>; |
| 27 | }; |
Boris BREZILLON | 58a5c3d | 2014-04-22 15:12:36 +0200 | [diff] [blame] | 28 | |
Alexandre Belloni | 334394c | 2014-06-17 15:30:20 +0200 | [diff] [blame] | 29 | main_xtal { |
| 30 | clock-frequency = <12000000>; |
| 31 | }; |
Boris BREZILLON | 58a5c3d | 2014-04-22 15:12:36 +0200 | [diff] [blame] | 32 | }; |
| 33 | |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 34 | ahb { |
| 35 | apb { |
| 36 | mmc0: mmc@f0000000 { |
| 37 | pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_dat4_7 &pinctrl_mmc0_cd>; |
Ben Dooks | 1b53e34 | 2015-04-27 15:19:12 +0200 | [diff] [blame] | 38 | vmmc-supply = <&vcc_mmc0_reg>; |
Ben Dooks | ed8d177 | 2015-04-27 15:19:11 +0200 | [diff] [blame] | 39 | vqmmc-supply = <&vcc_3v3_reg>; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 40 | status = "okay"; |
| 41 | slot@0 { |
| 42 | reg = <0>; |
| 43 | bus-width = <8>; |
| 44 | cd-gpios = <&pioE 0 GPIO_ACTIVE_LOW>; |
| 45 | }; |
| 46 | }; |
| 47 | |
Ben Dooks | 6f4728c5 | 2015-04-27 15:19:10 +0200 | [diff] [blame] | 48 | mmc1: mmc@f8000000 { |
| 49 | vmmc-supply = <&vcc_3v3_reg>; |
| 50 | vqmmc-supply = <&vcc_3v3_reg>; |
| 51 | status = "disabled"; |
| 52 | slot@0 { |
| 53 | reg = <0>; |
| 54 | bus-width = <4>; |
| 55 | cd-gpios = <&pioE 1 GPIO_ACTIVE_LOW>; |
| 56 | }; |
| 57 | }; |
| 58 | |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 59 | spi0: spi@f0004000 { |
Bo Shen | d44db49 | 2014-04-01 15:12:43 +0800 | [diff] [blame] | 60 | cs-gpios = <&pioD 13 0>, <0>, <0>, <&pioD 16 0>; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 61 | status = "okay"; |
| 62 | }; |
| 63 | |
| 64 | can0: can@f000c000 { |
| 65 | status = "okay"; |
| 66 | }; |
| 67 | |
Alexandre Belloni | 23f478c | 2016-06-07 16:16:29 +0200 | [diff] [blame] | 68 | tcb0: timer@f0010000 { |
| 69 | timer0: timer@0 { |
| 70 | compatible = "atmel,tcb-timer"; |
| 71 | reg = <0>; |
| 72 | }; |
| 73 | |
| 74 | timer1: timer@1 { |
| 75 | compatible = "atmel,tcb-timer"; |
| 76 | reg = <1>; |
| 77 | }; |
| 78 | }; |
| 79 | |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 80 | i2c0: i2c@f0014000 { |
Nicolas Ferre | a3b8a7c | 2014-03-27 11:44:11 +0100 | [diff] [blame] | 81 | pinctrl-0 = <&pinctrl_i2c0_pu>; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 82 | status = "okay"; |
| 83 | }; |
| 84 | |
| 85 | i2c1: i2c@f0018000 { |
| 86 | status = "okay"; |
Wenyou Yang | a93f9c8 | 2014-04-21 12:29:07 +0800 | [diff] [blame] | 87 | |
| 88 | pmic: act8865@5b { |
| 89 | compatible = "active-semi,act8865"; |
| 90 | reg = <0x5b>; |
Nicolas Ferre | 19146e7 | 2015-04-17 15:27:19 +0200 | [diff] [blame] | 91 | status = "disabled"; |
Wenyou Yang | a93f9c8 | 2014-04-21 12:29:07 +0800 | [diff] [blame] | 92 | |
| 93 | regulators { |
| 94 | vcc_1v8_reg: DCDC_REG1 { |
| 95 | regulator-name = "VCC_1V8"; |
| 96 | regulator-min-microvolt = <1800000>; |
| 97 | regulator-max-microvolt = <1800000>; |
| 98 | regulator-always-on; |
| 99 | }; |
| 100 | |
| 101 | vcc_1v2_reg: DCDC_REG2 { |
| 102 | regulator-name = "VCC_1V2"; |
| 103 | regulator-min-microvolt = <1200000>; |
| 104 | regulator-max-microvolt = <1200000>; |
| 105 | regulator-always-on; |
| 106 | }; |
| 107 | |
| 108 | vcc_3v3_reg: DCDC_REG3 { |
| 109 | regulator-name = "VCC_3V3"; |
| 110 | regulator-min-microvolt = <3300000>; |
| 111 | regulator-max-microvolt = <3300000>; |
| 112 | regulator-always-on; |
| 113 | }; |
| 114 | |
| 115 | vddfuse_reg: LDO_REG1 { |
| 116 | regulator-name = "FUSE_2V5"; |
| 117 | regulator-min-microvolt = <2500000>; |
| 118 | regulator-max-microvolt = <2500000>; |
| 119 | }; |
| 120 | |
| 121 | vddana_reg: LDO_REG2 { |
| 122 | regulator-name = "VDDANA"; |
| 123 | regulator-min-microvolt = <3300000>; |
| 124 | regulator-max-microvolt = <3300000>; |
| 125 | regulator-always-on; |
| 126 | }; |
| 127 | }; |
| 128 | }; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 129 | }; |
| 130 | |
| 131 | macb0: ethernet@f0028000 { |
| 132 | phy-mode = "rgmii"; |
Nicolas Ferre | 9e65adb | 2015-03-31 11:01:12 +0200 | [diff] [blame] | 133 | #address-cells = <1>; |
| 134 | #size-cells = <0>; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 135 | status = "okay"; |
Nicolas Ferre | 9e65adb | 2015-03-31 11:01:12 +0200 | [diff] [blame] | 136 | |
| 137 | ethernet-phy@7 { |
| 138 | reg = <0x7>; |
| 139 | }; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 140 | }; |
| 141 | |
Nicolas Ferre | 0da40f3 | 2014-04-24 17:34:14 +0200 | [diff] [blame] | 142 | pwm0: pwm@f002c000 { |
| 143 | pinctrl-names = "default"; |
| 144 | pinctrl-0 = <&pinctrl_pwm0_pwmh0_0 &pinctrl_pwm0_pwmh1_0>; |
| 145 | status = "okay"; |
| 146 | }; |
| 147 | |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 148 | usart0: serial@f001c000 { |
| 149 | status = "okay"; |
| 150 | }; |
| 151 | |
| 152 | usart1: serial@f0020000 { |
| 153 | pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>; |
| 154 | status = "okay"; |
| 155 | }; |
| 156 | |
| 157 | uart0: serial@f0024000 { |
| 158 | status = "okay"; |
| 159 | }; |
| 160 | |
| 161 | mmc1: mmc@f8000000 { |
| 162 | pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>; |
| 163 | status = "okay"; |
| 164 | slot@0 { |
| 165 | reg = <0>; |
| 166 | bus-width = <4>; |
| 167 | cd-gpios = <&pioE 1 GPIO_ACTIVE_HIGH>; |
| 168 | }; |
| 169 | }; |
| 170 | |
| 171 | spi1: spi@f8008000 { |
Bo Shen | d44db49 | 2014-04-01 15:12:43 +0800 | [diff] [blame] | 172 | cs-gpios = <&pioC 25 0>; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 173 | status = "okay"; |
| 174 | }; |
| 175 | |
| 176 | adc0: adc@f8018000 { |
Ludovic Desroches | 9cdd31e | 2017-04-10 10:25:16 +0200 | [diff] [blame] | 177 | atmel,adc-vref = <3300>; |
Ludovic Desroches | d3df1ec | 2017-04-10 10:25:17 +0200 | [diff] [blame] | 178 | atmel,adc-channels-used = <0xfe>; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 179 | pinctrl-0 = < |
| 180 | &pinctrl_adc0_adtrg |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 181 | &pinctrl_adc0_ad1 |
| 182 | &pinctrl_adc0_ad2 |
| 183 | &pinctrl_adc0_ad3 |
| 184 | &pinctrl_adc0_ad4 |
| 185 | &pinctrl_adc0_ad5 |
| 186 | &pinctrl_adc0_ad6 |
| 187 | &pinctrl_adc0_ad7 |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 188 | >; |
| 189 | status = "okay"; |
| 190 | }; |
| 191 | |
| 192 | i2c2: i2c@f801c000 { |
| 193 | dmas = <0>, <0>; /* Do not use DMA for i2c2 */ |
Nicolas Ferre | a3b8a7c | 2014-03-27 11:44:11 +0100 | [diff] [blame] | 194 | pinctrl-0 = <&pinctrl_i2c2_pu>; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 195 | status = "okay"; |
| 196 | }; |
| 197 | |
| 198 | macb1: ethernet@f802c000 { |
| 199 | phy-mode = "rmii"; |
Nicolas Ferre | 98b8098 | 2015-03-31 10:56:10 +0200 | [diff] [blame] | 200 | #address-cells = <1>; |
| 201 | #size-cells = <0>; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 202 | status = "okay"; |
Nicolas Ferre | 98b8098 | 2015-03-31 10:56:10 +0200 | [diff] [blame] | 203 | |
| 204 | ethernet-phy@1 { |
| 205 | reg = <0x1>; |
| 206 | }; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 207 | }; |
| 208 | |
| 209 | dbgu: serial@ffffee00 { |
| 210 | status = "okay"; |
| 211 | }; |
| 212 | |
| 213 | pinctrl@fffff200 { |
| 214 | board { |
Nicolas Ferre | a3b8a7c | 2014-03-27 11:44:11 +0100 | [diff] [blame] | 215 | pinctrl_i2c0_pu: i2c0_pu { |
| 216 | atmel,pins = |
| 217 | <AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>, |
| 218 | <AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; |
| 219 | }; |
| 220 | |
| 221 | pinctrl_i2c2_pu: i2c2_pu { |
| 222 | atmel,pins = |
| 223 | <AT91_PIOA 18 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>, |
| 224 | <AT91_PIOA 19 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; |
| 225 | }; |
| 226 | |
Wenyou Yang | 6d39bb0 | 2014-08-13 12:58:21 +0800 | [diff] [blame] | 227 | pinctrl_key_gpio: key_gpio_0 { |
| 228 | atmel,pins = |
| 229 | <AT91_PIOE 29 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; |
| 230 | }; |
| 231 | |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 232 | pinctrl_mmc0_cd: mmc0_cd { |
| 233 | atmel,pins = |
| 234 | <AT91_PIOE 0 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; |
| 235 | }; |
| 236 | |
| 237 | pinctrl_mmc1_cd: mmc1_cd { |
| 238 | atmel,pins = |
| 239 | <AT91_PIOE 1 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; |
| 240 | }; |
| 241 | |
| 242 | pinctrl_usba_vbus: usba_vbus { |
| 243 | atmel,pins = |
| 244 | <AT91_PIOE 9 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PE9, conflicts with A9 */ |
| 245 | }; |
| 246 | }; |
| 247 | }; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 248 | }; |
| 249 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 250 | usb0: gadget@500000 { |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 251 | atmel,vbus-gpio = <&pioE 9 GPIO_ACTIVE_HIGH>; /* PE9, conflicts with A9 */ |
| 252 | pinctrl-names = "default"; |
| 253 | pinctrl-0 = <&pinctrl_usba_vbus>; |
| 254 | status = "okay"; |
| 255 | }; |
| 256 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 257 | usb1: ohci@600000 { |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 258 | num-ports = <3>; |
| 259 | atmel,vbus-gpio = <0 |
| 260 | &pioE 3 GPIO_ACTIVE_LOW |
| 261 | &pioE 4 GPIO_ACTIVE_LOW |
| 262 | >; |
| 263 | status = "okay"; |
| 264 | }; |
| 265 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 266 | usb2: ehci@700000 { |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 267 | status = "okay"; |
| 268 | }; |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 269 | |
| 270 | ebi: ebi@10000000 { |
| 271 | pinctrl-0 = <&pinctrl_ebi_nand_addr>; |
| 272 | pinctrl-names = "default"; |
| 273 | status = "okay"; |
| 274 | |
| 275 | nand_controller: nand-controller { |
| 276 | status = "okay"; |
| 277 | |
| 278 | nand@3 { |
| 279 | reg = <0x3 0x0 0x2>; |
| 280 | atmel,rb = <0>; |
| 281 | nand-bus-width = <8>; |
| 282 | nand-ecc-mode = "hw"; |
| 283 | nand-ecc-strength = <4>; |
| 284 | nand-ecc-step-size = <512>; |
| 285 | nand-on-flash-bbt; |
| 286 | label = "atmel_nand"; |
| 287 | |
| 288 | partitions { |
| 289 | compatible = "fixed-partitions"; |
| 290 | #address-cells = <1>; |
| 291 | #size-cells = <1>; |
| 292 | |
| 293 | at91bootstrap@0 { |
| 294 | label = "at91bootstrap"; |
| 295 | reg = <0x0 0x40000>; |
| 296 | }; |
| 297 | |
| 298 | bootloader@40000 { |
| 299 | label = "bootloader"; |
Tudor Ambarus | 0c9ba7a | 2018-10-02 16:20:37 +0300 | [diff] [blame] | 300 | reg = <0x40000 0xc0000>; |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 301 | }; |
| 302 | |
Tudor Ambarus | 0c9ba7a | 2018-10-02 16:20:37 +0300 | [diff] [blame] | 303 | bootloaderenvred@100000 { |
| 304 | label = "bootloader env redundant"; |
| 305 | reg = <0x100000 0x40000>; |
| 306 | }; |
| 307 | |
| 308 | bootloaderenv@140000 { |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 309 | label = "bootloader env"; |
Tudor Ambarus | 0c9ba7a | 2018-10-02 16:20:37 +0300 | [diff] [blame] | 310 | reg = <0x140000 0x40000>; |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 311 | }; |
| 312 | |
| 313 | dtb@180000 { |
| 314 | label = "device tree"; |
| 315 | reg = <0x180000 0x80000>; |
| 316 | }; |
| 317 | |
| 318 | kernel@200000 { |
| 319 | label = "kernel"; |
| 320 | reg = <0x200000 0x600000>; |
| 321 | }; |
| 322 | |
| 323 | rootfs@800000 { |
| 324 | label = "rootfs"; |
| 325 | reg = <0x800000 0x0f800000>; |
| 326 | }; |
| 327 | }; |
| 328 | }; |
| 329 | }; |
| 330 | }; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 331 | }; |
| 332 | |
Alexandre Belloni | a63f6a6 | 2016-07-13 00:08:19 +0200 | [diff] [blame] | 333 | vcc_mmc0_reg: fixedregulator_mmc0 { |
Ben Dooks | 1b53e34 | 2015-04-27 15:19:12 +0200 | [diff] [blame] | 334 | compatible = "regulator-fixed"; |
| 335 | gpio = <&pioE 2 GPIO_ACTIVE_LOW>; |
| 336 | regulator-name = "mmc0-card-supply"; |
| 337 | regulator-min-microvolt = <3300000>; |
| 338 | regulator-max-microvolt = <3300000>; |
Ludovic Desroches | ae3fc8e | 2016-03-11 11:43:39 +0100 | [diff] [blame] | 339 | regulator-always-on; |
Ben Dooks | 1b53e34 | 2015-04-27 15:19:12 +0200 | [diff] [blame] | 340 | }; |
| 341 | |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 342 | gpio_keys { |
| 343 | compatible = "gpio-keys"; |
| 344 | |
Wenyou Yang | 6d39bb0 | 2014-08-13 12:58:21 +0800 | [diff] [blame] | 345 | pinctrl-names = "default"; |
| 346 | pinctrl-0 = <&pinctrl_key_gpio>; |
| 347 | |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 348 | bp3 { |
| 349 | label = "PB_USER"; |
| 350 | gpios = <&pioE 29 GPIO_ACTIVE_LOW>; |
| 351 | linux,code = <0x104>; |
Sudeep Holla | 67ae8b9 | 2015-10-21 11:10:07 +0100 | [diff] [blame] | 352 | wakeup-source; |
Nicolas Ferre | b7c2b61 | 2014-02-04 15:05:55 +0100 | [diff] [blame] | 353 | }; |
| 354 | }; |
| 355 | |
| 356 | leds { |
| 357 | compatible = "gpio-leds"; |
| 358 | |
| 359 | d2 { |
| 360 | label = "d2"; |
| 361 | gpios = <&pioE 23 GPIO_ACTIVE_LOW>; /* PE23, conflicts with A23, CTS2 */ |
| 362 | linux,default-trigger = "heartbeat"; |
| 363 | }; |
| 364 | |
| 365 | d3 { |
| 366 | label = "d3"; |
| 367 | gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; |
| 368 | }; |
| 369 | }; |
| 370 | }; |