blob: 0c101ada9d8f4eafc26a8e9366cbbcb02e56cbf2 [file] [log] [blame]
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +02001/*
2 * at91sam9m10g45ek.dts - Device Tree file for AT91SAM9M10G45-EK board
3 *
4 * Copyright (C) 2011 Atmel,
5 * 2011 Nicolas Ferre <nicolas.ferre@atmel.com>
6 *
7 * Licensed under GPLv2 or later.
8 */
9/dts-v1/;
10/include/ "at91sam9g45.dtsi"
11
12/ {
13 model = "Atmel AT91SAM9M10G45-EK";
14 compatible = "atmel,at91sam9m10g45ek", "atmel,at91sam9g45", "atmel,at91sam9";
15
16 chosen {
Jean-Christophe PLAGNIOL-VILLARDd6a01662012-01-26 02:11:06 +080017 bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2";
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020018 };
19
20 memory@70000000 {
21 reg = <0x70000000 0x4000000>;
22 };
23
Jean-Christophe PLAGNIOL-VILLARDeb5e76f2012-03-02 20:44:23 +080024 clocks {
25 #address-cells = <1>;
26 #size-cells = <1>;
27 ranges;
28
29 main_clock: clock@0 {
30 compatible = "atmel,osc", "fixed-clock";
31 clock-frequency = <12000000>;
32 };
33 };
34
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020035 ahb {
36 apb {
37 dbgu: serial@ffffee00 {
38 status = "okay";
39 };
40
41 usart1: serial@fff90000 {
42 status = "okay";
43 };
Nicolas Ferre0d4f99d2011-12-05 18:03:05 +010044
45 macb0: ethernet@fffbc000 {
46 phy-mode = "rmii";
47 status = "okay";
48 };
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020049 };
Jean-Christophe PLAGNIOL-VILLARDd6a01662012-01-26 02:11:06 +080050
51 nand0: nand@40000000 {
52 nand-bus-width = <8>;
53 nand-ecc-mode = "soft";
54 nand-on-flash-bbt;
55 status = "okay";
56
57 boot@0 {
58 label = "bootstrap/uboot/kernel";
59 reg = <0x0 0x400000>;
60 };
61
62 rootfs@400000 {
63 label = "rootfs";
64 reg = <0x400000 0x3C00000>;
65 };
66
67 data@4000000 {
68 label = "data";
69 reg = <0x4000000 0xC000000>;
70 };
Jean-Christophe PLAGNIOL-VILLARD6a062452011-11-21 06:55:18 +080071 };
Jean-Christophe PLAGNIOL-VILLARDd6a01662012-01-26 02:11:06 +080072
Jean-Christophe PLAGNIOL-VILLARD6a062452011-11-21 06:55:18 +080073 usb0: ohci@00700000 {
74 status = "okay";
75 num-ports = <2>;
76 atmel,vbus-gpio = <&pioD 1 0
77 &pioD 3 0>;
Jean-Christophe PLAGNIOL-VILLARDd6a01662012-01-26 02:11:06 +080078 };
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020079 };
Jean-Christophe PLAGNIOL-VILLARDf2ee7ac2012-02-04 12:26:01 +080080
81 leds {
82 compatible = "gpio-leds";
83
84 d8 {
85 label = "d8";
86 gpios = <&pioD 30 0>;
87 linux,default-trigger = "heartbeat";
88 };
89
90 d6 {
91 label = "d6";
92 gpios = <&pioD 0 1>;
93 linux,default-trigger = "nand-disk";
94 };
95
96 d7 {
97 label = "d7";
98 gpios = <&pioD 31 1>;
99 linux,default-trigger = "mmc0";
100 };
101 };
Jean-Christophe PLAGNIOL-VILLARD8a087b02012-02-04 12:42:35 +0800102
103 gpio_keys {
104 compatible = "gpio-keys";
105 #address-cells = <1>;
106 #size-cells = <0>;
107
108 left_click {
109 label = "left_click";
110 gpios = <&pioB 6 1>;
111 linux,code = <272>;
112 gpio-key,wakeup;
113 };
114
115 right_click {
116 label = "right_click";
117 gpios = <&pioB 7 1>;
118 linux,code = <273>;
119 gpio-key,wakeup;
120 };
121
122 left {
123 label = "Joystick Left";
124 gpios = <&pioB 14 1>;
125 linux,code = <105>;
126 };
127
128 right {
129 label = "Joystick Right";
130 gpios = <&pioB 15 1>;
131 linux,code = <106>;
132 };
133
134 up {
135 label = "Joystick Up";
136 gpios = <&pioB 16 1>;
137 linux,code = <103>;
138 };
139
140 down {
141 label = "Joystick Down";
142 gpios = <&pioB 17 1>;
143 linux,code = <108>;
144 };
145
146 enter {
147 label = "Joystick Press";
148 gpios = <&pioB 18 1>;
149 linux,code = <28>;
150 };
151 };
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200152};