]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/blob - arch/arm/boot/dts/at91sam9g20ek_common.dtsi
Merge remote-tracking branch 'asoc/topic/wm0010' into asoc-next
[can-eth-gw-linux.git] / arch / arm / boot / dts / at91sam9g20ek_common.dtsi
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                         pinctrl@fffff400 {
34                                 board {
35                                         pinctrl_pck0_as_mck: pck0_as_mck {
36                                                 atmel,pins =
37                                                         <2 1 0x2 0x0>;  /* PC1 periph B */
38                                         };
39
40                                 };
41                         };
42
43                         dbgu: serial@fffff200 {
44                                 status = "okay";
45                         };
46
47                         usart0: serial@fffb0000 {
48                                 status = "okay";
49                         };
50
51                         usart1: serial@fffb4000 {
52                                 status = "okay";
53                         };
54
55                         macb0: ethernet@fffc4000 {
56                                 phy-mode = "rmii";
57                                 status = "okay";
58                         };
59
60                         usb1: gadget@fffa4000 {
61                                 atmel,vbus-gpio = <&pioC 5 0>;
62                                 status = "okay";
63                         };
64
65                         ssc0: ssc@fffbc000 {
66                                 status = "okay";
67                                 pinctrl-0 = <&pinctrl_ssc0_tx>;
68                         };
69                 };
70
71                 nand0: nand@40000000 {
72                         nand-bus-width = <8>;
73                         nand-ecc-mode = "soft";
74                         nand-on-flash-bbt;
75                         status = "okay";
76
77                         at91bootstrap@0 {
78                                 label = "at91bootstrap";
79                                 reg = <0x0 0x20000>;
80                         };
81
82                         barebox@20000 {
83                                 label = "barebox";
84                                 reg = <0x20000 0x40000>;
85                         };
86
87                         bareboxenv@60000 {
88                                 label = "bareboxenv";
89                                 reg = <0x60000 0x20000>;
90                         };
91
92                         bareboxenv2@80000 {
93                                 label = "bareboxenv2";
94                                 reg = <0x80000 0x20000>;
95                         };
96
97                         oftree@80000 {
98                                 label = "oftree";
99                                 reg = <0xa0000 0x20000>;
100                         };
101
102                         kernel@a0000 {
103                                 label = "kernel";
104                                 reg = <0xc0000 0x400000>;
105                         };
106
107                         rootfs@4a0000 {
108                                 label = "rootfs";
109                                 reg = <0x4c0000 0x7800000>;
110                         };
111
112                         data@7ca0000 {
113                                 label = "data";
114                                 reg = <0x7cc0000 0x8340000>;
115                         };
116                 };
117
118                 usb0: ohci@00500000 {
119                         num-ports = <2>;
120                         status = "okay";
121                 };
122         };
123
124         i2c@0 {
125                 status = "okay";
126
127                 24c512@50 {
128                         compatible = "24c512";
129                         reg = <0x50>;
130                 };
131
132                 wm8731: wm8731@1b {
133                         compatible = "wm8731";
134                         reg = <0x1b>;
135                 };
136         };
137
138         gpio_keys {
139                 compatible = "gpio-keys";
140                 #address-cells = <1>;
141                 #size-cells = <0>;
142
143                 btn3 {
144                         label = "Button 3";
145                         gpios = <&pioA 30 1>;
146                         linux,code = <0x103>;
147                         gpio-key,wakeup;
148                 };
149
150                 btn4 {
151                         label = "Button 4";
152                         gpios = <&pioA 31 1>;
153                         linux,code = <0x104>;
154                         gpio-key,wakeup;
155                 };
156         };
157
158         sound {
159                 compatible = "atmel,at91sam9g20ek-wm8731-audio";
160                 pinctrl-names = "default";
161                 pinctrl-0 = <&pinctrl_pck0_as_mck>;
162
163                 atmel,model = "wm8731 @ AT91SAMG20EK";
164
165                 atmel,audio-routing =
166                         "Ext Spk", "LHPOUT",
167                         "Int Mic", "MICIN";
168
169                 atmel,ssc-controller = <&ssc0>;
170                 atmel,audio-codec = <&wm8731>;
171         };
172 };