1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * at91-sam9x60ek.dts - Device Tree file for Microchip SAM9X60-EK board 4 * 5 * Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries 6 * 7 * Author: Sandeep Sheriker M <sandeepsheriker.mallikarjun@microchip.com> 8 */ 9/dts-v1/; 10#include "sam9x60.dtsi" 11#include <dt-bindings/input/input.h> 12 13/ { 14 model = "Microchip SAM9X60-EK"; 15 compatible = "microchip,sam9x60ek", "microchip,sam9x60", "atmel,at91sam9"; 16 17 aliases { 18 i2c0 = &i2c0; 19 i2c1 = &i2c6; 20 serial1 = &uart5; 21 }; 22 23 chosen { 24 stdout-path = "serial0:115200n8"; 25 }; 26 27 clocks { 28 slow_xtal { 29 clock-frequency = <32768>; 30 }; 31 32 main_xtal { 33 clock-frequency = <24000000>; 34 }; 35 }; 36 37 gpio-keys { 38 compatible = "gpio-keys"; 39 pinctrl-names = "default"; 40 pinctrl-0 = <&pinctrl_key_gpio_default>; 41 42 button-1 { 43 label = "SW1"; 44 gpios = <&pioD 18 GPIO_ACTIVE_LOW>; 45 linux,code = <KEY_PROG1>; 46 wakeup-source; 47 }; 48 }; 49 50 leds { 51 compatible = "gpio-leds"; 52 pinctrl-names = "default"; 53 pinctrl-0 = <&pinctrl_gpio_leds>; 54 status = "okay"; /* Conflict with pwm0. */ 55 56 red { 57 label = "red"; 58 gpios = <&pioB 11 GPIO_ACTIVE_HIGH>; 59 }; 60 61 green { 62 label = "green"; 63 gpios = <&pioB 12 GPIO_ACTIVE_HIGH>; 64 }; 65 66 blue { 67 label = "blue"; 68 gpios = <&pioB 13 GPIO_ACTIVE_HIGH>; 69 linux,default-trigger = "heartbeat"; 70 }; 71 }; 72 73 vdd_1v8: fixed-regulator-vdd_1v8 { 74 compatible = "regulator-fixed"; 75 regulator-name = "VDD_1V8"; 76 regulator-min-microvolt = <1800000>; 77 regulator-max-microvolt = <1800000>; 78 regulator-always-on; 79 }; 80 81 vdd_1v15: fixed-regulator-vdd_1v15 { 82 compatible = "regulator-fixed"; 83 regulator-name = "VDD_1V15"; 84 regulator-min-microvolt = <1150000>; 85 regulator-max-microvolt = <1150000>; 86 regulator-always-on; 87 }; 88 89 vdd1_3v3: fixed-regulator-vdd1_3v3 { 90 compatible = "regulator-fixed"; 91 regulator-name = "VDD1_3V3"; 92 regulator-min-microvolt = <3300000>; 93 regulator-max-microvolt = <3300000>; 94 regulator-always-on; 95 }; 96 97 vdd2_3v3: regulator-fixed-vdd2_3v3 { 98 compatible = "regulator-fixed"; 99 regulator-name = "VDD2_3V3"; 100 regulator-min-microvolt = <3300000>; 101 regulator-max-microvolt = <3300000>; 102 regulator-always-on; 103 }; 104}; 105 106&adc { 107 vddana-supply = <&vdd1_3v3>; 108 vref-supply = <&vdd1_3v3>; 109 pinctrl-names = "default"; 110 pinctrl-0 = <&pinctrl_adc_default &pinctrl_adtrg_default>; 111 status = "okay"; 112}; 113 114&can0 { 115 pinctrl-names = "default"; 116 pinctrl-0 = <&pinctrl_can0_rx_tx>; 117 status = "disabled"; /* Conflict with dbgu. */ 118}; 119 120&can1 { 121 pinctrl-names = "default"; 122 pinctrl-0 = <&pinctrl_can1_rx_tx>; 123 status = "okay"; 124}; 125 126&classd { 127 pinctrl-names = "default"; 128 pinctrl-0 = <&pinctrl_classd_default>; 129 atmel,pwm-type = "diff"; 130 atmel,non-overlap-time = <10>; 131 status = "okay"; 132}; 133 134&dbgu { 135 pinctrl-names = "default"; 136 pinctrl-0 = <&pinctrl_dbgu>; 137 status = "okay"; /* Conflict with can0. */ 138}; 139 140&ebi { 141 pinctrl-names = "default"; 142 pinctrl-0 = <&pinctrl_ebi_addr_nand &pinctrl_ebi_data_0_7>; 143 status = "okay"; 144 145 nand_controller: nand-controller { 146 pinctrl-names = "default"; 147 pinctrl-0 = <&pinctrl_nand_oe_we &pinctrl_nand_cs &pinctrl_nand_rb>; 148 status = "okay"; 149 150 nand@3 { 151 reg = <0x3 0x0 0x800000>; 152 rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>; 153 cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>; 154 nand-bus-width = <8>; 155 nand-ecc-mode = "hw"; 156 nand-ecc-strength = <8>; 157 nand-ecc-step-size = <512>; 158 nand-on-flash-bbt; 159 label = "atmel_nand"; 160 161 partitions { 162 compatible = "fixed-partitions"; 163 #address-cells = <1>; 164 #size-cells = <1>; 165 166 at91bootstrap@0 { 167 label = "at91bootstrap"; 168 reg = <0x0 0x40000>; 169 }; 170 171 uboot@40000 { 172 label = "u-boot"; 173 reg = <0x40000 0xc0000>; 174 }; 175 176 ubootenvred@100000 { 177 label = "U-Boot Env Redundant"; 178 reg = <0x100000 0x40000>; 179 }; 180 181 ubootenv@140000 { 182 label = "U-Boot Env"; 183 reg = <0x140000 0x40000>; 184 }; 185 186 dtb@180000 { 187 label = "device tree"; 188 reg = <0x180000 0x80000>; 189 }; 190 191 kernel@200000 { 192 label = "kernel"; 193 reg = <0x200000 0x600000>; 194 }; 195 196 rootfs@800000 { 197 label = "rootfs"; 198 reg = <0x800000 0x1f800000>; 199 }; 200 }; 201 }; 202 }; 203}; 204 205&flx0 { 206 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>; 207 status = "okay"; 208 209 i2c0: i2c@600 { 210 #address-cells = <1>; 211 #size-cells = <0>; 212 dmas = <0>, <0>; 213 pinctrl-names = "default"; 214 pinctrl-0 = <&pinctrl_flx0_default>; 215 i2c-analog-filter; 216 i2c-digital-filter; 217 i2c-digital-filter-width-ns = <35>; 218 status = "okay"; 219 220 eeprom@53 { 221 compatible = "atmel,24c02"; 222 reg = <0x53>; 223 pagesize = <16>; 224 status = "okay"; 225 }; 226 }; 227}; 228 229&flx4 { 230 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>; 231 status = "disabled"; 232 233 spi4: spi@400 { 234 dmas = <0>, <0>; 235 pinctrl-names = "default"; 236 pinctrl-0 = <&pinctrl_flx4_default>; 237 status = "disabled"; 238 }; 239}; 240 241&flx5 { 242 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>; 243 status = "okay"; 244 245 uart5: serial@200 { 246 pinctrl-names = "default"; 247 pinctrl-0 = <&pinctrl_flx5_default>; 248 status = "okay"; 249 }; 250}; 251 252&flx6 { 253 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>; 254 status = "okay"; 255 256 i2c6: i2c@600 { 257 #address-cells = <1>; 258 #size-cells = <0>; 259 dmas = <0>, <0>; 260 pinctrl-names = "default"; 261 pinctrl-0 = <&pinctrl_flx6_default>; 262 i2c-analog-filter; 263 i2c-digital-filter; 264 i2c-digital-filter-width-ns = <35>; 265 status = "okay"; 266 267 gpio_exp: mcp23008@20 { 268 compatible = "microchip,mcp23008"; 269 reg = <0x20>; 270 }; 271 }; 272}; 273 274&gpbr { 275 status = "okay"; 276}; 277 278&i2s { 279 pinctrl-names = "default"; 280 pinctrl-0 = <&pinctrl_i2s_default>; 281 #sound-dai-cells = <0>; 282 status = "disabled"; /* Conflict with QSPI. */ 283}; 284 285&macb0 { 286 phy-mode = "rmii"; 287 #address-cells = <1>; 288 #size-cells = <0>; 289 pinctrl-names = "default"; 290 pinctrl-0 = <&pinctrl_macb0_rmii>; 291 status = "okay"; 292 293 ethernet-phy@0 { 294 reg = <0x0>; 295 }; 296}; 297 298&pinctrl { 299 adc { 300 pinctrl_adc_default: adc_default { 301 atmel,pins = <AT91_PIOB 15 AT91_PERIPH_A AT91_PINCTRL_NONE>; 302 }; 303 304 pinctrl_adtrg_default: adtrg_default { 305 atmel,pins = <AT91_PIOB 18 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; 306 }; 307 }; 308 309 dbgu { 310 pinctrl_dbgu: dbgu-0 { 311 atmel,pins = <AT91_PIOA 9 AT91_PERIPH_A AT91_PINCTRL_PULL_UP 312 AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_NONE>; 313 }; 314 }; 315 316 i2s { 317 pinctrl_i2s_default: i2s { 318 atmel,pins = 319 <AT91_PIOB 19 AT91_PERIPH_B AT91_PINCTRL_NONE /* I2SCK */ 320 AT91_PIOB 20 AT91_PERIPH_B AT91_PINCTRL_NONE /* I2SWS */ 321 AT91_PIOB 21 AT91_PERIPH_B AT91_PINCTRL_NONE /* I2SDIN */ 322 AT91_PIOB 22 AT91_PERIPH_B AT91_PINCTRL_NONE /* I2SDOUT */ 323 AT91_PIOB 23 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* I2SMCK */ 324 }; 325 }; 326 327 qspi { 328 pinctrl_qspi: qspi { 329 atmel,pins = 330 <AT91_PIOB 19 AT91_PERIPH_A AT91_PINCTRL_SLEWRATE_DIS 331 AT91_PIOB 20 AT91_PERIPH_A AT91_PINCTRL_SLEWRATE_DIS 332 AT91_PIOB 21 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_SLEWRATE_DIS) 333 AT91_PIOB 22 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_SLEWRATE_DIS) 334 AT91_PIOB 23 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_SLEWRATE_DIS) 335 AT91_PIOB 24 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_SLEWRATE_DIS)>; 336 }; 337 }; 338 339 nand { 340 pinctrl_nand_oe_we: nand-oe-we-0 { 341 atmel,pins = 342 <AT91_PIOD 0 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) 343 AT91_PIOD 1 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>; 344 }; 345 346 pinctrl_nand_rb: nand-rb-0 { 347 atmel,pins = 348 <AT91_PIOD 5 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; 349 }; 350 351 pinctrl_nand_cs: nand-cs-0 { 352 atmel,pins = 353 <AT91_PIOD 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; 354 }; 355 }; 356 357 ebi { 358 pinctrl_ebi_data_0_7: ebi-data-lsb-0 { 359 atmel,pins = 360 <AT91_PIOD 6 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) 361 AT91_PIOD 7 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) 362 AT91_PIOD 8 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) 363 AT91_PIOD 9 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) 364 AT91_PIOD 10 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) 365 AT91_PIOD 11 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) 366 AT91_PIOD 12 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) 367 AT91_PIOD 13 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>; 368 }; 369 370 pinctrl_ebi_data_0_15: ebi-data-msb-0 { 371 atmel,pins = 372 <AT91_PIOD 6 AT91_PERIPH_A AT91_PINCTRL_NONE 373 AT91_PIOD 7 AT91_PERIPH_A AT91_PINCTRL_NONE 374 AT91_PIOD 8 AT91_PERIPH_A AT91_PINCTRL_NONE 375 AT91_PIOD 9 AT91_PERIPH_A AT91_PINCTRL_NONE 376 AT91_PIOD 10 AT91_PERIPH_A AT91_PINCTRL_NONE 377 AT91_PIOD 11 AT91_PERIPH_A AT91_PINCTRL_NONE 378 AT91_PIOD 12 AT91_PERIPH_A AT91_PINCTRL_NONE 379 AT91_PIOD 13 AT91_PERIPH_A AT91_PINCTRL_NONE 380 AT91_PIOD 14 AT91_PERIPH_A AT91_PINCTRL_NONE 381 AT91_PIOD 15 AT91_PERIPH_A AT91_PINCTRL_NONE 382 AT91_PIOD 16 AT91_PERIPH_A AT91_PINCTRL_NONE 383 AT91_PIOD 17 AT91_PERIPH_A AT91_PINCTRL_NONE 384 AT91_PIOD 18 AT91_PERIPH_A AT91_PINCTRL_NONE 385 AT91_PIOD 19 AT91_PERIPH_A AT91_PINCTRL_NONE 386 AT91_PIOD 20 AT91_PERIPH_A AT91_PINCTRL_NONE 387 AT91_PIOD 21 AT91_PERIPH_A AT91_PINCTRL_NONE>; 388 }; 389 390 pinctrl_ebi_addr_nand: ebi-addr-0 { 391 atmel,pins = 392 <AT91_PIOD 2 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS) 393 AT91_PIOD 3 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>; 394 }; 395 }; 396 397 flexcom { 398 pinctrl_flx0_default: flx0_twi { 399 atmel,pins = 400 <AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_PULL_UP 401 AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; 402 }; 403 404 pinctrl_flx4_default: flx4_spi { 405 atmel,pins = 406 <AT91_PIOA 11 AT91_PERIPH_A AT91_PINCTRL_NONE 407 AT91_PIOA 12 AT91_PERIPH_A AT91_PINCTRL_NONE 408 AT91_PIOA 13 AT91_PERIPH_A AT91_PINCTRL_NONE 409 AT91_PIOA 14 AT91_PERIPH_A AT91_PINCTRL_NONE>; 410 }; 411 412 pinctrl_flx5_default: flx5_uart { 413 atmel,pins = 414 <AT91_PIOA 7 AT91_PERIPH_C AT91_PINCTRL_NONE 415 AT91_PIOA 8 AT91_PERIPH_B AT91_PINCTRL_NONE 416 AT91_PIOA 21 AT91_PERIPH_B AT91_PINCTRL_NONE 417 AT91_PIOA 22 AT91_PERIPH_B AT91_PINCTRL_NONE>; 418 }; 419 420 pinctrl_flx6_default: flx6_twi { 421 atmel,pins = 422 <AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_PULL_UP 423 AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; 424 }; 425 }; 426 427 classd { 428 pinctrl_classd_default: classd { 429 atmel,pins = 430 <AT91_PIOA 24 AT91_PERIPH_C AT91_PINCTRL_PULL_UP 431 AT91_PIOA 25 AT91_PERIPH_C AT91_PINCTRL_PULL_DOWN 432 AT91_PIOA 26 AT91_PERIPH_C AT91_PINCTRL_PULL_UP 433 AT91_PIOA 27 AT91_PERIPH_C AT91_PINCTRL_PULL_DOWN>; 434 }; 435 }; 436 437 can0 { 438 pinctrl_can0_rx_tx: can0_rx_tx { 439 atmel,pins = 440 <AT91_PIOA 9 AT91_PERIPH_B AT91_PINCTRL_NONE /* CANRX0 */ 441 AT91_PIOA 10 AT91_PERIPH_B AT91_PINCTRL_NONE /* CANTX0 */ 442 AT91_PIOD 20 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_DOWN /* Enable CAN0 mux */ 443 AT91_PIOD 21 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_DOWN>; /* Enable CAN Transceivers */ 444 }; 445 }; 446 447 can1 { 448 pinctrl_can1_rx_tx: can1_rx_tx { 449 atmel,pins = 450 <AT91_PIOA 6 AT91_PERIPH_B AT91_PINCTRL_NONE /* CANRX1 RXD1 */ 451 AT91_PIOA 5 AT91_PERIPH_B AT91_PINCTRL_NONE /* CANTX1 TXD1 */ 452 AT91_PIOD 19 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_DOWN /* Enable CAN1 mux */ 453 AT91_PIOD 21 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_DOWN>; /* Enable CAN Transceivers */ 454 }; 455 }; 456 457 macb0 { 458 pinctrl_macb0_rmii: macb0_rmii-0 { 459 atmel,pins = 460 <AT91_PIOB 0 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB0 periph A */ 461 AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB1 periph A */ 462 AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB2 periph A */ 463 AT91_PIOB 3 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB3 periph A */ 464 AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB4 periph A */ 465 AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB5 periph A */ 466 AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB6 periph A */ 467 AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB7 periph A */ 468 AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB9 periph A */ 469 AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB10 periph A */ 470 }; 471 }; 472 473 pwm0 { 474 pinctrl_pwm0_0: pwm0_0 { 475 atmel,pins = <AT91_PIOB 11 AT91_PERIPH_B AT91_PINCTRL_NONE>; 476 }; 477 478 pinctrl_pwm0_1: pwm0_1 { 479 atmel,pins = <AT91_PIOB 12 AT91_PERIPH_B AT91_PINCTRL_NONE>; 480 }; 481 482 pinctrl_pwm0_2: pwm0_2 { 483 atmel,pins = <AT91_PIOB 13 AT91_PERIPH_B AT91_PINCTRL_NONE>; 484 }; 485 486 pinctrl_pwm0_3: pwm0_3 { 487 atmel,pins = <AT91_PIOB 14 AT91_PERIPH_B AT91_PINCTRL_NONE>; 488 }; 489 }; 490 491 sdmmc0 { 492 pinctrl_sdmmc0_default: sdmmc0 { 493 atmel,pins = 494 <AT91_PIOA 17 AT91_PERIPH_A (AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA17 CK periph A with pullup */ 495 AT91_PIOA 16 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA16 CMD periph A with pullup */ 496 AT91_PIOA 15 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA15 DAT0 periph A */ 497 AT91_PIOA 18 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA18 DAT1 periph A with pullup */ 498 AT91_PIOA 19 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA19 DAT2 periph A with pullup */ 499 AT91_PIOA 20 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)>; /* PA20 DAT3 periph A with pullup */ 500 }; 501 pinctrl_sdmmc0_cd: sdmmc0_cd { 502 atmel,pins = 503 <AT91_PIOA 23 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; 504 }; 505 }; 506 507 sdmmc1 { 508 pinctrl_sdmmc1_default: sdmmc1 { 509 atmel,pins = 510 <AT91_PIOA 13 AT91_PERIPH_B (AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA13 CK periph B */ 511 AT91_PIOA 12 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA12 CMD periph B with pullup */ 512 AT91_PIOA 11 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA11 DAT0 periph B with pullup */ 513 AT91_PIOA 2 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA2 DAT1 periph B with pullup */ 514 AT91_PIOA 3 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA3 DAT2 periph B with pullup */ 515 AT91_PIOA 4 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)>; /* PA4 DAT3 periph B with pullup */ 516 }; 517 }; 518 519 gpio_keys { 520 pinctrl_key_gpio_default: pinctrl_key_gpio { 521 atmel,pins = <AT91_PIOD 18 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; 522 }; 523 }; 524 525 usb0 { 526 pinctrl_usba_vbus: usba_vbus { 527 atmel,pins = <AT91_PIOB 16 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; 528 }; 529 }; 530 531 usb1 { 532 pinctrl_usb_default: usb_default { 533 atmel,pins = <AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_NONE 534 AT91_PIOD 16 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; 535 }; 536 }; 537 538 leds { 539 pinctrl_gpio_leds: gpio_leds { 540 atmel,pins = <AT91_PIOB 11 AT91_PERIPH_GPIO AT91_PINCTRL_NONE 541 AT91_PIOB 12 AT91_PERIPH_GPIO AT91_PINCTRL_NONE 542 AT91_PIOB 13 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; 543 }; 544 }; 545}; /* pinctrl */ 546 547&pwm0 { 548 pinctrl-names = "default"; 549 pinctrl-0 = <&pinctrl_pwm0_0 &pinctrl_pwm0_1 &pinctrl_pwm0_2 &pinctrl_pwm0_3>; 550 status = "disabled"; /* Conflict with leds. */ 551}; 552 553&sdmmc0 { 554 bus-width = <4>; 555 pinctrl-names = "default"; 556 pinctrl-0 = <&pinctrl_sdmmc0_default &pinctrl_sdmmc0_cd>; 557 status = "okay"; 558 cd-gpios = <&pioA 23 GPIO_ACTIVE_LOW>; 559 disable-wp; 560}; 561 562&sdmmc1 { 563 bus-width = <4>; 564 pinctrl-names = "default"; 565 pinctrl-0 = <&pinctrl_sdmmc1_default>; 566 no-1-8-v; 567 non-removable; 568 status = "disabled"; /* Conflict with flx4. */ 569}; 570 571&qspi { 572 pinctrl-names = "default"; 573 pinctrl-0 = <&pinctrl_qspi>; 574 status = "okay"; /* Conflict with i2s. */ 575 576 flash@0 { 577 #address-cells = <1>; 578 #size-cells = <1>; 579 compatible = "jedec,spi-nor"; 580 reg = <0>; 581 spi-max-frequency = <104000000>; 582 spi-cs-setup-ns = <7>; 583 spi-tx-bus-width = <4>; 584 spi-rx-bus-width = <4>; 585 m25p,fast-read; 586 587 at91bootstrap@0 { 588 label = "qspi: at91bootstrap"; 589 reg = <0x0 0x40000>; 590 }; 591 592 bootloader@40000 { 593 label = "qspi: bootloader"; 594 reg = <0x40000 0xc0000>; 595 }; 596 597 bootloaderenvred@100000 { 598 label = "qspi: bootloader env redundant"; 599 reg = <0x100000 0x40000>; 600 }; 601 602 bootloaderenv@140000 { 603 label = "qspi: bootloader env"; 604 reg = <0x140000 0x40000>; 605 }; 606 607 dtb@180000 { 608 label = "qspi: device tree"; 609 reg = <0x180000 0x80000>; 610 }; 611 612 kernel@200000 { 613 label = "qspi: kernel"; 614 reg = <0x200000 0x600000>; 615 }; 616 }; 617}; 618 619&rtt { 620 atmel,rtt-rtc-time-reg = <&gpbr 0x0>; 621 status = "okay"; 622}; 623 624&shutdown_controller { 625 debounce-delay-us = <976>; 626 status = "okay"; 627 628 input@0 { 629 reg = <0>; 630 }; 631}; 632 633&tcb0 { 634 timer0: timer@0 { 635 compatible = "atmel,tcb-timer"; 636 reg = <0>; 637 }; 638 639 timer1: timer@1 { 640 compatible = "atmel,tcb-timer"; 641 reg = <1>; 642 }; 643}; 644 645&usb0 { 646 atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>; 647 pinctrl-names = "default"; 648 pinctrl-0 = <&pinctrl_usba_vbus>; 649 status = "okay"; 650}; 651 652&usb1 { 653 num-ports = <3>; 654 atmel,vbus-gpio = <0 655 &pioD 15 GPIO_ACTIVE_HIGH 656 &pioD 16 GPIO_ACTIVE_HIGH>; 657 pinctrl-names = "default"; 658 pinctrl-0 = <&pinctrl_usb_default>; 659 status = "okay"; 660}; 661 662&usb2 { 663 status = "okay"; 664}; 665 666&watchdog { 667 status = "okay"; 668}; 669 670