blob: 3c4f6d983cbd4c32175373ad8a3d0740098f8149 [file] [log] [blame]
Jean-Christophe PLAGNIOL-VILLARDad8a15d2012-11-15 21:56:27 +08001/*
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/;
Jean-Christophe PLAGNIOL-VILLARD6db64d22013-05-15 01:21:50 +080010#include "at91sam9260.dtsi"
Jean-Christophe PLAGNIOL-VILLARDad8a15d2012-11-15 21:56:27 +080011
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 {
35 #address-cells = <1>;
36 #size-cells = <1>;
37 ranges;
38
39 main_clock: clock@0 {
40 compatible = "atmel,osc", "fixed-clock";
41 clock-frequency = <18432000>;
42 };
43 };
44
45 ahb {
46 apb {
47 usart0: serial@fffb0000 {
48 pinctrl-0 = <&pinctrl_usart0 &pinctrl_usart0_rts>;
49 linux,rs485-enabled-at-boot-time;
50 status = "okay";
51 };
52
53 usart1: serial@fffb4000 {
54 pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts>;
55 linux,rs485-enabled-at-boot-time;
56 status = "okay";
57 };
58
59 usart2: serial@fffb8000 {
60 pinctrl-0 = <&pinctrl_usart2>;
61 status = "okay";
62 };
63
64 macb0: ethernet@fffc4000 {
65 pinctrl-0 = <&pinctrl_macb_rmii &pinctrl_macb_rmii_mii>;
66 phy-mode = "mii";
67 status = "okay";
68 };
Jean-Christophe PLAGNIOL-VILLARD301333b2012-11-15 21:56:27 +080069
70 mmc0: mmc@fffa8000 {
71 pinctrl-0 = <&pinctrl_mmc0_clk
72 &pinctrl_mmc0_slot1_cmd_dat0
73 &pinctrl_mmc0_slot1_dat1_3>;
74 status = "okay";
75
76 slot@1 {
77 reg = <1>;
78 bus-width = <4>;
79 };
80 };
Jean-Christophe PLAGNIOL-VILLARDa5618922012-11-21 16:28:13 +010081
82 watchdog@fffffd40 {
83 status = "okay";
84 };
Jean-Christophe PLAGNIOL-VILLARDad8a15d2012-11-15 21:56:27 +080085 };
86
87 nand0: nand@40000000 {
88 nand-bus-width = <8>;
89 nand-ecc-mode = "soft";
90 nand-on-flash-bbt;
91 status = "okay";
92
Jean-Christophe PLAGNIOL-VILLARD2f8e4582013-09-27 08:48:15 +020093 barebox@0 {
Jean-Christophe PLAGNIOL-VILLARDad8a15d2012-11-15 21:56:27 +080094 label = "barebox";
Jean-Christophe PLAGNIOL-VILLARD2f8e4582013-09-27 08:48:15 +020095 reg = <0x0 0x58000>;
Jean-Christophe PLAGNIOL-VILLARDad8a15d2012-11-15 21:56:27 +080096 };
97
Jean-Christophe PLAGNIOL-VILLARD2f8e4582013-09-27 08:48:15 +020098 u_boot_env@58000 {
99 label = "u_boot_env";
100 reg = <0x58000 0x8000>;
Jean-Christophe PLAGNIOL-VILLARDad8a15d2012-11-15 21:56:27 +0800101 };
102
Jean-Christophe PLAGNIOL-VILLARD2f8e4582013-09-27 08:48:15 +0200103 ubi@60000 {
104 label = "ubi";
105 reg = <0x60000 0x1FA0000>;
Jean-Christophe PLAGNIOL-VILLARDad8a15d2012-11-15 21:56:27 +0800106 };
107 };
108
109 usb0: ohci@00500000 {
110 num-ports = <2>;
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800111 atmel,vbus-gpio = <&pioB 15 GPIO_ACTIVE_LOW>;
Jean-Christophe PLAGNIOL-VILLARDad8a15d2012-11-15 21:56:27 +0800112 status = "okay";
113 };
114 };
115
116 leds {
117 compatible = "gpio-leds";
118
119 power_green {
120 label = "power_green";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800121 gpios = <&pioC 17 GPIO_ACTIVE_HIGH>;
Jean-Christophe PLAGNIOL-VILLARDad8a15d2012-11-15 21:56:27 +0800122 linux,default-trigger = "heartbeat";
123 };
124
125 power_red {
126 label = "power_red";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800127 gpios = <&pioA 2 GPIO_ACTIVE_HIGH>;
Jean-Christophe PLAGNIOL-VILLARDad8a15d2012-11-15 21:56:27 +0800128 };
129
130 tx_green {
131 label = "tx_green";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800132 gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
Jean-Christophe PLAGNIOL-VILLARDad8a15d2012-11-15 21:56:27 +0800133 };
134
135 tx_red {
136 label = "tx_red";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800137 gpios = <&pioC 18 GPIO_ACTIVE_HIGH>;
Jean-Christophe PLAGNIOL-VILLARDad8a15d2012-11-15 21:56:27 +0800138 };
139 };
140
141 gpio_keys {
142 compatible = "gpio-keys";
143 #address-cells = <1>;
144 #size-cells = <0>;
145
146 keyswitch_in {
147 label = "keyswitch_in";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800148 gpios = <&pioB 1 GPIO_ACTIVE_HIGH>;
Jean-Christophe PLAGNIOL-VILLARDad8a15d2012-11-15 21:56:27 +0800149 linux,code = <28>;
150 gpio-key,wakeup;
151 };
152
153 error_in {
154 label = "error_in";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800155 gpios = <&pioB 2 GPIO_ACTIVE_HIGH>;
Jean-Christophe PLAGNIOL-VILLARDad8a15d2012-11-15 21:56:27 +0800156 linux,code = <29>;
157 gpio-key,wakeup;
158 };
159
160 btn {
161 label = "btn";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800162 gpios = <&pioC 23 GPIO_ACTIVE_HIGH>;
Jean-Christophe PLAGNIOL-VILLARDad8a15d2012-11-15 21:56:27 +0800163 linux,code = <31>;
164 gpio-key,wakeup;
165 };
166 };
167};