blob: 15e1dd43f625aee627438c302e9a4a13f7002031 [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
Ludovic Desrochesdcce6ce2012-04-02 20:44:20 +020020 memory {
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020021 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 };
Ludovic Desrochesfbc18712012-09-12 08:42:17 +020049
50 i2c0: i2c@fff84000 {
51 status = "okay";
52 };
53
54 i2c1: i2c@fff88000 {
55 status = "okay";
56 };
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020057 };
Jean-Christophe PLAGNIOL-VILLARDd6a01662012-01-26 02:11:06 +080058
59 nand0: nand@40000000 {
60 nand-bus-width = <8>;
61 nand-ecc-mode = "soft";
62 nand-on-flash-bbt;
63 status = "okay";
64
65 boot@0 {
66 label = "bootstrap/uboot/kernel";
67 reg = <0x0 0x400000>;
68 };
69
70 rootfs@400000 {
71 label = "rootfs";
72 reg = <0x400000 0x3C00000>;
73 };
74
75 data@4000000 {
76 label = "data";
77 reg = <0x4000000 0xC000000>;
78 };
Jean-Christophe PLAGNIOL-VILLARD6a062452011-11-21 06:55:18 +080079 };
Jean-Christophe PLAGNIOL-VILLARDd6a01662012-01-26 02:11:06 +080080
Jean-Christophe PLAGNIOL-VILLARD6a062452011-11-21 06:55:18 +080081 usb0: ohci@00700000 {
82 status = "okay";
83 num-ports = <2>;
Nicolas Ferre74adcb22012-03-21 14:48:23 +010084 atmel,vbus-gpio = <&pioD 1 1
85 &pioD 3 1>;
Jean-Christophe PLAGNIOL-VILLARDd6a01662012-01-26 02:11:06 +080086 };
Jean-Christophe PLAGNIOL-VILLARD62c55532011-11-22 12:11:13 +080087
88 usb1: ehci@00800000 {
89 status = "okay";
90 };
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020091 };
Jean-Christophe PLAGNIOL-VILLARDf2ee7ac2012-02-04 12:26:01 +080092
93 leds {
94 compatible = "gpio-leds";
95
96 d8 {
97 label = "d8";
98 gpios = <&pioD 30 0>;
99 linux,default-trigger = "heartbeat";
100 };
101
102 d6 {
103 label = "d6";
104 gpios = <&pioD 0 1>;
105 linux,default-trigger = "nand-disk";
106 };
107
108 d7 {
109 label = "d7";
110 gpios = <&pioD 31 1>;
111 linux,default-trigger = "mmc0";
112 };
113 };
Jean-Christophe PLAGNIOL-VILLARD8a087b02012-02-04 12:42:35 +0800114
115 gpio_keys {
116 compatible = "gpio-keys";
117 #address-cells = <1>;
118 #size-cells = <0>;
119
120 left_click {
121 label = "left_click";
122 gpios = <&pioB 6 1>;
123 linux,code = <272>;
124 gpio-key,wakeup;
125 };
126
127 right_click {
128 label = "right_click";
129 gpios = <&pioB 7 1>;
130 linux,code = <273>;
131 gpio-key,wakeup;
132 };
133
134 left {
135 label = "Joystick Left";
136 gpios = <&pioB 14 1>;
137 linux,code = <105>;
138 };
139
140 right {
141 label = "Joystick Right";
142 gpios = <&pioB 15 1>;
143 linux,code = <106>;
144 };
145
146 up {
147 label = "Joystick Up";
148 gpios = <&pioB 16 1>;
149 linux,code = <103>;
150 };
151
152 down {
153 label = "Joystick Down";
154 gpios = <&pioB 17 1>;
155 linux,code = <108>;
156 };
157
158 enter {
159 label = "Joystick Press";
160 gpios = <&pioB 18 1>;
161 linux,code = <28>;
162 };
163 };
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200164};