ARM: at91: dt: add mmc pinctrl for Atmel reference boards
[linux-2.6.git] / arch / arm / boot / dts / at91sam9g20ek_common.dtsi
blob32a500a0e481f7473de51be152546081b8bddd15
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"
10 / {
12         chosen {
13                 bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock5 rw rootfstype=ubifs";
14         };
16         memory {
17                 reg = <0x20000000 0x4000000>;
18         };
20         clocks {
21                 #address-cells = <1>;
22                 #size-cells = <1>;
23                 ranges;
25                 main_clock: clock@0 {
26                         compatible = "atmel,osc", "fixed-clock";
27                         clock-frequency = <18432000>;
28                 };
29         };
31         ahb {
32                 apb {
33                         dbgu: serial@fffff200 {
34                                 status = "okay";
35                         };
37                         usart0: serial@fffb0000 {
38                                 pinctrl-0 =
39                                         <&pinctrl_usart0
40                                          &pinctrl_usart0_rts
41                                          &pinctrl_usart0_cts
42                                          &pinctrl_usart0_dtr_dsr
43                                          &pinctrl_usart0_dcd
44                                          &pinctrl_usart0_ri>;
45                                 status = "okay";
46                         };
48                         usart1: serial@fffb4000 {
49                                 status = "okay";
50                         };
52                         macb0: ethernet@fffc4000 {
53                                 phy-mode = "rmii";
54                                 status = "okay";
55                         };
57                         usb1: gadget@fffa4000 {
58                                 atmel,vbus-gpio = <&pioC 5 0>;
59                                 status = "okay";
60                         };
62                         mmc0: mmc@fffa8000 {
63                                 pinctrl-0 = <
64                                         &pinctrl_board_mmc0_slot1
65                                         &pinctrl_mmc0_clk
66                                         &pinctrl_mmc0_slot1_cmd_dat0
67                                         &pinctrl_mmc0_slot1_dat1_3>;
68                                 status = "okay";
69                                 slot@1 {
70                                         reg = <1>;
71                                         bus-width = <4>;
72                                         cd-gpios = <&pioC 9 0>;
73                                 };
74                         };
76                         pinctrl@fffff400 {
77                                 mmc0_slot1 {
78                                         pinctrl_board_mmc0_slot1: mmc0_slot1-board {
79                                                 atmel,pins =
80                                                         <2 9 0x0 0x5>;  /* PC9 gpio CD pin pull up and deglitch */
81                                         };
82                                 };
83                         };
84                 };
86                 nand0: nand@40000000 {
87                         nand-bus-width = <8>;
88                         nand-ecc-mode = "soft";
89                         nand-on-flash-bbt;
90                         status = "okay";
92                         at91bootstrap@0 {
93                                 label = "at91bootstrap";
94                                 reg = <0x0 0x20000>;
95                         };
97                         barebox@20000 {
98                                 label = "barebox";
99                                 reg = <0x20000 0x40000>;
100                         };
102                         bareboxenv@60000 {
103                                 label = "bareboxenv";
104                                 reg = <0x60000 0x20000>;
105                         };
107                         bareboxenv2@80000 {
108                                 label = "bareboxenv2";
109                                 reg = <0x80000 0x20000>;
110                         };
112                         oftree@80000 {
113                                 label = "oftree";
114                                 reg = <0xa0000 0x20000>;
115                         };
117                         kernel@a0000 {
118                                 label = "kernel";
119                                 reg = <0xc0000 0x400000>;
120                         };
122                         rootfs@4a0000 {
123                                 label = "rootfs";
124                                 reg = <0x4c0000 0x7800000>;
125                         };
127                         data@7ca0000 {
128                                 label = "data";
129                                 reg = <0x7cc0000 0x8340000>;
130                         };
131                 };
133                 usb0: ohci@00500000 {
134                         num-ports = <2>;
135                         status = "okay";
136                 };
137         };
139         i2c@0 {
140                 status = "okay";
142                 24c512@50 {
143                         compatible = "24c512";
144                         reg = <0x50>;
145                 };
147                 wm8731@1b {
148                         compatible = "wm8731";
149                         reg = <0x1b>;
150                 };
151         };
153         gpio_keys {
154                 compatible = "gpio-keys";
155                 #address-cells = <1>;
156                 #size-cells = <0>;
158                 btn3 {
159                         label = "Button 3";
160                         gpios = <&pioA 30 1>;
161                         linux,code = <0x103>;
162                         gpio-key,wakeup;
163                 };
165                 btn4 {
166                         label = "Button 4";
167                         gpios = <&pioA 31 1>;
168                         linux,code = <0x104>;
169                         gpio-key,wakeup;
170                 };
171         };