Merge branch 'for-linus' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jikos...
[linux-2.6-block.git] / arch / arm / boot / dts / animeo_ip.dts
CommitLineData
ad8a15d9
JCPV
1/*
2 * animeo_ip.dts - Device Tree file for Somfy Animeo IP Boards
3 *
4 * Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
5 *
6 * Licensed under GPLv2 only.
7 */
8
9/dts-v1/;
6db64d29 10#include "at91sam9260.dtsi"
ad8a15d9
JCPV
11
12/ {
13 model = "Somfy Animeo IP";
14 compatible = "somfy,animeo-ip", "atmel,at91sam9260", "atmel,at91sam9";
15
16 aliases {
17 serial0 = &usart1;
18 serial1 = &usart2;
19 serial2 = &usart0;
20 serial3 = &dbgu;
21 serial4 = &usart3;
22 serial5 = &uart0;
23 serial6 = &uart1;
24 };
25
26 chosen {
27 linux,stdout-path = &usart2;
28 };
29
30 memory {
31 reg = <0x20000000 0x4000000>;
32 };
33
34 clocks {
650defcf
AB
35 slow_xtal {
36 clock-frequency = <32768>;
37 };
38
39 main_xtal {
40 clock-frequency = <18432000>;
41 };
ad8a15d9
JCPV
42 };
43
44 ahb {
45 apb {
46 usart0: serial@fffb0000 {
47 pinctrl-0 = <&pinctrl_usart0 &pinctrl_usart0_rts>;
48 linux,rs485-enabled-at-boot-time;
49 status = "okay";
50 };
51
52 usart1: serial@fffb4000 {
53 pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts>;
54 linux,rs485-enabled-at-boot-time;
55 status = "okay";
56 };
57
58 usart2: serial@fffb8000 {
59 pinctrl-0 = <&pinctrl_usart2>;
60 status = "okay";
61 };
62
63 macb0: ethernet@fffc4000 {
64 pinctrl-0 = <&pinctrl_macb_rmii &pinctrl_macb_rmii_mii>;
65 phy-mode = "mii";
66 status = "okay";
67 };
301333bc
JCPV
68
69 mmc0: mmc@fffa8000 {
70 pinctrl-0 = <&pinctrl_mmc0_clk
71 &pinctrl_mmc0_slot1_cmd_dat0
72 &pinctrl_mmc0_slot1_dat1_3>;
73 status = "okay";
74
75 slot@1 {
76 reg = <1>;
77 bus-width = <4>;
78 };
79 };
a5618928
JCPV
80
81 watchdog@fffffd40 {
82 status = "okay";
83 };
ad8a15d9
JCPV
84 };
85
1004a297 86 ebi: ebi@10000000 {
ad8a15d9
JCPV
87 status = "okay";
88
1004a297
BB
89 nand_controller: nand-controller {
90 status = "okay";
91 pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
92 pinctrl-names = "default";
93
94 nand@3 {
95 reg = <0x3 0x0 0x800000>;
96 rb-gpios = <&pioC 13 GPIO_ACTIVE_HIGH>;
97 cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
98 nand-bus-width = <8>;
99 nand-ecc-mode = "soft";
100 nand-on-flash-bbt;
101 label = "atmel_nand";
102
103 partitions {
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
106 #size-cells = <1>;
107
108 barebox@0 {
109 label = "barebox";
110 reg = <0x0 0x58000>;
111 };
112
113 u_boot_env@58000 {
114 label = "u_boot_env";
115 reg = <0x58000 0x8000>;
116 };
117
118 ubi@60000 {
119 label = "ubi";
120 reg = <0x60000 0x1FA0000>;
121 };
122 };
123 };
ad8a15d9
JCPV
124 };
125 };
126
cfdc7fa5 127 usb0: ohci@500000 {
ad8a15d9 128 num-ports = <2>;
92f8629b 129 atmel,vbus-gpio = <&pioB 15 GPIO_ACTIVE_LOW>;
ad8a15d9
JCPV
130 status = "okay";
131 };
132 };
133
134 leds {
135 compatible = "gpio-leds";
136
137 power_green {
138 label = "power_green";
92f8629b 139 gpios = <&pioC 17 GPIO_ACTIVE_HIGH>;
ad8a15d9
JCPV
140 linux,default-trigger = "heartbeat";
141 };
142
143 power_red {
144 label = "power_red";
92f8629b 145 gpios = <&pioA 2 GPIO_ACTIVE_HIGH>;
ad8a15d9
JCPV
146 };
147
148 tx_green {
149 label = "tx_green";
92f8629b 150 gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
ad8a15d9
JCPV
151 };
152
153 tx_red {
154 label = "tx_red";
92f8629b 155 gpios = <&pioC 18 GPIO_ACTIVE_HIGH>;
ad8a15d9
JCPV
156 };
157 };
158
159 gpio_keys {
160 compatible = "gpio-keys";
161 #address-cells = <1>;
162 #size-cells = <0>;
163
164 keyswitch_in {
165 label = "keyswitch_in";
92f8629b 166 gpios = <&pioB 1 GPIO_ACTIVE_HIGH>;
ad8a15d9 167 linux,code = <28>;
67ae8b9b 168 wakeup-source;
ad8a15d9
JCPV
169 };
170
171 error_in {
172 label = "error_in";
92f8629b 173 gpios = <&pioB 2 GPIO_ACTIVE_HIGH>;
ad8a15d9 174 linux,code = <29>;
67ae8b9b 175 wakeup-source;
ad8a15d9
JCPV
176 };
177
178 btn {
179 label = "btn";
92f8629b 180 gpios = <&pioC 23 GPIO_ACTIVE_HIGH>;
ad8a15d9 181 linux,code = <31>;
67ae8b9b 182 wakeup-source;
ad8a15d9
JCPV
183 };
184 };
185};