blob: eb7e02a01a0b9405102a12656eaf51c028bdd617 [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 RESET */
48 hsusb2_reset: hsusb2_reset_reg {
49 compatible = "regulator-fixed";
50 regulator-name = "hsusb2_reset";
51 regulator-min-microvolt = <3300000>;
52 regulator-max-microvolt = <3300000>;
53 gpio = <&gpio5 19 0>; /* gpio_147 */
54 startup-delay-us = <70000>;
55 enable-active-high;
56 };
57
58 /* HS USB Port 2 Power */
59 hsusb2_power: hsusb2_power_reg {
60 compatible = "regulator-fixed";
61 regulator-name = "hsusb2_vbus";
62 regulator-min-microvolt = <3300000>;
63 regulator-max-microvolt = <3300000>;
64 gpio = <&twl_gpio 18 0>; /* GPIO LEDA */
65 startup-delay-us = <70000>;
66 };
67
68 /* HS USB Host PHY on PORT 2 */
69 hsusb2_phy: hsusb2_phy {
70 compatible = "usb-nop-xceiv";
71 reset-supply = <&hsusb2_reset>;
72 vcc-supply = <&hsusb2_power>;
73 };
Kevin Hilmand641c3d2013-05-31 09:27:05 -070074
75 gpio_keys {
76 compatible = "gpio-keys";
77
78 user {
79 label = "user";
80 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
81 linux,code = <0x114>;
82 gpio-key,wakeup;
83 };
84
85 };
86};
87
88&omap3_pmx_wkup {
89 gpio1_pins: pinmux_gpio1_pins {
90 pinctrl-single,pins = <
91 0x14 (PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE4) /* sys_boot5.gpio_7 */
92 >;
93 };
Roger Quadros2e5f78a2013-03-20 17:45:00 +020094};
95
96&omap3_pmx_core {
97 pinctrl-names = "default";
98 pinctrl-0 = <
99 &hsusbb2_pins
100 >;
101
102 hsusbb2_pins: pinmux_hsusbb2_pins {
103 pinctrl-single,pins = <
Florian Vaussardbcd3cca2013-05-31 14:32:59 +0200104 0x5c0 (PIN_OUTPUT | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_clk */
105 0x5c2 (PIN_OUTPUT | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_stp */
106 0x5c4 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_dir */
107 0x5c6 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_nxt */
108 0x5c8 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_dat0 */
109 0x5cA (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_dat1 */
110 0x1a4 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_dat2 */
111 0x1a6 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_dat3 */
112 0x1a8 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_dat4 */
113 0x1aa (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_dat5 */
114 0x1ac (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_dat6 */
115 0x1ae (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_dat7 */
Roger Quadros2e5f78a2013-03-20 17:45:00 +0200116 >;
117 };
Kevin Hilmanb859c1e2013-05-30 17:38:00 -0700118
119 uart3_pins: pinmux_uart3_pins {
120 pinctrl-single,pins = <
121 0x16e (PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
122 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */
123 >;
124 };
Jon Hunter5a8095e2012-09-11 11:01:59 -0500125};
126
127&i2c1 {
128 clock-frequency = <2600000>;
129
130 twl: twl@48 {
131 reg = <0x48>;
132 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
133 interrupt-parent = <&intc>;
134 };
135};
136
Florian Vaussard98ef79572013-05-31 14:32:55 +0200137#include "twl4030.dtsi"
Jon Hunter5a8095e2012-09-11 11:01:59 -0500138
139&mmc1 {
140 vmmc-supply = <&vmmc1>;
141 vmmc_aux-supply = <&vsim>;
142 bus-width = <8>;
143};
144
145&mmc2 {
146 status = "disabled";
147};
148
149&mmc3 {
150 status = "disabled";
151};
Roger Quadros2e5f78a2013-03-20 17:45:00 +0200152
153&usbhshost {
154 port2-mode = "ehci-phy";
155};
156
157&usbhsehci {
158 phys = <0 &hsusb2_phy>;
159};
160
161&twl_gpio {
162 ti,use-leds;
163 /* pullups: BIT(1) */
164 ti,pullups = <0x000002>;
165 /*
166 * pulldowns:
167 * BIT(2), BIT(6), BIT(7), BIT(8), BIT(13)
168 * BIT(15), BIT(16), BIT(17)
169 */
170 ti,pulldowns = <0x03a1c4>;
171};
Kevin Hilmanb859c1e2013-05-30 17:38:00 -0700172
173&uart3 {
174 pinctrl-names = "default";
175 pinctrl-0 = <&uart3_pins>;
176};
Kevin Hilmand641c3d2013-05-31 09:27:05 -0700177
178&gpio1 {
179 pinctrl-names = "default";
180 pinctrl-0 = <&gpio1_pins>;
181};