xref: /freebsd/sys/contrib/device-tree/src/arm/microchip/at91sam9263ek.dts (revision 8ccc0d235c226d84112561d453c49904398d085c)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * at91sam9263ek.dts - Device Tree file for Atmel at91sam9263 reference board
4f126890aSEmmanuel Vadot *
5f126890aSEmmanuel Vadot *  Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
6f126890aSEmmanuel Vadot */
7f126890aSEmmanuel Vadot/dts-v1/;
8f126890aSEmmanuel Vadot#include "at91sam9263.dtsi"
9f126890aSEmmanuel Vadot
10f126890aSEmmanuel Vadot/ {
11f126890aSEmmanuel Vadot	model = "Atmel at91sam9263ek";
12f126890aSEmmanuel Vadot	compatible = "atmel,at91sam9263ek", "atmel,at91sam9263", "atmel,at91sam9";
13f126890aSEmmanuel Vadot
14f126890aSEmmanuel Vadot	chosen {
15f126890aSEmmanuel Vadot		bootargs = "mem=64M root=/dev/mtdblock5 rw rootfstype=ubifs";
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 = <16367660>;
30f126890aSEmmanuel Vadot		};
31f126890aSEmmanuel Vadot	};
32f126890aSEmmanuel Vadot
33f126890aSEmmanuel Vadot	ahb {
34f126890aSEmmanuel Vadot		apb {
35f126890aSEmmanuel Vadot			dbgu: serial@ffffee00 {
36f126890aSEmmanuel Vadot				status = "okay";
37f126890aSEmmanuel Vadot			};
38f126890aSEmmanuel Vadot
39f126890aSEmmanuel Vadot			tcb0: timer@fff7c000 {
40f126890aSEmmanuel Vadot				timer@0 {
41f126890aSEmmanuel Vadot					compatible = "atmel,tcb-timer";
42f126890aSEmmanuel Vadot					reg = <0>, <1>;
43f126890aSEmmanuel Vadot				};
44f126890aSEmmanuel Vadot
45f126890aSEmmanuel Vadot				timer@2 {
46f126890aSEmmanuel Vadot					compatible = "atmel,tcb-timer";
47f126890aSEmmanuel Vadot					reg = <2>;
48f126890aSEmmanuel Vadot				};
49f126890aSEmmanuel Vadot			};
50f126890aSEmmanuel Vadot
51f126890aSEmmanuel Vadot			usart0: serial@fff8c000 {
52f126890aSEmmanuel Vadot				pinctrl-0 = <
53f126890aSEmmanuel Vadot					&pinctrl_usart0
54f126890aSEmmanuel Vadot					&pinctrl_usart0_rts
55f126890aSEmmanuel Vadot					&pinctrl_usart0_cts>;
56f126890aSEmmanuel Vadot				status = "okay";
57f126890aSEmmanuel Vadot			};
58f126890aSEmmanuel Vadot
59f126890aSEmmanuel Vadot			macb0: ethernet@fffbc000 {
60f126890aSEmmanuel Vadot				phy-mode = "rmii";
61f126890aSEmmanuel Vadot				status = "okay";
62f126890aSEmmanuel Vadot			};
63f126890aSEmmanuel Vadot
64f126890aSEmmanuel Vadot			usb1: gadget@fff78000 {
65f126890aSEmmanuel Vadot				atmel,vbus-gpio = <&pioA 25 GPIO_ACTIVE_HIGH>;
66f126890aSEmmanuel Vadot				status = "okay";
67f126890aSEmmanuel Vadot			};
68f126890aSEmmanuel Vadot
69f126890aSEmmanuel Vadot			mmc0: mmc@fff80000 {
70f126890aSEmmanuel Vadot				pinctrl-0 = <
71f126890aSEmmanuel Vadot					&pinctrl_board_mmc0
72f126890aSEmmanuel Vadot					&pinctrl_mmc0_clk
73f126890aSEmmanuel Vadot					&pinctrl_mmc0_slot0_cmd_dat0
74f126890aSEmmanuel Vadot					&pinctrl_mmc0_slot0_dat1_3>;
75f126890aSEmmanuel Vadot				pinctrl-names = "default";
76f126890aSEmmanuel Vadot				status = "okay";
77f126890aSEmmanuel Vadot				slot@0 {
78f126890aSEmmanuel Vadot					reg = <0>;
79f126890aSEmmanuel Vadot					bus-width = <4>;
80f126890aSEmmanuel Vadot					cd-gpios = <&pioE 18 GPIO_ACTIVE_HIGH>;
81f126890aSEmmanuel Vadot					wp-gpios = <&pioE 19 GPIO_ACTIVE_HIGH>;
82f126890aSEmmanuel Vadot				};
83f126890aSEmmanuel Vadot			};
84f126890aSEmmanuel Vadot
85f126890aSEmmanuel Vadot			pinctrl@fffff200 {
86f126890aSEmmanuel Vadot				mmc0 {
87f126890aSEmmanuel Vadot					pinctrl_board_mmc0: mmc0-board {
88f126890aSEmmanuel Vadot						atmel,pins =
89f126890aSEmmanuel Vadot							<AT91_PIOE 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH 	/* PE18 gpio CD pin pull up and deglitch */
90f126890aSEmmanuel Vadot							 AT91_PIOE 19 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;	/* PE19 gpio WP pin pull up */
91f126890aSEmmanuel Vadot					};
92f126890aSEmmanuel Vadot				};
93f126890aSEmmanuel Vadot			};
94f126890aSEmmanuel Vadot
95f126890aSEmmanuel Vadot			spi0: spi@fffa4000 {
96f126890aSEmmanuel Vadot				status = "okay";
97f126890aSEmmanuel Vadot				cs-gpios = <&pioA 5 0>, <0>, <0>, <0>;
98f126890aSEmmanuel Vadot				flash@0 {
99f126890aSEmmanuel Vadot					compatible = "atmel,at45", "atmel,dataflash";
100f126890aSEmmanuel Vadot					spi-max-frequency = <50000000>;
101f126890aSEmmanuel Vadot					reg = <0>;
102f126890aSEmmanuel Vadot				};
103f126890aSEmmanuel Vadot			};
104f126890aSEmmanuel Vadot
105f126890aSEmmanuel Vadot			rtc@fffffd20 {
106f126890aSEmmanuel Vadot				atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
107f126890aSEmmanuel Vadot			};
108f126890aSEmmanuel Vadot
109f126890aSEmmanuel Vadot			watchdog@fffffd40 {
110f126890aSEmmanuel Vadot				status = "okay";
111f126890aSEmmanuel Vadot			};
112f126890aSEmmanuel Vadot		};
113f126890aSEmmanuel Vadot
114f126890aSEmmanuel Vadot		fb0: fb@700000 {
115f126890aSEmmanuel Vadot			display = <&display0>;
116f126890aSEmmanuel Vadot			status = "okay";
117f126890aSEmmanuel Vadot
118f126890aSEmmanuel Vadot			display0: panel {
119f126890aSEmmanuel Vadot				bits-per-pixel = <16>;
120f126890aSEmmanuel Vadot				atmel,lcdcon-backlight;
121f126890aSEmmanuel Vadot				atmel,dmacon = <0x1>;
122f126890aSEmmanuel Vadot				atmel,lcdcon2 = <0x80008002>;
123f126890aSEmmanuel Vadot				atmel,guard-time = <1>;
124f126890aSEmmanuel Vadot
125f126890aSEmmanuel Vadot				display-timings {
126f126890aSEmmanuel Vadot					native-mode = <&timing0>;
127f126890aSEmmanuel Vadot					timing0: timing0 {
128f126890aSEmmanuel Vadot						clock-frequency = <4965000>;
129f126890aSEmmanuel Vadot						hactive = <240>;
130f126890aSEmmanuel Vadot						vactive = <320>;
131f126890aSEmmanuel Vadot						hback-porch = <1>;
132f126890aSEmmanuel Vadot						hfront-porch = <33>;
133f126890aSEmmanuel Vadot						vback-porch = <1>;
134f126890aSEmmanuel Vadot						vfront-porch = <0>;
135f126890aSEmmanuel Vadot						hsync-len = <5>;
136f126890aSEmmanuel Vadot						vsync-len = <1>;
137f126890aSEmmanuel Vadot						hsync-active = <1>;
138f126890aSEmmanuel Vadot						vsync-active = <1>;
139f126890aSEmmanuel Vadot					};
140f126890aSEmmanuel Vadot				};
141f126890aSEmmanuel Vadot			};
142f126890aSEmmanuel Vadot		};
143f126890aSEmmanuel Vadot
144f126890aSEmmanuel Vadot		ebi0: ebi@10000000 {
145f126890aSEmmanuel Vadot			status = "okay";
146f126890aSEmmanuel Vadot
147f126890aSEmmanuel Vadot			nand_controller: nand-controller {
148f126890aSEmmanuel Vadot				status = "okay";
149f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
150f126890aSEmmanuel Vadot				pinctrl-names = "default";
151f126890aSEmmanuel Vadot
152f126890aSEmmanuel Vadot				nand@3 {
153f126890aSEmmanuel Vadot					reg = <0x3 0x0 0x800000>;
154f126890aSEmmanuel Vadot					rb-gpios = <&pioA 22 GPIO_ACTIVE_HIGH>;
155f126890aSEmmanuel Vadot					cs-gpios = <&pioA 15 GPIO_ACTIVE_HIGH>;
156f126890aSEmmanuel Vadot					nand-bus-width = <8>;
157f126890aSEmmanuel Vadot					nand-ecc-mode = "soft";
158f126890aSEmmanuel Vadot					nand-on-flash-bbt;
159f126890aSEmmanuel Vadot					label = "atmel_nand";
160f126890aSEmmanuel Vadot
161f126890aSEmmanuel Vadot					partitions {
162f126890aSEmmanuel Vadot						compatible = "fixed-partitions";
163f126890aSEmmanuel Vadot						#address-cells = <1>;
164f126890aSEmmanuel Vadot						#size-cells = <1>;
165f126890aSEmmanuel Vadot
166f126890aSEmmanuel Vadot						at91bootstrap@0 {
167f126890aSEmmanuel Vadot							label = "at91bootstrap";
168f126890aSEmmanuel Vadot							reg = <0x0 0x20000>;
169f126890aSEmmanuel Vadot						};
170f126890aSEmmanuel Vadot
171f126890aSEmmanuel Vadot						barebox@20000 {
172f126890aSEmmanuel Vadot							label = "barebox";
173f126890aSEmmanuel Vadot							reg = <0x20000 0x40000>;
174f126890aSEmmanuel Vadot						};
175f126890aSEmmanuel Vadot
176f126890aSEmmanuel Vadot						bareboxenv@60000 {
177f126890aSEmmanuel Vadot							label = "bareboxenv";
178f126890aSEmmanuel Vadot							reg = <0x60000 0x20000>;
179f126890aSEmmanuel Vadot						};
180f126890aSEmmanuel Vadot
181f126890aSEmmanuel Vadot						bareboxenv2@80000 {
182f126890aSEmmanuel Vadot							label = "bareboxenv2";
183f126890aSEmmanuel Vadot							reg = <0x80000 0x20000>;
184f126890aSEmmanuel Vadot						};
185f126890aSEmmanuel Vadot
186f126890aSEmmanuel Vadot						oftree@80000 {
187f126890aSEmmanuel Vadot							label = "oftree";
188f126890aSEmmanuel Vadot							reg = <0xa0000 0x20000>;
189f126890aSEmmanuel Vadot						};
190f126890aSEmmanuel Vadot
191f126890aSEmmanuel Vadot						kernel@a0000 {
192f126890aSEmmanuel Vadot							label = "kernel";
193f126890aSEmmanuel Vadot							reg = <0xc0000 0x400000>;
194f126890aSEmmanuel Vadot						};
195f126890aSEmmanuel Vadot
196f126890aSEmmanuel Vadot						rootfs@4a0000 {
197f126890aSEmmanuel Vadot							label = "rootfs";
198f126890aSEmmanuel Vadot							reg = <0x4c0000 0x7800000>;
199f126890aSEmmanuel Vadot						};
200f126890aSEmmanuel Vadot
201f126890aSEmmanuel Vadot						data@7ca0000 {
202f126890aSEmmanuel Vadot							label = "data";
203f126890aSEmmanuel Vadot							reg = <0x7cc0000 0x8340000>;
204f126890aSEmmanuel Vadot						};
205f126890aSEmmanuel Vadot					};
206f126890aSEmmanuel Vadot				};
207f126890aSEmmanuel Vadot			};
208f126890aSEmmanuel Vadot		};
209f126890aSEmmanuel Vadot
210*8ccc0d23SEmmanuel Vadot		usb0: usb@a00000 {
211f126890aSEmmanuel Vadot			num-ports = <2>;
212f126890aSEmmanuel Vadot			status = "okay";
213f126890aSEmmanuel Vadot			atmel,vbus-gpio = <&pioA 24 GPIO_ACTIVE_HIGH
214f126890aSEmmanuel Vadot					   &pioA 21 GPIO_ACTIVE_HIGH
215f126890aSEmmanuel Vadot					  >;
216f126890aSEmmanuel Vadot		};
217f126890aSEmmanuel Vadot	};
218f126890aSEmmanuel Vadot
219f126890aSEmmanuel Vadot	leds {
220f126890aSEmmanuel Vadot		compatible = "gpio-leds";
221f126890aSEmmanuel Vadot
2225f62a964SEmmanuel Vadot		led-d3 {
223f126890aSEmmanuel Vadot			label = "d3";
224f126890aSEmmanuel Vadot			gpios = <&pioB 7 GPIO_ACTIVE_HIGH>;
225f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
226f126890aSEmmanuel Vadot		};
227f126890aSEmmanuel Vadot
2285f62a964SEmmanuel Vadot		led-d2 {
229f126890aSEmmanuel Vadot			label = "d2";
230f126890aSEmmanuel Vadot			gpios = <&pioC 29 GPIO_ACTIVE_LOW>;
231f126890aSEmmanuel Vadot			linux,default-trigger = "nand-disk";
232f126890aSEmmanuel Vadot		};
233f126890aSEmmanuel Vadot	};
234f126890aSEmmanuel Vadot
235f126890aSEmmanuel Vadot	gpio-keys {
236f126890aSEmmanuel Vadot		compatible = "gpio-keys";
237f126890aSEmmanuel Vadot
238f126890aSEmmanuel Vadot		button-left-click {
239f126890aSEmmanuel Vadot			label = "left_click";
240f126890aSEmmanuel Vadot			gpios = <&pioC 5 GPIO_ACTIVE_LOW>;
241f126890aSEmmanuel Vadot			linux,code = <272>;
242f126890aSEmmanuel Vadot			wakeup-source;
243f126890aSEmmanuel Vadot		};
244f126890aSEmmanuel Vadot
245f126890aSEmmanuel Vadot		button-right-click {
246f126890aSEmmanuel Vadot			label = "right_click";
247f126890aSEmmanuel Vadot			gpios = <&pioC 4 GPIO_ACTIVE_LOW>;
248f126890aSEmmanuel Vadot			linux,code = <273>;
249f126890aSEmmanuel Vadot			wakeup-source;
250f126890aSEmmanuel Vadot		};
251f126890aSEmmanuel Vadot	};
252f126890aSEmmanuel Vadot
253f126890aSEmmanuel Vadot	i2c-gpio-0 {
254f126890aSEmmanuel Vadot		status = "okay";
255f126890aSEmmanuel Vadot
2565f62a964SEmmanuel Vadot		eeprom@50 {
257f126890aSEmmanuel Vadot			compatible = "atmel,24c512";
258f126890aSEmmanuel Vadot			reg = <0x50>;
259f126890aSEmmanuel Vadot			pagesize = <128>;
260f126890aSEmmanuel Vadot		};
261f126890aSEmmanuel Vadot	};
262f126890aSEmmanuel Vadot};
263