Jean-Jacques Hiblot | 109364a | 2014-03-03 11:05:59 +0100 | [diff] [blame] | 1 | /* |
| 2 | * at91sam9261ek.dts - Device Tree file for Atmel at91sam9261 reference board |
| 3 | * |
| 4 | * Copyright (C) 2013 Jean-Jacques Hiblot <jjhiblot@traphandler.com> |
| 5 | * |
| 6 | * Licensed under GPLv2 only. |
| 7 | */ |
| 8 | /dts-v1/; |
| 9 | #include "at91sam9261.dtsi" |
| 10 | |
| 11 | / { |
| 12 | model = "Atmel at91sam9261ek"; |
| 13 | compatible = "atmel,at91sam9261ek", "atmel,at91sam9261", "atmel,at91sam9"; |
| 14 | |
| 15 | chosen { |
Alexandre Belloni | a5a51dd | 2015-06-03 14:24:07 +0200 | [diff] [blame] | 16 | bootargs = "rootfstype=ubifs ubi.mtd=5 root=ubi0:rootfs rw"; |
| 17 | stdout-path = "serial0:115200n8"; |
Jean-Jacques Hiblot | 109364a | 2014-03-03 11:05:59 +0100 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | memory { |
| 21 | reg = <0x20000000 0x4000000>; |
| 22 | }; |
| 23 | |
Jean-Jacques Hiblot | 109364a | 2014-03-03 11:05:59 +0100 | [diff] [blame] | 24 | clocks { |
| 25 | #address-cells = <1>; |
| 26 | #size-cells = <1>; |
| 27 | ranges; |
| 28 | |
| 29 | main_clock: clock@0 { |
| 30 | compatible = "atmel,osc", "fixed-clock"; |
| 31 | clock-frequency = <18432000>; |
| 32 | }; |
Alexandre Belloni | 73b173e | 2014-06-17 15:30:18 +0200 | [diff] [blame] | 33 | |
| 34 | slow_xtal { |
| 35 | clock-frequency = <32768>; |
| 36 | }; |
| 37 | |
| 38 | main_xtal { |
| 39 | clock-frequency = <18432000>; |
| 40 | }; |
Jean-Jacques Hiblot | 109364a | 2014-03-03 11:05:59 +0100 | [diff] [blame] | 41 | }; |
| 42 | |
| 43 | ahb { |
| 44 | usb0: ohci@00500000 { |
| 45 | status = "okay"; |
| 46 | }; |
| 47 | |
| 48 | fb0: fb@0x00600000 { |
| 49 | display = <&display0>; |
| 50 | atmel,power-control-gpio = <&pioA 12 GPIO_ACTIVE_LOW>; |
| 51 | status = "okay"; |
| 52 | |
| 53 | display0: display { |
| 54 | bits-per-pixel = <16>; |
| 55 | atmel,lcdcon-backlight; |
| 56 | atmel,dmacon = <0x1>; |
| 57 | atmel,lcdcon2 = <0x80008002>; |
| 58 | atmel,guard-time = <1>; |
| 59 | atmel,lcd-wiring-mode = "BRG"; |
| 60 | |
| 61 | display-timings { |
| 62 | native-mode = <&timing0>; |
| 63 | timing0: timing0 { |
| 64 | clock-frequency = <4965000>; |
| 65 | hactive = <240>; |
| 66 | vactive = <320>; |
| 67 | hback-porch = <1>; |
| 68 | hfront-porch = <33>; |
| 69 | vback-porch = <1>; |
| 70 | vfront-porch = <0>; |
| 71 | hsync-len = <5>; |
| 72 | vsync-len = <1>; |
| 73 | hsync-active = <1>; |
| 74 | vsync-active = <1>; |
| 75 | }; |
| 76 | }; |
| 77 | }; |
| 78 | }; |
| 79 | |
| 80 | nand0: nand@40000000 { |
| 81 | nand-bus-width = <8>; |
| 82 | nand-ecc-mode = "soft"; |
| 83 | nand-on-flash-bbt; |
| 84 | status = "okay"; |
| 85 | |
| 86 | at91bootstrap@0 { |
| 87 | label = "at91bootstrap"; |
| 88 | reg = <0x0 0x40000>; |
| 89 | }; |
| 90 | |
| 91 | bootloader@40000 { |
| 92 | label = "bootloader"; |
| 93 | reg = <0x40000 0x80000>; |
| 94 | }; |
| 95 | |
| 96 | bootloaderenv@c0000 { |
| 97 | label = "bootloader env"; |
| 98 | reg = <0xc0000 0xc0000>; |
| 99 | }; |
| 100 | |
| 101 | dtb@180000 { |
| 102 | label = "device tree"; |
| 103 | reg = <0x180000 0x80000>; |
| 104 | }; |
| 105 | |
| 106 | kernel@200000 { |
| 107 | label = "kernel"; |
| 108 | reg = <0x200000 0x600000>; |
| 109 | }; |
| 110 | |
| 111 | rootfs@800000 { |
| 112 | label = "rootfs"; |
| 113 | reg = <0x800000 0x0f800000>; |
| 114 | }; |
| 115 | }; |
| 116 | |
| 117 | apb { |
| 118 | usb1: gadget@fffa4000 { |
| 119 | atmel,vbus-gpio = <&pioB 29 GPIO_ACTIVE_HIGH>; |
| 120 | status = "okay"; |
| 121 | }; |
| 122 | |
| 123 | spi0: spi@fffc8000 { |
| 124 | cs-gpios = <&pioA 3 0>, <0>, <&pioA 28 0>, <0>; |
| 125 | status = "okay"; |
| 126 | |
| 127 | mtd_dataflash@0 { |
| 128 | compatible = "atmel,at45", "atmel,dataflash"; |
| 129 | reg = <0>; |
| 130 | spi-max-frequency = <15000000>; |
| 131 | }; |
| 132 | |
| 133 | tsc2046@0 { |
| 134 | reg = <2>; |
| 135 | compatible = "ti,ads7843"; |
| 136 | interrupts-extended = <&pioC 2 IRQ_TYPE_EDGE_BOTH>; |
| 137 | spi-max-frequency = <3000000>; |
| 138 | pendown-gpio = <&pioC 2 GPIO_ACTIVE_HIGH>; |
| 139 | |
| 140 | ti,x-min = /bits/ 16 <150>; |
| 141 | ti,x-max = /bits/ 16 <3830>; |
| 142 | ti,y-min = /bits/ 16 <190>; |
| 143 | ti,y-max = /bits/ 16 <3830>; |
| 144 | ti,vref-delay-usecs = /bits/ 16 <450>; |
| 145 | ti,x-plate-ohms = /bits/ 16 <450>; |
| 146 | ti,y-plate-ohms = /bits/ 16 <250>; |
| 147 | ti,pressure-max = /bits/ 16 <15000>; |
| 148 | ti,debounce-rep = /bits/ 16 <0>; |
| 149 | ti,debounce-tol = /bits/ 16 <65535>; |
| 150 | ti,debounce-max = /bits/ 16 <1>; |
| 151 | |
| 152 | linux,wakeup; |
| 153 | }; |
| 154 | }; |
| 155 | |
| 156 | dbgu: serial@fffff200 { |
| 157 | status = "okay"; |
| 158 | }; |
| 159 | |
| 160 | watchdog@fffffd40 { |
| 161 | status = "okay"; |
| 162 | }; |
| 163 | |
| 164 | }; |
| 165 | }; |
| 166 | |
| 167 | leds { |
| 168 | compatible = "gpio-leds"; |
| 169 | |
| 170 | ds8 { |
| 171 | label = "ds8"; |
| 172 | gpios = <&pioA 13 GPIO_ACTIVE_LOW>; |
| 173 | linux,default-trigger = "none"; |
| 174 | }; |
| 175 | |
| 176 | ds7 { |
| 177 | label = "ds7"; |
| 178 | gpios = <&pioA 14 GPIO_ACTIVE_LOW>; |
| 179 | linux,default-trigger = "nand-disk"; |
| 180 | }; |
| 181 | |
| 182 | ds1 { |
| 183 | label = "ds1"; |
| 184 | gpios = <&pioA 23 GPIO_ACTIVE_LOW>; |
| 185 | linux,default-trigger = "heartbeat"; |
| 186 | }; |
| 187 | }; |
| 188 | |
| 189 | gpio_keys { |
| 190 | compatible = "gpio-keys"; |
| 191 | |
| 192 | button_0 { |
| 193 | label = "button_0"; |
| 194 | gpios = <&pioA 27 GPIO_ACTIVE_LOW>; |
| 195 | linux,code = <256>; |
| 196 | gpio-key,wakeup; |
| 197 | }; |
| 198 | |
| 199 | button_1 { |
| 200 | label = "button_1"; |
| 201 | gpios = <&pioA 26 GPIO_ACTIVE_LOW>; |
| 202 | linux,code = <257>; |
| 203 | gpio-key,wakeup; |
| 204 | }; |
| 205 | |
| 206 | button_2 { |
| 207 | label = "button_2"; |
| 208 | gpios = <&pioA 25 GPIO_ACTIVE_LOW>; |
| 209 | linux,code = <258>; |
| 210 | gpio-key,wakeup; |
| 211 | }; |
| 212 | |
| 213 | button_3 { |
| 214 | label = "button_3"; |
| 215 | gpios = <&pioA 24 GPIO_ACTIVE_LOW>; |
| 216 | linux,code = <259>; |
| 217 | gpio-key,wakeup; |
| 218 | }; |
| 219 | }; |
| 220 | }; |