1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Device Tree file for Atmel at91sam9260 Evaluation Kit 4 * 5 * Copyright (C) 2016 Atmel, 6 * 2016 Nicolas Ferre <nicolas.ferre@atmel.com> 7 */ 8/dts-v1/; 9#include "at91sam9260.dtsi" 10 11/ { 12 model = "Atmel at91sam9260ek"; 13 compatible = "atmel,at91sam9260ek", "atmel,at91sam9260", "atmel,at91sam9"; 14 15 chosen { 16 stdout-path = &dbgu; 17 }; 18 19 memory@20000000 { 20 reg = <0x20000000 0x4000000>; 21 }; 22 23 clocks { 24 slow_xtal { 25 clock-frequency = <32768>; 26 }; 27 28 main_xtal { 29 clock-frequency = <18432000>; 30 }; 31 }; 32 33 ahb { 34 apb { 35 tcb0: timer@fffa0000 { 36 timer@0 { 37 compatible = "atmel,tcb-timer"; 38 reg = <0>, <1>; 39 }; 40 41 timer@2 { 42 compatible = "atmel,tcb-timer"; 43 reg = <2>; 44 }; 45 }; 46 47 usb1: gadget@fffa4000 { 48 atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>; 49 status = "okay"; 50 }; 51 52 mmc0: mmc@fffa8000 { 53 pinctrl-0 = < 54 &pinctrl_board_mmc0_slot1 55 &pinctrl_mmc0_clk 56 &pinctrl_mmc0_slot1_cmd_dat0 57 &pinctrl_mmc0_slot1_dat1_3>; 58 pinctrl-names = "default"; 59 status = "okay"; 60 slot@1 { 61 reg = <1>; 62 bus-width = <4>; 63 cd-gpios = <&pioC 9 GPIO_ACTIVE_HIGH>; 64 }; 65 }; 66 67 usart0: serial@fffb0000 { 68 pinctrl-0 = 69 <&pinctrl_usart0 70 &pinctrl_usart0_rts 71 &pinctrl_usart0_cts 72 &pinctrl_usart0_dtr_dsr 73 &pinctrl_usart0_dcd 74 &pinctrl_usart0_ri>; 75 status = "okay"; 76 }; 77 78 usart1: serial@fffb4000 { 79 status = "okay"; 80 }; 81 82 ssc0: ssc@fffbc000 { 83 status = "okay"; 84 pinctrl-0 = <&pinctrl_ssc0_tx>; 85 }; 86 87 macb0: ethernet@fffc4000 { 88 phy-mode = "rmii"; 89 status = "okay"; 90 }; 91 92 spi0: spi@fffc8000 { 93 cs-gpios = <0>, <&pioC 11 0>, <0>, <0>; 94 mtd_dataflash@1 { 95 compatible = "atmel,at45", "atmel,dataflash"; 96 spi-max-frequency = <50000000>; 97 reg = <1>; 98 }; 99 }; 100 101 dbgu: serial@fffff200 { 102 status = "okay"; 103 }; 104 105 pinctrl@fffff400 { 106 board { 107 pinctrl_board_mmc0_slot1: mmc0_slot1-board { 108 atmel,pins = 109 <AT91_PIOC 9 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; 110 }; 111 }; 112 }; 113 114 shdwc@fffffd10 { 115 atmel,wakeup-counter = <10>; 116 atmel,wakeup-rtt-timer; 117 }; 118 119 rtc@fffffd20 { 120 atmel,rtt-rtc-time-reg = <&gpbr 0x0>; 121 status = "okay"; 122 }; 123 124 watchdog@fffffd40 { 125 status = "okay"; 126 }; 127 128 gpbr: syscon@fffffd50 { 129 status = "okay"; 130 }; 131 }; 132 133 usb0: ohci@500000 { 134 num-ports = <2>; 135 status = "okay"; 136 }; 137 138 nand0: nand@40000000 { 139 nand-bus-width = <8>; 140 nand-ecc-mode = "soft"; 141 nand-on-flash-bbt; 142 status = "okay"; 143 }; 144 }; 145 146 gpio_keys { 147 compatible = "gpio-keys"; 148 149 btn3 { 150 label = "Button 3"; 151 gpios = <&pioA 30 GPIO_ACTIVE_LOW>; 152 linux,code = <0x103>; 153 wakeup-source; 154 }; 155 156 btn4 { 157 label = "Button 4"; 158 gpios = <&pioA 31 GPIO_ACTIVE_LOW>; 159 linux,code = <0x104>; 160 wakeup-source; 161 }; 162 }; 163 164 i2c-gpio-0 { 165 status = "okay"; 166 167 24c512@50 { 168 compatible = "atmel,24c512"; 169 reg = <0x50>; 170 }; 171 }; 172 173 leds { 174 compatible = "gpio-leds"; 175 176 ds1 { 177 label = "ds1"; 178 gpios = <&pioA 9 GPIO_ACTIVE_HIGH>; 179 linux,default-trigger = "heartbeat"; 180 }; 181 182 ds5 { 183 label = "ds5"; 184 gpios = <&pioA 6 GPIO_ACTIVE_LOW>; 185 }; 186 }; 187}; 188