]>
Commit | Line | Data |
---|---|---|
49fe2ba3 NF |
1 | /* |
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/; | |
6db64d29 | 10 | #include "at91sam9g45.dtsi" |
49fe2ba3 NF |
11 | |
12 | / { | |
13 | model = "Atmel AT91SAM9M10G45-EK"; | |
14 | compatible = "atmel,at91sam9m10g45ek", "atmel,at91sam9g45", "atmel,at91sam9"; | |
15 | ||
16 | chosen { | |
d6a01661 | 17 | bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2"; |
49fe2ba3 NF |
18 | }; |
19 | ||
dcce6ce8 | 20 | memory { |
49fe2ba3 NF |
21 | reg = <0x70000000 0x4000000>; |
22 | }; | |
23 | ||
eb5e76ff JCPV |
24 | 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 | ||
49fe2ba3 NF |
35 | ahb { |
36 | apb { | |
37 | dbgu: serial@ffffee00 { | |
38 | status = "okay"; | |
39 | }; | |
40 | ||
41 | usart1: serial@fff90000 { | |
c58c0c5a JCPV |
42 | pinctrl-0 = |
43 | <&pinctrl_usart1 | |
44 | &pinctrl_usart1_rts | |
45 | &pinctrl_usart1_cts>; | |
49fe2ba3 NF |
46 | status = "okay"; |
47 | }; | |
0d4f99d8 NF |
48 | |
49 | macb0: ethernet@fffbc000 { | |
50 | phy-mode = "rmii"; | |
51 | status = "okay"; | |
52 | }; | |
fbc18715 LD |
53 | |
54 | i2c0: i2c@fff84000 { | |
55 | status = "okay"; | |
56 | }; | |
57 | ||
58 | i2c1: i2c@fff88000 { | |
59 | status = "okay"; | |
60 | }; | |
4134a455 LD |
61 | |
62 | mmc0: mmc@fff80000 { | |
199e2ede JCPV |
63 | pinctrl-0 = < |
64 | &pinctrl_board_mmc0 | |
65 | &pinctrl_mmc0_slot0_clk_cmd_dat0 | |
66 | &pinctrl_mmc0_slot0_dat1_3>; | |
4134a455 LD |
67 | status = "okay"; |
68 | slot@0 { | |
69 | reg = <0>; | |
70 | bus-width = <4>; | |
92f8629b | 71 | cd-gpios = <&pioD 10 GPIO_ACTIVE_HIGH>; |
4134a455 LD |
72 | }; |
73 | }; | |
74 | ||
75 | mmc1: mmc@fffd0000 { | |
199e2ede JCPV |
76 | pinctrl-0 = < |
77 | &pinctrl_board_mmc1 | |
78 | &pinctrl_mmc1_slot0_clk_cmd_dat0 | |
79 | &pinctrl_mmc1_slot0_dat1_3>; | |
4134a455 LD |
80 | status = "okay"; |
81 | slot@0 { | |
82 | reg = <0>; | |
83 | bus-width = <4>; | |
92f8629b JCPV |
84 | cd-gpios = <&pioD 11 GPIO_ACTIVE_HIGH>; |
85 | wp-gpios = <&pioD 29 GPIO_ACTIVE_HIGH>; | |
4134a455 LD |
86 | }; |
87 | }; | |
199e2ede JCPV |
88 | |
89 | pinctrl@fffff200 { | |
90 | mmc0 { | |
91 | pinctrl_board_mmc0: mmc0-board { | |
92 | atmel,pins = | |
c9d0f317 | 93 | <AT91_PIOD 10 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD10 gpio CD pin pull up and deglitch */ |
199e2ede JCPV |
94 | }; |
95 | }; | |
96 | ||
97 | mmc1 { | |
98 | pinctrl_board_mmc1: mmc1-board { | |
99 | atmel,pins = | |
c9d0f317 JCPV |
100 | <AT91_PIOD 11 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* PD11 gpio CD pin pull up and deglitch */ |
101 | AT91_PIOD 29 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PD29 gpio WP pin pull up */ | |
199e2ede JCPV |
102 | }; |
103 | }; | |
104 | }; | |
b6811e9a RG |
105 | |
106 | spi0: spi@fffa4000{ | |
107 | status = "okay"; | |
108 | cs-gpios = <&pioB 3 0>, <0>, <0>, <0>; | |
109 | mtd_dataflash@0 { | |
110 | compatible = "atmel,at45", "atmel,dataflash"; | |
111 | spi-max-frequency = <13000000>; | |
112 | reg = <0>; | |
113 | }; | |
114 | }; | |
49fe2ba3 | 115 | }; |
d6a01661 JCPV |
116 | |
117 | nand0: nand@40000000 { | |
118 | nand-bus-width = <8>; | |
119 | nand-ecc-mode = "soft"; | |
120 | nand-on-flash-bbt; | |
121 | status = "okay"; | |
122 | ||
123 | boot@0 { | |
124 | label = "bootstrap/uboot/kernel"; | |
125 | reg = <0x0 0x400000>; | |
126 | }; | |
127 | ||
128 | rootfs@400000 { | |
129 | label = "rootfs"; | |
130 | reg = <0x400000 0x3C00000>; | |
131 | }; | |
132 | ||
133 | data@4000000 { | |
134 | label = "data"; | |
135 | reg = <0x4000000 0xC000000>; | |
136 | }; | |
6a062459 | 137 | }; |
d6a01661 | 138 | |
6a062459 JCPV |
139 | usb0: ohci@00700000 { |
140 | status = "okay"; | |
141 | num-ports = <2>; | |
92f8629b JCPV |
142 | atmel,vbus-gpio = <&pioD 1 GPIO_ACTIVE_LOW |
143 | &pioD 3 GPIO_ACTIVE_LOW>; | |
d6a01661 | 144 | }; |
62c5553a JCPV |
145 | |
146 | usb1: ehci@00800000 { | |
147 | status = "okay"; | |
148 | }; | |
49fe2ba3 | 149 | }; |
f2ee7acd JCPV |
150 | |
151 | leds { | |
152 | compatible = "gpio-leds"; | |
153 | ||
154 | d8 { | |
155 | label = "d8"; | |
92f8629b | 156 | gpios = <&pioD 30 GPIO_ACTIVE_HIGH>; |
f2ee7acd JCPV |
157 | linux,default-trigger = "heartbeat"; |
158 | }; | |
159 | ||
160 | d6 { | |
161 | label = "d6"; | |
92f8629b | 162 | gpios = <&pioD 0 GPIO_ACTIVE_LOW>; |
f2ee7acd JCPV |
163 | linux,default-trigger = "nand-disk"; |
164 | }; | |
165 | ||
166 | d7 { | |
167 | label = "d7"; | |
92f8629b | 168 | gpios = <&pioD 31 GPIO_ACTIVE_LOW>; |
f2ee7acd JCPV |
169 | linux,default-trigger = "mmc0"; |
170 | }; | |
171 | }; | |
8a087b0c JCPV |
172 | |
173 | gpio_keys { | |
174 | compatible = "gpio-keys"; | |
8a087b0c JCPV |
175 | |
176 | left_click { | |
177 | label = "left_click"; | |
92f8629b | 178 | gpios = <&pioB 6 GPIO_ACTIVE_LOW>; |
8a087b0c JCPV |
179 | linux,code = <272>; |
180 | gpio-key,wakeup; | |
181 | }; | |
182 | ||
183 | right_click { | |
184 | label = "right_click"; | |
92f8629b | 185 | gpios = <&pioB 7 GPIO_ACTIVE_LOW>; |
8a087b0c JCPV |
186 | linux,code = <273>; |
187 | gpio-key,wakeup; | |
188 | }; | |
189 | ||
190 | left { | |
191 | label = "Joystick Left"; | |
92f8629b | 192 | gpios = <&pioB 14 GPIO_ACTIVE_LOW>; |
8a087b0c JCPV |
193 | linux,code = <105>; |
194 | }; | |
195 | ||
196 | right { | |
197 | label = "Joystick Right"; | |
92f8629b | 198 | gpios = <&pioB 15 GPIO_ACTIVE_LOW>; |
8a087b0c JCPV |
199 | linux,code = <106>; |
200 | }; | |
201 | ||
202 | up { | |
203 | label = "Joystick Up"; | |
92f8629b | 204 | gpios = <&pioB 16 GPIO_ACTIVE_LOW>; |
8a087b0c JCPV |
205 | linux,code = <103>; |
206 | }; | |
207 | ||
208 | down { | |
209 | label = "Joystick Down"; | |
92f8629b | 210 | gpios = <&pioB 17 GPIO_ACTIVE_LOW>; |
8a087b0c JCPV |
211 | linux,code = <108>; |
212 | }; | |
213 | ||
214 | enter { | |
215 | label = "Joystick Press"; | |
92f8629b | 216 | gpios = <&pioB 18 GPIO_ACTIVE_LOW>; |
8a087b0c JCPV |
217 | linux,code = <28>; |
218 | }; | |
219 | }; | |
49fe2ba3 | 220 | }; |