blob: 7a8e37de51b8767fab1967640ca0bf29e7043f2a [file] [log] [blame]
Marek Beliskoadfe1472013-08-15 22:43:05 +02001/*
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>;
Marek Beliskod26794c2013-12-21 16:12:23 +010095 interrupt-parent = <&gpio4>;
96 interrupts = <17 IRQ_TYPE_EDGE_RISING>;
Marek Beliskoadfe1472013-08-15 22:43:05 +020097 };
98
99 /* leds */
100 tca6507@45 {
101 compatible = "ti,tca6507";
102 #address-cells = <1>;
103 #size-cells = <0>;
104 reg = <0x45>;
105
106 gta04_led0: red_aux@0 {
107 label = "gta04:red:aux";
108 reg = <0x0>;
109 };
110
111 gta04_led1: green_aux@1 {
112 label = "gta04:green:aux";
113 reg = <0x1>;
114 };
115
116 gta04_led3: red_power@3 {
117 label = "gta04:red:power";
118 reg = <0x3>;
119 linux,default-trigger = "default-on";
120 };
121
122 gta04_led4: green_power@4 {
123 label = "gta04:green:power";
124 reg = <0x4>;
125 };
126 };
127};
128
129&i2c3 {
130 clock-frequency = <100000>;
131};
132
133&usb_otg_hs {
134 interface-type = <0>;
135 usb-phy = <&usb2_phy>;
Roger Quadrosd2afcf02013-10-07 16:28:13 +0300136 phys = <&usb2_phy>;
137 phy-names = "usb2-phy";
Marek Beliskoadfe1472013-08-15 22:43:05 +0200138 mode = <3>;
139 power = <50>;
140};
141
142&mmc1 {
143 pinctrl-names = "default";
144 pinctrl-0 = <&mmc1_pins>;
145 vmmc-supply = <&vmmc1>;
146 vmmc_aux-supply = <&vsim>;
147 bus-width = <4>;
148};
149
150&mmc2 {
151 status = "disabled";
152};
153
154&mmc3 {
155 status = "disabled";
156};
157
158&uart1 {
159 pinctrl-names = "default";
160 pinctrl-0 = <&uart1_pins>;
161};
162
163&uart2 {
164 pinctrl-names = "default";
165 pinctrl-0 = <&uart2_pins>;
166};
167
168&uart3 {
169 pinctrl-names = "default";
170 pinctrl-0 = <&uart3_pins>;
171};
172