Merge remote-tracking branches 'asoc/fix/atmel', 'asoc/fix/fsl', 'asoc/fix/tegra...
[linux-drm-fsl-dcu.git] / arch / arm / boot / dts / omap3-gta04.dts
1 /*
2  * Copyright (C) 2013 Marek Belisko <marek@goldelico.com>
3  *
4  * Based on omap3-beagle-xm.dts
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  */
10 /dts-v1/;
11
12 #include "omap36xx.dtsi"
13
14 / {
15         model = "OMAP3 GTA04";
16         compatible = "ti,omap3-gta04", "ti,omap3";
17
18         cpus {
19                 cpu@0 {
20                         cpu0-supply = <&vcc>;
21                 };
22         };
23
24         memory {
25                 device_type = "memory";
26                 reg = <0x80000000 0x20000000>; /* 512 MB */
27         };
28
29         gpio-keys {
30                 compatible = "gpio-keys";
31
32                 aux-button {
33                         label = "aux";
34                         linux,code = <169>;
35                         gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
36                         gpio-key,wakeup;
37                 };
38         };
39 };
40
41 &omap3_pmx_core {
42         uart1_pins: pinmux_uart1_pins {
43                 pinctrl-single,pins = <
44                         0x152 (PIN_INPUT | MUX_MODE0)           /* uart1_rx.uart1_rx */
45                         0x14c (PIN_OUTPUT |MUX_MODE0)           /* uart1_tx.uart1_tx */
46                 >;
47         };
48
49         uart2_pins: pinmux_uart2_pins {
50                 pinctrl-single,pins = <
51                         0x14a (PIN_INPUT | MUX_MODE0)           /* uart2_rx.uart2_rx */
52                         0x148 (PIN_OUTPUT | MUX_MODE0)          /* uart2_tx.uart2_tx */
53                 >;
54         };
55
56         uart3_pins: pinmux_uart3_pins {
57                 pinctrl-single,pins = <
58                         0x16e (PIN_INPUT | MUX_MODE0)           /* uart3_rx.uart3_rx */
59                         0x170 (PIN_OUTPUT | MUX_MODE0)          /* uart3_tx.uart3_tx */
60                 >;
61         };
62
63         mmc1_pins: pinmux_mmc1_pins {
64                 pinctrl-single,pins = <
65                         0x114 (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_clk.sdmmc1_clk */
66                         0x116 (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_cmd.sdmmc1_cmd */
67                         0x118 (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_dat0.sdmmc1_dat0 */
68                         0x11a (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_dat1.sdmmc1_dat1 */
69                         0x11c (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_dat2.sdmmc1_dat2 */
70                         0x11e (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_dat3.sdmmc1_dat3 */
71                 >;
72         };
73 };
74
75 &i2c1 {
76         clock-frequency = <2600000>;
77
78         twl: twl@48 {
79                 reg = <0x48>;
80                 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
81                 interrupt-parent = <&intc>;
82         };
83 };
84
85 #include "twl4030.dtsi"
86 #include "twl4030_omap3.dtsi"
87
88 &i2c2 {
89         clock-frequency = <400000>;
90
91         /* pressure sensor */
92         bmp085@77 {
93                 compatible = "bosch,bmp085";
94                 reg = <0x77>;
95         };
96
97         /* leds */
98         tca6507@45 {
99                 compatible = "ti,tca6507";
100                 #address-cells = <1>;
101                 #size-cells = <0>;
102                 reg = <0x45>;
103
104                 gta04_led0: red_aux@0 {
105                         label = "gta04:red:aux";
106                         reg = <0x0>;
107                 };
108
109                 gta04_led1: green_aux@1 {
110                         label = "gta04:green:aux";
111                         reg = <0x1>;
112                 };
113
114                 gta04_led3: red_power@3 {
115                         label = "gta04:red:power";
116                         reg = <0x3>;
117                         linux,default-trigger = "default-on";
118                 };
119
120                 gta04_led4: green_power@4 {
121                         label = "gta04:green:power";
122                         reg = <0x4>;
123                 };
124         };
125 };
126
127 &i2c3 {
128         clock-frequency = <100000>;
129 };
130
131 &usb_otg_hs {
132         interface-type = <0>;
133         usb-phy = <&usb2_phy>;
134         phys = <&usb2_phy>;
135         phy-names = "usb2-phy";
136         mode = <3>;
137         power = <50>;
138 };
139
140 &mmc1 {
141         pinctrl-names = "default";
142         pinctrl-0 = <&mmc1_pins>;
143         vmmc-supply = <&vmmc1>;
144         vmmc_aux-supply = <&vsim>;
145         bus-width = <4>;
146 };
147
148 &mmc2 {
149         status = "disabled";
150 };
151
152 &mmc3 {
153         status = "disabled";
154 };
155
156 &uart1 {
157         pinctrl-names = "default";
158         pinctrl-0 = <&uart1_pins>;
159 };
160
161 &uart2 {
162         pinctrl-names = "default";
163         pinctrl-0 = <&uart2_pins>;
164 };
165
166 &uart3 {
167         pinctrl-names = "default";
168         pinctrl-0 = <&uart3_pins>;
169 };
170