Commit | Line | Data |
---|---|---|
5cb4e735 JCPV |
1 | /* |
2 | * at91sam9g20ek_common.dtsi - Device Tree file for Atmel at91sam9g20ek board | |
3 | * | |
4 | * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | |
5 | * | |
6 | * Licensed under GPLv2. | |
7 | */ | |
8 | /include/ "at91sam9g20.dtsi" | |
9 | ||
10 | / { | |
11 | ||
12 | chosen { | |
13 | bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock5 rw rootfstype=ubifs"; | |
14 | }; | |
15 | ||
16 | memory { | |
17 | reg = <0x20000000 0x4000000>; | |
18 | }; | |
19 | ||
20 | clocks { | |
21 | #address-cells = <1>; | |
22 | #size-cells = <1>; | |
23 | ranges; | |
24 | ||
25 | main_clock: clock@0 { | |
26 | compatible = "atmel,osc", "fixed-clock"; | |
27 | clock-frequency = <18432000>; | |
28 | }; | |
29 | }; | |
30 | ||
31 | ahb { | |
32 | apb { | |
33 | dbgu: serial@fffff200 { | |
34 | status = "okay"; | |
35 | }; | |
36 | ||
37 | usart0: serial@fffb0000 { | |
0cdc7e8e | 38 | pinctrl-0 = |
9e3129e9 JCPV |
39 | <&pinctrl_usart0 |
40 | &pinctrl_usart0_rts_cts | |
41 | &pinctrl_usart0_dtr_dsr | |
42 | &pinctrl_usart0_dcd | |
43 | &pinctrl_usart0_ri>; | |
5cb4e735 JCPV |
44 | status = "okay"; |
45 | }; | |
46 | ||
47 | usart1: serial@fffb4000 { | |
48 | status = "okay"; | |
49 | }; | |
50 | ||
51 | macb0: ethernet@fffc4000 { | |
52 | phy-mode = "rmii"; | |
53 | status = "okay"; | |
54 | }; | |
55 | ||
56 | usb1: gadget@fffa4000 { | |
57 | atmel,vbus-gpio = <&pioC 5 0>; | |
58 | status = "okay"; | |
59 | }; | |
60 | }; | |
61 | ||
62 | nand0: nand@40000000 { | |
63 | nand-bus-width = <8>; | |
64 | nand-ecc-mode = "soft"; | |
65 | nand-on-flash-bbt; | |
66 | status = "okay"; | |
67 | ||
68 | at91bootstrap@0 { | |
69 | label = "at91bootstrap"; | |
70 | reg = <0x0 0x20000>; | |
71 | }; | |
72 | ||
73 | barebox@20000 { | |
74 | label = "barebox"; | |
75 | reg = <0x20000 0x40000>; | |
76 | }; | |
77 | ||
78 | bareboxenv@60000 { | |
79 | label = "bareboxenv"; | |
80 | reg = <0x60000 0x20000>; | |
81 | }; | |
82 | ||
83 | bareboxenv2@80000 { | |
84 | label = "bareboxenv2"; | |
85 | reg = <0x80000 0x20000>; | |
86 | }; | |
87 | ||
88 | oftree@80000 { | |
89 | label = "oftree"; | |
90 | reg = <0xa0000 0x20000>; | |
91 | }; | |
92 | ||
93 | kernel@a0000 { | |
94 | label = "kernel"; | |
95 | reg = <0xc0000 0x400000>; | |
96 | }; | |
97 | ||
98 | rootfs@4a0000 { | |
99 | label = "rootfs"; | |
100 | reg = <0x4c0000 0x7800000>; | |
101 | }; | |
102 | ||
103 | data@7ca0000 { | |
104 | label = "data"; | |
105 | reg = <0x7cc0000 0x8340000>; | |
106 | }; | |
107 | }; | |
108 | ||
109 | usb0: ohci@00500000 { | |
110 | num-ports = <2>; | |
111 | status = "okay"; | |
112 | }; | |
113 | }; | |
114 | ||
115 | i2c@0 { | |
116 | status = "okay"; | |
117 | ||
118 | 24c512@50 { | |
119 | compatible = "24c512"; | |
120 | reg = <0x50>; | |
121 | }; | |
122 | ||
123 | wm8731@1b { | |
124 | compatible = "wm8731"; | |
125 | reg = <0x1b>; | |
126 | }; | |
127 | }; | |
128 | ||
129 | gpio_keys { | |
130 | compatible = "gpio-keys"; | |
131 | #address-cells = <1>; | |
132 | #size-cells = <0>; | |
133 | ||
134 | btn3 { | |
135 | label = "Buttin 3"; | |
136 | gpios = <&pioA 30 1>; | |
137 | linux,code = <0x103>; | |
138 | gpio-key,wakeup; | |
139 | }; | |
140 | ||
141 | btn4 { | |
142 | label = "Buttin 4"; | |
143 | gpios = <&pioA 31 1>; | |
144 | linux,code = <0x104>; | |
145 | gpio-key,wakeup; | |
146 | }; | |
147 | }; | |
148 | }; |