Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / at91sam9x5ek.dtsi
1 /*
2  * at91sam9x5ek.dtsi - Device Tree file for AT91SAM9x5CM Base board
3  *
4  *  Copyright (C) 2012 Atmel,
5  *                2012 Nicolas Ferre <nicolas.ferre@atmel.com>
6  *
7  * Licensed under GPLv2 or later.
8  */
9 #include "at91sam9x5cm.dtsi"
10
11 / {
12         model = "Atmel AT91SAM9X5-EK";
13         compatible = "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
14
15         chosen {
16                 bootargs = "root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs";
17                 stdout-path = "serial0:115200n8";
18         };
19
20         ahb {
21                 apb {
22                         mmc0: mmc@f0008000 {
23                                 pinctrl-0 = <
24                                         &pinctrl_board_mmc0
25                                         &pinctrl_mmc0_slot0_clk_cmd_dat0
26                                         &pinctrl_mmc0_slot0_dat1_3>;
27                                 status = "okay";
28                                 slot@0 {
29                                         reg = <0>;
30                                         bus-width = <4>;
31                                         cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>;
32                                 };
33                         };
34
35                         mmc1: mmc@f000c000 {
36                                 pinctrl-0 = <
37                                         &pinctrl_board_mmc1
38                                         &pinctrl_mmc1_slot0_clk_cmd_dat0
39                                         &pinctrl_mmc1_slot0_dat1_3>;
40                                 status = "okay";
41                                 slot@0 {
42                                         reg = <0>;
43                                         bus-width = <4>;
44                                         cd-gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
45                                 };
46                         };
47
48                         dbgu: serial@fffff200 {
49                                 status = "okay";
50                         };
51
52                         usart0: serial@f801c000 {
53                                 status = "okay";
54                         };
55
56                         usb2: gadget@f803c000 {
57                                 pinctrl-names = "default";
58                                 pinctrl-0 = <&pinctrl_board_usb2>;
59                                 atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>;
60                                 status = "okay";
61                         };
62
63                         i2c0: i2c@f8010000 {
64                                 status = "okay";
65
66                                 wm8731: wm8731@1a {
67                                         compatible = "wm8731";
68                                         reg = <0x1a>;
69                                 };
70                         };
71
72                         adc0: adc@f804c000 {
73                                 atmel,adc-ts-wires = <4>;
74                                 atmel,adc-ts-pressure-threshold = <10000>;
75                                 status = "okay";
76                         };
77
78                         pinctrl@fffff400 {
79                                 camera_sensor {
80                                         pinctrl_pck0_as_isi_mck: pck0_as_isi_mck-0 {
81                                                 atmel,pins =
82                                                         <AT91_PIOC 15 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* ISI_MCK */
83                                         };
84
85                                         pinctrl_sensor_power: sensor_power-0 {
86                                                 atmel,pins =
87                                                         <AT91_PIOA 13 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
88                                         };
89
90                                         pinctrl_sensor_reset: sensor_reset-0 {
91                                                 atmel,pins =
92                                                         <AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
93                                         };
94                                 };
95
96                                 mmc0 {
97                                         pinctrl_board_mmc0: mmc0-board {
98                                                 atmel,pins =
99                                                         <AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;  /* PD15 gpio CD pin pull up and deglitch */
100                                         };
101                                 };
102
103                                 mmc1 {
104                                         pinctrl_board_mmc1: mmc1-board {
105                                                 atmel,pins =
106                                                         <AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;  /* PD14 gpio CD pin pull up and deglitch */
107                                         };
108                                 };
109
110                                 usb2 {
111                                         pinctrl_board_usb2: usb2-board {
112                                                 atmel,pins =
113                                                         <AT91_PIOB 16 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>;          /* PB16 gpio vbus sense, deglitch */
114                                         };
115                                 };
116                         };
117
118                         spi0: spi@f0000000 {
119                                 status = "disabled"; /* conflicts with mmc1 */
120                                 cs-gpios = <&pioA 14 0>, <0>, <0>, <0>;
121                                 m25p80@0 {
122                                         compatible = "atmel,at25df321a";
123                                         spi-max-frequency = <50000000>;
124                                         reg = <0>;
125                                 };
126                         };
127
128                         watchdog@fffffe40 {
129                                 status = "okay";
130                         };
131
132                         ssc0: ssc@f0010000 {
133                                 status = "okay";
134                         };
135                 };
136
137                 usb0: ohci@00600000 {
138                         status = "okay";
139                         num-ports = <3>;
140                         atmel,vbus-gpio = <0 /* &pioD 18 GPIO_ACTIVE_LOW *//* Activate to have access to port A */
141                                            &pioD 19 GPIO_ACTIVE_LOW
142                                            &pioD 20 GPIO_ACTIVE_LOW
143                                           >;
144                 };
145
146                 usb1: ehci@00700000 {
147                         status = "okay";
148                 };
149         };
150
151         sound {
152                 compatible = "atmel,sam9x5-wm8731-audio";
153
154                 atmel,model = "wm8731 @ AT91SAM9X5EK";
155
156                 atmel,audio-routing =
157                         "Headphone Jack", "RHPOUT",
158                         "Headphone Jack", "LHPOUT",
159                         "LLINEIN", "Line In Jack",
160                         "RLINEIN", "Line In Jack";
161
162                 atmel,ssc-controller = <&ssc0>;
163                 atmel,audio-codec = <&wm8731>;
164         };
165 };