]>
Commit | Line | Data |
---|---|---|
5a8095e9 JH |
1 | /* |
2 | * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or modify | |
5 | * it under the terms of the GNU General Public License version 2 as | |
6 | * published by the Free Software Foundation. | |
7 | */ | |
8 | /dts-v1/; | |
9 | ||
98ef7957 | 10 | #include "omap34xx.dtsi" |
5a8095e9 JH |
11 | |
12 | / { | |
13 | model = "TI OMAP3 BeagleBoard"; | |
14 | compatible = "ti,omap3-beagle", "ti,omap3"; | |
15 | ||
a134be34 NM |
16 | cpus { |
17 | cpu@0 { | |
18 | cpu0-supply = <&vcc>; | |
19 | }; | |
20 | }; | |
21 | ||
5a8095e9 JH |
22 | memory { |
23 | device_type = "memory"; | |
24 | reg = <0x80000000 0x10000000>; /* 256 MB */ | |
25 | }; | |
26 | ||
27 | leds { | |
28 | compatible = "gpio-leds"; | |
29 | pmu_stat { | |
30 | label = "beagleboard::pmu_stat"; | |
6d624eab | 31 | gpios = <&twl_gpio 19 GPIO_ACTIVE_HIGH>; /* LEDB */ |
5a8095e9 JH |
32 | }; |
33 | ||
34 | heartbeat { | |
35 | label = "beagleboard::usr0"; | |
6d624eab | 36 | gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>; /* 150 -> D6 LED */ |
5a8095e9 JH |
37 | linux,default-trigger = "heartbeat"; |
38 | }; | |
39 | ||
40 | mmc { | |
41 | label = "beagleboard::usr1"; | |
6d624eab | 42 | gpios = <&gpio5 21 GPIO_ACTIVE_HIGH>; /* 149 -> D7 LED */ |
5a8095e9 JH |
43 | linux,default-trigger = "mmc0"; |
44 | }; | |
45 | }; | |
46 | ||
2e5f78ae RQ |
47 | /* HS USB Port 2 Power */ |
48 | hsusb2_power: hsusb2_power_reg { | |
49 | compatible = "regulator-fixed"; | |
50 | regulator-name = "hsusb2_vbus"; | |
51 | regulator-min-microvolt = <3300000>; | |
52 | regulator-max-microvolt = <3300000>; | |
53 | gpio = <&twl_gpio 18 0>; /* GPIO LEDA */ | |
54 | startup-delay-us = <70000>; | |
55 | }; | |
56 | ||
57 | /* HS USB Host PHY on PORT 2 */ | |
58 | hsusb2_phy: hsusb2_phy { | |
59 | compatible = "usb-nop-xceiv"; | |
633b940f | 60 | reset-gpios = <&gpio5 19 GPIO_ACTIVE_LOW>; /* gpio_147 */ |
2e5f78ae RQ |
61 | vcc-supply = <&hsusb2_power>; |
62 | }; | |
d641c3d5 | 63 | |
33e9c392 JN |
64 | sound { |
65 | compatible = "ti,omap-twl4030"; | |
66 | ti,model = "omap3beagle"; | |
67 | ||
68 | ti,mcbsp = <&mcbsp2>; | |
69 | ti,codec = <&twl_audio>; | |
70 | }; | |
71 | ||
d641c3d5 KH |
72 | gpio_keys { |
73 | compatible = "gpio-keys"; | |
74 | ||
75 | user { | |
76 | label = "user"; | |
77 | gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; | |
78 | linux,code = <0x114>; | |
79 | gpio-key,wakeup; | |
80 | }; | |
81 | ||
82 | }; | |
83 | }; | |
84 | ||
85 | &omap3_pmx_wkup { | |
86 | gpio1_pins: pinmux_gpio1_pins { | |
87 | pinctrl-single,pins = < | |
88 | 0x14 (PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE4) /* sys_boot5.gpio_7 */ | |
89 | >; | |
90 | }; | |
2e5f78ae RQ |
91 | }; |
92 | ||
93 | &omap3_pmx_core { | |
94 | pinctrl-names = "default"; | |
95 | pinctrl-0 = < | |
3d495383 | 96 | &hsusb2_pins |
2e5f78ae RQ |
97 | >; |
98 | ||
3d495383 | 99 | hsusb2_pins: pinmux_hsusb2_pins { |
2e5f78ae | 100 | pinctrl-single,pins = < |
3d495383 LP |
101 | OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */ |
102 | OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */ | |
103 | OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */ | |
104 | OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */ | |
105 | OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */ | |
106 | OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */ | |
2e5f78ae RQ |
107 | >; |
108 | }; | |
b859c1ef KH |
109 | |
110 | uart3_pins: pinmux_uart3_pins { | |
111 | pinctrl-single,pins = < | |
112 | 0x16e (PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */ | |
113 | 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */ | |
114 | >; | |
115 | }; | |
5a8095e9 JH |
116 | }; |
117 | ||
3d495383 LP |
118 | &omap3_pmx_core2 { |
119 | pinctrl-names = "default"; | |
120 | pinctrl-0 = < | |
121 | &hsusb2_2_pins | |
122 | >; | |
123 | ||
124 | hsusb2_2_pins: pinmux_hsusb2_2_pins { | |
125 | pinctrl-single,pins = < | |
126 | OMAP3430_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */ | |
127 | OMAP3430_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */ | |
128 | OMAP3430_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */ | |
129 | OMAP3430_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */ | |
130 | OMAP3430_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */ | |
131 | OMAP3430_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */ | |
132 | >; | |
133 | }; | |
134 | }; | |
135 | ||
5a8095e9 JH |
136 | &i2c1 { |
137 | clock-frequency = <2600000>; | |
138 | ||
139 | twl: twl@48 { | |
140 | reg = <0x48>; | |
141 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ | |
142 | interrupt-parent = <&intc>; | |
33e9c392 JN |
143 | |
144 | twl_audio: audio { | |
145 | compatible = "ti,twl4030-audio"; | |
146 | codec { | |
147 | }; | |
148 | }; | |
5a8095e9 JH |
149 | }; |
150 | }; | |
151 | ||
98ef7957 | 152 | #include "twl4030.dtsi" |
f9688457 | 153 | #include "twl4030_omap3.dtsi" |
5a8095e9 JH |
154 | |
155 | &mmc1 { | |
156 | vmmc-supply = <&vmmc1>; | |
157 | vmmc_aux-supply = <&vsim>; | |
158 | bus-width = <8>; | |
159 | }; | |
160 | ||
161 | &mmc2 { | |
162 | status = "disabled"; | |
163 | }; | |
164 | ||
165 | &mmc3 { | |
166 | status = "disabled"; | |
167 | }; | |
2e5f78ae RQ |
168 | |
169 | &usbhshost { | |
170 | port2-mode = "ehci-phy"; | |
171 | }; | |
172 | ||
173 | &usbhsehci { | |
174 | phys = <0 &hsusb2_phy>; | |
175 | }; | |
176 | ||
177 | &twl_gpio { | |
178 | ti,use-leds; | |
179 | /* pullups: BIT(1) */ | |
180 | ti,pullups = <0x000002>; | |
181 | /* | |
182 | * pulldowns: | |
183 | * BIT(2), BIT(6), BIT(7), BIT(8), BIT(13) | |
184 | * BIT(15), BIT(16), BIT(17) | |
185 | */ | |
186 | ti,pulldowns = <0x03a1c4>; | |
187 | }; | |
b859c1ef KH |
188 | |
189 | &uart3 { | |
190 | pinctrl-names = "default"; | |
191 | pinctrl-0 = <&uart3_pins>; | |
192 | }; | |
d641c3d5 KH |
193 | |
194 | &gpio1 { | |
195 | pinctrl-names = "default"; | |
196 | pinctrl-0 = <&gpio1_pins>; | |
197 | }; | |
81660208 RQ |
198 | |
199 | &usb_otg_hs { | |
200 | interface-type = <0>; | |
201 | usb-phy = <&usb2_phy>; | |
b462b05a RQ |
202 | phys = <&usb2_phy>; |
203 | phy-names = "usb2-phy"; | |
81660208 RQ |
204 | mode = <3>; |
205 | power = <50>; | |
206 | }; | |
30023a7e RQ |
207 | |
208 | &vaux2 { | |
209 | regulator-name = "vdd_ehci"; | |
210 | regulator-min-microvolt = <1800000>; | |
211 | regulator-max-microvolt = <1800000>; | |
212 | regulator-always-on; | |
213 | }; |