0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * at91sam9261ek.dts - Device Tree file for Atmel at91sam9261 reference board
0004 *
0005 * Copyright (C) 2013 Jean-Jacques Hiblot <jjhiblot@traphandler.com>
0006 */
0007 /dts-v1/;
0008 #include "at91sam9261.dtsi"
0009
0010 / {
0011 model = "Atmel at91sam9261ek";
0012 compatible = "atmel,at91sam9261ek", "atmel,at91sam9261", "atmel,at91sam9";
0013
0014 chosen {
0015 bootargs = "rootfstype=ubifs ubi.mtd=5 root=ubi0:rootfs rw";
0016 stdout-path = "serial0:115200n8";
0017 };
0018
0019 memory@20000000 {
0020 reg = <0x20000000 0x4000000>;
0021 };
0022
0023 clocks {
0024 slow_xtal {
0025 clock-frequency = <32768>;
0026 };
0027
0028 main_xtal {
0029 clock-frequency = <18432000>;
0030 };
0031 };
0032
0033 ahb {
0034 usb0: ohci@500000 {
0035 status = "okay";
0036 };
0037
0038 fb0: fb@600000 {
0039 display = <&display0>;
0040 atmel,power-control-gpio = <&pioA 12 GPIO_ACTIVE_LOW>;
0041 status = "okay";
0042
0043 display0: panel {
0044 bits-per-pixel = <16>;
0045 atmel,lcdcon-backlight;
0046 atmel,dmacon = <0x1>;
0047 atmel,lcdcon2 = <0x80008002>;
0048 atmel,guard-time = <1>;
0049 atmel,lcd-wiring-mode = "BRG";
0050
0051 display-timings {
0052 native-mode = <&timing0>;
0053 timing0: timing0 {
0054 clock-frequency = <4965000>;
0055 hactive = <240>;
0056 vactive = <320>;
0057 hback-porch = <1>;
0058 hfront-porch = <33>;
0059 vback-porch = <1>;
0060 vfront-porch = <0>;
0061 hsync-len = <5>;
0062 vsync-len = <1>;
0063 hsync-active = <1>;
0064 vsync-active = <1>;
0065 };
0066 };
0067 };
0068 };
0069
0070 ebi: ebi@10000000 {
0071 status = "okay";
0072
0073 nand_controller: nand-controller {
0074 status = "okay";
0075 pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
0076 pinctrl-names = "default";
0077
0078 nand@3 {
0079 reg = <0x3 0x0 0x800000>;
0080 rb-gpios = <&pioC 15 GPIO_ACTIVE_HIGH>;
0081 cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
0082 nand-bus-width = <8>;
0083 nand-ecc-mode = "soft";
0084 nand-on-flash-bbt;
0085 label = "atmel_nand";
0086
0087 partitions {
0088 compatible = "fixed-partitions";
0089 #address-cells = <1>;
0090 #size-cells = <1>;
0091
0092 at91bootstrap@0 {
0093 label = "at91bootstrap";
0094 reg = <0x0 0x40000>;
0095 };
0096
0097 bootloader@40000 {
0098 label = "bootloader";
0099 reg = <0x40000 0x80000>;
0100 };
0101
0102 bootloaderenv@c0000 {
0103 label = "bootloader env";
0104 reg = <0xc0000 0xc0000>;
0105 };
0106
0107 dtb@180000 {
0108 label = "device tree";
0109 reg = <0x180000 0x80000>;
0110 };
0111
0112 kernel@200000 {
0113 label = "kernel";
0114 reg = <0x200000 0x600000>;
0115 };
0116
0117 rootfs@800000 {
0118 label = "rootfs";
0119 reg = <0x800000 0x0f800000>;
0120 };
0121 };
0122 };
0123 };
0124 };
0125
0126 apb {
0127 tcb0: timer@fffa0000 {
0128 timer0: timer@0 {
0129 compatible = "atmel,tcb-timer";
0130 reg = <0>, <1>;
0131 };
0132
0133 timer1: timer@2 {
0134 compatible = "atmel,tcb-timer";
0135 reg = <2>;
0136 };
0137 };
0138
0139 usb1: gadget@fffa4000 {
0140 atmel,vbus-gpio = <&pioB 29 GPIO_ACTIVE_HIGH>;
0141 status = "okay";
0142 };
0143
0144 spi0: spi@fffc8000 {
0145 cs-gpios = <&pioA 3 0>, <0>, <&pioA 28 0>, <0>;
0146 status = "okay";
0147
0148 flash@0 {
0149 compatible = "atmel,at45", "atmel,dataflash";
0150 reg = <0>;
0151 spi-max-frequency = <15000000>;
0152 };
0153
0154 tsc2046@2 {
0155 reg = <2>;
0156 compatible = "ti,ads7843";
0157 interrupts-extended = <&pioC 2 IRQ_TYPE_EDGE_BOTH>;
0158 spi-max-frequency = <3000000>;
0159 pendown-gpio = <&pioC 2 GPIO_ACTIVE_HIGH>;
0160
0161 ti,x-min = /bits/ 16 <150>;
0162 ti,x-max = /bits/ 16 <3830>;
0163 ti,y-min = /bits/ 16 <190>;
0164 ti,y-max = /bits/ 16 <3830>;
0165 ti,vref-delay-usecs = /bits/ 16 <450>;
0166 ti,x-plate-ohms = /bits/ 16 <450>;
0167 ti,y-plate-ohms = /bits/ 16 <250>;
0168 ti,pressure-max = /bits/ 16 <15000>;
0169 ti,debounce-rep = /bits/ 16 <0>;
0170 ti,debounce-tol = /bits/ 16 <65535>;
0171 ti,debounce-max = /bits/ 16 <1>;
0172
0173 wakeup-source;
0174 };
0175 };
0176
0177 dbgu: serial@fffff200 {
0178 status = "okay";
0179 };
0180
0181 rtc@fffffd20 {
0182 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
0183 };
0184
0185 watchdog@fffffd40 {
0186 status = "okay";
0187 };
0188
0189 };
0190 };
0191
0192 leds {
0193 compatible = "gpio-leds";
0194
0195 ds8 {
0196 label = "ds8";
0197 gpios = <&pioA 13 GPIO_ACTIVE_LOW>;
0198 linux,default-trigger = "none";
0199 };
0200
0201 ds7 {
0202 label = "ds7";
0203 gpios = <&pioA 14 GPIO_ACTIVE_LOW>;
0204 linux,default-trigger = "nand-disk";
0205 };
0206
0207 ds1 {
0208 label = "ds1";
0209 gpios = <&pioA 23 GPIO_ACTIVE_LOW>;
0210 linux,default-trigger = "heartbeat";
0211 };
0212 };
0213
0214 gpio-keys {
0215 compatible = "gpio-keys";
0216
0217 button-0 {
0218 label = "button_0";
0219 gpios = <&pioA 27 GPIO_ACTIVE_LOW>;
0220 linux,code = <256>;
0221 wakeup-source;
0222 };
0223
0224 button-1 {
0225 label = "button_1";
0226 gpios = <&pioA 26 GPIO_ACTIVE_LOW>;
0227 linux,code = <257>;
0228 wakeup-source;
0229 };
0230
0231 button-2 {
0232 label = "button_2";
0233 gpios = <&pioA 25 GPIO_ACTIVE_LOW>;
0234 linux,code = <258>;
0235 wakeup-source;
0236 };
0237
0238 button-3 {
0239 label = "button_3";
0240 gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
0241 linux,code = <259>;
0242 wakeup-source;
0243 };
0244 };
0245 };