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