]>
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/; | |
10 | /include/ "at91sam9g45.dtsi" | |
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 | ||
20 | memory@70000000 { | |
21 | reg = <0x70000000 0x4000000>; | |
22 | }; | |
23 | ||
24 | ahb { | |
25 | apb { | |
26 | dbgu: serial@ffffee00 { | |
27 | status = "okay"; | |
28 | }; | |
29 | ||
30 | usart1: serial@fff90000 { | |
31 | status = "okay"; | |
32 | }; | |
0d4f99d8 NF |
33 | |
34 | macb0: ethernet@fffbc000 { | |
35 | phy-mode = "rmii"; | |
36 | status = "okay"; | |
37 | }; | |
49fe2ba3 | 38 | }; |
d6a01661 JCPV |
39 | |
40 | nand0: nand@40000000 { | |
41 | nand-bus-width = <8>; | |
42 | nand-ecc-mode = "soft"; | |
43 | nand-on-flash-bbt; | |
44 | status = "okay"; | |
45 | ||
46 | boot@0 { | |
47 | label = "bootstrap/uboot/kernel"; | |
48 | reg = <0x0 0x400000>; | |
49 | }; | |
50 | ||
51 | rootfs@400000 { | |
52 | label = "rootfs"; | |
53 | reg = <0x400000 0x3C00000>; | |
54 | }; | |
55 | ||
56 | data@4000000 { | |
57 | label = "data"; | |
58 | reg = <0x4000000 0xC000000>; | |
59 | }; | |
60 | ||
61 | }; | |
49fe2ba3 | 62 | }; |
f2ee7acd JCPV |
63 | |
64 | leds { | |
65 | compatible = "gpio-leds"; | |
66 | ||
67 | d8 { | |
68 | label = "d8"; | |
69 | gpios = <&pioD 30 0>; | |
70 | linux,default-trigger = "heartbeat"; | |
71 | }; | |
72 | ||
73 | d6 { | |
74 | label = "d6"; | |
75 | gpios = <&pioD 0 1>; | |
76 | linux,default-trigger = "nand-disk"; | |
77 | }; | |
78 | ||
79 | d7 { | |
80 | label = "d7"; | |
81 | gpios = <&pioD 31 1>; | |
82 | linux,default-trigger = "mmc0"; | |
83 | }; | |
84 | }; | |
8a087b0c JCPV |
85 | |
86 | gpio_keys { | |
87 | compatible = "gpio-keys"; | |
88 | #address-cells = <1>; | |
89 | #size-cells = <0>; | |
90 | ||
91 | left_click { | |
92 | label = "left_click"; | |
93 | gpios = <&pioB 6 1>; | |
94 | linux,code = <272>; | |
95 | gpio-key,wakeup; | |
96 | }; | |
97 | ||
98 | right_click { | |
99 | label = "right_click"; | |
100 | gpios = <&pioB 7 1>; | |
101 | linux,code = <273>; | |
102 | gpio-key,wakeup; | |
103 | }; | |
104 | ||
105 | left { | |
106 | label = "Joystick Left"; | |
107 | gpios = <&pioB 14 1>; | |
108 | linux,code = <105>; | |
109 | }; | |
110 | ||
111 | right { | |
112 | label = "Joystick Right"; | |
113 | gpios = <&pioB 15 1>; | |
114 | linux,code = <106>; | |
115 | }; | |
116 | ||
117 | up { | |
118 | label = "Joystick Up"; | |
119 | gpios = <&pioB 16 1>; | |
120 | linux,code = <103>; | |
121 | }; | |
122 | ||
123 | down { | |
124 | label = "Joystick Down"; | |
125 | gpios = <&pioB 17 1>; | |
126 | linux,code = <108>; | |
127 | }; | |
128 | ||
129 | enter { | |
130 | label = "Joystick Press"; | |
131 | gpios = <&pioB 18 1>; | |
132 | linux,code = <28>; | |
133 | }; | |
134 | }; | |
49fe2ba3 | 135 | }; |