Commit | Line | Data |
---|---|---|
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 { | |
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 | }; | |
301333bc JCPV |
69 | |
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 | }; | |
a5618928 JCPV |
81 | |
82 | watchdog@fffffd40 { | |
83 | status = "okay"; | |
84 | }; | |
ad8a15d9 JCPV |
85 | }; |
86 | ||
87 | nand0: nand@40000000 { | |
88 | nand-bus-width = <8>; | |
89 | nand-ecc-mode = "soft"; | |
90 | nand-on-flash-bbt; | |
91 | status = "okay"; | |
92 | ||
93 | at91bootstrap@0 { | |
94 | label = "at91bootstrap"; | |
95 | reg = <0x0 0x8000>; | |
96 | }; | |
97 | ||
98 | barebox@8000 { | |
99 | label = "barebox"; | |
100 | reg = <0x8000 0x40000>; | |
101 | }; | |
102 | ||
103 | bareboxenv@48000 { | |
104 | label = "bareboxenv"; | |
105 | reg = <0x48000 0x8000>; | |
106 | }; | |
107 | ||
108 | user_block@0x50000 { | |
109 | label = "user_block"; | |
110 | reg = <0x50000 0xb0000>; | |
111 | }; | |
112 | ||
113 | kernel@100000 { | |
114 | label = "kernel"; | |
115 | reg = <0x100000 0x1b0000>; | |
116 | }; | |
117 | ||
118 | root@2b0000 { | |
119 | label = "root"; | |
120 | reg = <0x2b0000 0x1D50000>; | |
121 | }; | |
122 | }; | |
123 | ||
124 | usb0: ohci@00500000 { | |
125 | num-ports = <2>; | |
92f8629b | 126 | atmel,vbus-gpio = <&pioB 15 GPIO_ACTIVE_LOW>; |
ad8a15d9 JCPV |
127 | status = "okay"; |
128 | }; | |
129 | }; | |
130 | ||
131 | leds { | |
132 | compatible = "gpio-leds"; | |
133 | ||
134 | power_green { | |
135 | label = "power_green"; | |
92f8629b | 136 | gpios = <&pioC 17 GPIO_ACTIVE_HIGH>; |
ad8a15d9 JCPV |
137 | linux,default-trigger = "heartbeat"; |
138 | }; | |
139 | ||
140 | power_red { | |
141 | label = "power_red"; | |
92f8629b | 142 | gpios = <&pioA 2 GPIO_ACTIVE_HIGH>; |
ad8a15d9 JCPV |
143 | }; |
144 | ||
145 | tx_green { | |
146 | label = "tx_green"; | |
92f8629b | 147 | gpios = <&pioC 19 GPIO_ACTIVE_HIGH>; |
ad8a15d9 JCPV |
148 | }; |
149 | ||
150 | tx_red { | |
151 | label = "tx_red"; | |
92f8629b | 152 | gpios = <&pioC 18 GPIO_ACTIVE_HIGH>; |
ad8a15d9 JCPV |
153 | }; |
154 | }; | |
155 | ||
156 | gpio_keys { | |
157 | compatible = "gpio-keys"; | |
158 | #address-cells = <1>; | |
159 | #size-cells = <0>; | |
160 | ||
161 | keyswitch_in { | |
162 | label = "keyswitch_in"; | |
92f8629b | 163 | gpios = <&pioB 1 GPIO_ACTIVE_HIGH>; |
ad8a15d9 JCPV |
164 | linux,code = <28>; |
165 | gpio-key,wakeup; | |
166 | }; | |
167 | ||
168 | error_in { | |
169 | label = "error_in"; | |
92f8629b | 170 | gpios = <&pioB 2 GPIO_ACTIVE_HIGH>; |
ad8a15d9 JCPV |
171 | linux,code = <29>; |
172 | gpio-key,wakeup; | |
173 | }; | |
174 | ||
175 | btn { | |
176 | label = "btn"; | |
92f8629b | 177 | gpios = <&pioC 23 GPIO_ACTIVE_HIGH>; |
ad8a15d9 JCPV |
178 | linux,code = <31>; |
179 | gpio-key,wakeup; | |
180 | }; | |
181 | }; | |
182 | }; |