blob: a8958241f1d76fe9c799751438e1d2b345725a04 [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 };
71
72 };
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020073 };
Jean-Christophe PLAGNIOL-VILLARDf2ee7ac2012-02-04 12:26:01 +080074
75 leds {
76 compatible = "gpio-leds";
77
78 d8 {
79 label = "d8";
80 gpios = <&pioD 30 0>;
81 linux,default-trigger = "heartbeat";
82 };
83
84 d6 {
85 label = "d6";
86 gpios = <&pioD 0 1>;
87 linux,default-trigger = "nand-disk";
88 };
89
90 d7 {
91 label = "d7";
92 gpios = <&pioD 31 1>;
93 linux,default-trigger = "mmc0";
94 };
95 };
Jean-Christophe PLAGNIOL-VILLARD8a087b02012-02-04 12:42:35 +080096
97 gpio_keys {
98 compatible = "gpio-keys";
99 #address-cells = <1>;
100 #size-cells = <0>;
101
102 left_click {
103 label = "left_click";
104 gpios = <&pioB 6 1>;
105 linux,code = <272>;
106 gpio-key,wakeup;
107 };
108
109 right_click {
110 label = "right_click";
111 gpios = <&pioB 7 1>;
112 linux,code = <273>;
113 gpio-key,wakeup;
114 };
115
116 left {
117 label = "Joystick Left";
118 gpios = <&pioB 14 1>;
119 linux,code = <105>;
120 };
121
122 right {
123 label = "Joystick Right";
124 gpios = <&pioB 15 1>;
125 linux,code = <106>;
126 };
127
128 up {
129 label = "Joystick Up";
130 gpios = <&pioB 16 1>;
131 linux,code = <103>;
132 };
133
134 down {
135 label = "Joystick Down";
136 gpios = <&pioB 17 1>;
137 linux,code = <108>;
138 };
139
140 enter {
141 label = "Joystick Press";
142 gpios = <&pioB 18 1>;
143 linux,code = <28>;
144 };
145 };
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200146};