ARM: tegra: add power gpio keys to DT
[linux-2.6.git] / arch / arm / boot / dts / tegra20-trimslice.dts
blobf96870c4bdac3504fdaa78ad2c26a54448d486fe
1 /dts-v1/;
3 /include/ "tegra20.dtsi"
5 / {
6         model = "Compulab TrimSlice board";
7         compatible = "compulab,trimslice", "nvidia,tegra20";
9         memory {
10                 reg = <0x00000000 0x40000000>;
11         };
13         host1x {
14                 hdmi {
15                         status = "okay";
17                         vdd-supply = <&hdmi_vdd_reg>;
18                         pll-supply = <&hdmi_pll_reg>;
20                         nvidia,ddc-i2c-bus = <&hdmi_ddc>;
21                         nvidia,hpd-gpio = <&gpio 111 0>; /* PN7 */
22                 };
23         };
25         pinmux {
26                 pinctrl-names = "default";
27                 pinctrl-0 = <&state_default>;
29                 state_default: pinmux {
30                         ata {
31                                 nvidia,pins = "ata";
32                                 nvidia,function = "ide";
33                         };
34                         atb {
35                                 nvidia,pins = "atb", "gma";
36                                 nvidia,function = "sdio4";
37                         };
38                         atc {
39                                 nvidia,pins = "atc", "gmb";
40                                 nvidia,function = "nand";
41                         };
42                         atd {
43                                 nvidia,pins = "atd", "ate", "gme", "pta";
44                                 nvidia,function = "gmi";
45                         };
46                         cdev1 {
47                                 nvidia,pins = "cdev1";
48                                 nvidia,function = "plla_out";
49                         };
50                         cdev2 {
51                                 nvidia,pins = "cdev2";
52                                 nvidia,function = "pllp_out4";
53                         };
54                         crtp {
55                                 nvidia,pins = "crtp";
56                                 nvidia,function = "crt";
57                         };
58                         csus {
59                                 nvidia,pins = "csus";
60                                 nvidia,function = "vi_sensor_clk";
61                         };
62                         dap1 {
63                                 nvidia,pins = "dap1";
64                                 nvidia,function = "dap1";
65                         };
66                         dap2 {
67                                 nvidia,pins = "dap2";
68                                 nvidia,function = "dap2";
69                         };
70                         dap3 {
71                                 nvidia,pins = "dap3";
72                                 nvidia,function = "dap3";
73                         };
74                         dap4 {
75                                 nvidia,pins = "dap4";
76                                 nvidia,function = "dap4";
77                         };
78                         ddc {
79                                 nvidia,pins = "ddc";
80                                 nvidia,function = "i2c2";
81                         };
82                         dta {
83                                 nvidia,pins = "dta", "dtb", "dtc", "dtd", "dte";
84                                 nvidia,function = "vi";
85                         };
86                         dtf {
87                                 nvidia,pins = "dtf";
88                                 nvidia,function = "i2c3";
89                         };
90                         gmc {
91                                 nvidia,pins = "gmc", "gmd";
92                                 nvidia,function = "sflash";
93                         };
94                         gpu {
95                                 nvidia,pins = "gpu";
96                                 nvidia,function = "uarta";
97                         };
98                         gpu7 {
99                                 nvidia,pins = "gpu7";
100                                 nvidia,function = "rtck";
101                         };
102                         gpv {
103                                 nvidia,pins = "gpv", "slxa", "slxk";
104                                 nvidia,function = "pcie";
105                         };
106                         hdint {
107                                 nvidia,pins = "hdint";
108                                 nvidia,function = "hdmi";
109                         };
110                         i2cp {
111                                 nvidia,pins = "i2cp";
112                                 nvidia,function = "i2cp";
113                         };
114                         irrx {
115                                 nvidia,pins = "irrx", "irtx";
116                                 nvidia,function = "uartb";
117                         };
118                         kbca {
119                                 nvidia,pins = "kbca", "kbcb", "kbcc", "kbcd",
120                                         "kbce", "kbcf";
121                                 nvidia,function = "kbc";
122                         };
123                         lcsn {
124                                 nvidia,pins = "lcsn", "ld0", "ld1", "ld2",
125                                         "ld3", "ld4", "ld5", "ld6", "ld7",
126                                         "ld8", "ld9", "ld10", "ld11", "ld12",
127                                         "ld13", "ld14", "ld15", "ld16", "ld17",
128                                         "ldc", "ldi", "lhp0", "lhp1", "lhp2",
129                                         "lhs", "lm0", "lm1", "lpp", "lpw0",
130                                         "lpw1", "lpw2", "lsc0", "lsc1", "lsck",
131                                         "lsda", "lsdi", "lspi", "lvp0", "lvp1",
132                                         "lvs";
133                                 nvidia,function = "displaya";
134                         };
135                         owc {
136                                 nvidia,pins = "owc", "uac";
137                                 nvidia,function = "rsvd2";
138                         };
139                         pmc {
140                                 nvidia,pins = "pmc";
141                                 nvidia,function = "pwr_on";
142                         };
143                         rm {
144                                 nvidia,pins = "rm";
145                                 nvidia,function = "i2c1";
146                         };
147                         sdb {
148                                 nvidia,pins = "sdb", "sdc", "sdd";
149                                 nvidia,function = "pwm";
150                         };
151                         sdio1 {
152                                 nvidia,pins = "sdio1";
153                                 nvidia,function = "sdio1";
154                         };
155                         slxc {
156                                 nvidia,pins = "slxc", "slxd";
157                                 nvidia,function = "sdio3";
158                         };
159                         spdi {
160                                 nvidia,pins = "spdi", "spdo";
161                                 nvidia,function = "spdif";
162                         };
163                         spia {
164                                 nvidia,pins = "spia", "spib", "spic";
165                                 nvidia,function = "spi2";
166                         };
167                         spid {
168                                 nvidia,pins = "spid", "spie", "spif";
169                                 nvidia,function = "spi1";
170                         };
171                         spig {
172                                 nvidia,pins = "spig", "spih";
173                                 nvidia,function = "spi2_alt";
174                         };
175                         uaa {
176                                 nvidia,pins = "uaa", "uab", "uda";
177                                 nvidia,function = "ulpi";
178                         };
179                         uad {
180                                 nvidia,pins = "uad";
181                                 nvidia,function = "irda";
182                         };
183                         uca {
184                                 nvidia,pins = "uca", "ucb";
185                                 nvidia,function = "uartc";
186                         };
187                         conf_ata {
188                                 nvidia,pins = "ata", "atc", "atd", "ate",
189                                         "crtp", "dap2", "dap3", "dap4", "dta",
190                                         "dtb", "dtc", "dtd", "dte", "gmb",
191                                         "gme", "i2cp", "pta", "slxc", "slxd",
192                                         "spdi", "spdo", "uda";
193                                 nvidia,pull = <0>;
194                                 nvidia,tristate = <1>;
195                         };
196                         conf_atb {
197                                 nvidia,pins = "atb", "cdev1", "cdev2", "dap1",
198                                         "gma", "gmc", "gmd", "gpu", "gpu7",
199                                         "gpv", "sdio1", "slxa", "slxk", "uac";
200                                 nvidia,pull = <0>;
201                                 nvidia,tristate = <0>;
202                         };
203                         conf_ck32 {
204                                 nvidia,pins = "ck32", "ddrc", "pmca", "pmcb",
205                                         "pmcc", "pmcd", "pmce", "xm2c", "xm2d";
206                                 nvidia,pull = <0>;
207                         };
208                         conf_csus {
209                                 nvidia,pins = "csus", "spia", "spib",
210                                         "spid", "spif";
211                                 nvidia,pull = <1>;
212                                 nvidia,tristate = <1>;
213                         };
214                         conf_ddc {
215                                 nvidia,pins = "ddc", "dtf", "rm", "sdc", "sdd";
216                                 nvidia,pull = <2>;
217                                 nvidia,tristate = <0>;
218                         };
219                         conf_hdint {
220                                 nvidia,pins = "hdint", "lcsn", "ldc", "lm1",
221                                         "lpw1", "lsc1", "lsck", "lsda", "lsdi",
222                                         "lvp0", "pmc";
223                                 nvidia,tristate = <1>;
224                         };
225                         conf_irrx {
226                                 nvidia,pins = "irrx", "irtx", "kbca", "kbcb",
227                                         "kbcc", "kbcd", "kbce", "kbcf", "owc",
228                                         "spic", "spie", "spig", "spih", "uaa",
229                                         "uab", "uad", "uca", "ucb";
230                                 nvidia,pull = <2>;
231                                 nvidia,tristate = <1>;
232                         };
233                         conf_lc {
234                                 nvidia,pins = "lc", "ls";
235                                 nvidia,pull = <2>;
236                         };
237                         conf_ld0 {
238                                 nvidia,pins = "ld0", "ld1", "ld2", "ld3", "ld4",
239                                         "ld5", "ld6", "ld7", "ld8", "ld9",
240                                         "ld10", "ld11", "ld12", "ld13", "ld14",
241                                         "ld15", "ld16", "ld17", "ldi", "lhp0",
242                                         "lhp1", "lhp2", "lhs", "lm0", "lpp",
243                                         "lpw0", "lpw2", "lsc0", "lspi", "lvp1",
244                                         "lvs", "sdb";
245                                 nvidia,tristate = <0>;
246                         };
247                         conf_ld17_0 {
248                                 nvidia,pins = "ld17_0", "ld19_18", "ld21_20",
249                                         "ld23_22";
250                                 nvidia,pull = <1>;
251                         };
252                         conf_spif {
253                                 nvidia,pins = "spif";
254                                 nvidia,pull = <1>;
255                                 nvidia,tristate = <0>;
256                         };
257                 };
258         };
260         i2s@70002800 {
261                 status = "okay";
262         };
264         serial@70006000 {
265                 status = "okay";
266         };
268         dvi_ddc: i2c@7000c000 {
269                 status = "okay";
270                 clock-frequency = <100000>;
271         };
273         spi@7000c380 {
274                 status = "okay";
275                 spi-max-frequency = <48000000>;
276                 spi-flash@0 {
277                         compatible = "winbond,w25q80bl";
278                         reg = <0>;
279                         spi-max-frequency = <48000000>;
280                 };
281         };
283         hdmi_ddc: i2c@7000c400 {
284                 status = "okay";
285                 clock-frequency = <100000>;
286         };
288         i2c@7000c500 {
289                 status = "okay";
290                 clock-frequency = <400000>;
292                 codec: codec@1a {
293                         compatible = "ti,tlv320aic23";
294                         reg = <0x1a>;
295                 };
297                 rtc@56 {
298                         compatible = "emmicro,em3027";
299                         reg = <0x56>;
300                 };
301         };
303         usb@c5000000 {
304                 status = "okay";
305                 nvidia,vbus-gpio = <&gpio 170 0>; /* gpio PV2 */
306         };
308         usb@c5004000 {
309                 status = "okay";
310                 nvidia,phy-reset-gpio = <&gpio 168 0>; /* gpio PV0 */
311         };
313         usb@c5008000 {
314                 status = "okay";
315         };
317         usb-phy@c5004400 {
318                 nvidia,phy-reset-gpio = <&gpio 168 0>; /* gpio PV0 */
319         };
321         sdhci@c8000000 {
322                 status = "okay";
323                 bus-width = <4>;
324         };
326         sdhci@c8000600 {
327                 status = "okay";
328                 cd-gpios = <&gpio 121 1>; /* gpio PP1 */
329                 wp-gpios = <&gpio 122 0>; /* gpio PP2 */
330                 bus-width = <4>;
331         };
333         clocks {
334                 compatible = "simple-bus";
335                 #address-cells = <1>;
336                 #size-cells = <0>;
338                 clk32k_in: clock {
339                         compatible = "fixed-clock";
340                         reg=<0>;
341                         #clock-cells = <0>;
342                         clock-frequency = <32768>;
343                 };
344         };
346         gpio-keys {
347                 compatible = "gpio-keys";
349                 power {
350                         label = "Power";
351                         gpios = <&gpio 190 1>; /* gpio PX6, active low */
352                         linux,code = <116>; /* KEY_POWER */
353                         gpio-key,wakeup;
354                 };
355         };
357         poweroff {
358                 compatible = "gpio-poweroff";
359                 gpios = <&gpio 191 1>; /* gpio PX7, active low */
360         };
362         regulators {
363                 compatible = "simple-bus";
364                 #address-cells = <1>;
365                 #size-cells = <0>;
367                 hdmi_vdd_reg: regulator@0 {
368                         compatible = "regulator-fixed";
369                         reg = <0>;
370                         regulator-name = "avdd_hdmi";
371                         regulator-min-microvolt = <3300000>;
372                         regulator-max-microvolt = <3300000>;
373                         regulator-always-on;
374                 };
376                 hdmi_pll_reg: regulator@1 {
377                         compatible = "regulator-fixed";
378                         reg = <1>;
379                         regulator-name = "avdd_hdmi_pll";
380                         regulator-min-microvolt = <1800000>;
381                         regulator-max-microvolt = <1800000>;
382                         regulator-always-on;
383                 };
384         };
386         sound {
387                 compatible = "nvidia,tegra-audio-trimslice";
388                 nvidia,i2s-controller = <&tegra_i2s1>;
389                 nvidia,audio-codec = <&codec>;
391                 clocks = <&tegra_car 112>, <&tegra_car 113>, <&tegra_car 93>;
392                 clock-names = "pll_a", "pll_a_out0", "mclk";
393         };