1270866Simp/* 2270866Simp * at91sam9261ek.dts - Device Tree file for Atmel at91sam9261 reference board 3270866Simp * 4270866Simp * Copyright (C) 2013 Jean-Jacques Hiblot <jjhiblot@traphandler.com> 5270866Simp * 6270866Simp * Licensed under GPLv2 only. 7270866Simp */ 8270866Simp/dts-v1/; 9270866Simp#include "at91sam9261.dtsi" 10270866Simp 11270866Simp/ { 12270866Simp model = "Atmel at91sam9261ek"; 13270866Simp compatible = "atmel,at91sam9261ek", "atmel,at91sam9261", "atmel,at91sam9"; 14270866Simp 15270866Simp chosen { 16270866Simp bootargs = "console=ttyS0,115200 rootfstype=ubifs ubi.mtd=5 root=ubi0:rootfs rw"; 17270866Simp }; 18270866Simp 19270866Simp memory { 20270866Simp reg = <0x20000000 0x4000000>; 21270866Simp }; 22270866Simp 23270866Simp clocks { 24270866Simp #address-cells = <1>; 25270866Simp #size-cells = <1>; 26270866Simp ranges; 27270866Simp 28270866Simp main_clock: clock@0 { 29270866Simp compatible = "atmel,osc", "fixed-clock"; 30270866Simp clock-frequency = <18432000>; 31270866Simp }; 32270866Simp 33270866Simp slow_xtal { 34270866Simp clock-frequency = <32768>; 35270866Simp }; 36270866Simp 37270866Simp main_xtal { 38270866Simp clock-frequency = <18432000>; 39270866Simp }; 40270866Simp }; 41270866Simp 42270866Simp ahb { 43270866Simp usb0: ohci@00500000 { 44270866Simp status = "okay"; 45270866Simp }; 46270866Simp 47270866Simp fb0: fb@0x00600000 { 48270866Simp display = <&display0>; 49270866Simp atmel,power-control-gpio = <&pioA 12 GPIO_ACTIVE_LOW>; 50270866Simp status = "okay"; 51270866Simp 52270866Simp display0: display { 53270866Simp bits-per-pixel = <16>; 54270866Simp atmel,lcdcon-backlight; 55270866Simp atmel,dmacon = <0x1>; 56270866Simp atmel,lcdcon2 = <0x80008002>; 57270866Simp atmel,guard-time = <1>; 58270866Simp atmel,lcd-wiring-mode = "BRG"; 59270866Simp 60270866Simp display-timings { 61270866Simp native-mode = <&timing0>; 62270866Simp timing0: timing0 { 63270866Simp clock-frequency = <4965000>; 64270866Simp hactive = <240>; 65270866Simp vactive = <320>; 66270866Simp hback-porch = <1>; 67270866Simp hfront-porch = <33>; 68270866Simp vback-porch = <1>; 69270866Simp vfront-porch = <0>; 70270866Simp hsync-len = <5>; 71270866Simp vsync-len = <1>; 72270866Simp hsync-active = <1>; 73270866Simp vsync-active = <1>; 74270866Simp }; 75270866Simp }; 76270866Simp }; 77270866Simp }; 78270866Simp 79270866Simp nand0: nand@40000000 { 80270866Simp nand-bus-width = <8>; 81270866Simp nand-ecc-mode = "soft"; 82270866Simp nand-on-flash-bbt; 83270866Simp status = "okay"; 84270866Simp 85270866Simp at91bootstrap@0 { 86270866Simp label = "at91bootstrap"; 87270866Simp reg = <0x0 0x40000>; 88270866Simp }; 89270866Simp 90270866Simp bootloader@40000 { 91270866Simp label = "bootloader"; 92270866Simp reg = <0x40000 0x80000>; 93270866Simp }; 94270866Simp 95270866Simp bootloaderenv@c0000 { 96270866Simp label = "bootloader env"; 97270866Simp reg = <0xc0000 0xc0000>; 98270866Simp }; 99270866Simp 100270866Simp dtb@180000 { 101270866Simp label = "device tree"; 102270866Simp reg = <0x180000 0x80000>; 103270866Simp }; 104270866Simp 105270866Simp kernel@200000 { 106270866Simp label = "kernel"; 107270866Simp reg = <0x200000 0x600000>; 108270866Simp }; 109270866Simp 110270866Simp rootfs@800000 { 111270866Simp label = "rootfs"; 112270866Simp reg = <0x800000 0x0f800000>; 113270866Simp }; 114270866Simp }; 115270866Simp 116270866Simp apb { 117270866Simp usb1: gadget@fffa4000 { 118270866Simp atmel,vbus-gpio = <&pioB 29 GPIO_ACTIVE_HIGH>; 119270866Simp status = "okay"; 120270866Simp }; 121270866Simp 122270866Simp spi0: spi@fffc8000 { 123270866Simp cs-gpios = <&pioA 3 0>, <0>, <&pioA 28 0>, <0>; 124270866Simp status = "okay"; 125270866Simp 126270866Simp mtd_dataflash@0 { 127270866Simp compatible = "atmel,at45", "atmel,dataflash"; 128270866Simp reg = <0>; 129270866Simp spi-max-frequency = <15000000>; 130270866Simp }; 131270866Simp 132270866Simp tsc2046@0 { 133270866Simp reg = <2>; 134270866Simp compatible = "ti,ads7843"; 135270866Simp interrupts-extended = <&pioC 2 IRQ_TYPE_EDGE_BOTH>; 136270866Simp spi-max-frequency = <3000000>; 137270866Simp pendown-gpio = <&pioC 2 GPIO_ACTIVE_HIGH>; 138270866Simp 139270866Simp ti,x-min = /bits/ 16 <150>; 140270866Simp ti,x-max = /bits/ 16 <3830>; 141270866Simp ti,y-min = /bits/ 16 <190>; 142270866Simp ti,y-max = /bits/ 16 <3830>; 143270866Simp ti,vref-delay-usecs = /bits/ 16 <450>; 144270866Simp ti,x-plate-ohms = /bits/ 16 <450>; 145270866Simp ti,y-plate-ohms = /bits/ 16 <250>; 146270866Simp ti,pressure-max = /bits/ 16 <15000>; 147270866Simp ti,debounce-rep = /bits/ 16 <0>; 148270866Simp ti,debounce-tol = /bits/ 16 <65535>; 149270866Simp ti,debounce-max = /bits/ 16 <1>; 150270866Simp 151270866Simp linux,wakeup; 152270866Simp }; 153270866Simp }; 154270866Simp 155270866Simp dbgu: serial@fffff200 { 156270866Simp status = "okay"; 157270866Simp }; 158270866Simp 159270866Simp watchdog@fffffd40 { 160270866Simp status = "okay"; 161270866Simp }; 162270866Simp 163270866Simp }; 164270866Simp }; 165270866Simp 166270866Simp leds { 167270866Simp compatible = "gpio-leds"; 168270866Simp 169270866Simp ds8 { 170270866Simp label = "ds8"; 171270866Simp gpios = <&pioA 13 GPIO_ACTIVE_LOW>; 172270866Simp linux,default-trigger = "none"; 173270866Simp }; 174270866Simp 175270866Simp ds7 { 176270866Simp label = "ds7"; 177270866Simp gpios = <&pioA 14 GPIO_ACTIVE_LOW>; 178270866Simp linux,default-trigger = "nand-disk"; 179270866Simp }; 180270866Simp 181270866Simp ds1 { 182270866Simp label = "ds1"; 183270866Simp gpios = <&pioA 23 GPIO_ACTIVE_LOW>; 184270866Simp linux,default-trigger = "heartbeat"; 185270866Simp }; 186270866Simp }; 187270866Simp 188270866Simp gpio_keys { 189270866Simp compatible = "gpio-keys"; 190270866Simp 191270866Simp button_0 { 192270866Simp label = "button_0"; 193270866Simp gpios = <&pioA 27 GPIO_ACTIVE_LOW>; 194270866Simp linux,code = <256>; 195270866Simp gpio-key,wakeup; 196270866Simp }; 197270866Simp 198270866Simp button_1 { 199270866Simp label = "button_1"; 200270866Simp gpios = <&pioA 26 GPIO_ACTIVE_LOW>; 201270866Simp linux,code = <257>; 202270866Simp gpio-key,wakeup; 203270866Simp }; 204270866Simp 205270866Simp button_2 { 206270866Simp label = "button_2"; 207270866Simp gpios = <&pioA 25 GPIO_ACTIVE_LOW>; 208270866Simp linux,code = <258>; 209270866Simp gpio-key,wakeup; 210270866Simp }; 211270866Simp 212270866Simp button_3 { 213270866Simp label = "button_3"; 214270866Simp gpios = <&pioA 24 GPIO_ACTIVE_LOW>; 215270866Simp linux,code = <259>; 216270866Simp gpio-key,wakeup; 217270866Simp }; 218270866Simp }; 219270866Simp}; 220