blob: 3ba4a625ea5b9714ce4371e8a9637c108349158c [file] [log] [blame]
Jon Hunter5a8095e2012-09-11 11:01:59 -05001/*
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
Florian Vaussard98ef79572013-05-31 14:32:55 +020010#include "omap34xx.dtsi"
Jon Hunter5a8095e2012-09-11 11:01:59 -050011
12/ {
13 model = "TI OMAP3 BeagleBoard";
14 compatible = "ti,omap3-beagle", "ti,omap3";
15
Nishanth Menona134be32013-03-19 12:53:05 -050016 cpus {
17 cpu@0 {
18 cpu0-supply = <&vcc>;
19 };
20 };
21
Jon Hunter5a8095e2012-09-11 11:01:59 -050022 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";
Florian Vaussard6d624ea2013-05-31 14:32:56 +020031 gpios = <&twl_gpio 19 GPIO_ACTIVE_HIGH>; /* LEDB */
Jon Hunter5a8095e2012-09-11 11:01:59 -050032 };
33
34 heartbeat {
35 label = "beagleboard::usr0";
Florian Vaussard6d624ea2013-05-31 14:32:56 +020036 gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>; /* 150 -> D6 LED */
Jon Hunter5a8095e2012-09-11 11:01:59 -050037 linux,default-trigger = "heartbeat";
38 };
39
40 mmc {
41 label = "beagleboard::usr1";
Florian Vaussard6d624ea2013-05-31 14:32:56 +020042 gpios = <&gpio5 21 GPIO_ACTIVE_HIGH>; /* 149 -> D7 LED */
Jon Hunter5a8095e2012-09-11 11:01:59 -050043 linux,default-trigger = "mmc0";
44 };
45 };
46
Roger Quadros2e5f78a2013-03-20 17:45:00 +020047 /* 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";
Roger Quadros633b9402013-09-24 11:53:51 +030060 reset-gpios = <&gpio5 19 GPIO_ACTIVE_LOW>; /* gpio_147 */
Roger Quadros2e5f78a2013-03-20 17:45:00 +020061 vcc-supply = <&hsusb2_power>;
62 };
Kevin Hilmand641c3d2013-05-31 09:27:05 -070063
Jarkko Nikula33e9c392013-12-02 11:38:14 -080064 sound {
65 compatible = "ti,omap-twl4030";
66 ti,model = "omap3beagle";
67
68 ti,mcbsp = <&mcbsp2>;
69 ti,codec = <&twl_audio>;
70 };
71
Kevin Hilmand641c3d2013-05-31 09:27:05 -070072 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 };
Roger Quadros2e5f78a2013-03-20 17:45:00 +020091};
92
93&omap3_pmx_core {
94 pinctrl-names = "default";
95 pinctrl-0 = <
96 &hsusbb2_pins
97 >;
98
99 hsusbb2_pins: pinmux_hsusbb2_pins {
100 pinctrl-single,pins = <
Roger Quadros36f496a2013-08-15 13:18:28 +0300101 0x5c0 (PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */
102 0x5c2 (PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */
103 0x5c4 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */
104 0x5c6 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */
105 0x5c8 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */
106 0x5cA (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */
107 0x1a4 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */
108 0x1a6 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */
109 0x1a8 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */
110 0x1aa (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */
111 0x1ac (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */
112 0x1ae (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */
Roger Quadros2e5f78a2013-03-20 17:45:00 +0200113 >;
114 };
Kevin Hilmanb859c1e2013-05-30 17:38:00 -0700115
116 uart3_pins: pinmux_uart3_pins {
117 pinctrl-single,pins = <
118 0x16e (PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
119 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */
120 >;
121 };
Jon Hunter5a8095e2012-09-11 11:01:59 -0500122};
123
124&i2c1 {
125 clock-frequency = <2600000>;
126
127 twl: twl@48 {
128 reg = <0x48>;
129 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
130 interrupt-parent = <&intc>;
Jarkko Nikula33e9c392013-12-02 11:38:14 -0800131
132 twl_audio: audio {
133 compatible = "ti,twl4030-audio";
134 codec {
135 };
136 };
Jon Hunter5a8095e2012-09-11 11:01:59 -0500137 };
138};
139
Florian Vaussard98ef79572013-05-31 14:32:55 +0200140#include "twl4030.dtsi"
Kevin Hilmanf9688452013-05-31 14:09:34 -0700141#include "twl4030_omap3.dtsi"
Jon Hunter5a8095e2012-09-11 11:01:59 -0500142
143&mmc1 {
144 vmmc-supply = <&vmmc1>;
145 vmmc_aux-supply = <&vsim>;
146 bus-width = <8>;
147};
148
149&mmc2 {
150 status = "disabled";
151};
152
153&mmc3 {
154 status = "disabled";
155};
Roger Quadros2e5f78a2013-03-20 17:45:00 +0200156
157&usbhshost {
158 port2-mode = "ehci-phy";
159};
160
161&usbhsehci {
162 phys = <0 &hsusb2_phy>;
163};
164
165&twl_gpio {
166 ti,use-leds;
167 /* pullups: BIT(1) */
168 ti,pullups = <0x000002>;
169 /*
170 * pulldowns:
171 * BIT(2), BIT(6), BIT(7), BIT(8), BIT(13)
172 * BIT(15), BIT(16), BIT(17)
173 */
174 ti,pulldowns = <0x03a1c4>;
175};
Kevin Hilmanb859c1e2013-05-30 17:38:00 -0700176
177&uart3 {
178 pinctrl-names = "default";
179 pinctrl-0 = <&uart3_pins>;
180};
Kevin Hilmand641c3d2013-05-31 09:27:05 -0700181
182&gpio1 {
183 pinctrl-names = "default";
184 pinctrl-0 = <&gpio1_pins>;
185};
Roger Quadros81660202013-09-24 11:53:56 +0300186
187&usb_otg_hs {
188 interface-type = <0>;
189 usb-phy = <&usb2_phy>;
Roger Quadrosb462b052013-10-07 13:46:50 +0300190 phys = <&usb2_phy>;
191 phy-names = "usb2-phy";
Roger Quadros81660202013-09-24 11:53:56 +0300192 mode = <3>;
193 power = <50>;
194};
Roger Quadros30023a72013-11-26 15:03:39 -0800195
196&vaux2 {
197 regulator-name = "vdd_ehci";
198 regulator-min-microvolt = <1800000>;
199 regulator-max-microvolt = <1800000>;
200 regulator-always-on;
201};