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