e4e152574b7e880e20a50ee84c1f76b1a46e5144
[linux.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         /* compass aka magnetometer */
127         hmc5843@1e {
128                 compatible = "honeywell,hmc5843";
129                 reg = <0x1e>;
130         };
131
132         /* touchscreen */
133         tsc2007@48 {
134                 compatible = "ti,tsc2007";
135                 reg = <0x48>;
136                 interrupt-parent = <&gpio6>;
137                 interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
138                 gpios = <&gpio6 0 GPIO_ACTIVE_LOW>;
139                 ti,x-plate-ohms = <600>;
140         };
141 };
142
143 &i2c3 {
144         clock-frequency = <100000>;
145 };
146
147 &usb_otg_hs {
148         interface-type = <0>;
149         usb-phy = <&usb2_phy>;
150         phys = <&usb2_phy>;
151         phy-names = "usb2-phy";
152         mode = <3>;
153         power = <50>;
154 };
155
156 &mmc1 {
157         pinctrl-names = "default";
158         pinctrl-0 = <&mmc1_pins>;
159         vmmc-supply = <&vmmc1>;
160         vmmc_aux-supply = <&vsim>;
161         bus-width = <4>;
162 };
163
164 &mmc2 {
165         status = "disabled";
166 };
167
168 &mmc3 {
169         status = "disabled";
170 };
171
172 &uart1 {
173         pinctrl-names = "default";
174         pinctrl-0 = <&uart1_pins>;
175 };
176
177 &uart2 {
178         pinctrl-names = "default";
179         pinctrl-0 = <&uart2_pins>;
180 };
181
182 &uart3 {
183         pinctrl-names = "default";
184         pinctrl-0 = <&uart3_pins>;
185 };
186
187 &charger {
188         bb_uvolt = <3200000>;
189         bb_uamp = <150>;
190 };