Merge remote-tracking branch 'asoc/fix/sgtl5000' into asoc-linus
[cascardo/linux.git] / arch / arm / boot / dts / omap3-beagle.dts
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
10 #include "omap34xx.dtsi"
11
12 / {
13         model = "TI OMAP3 BeagleBoard";
14         compatible = "ti,omap3-beagle", "ti,omap3";
15
16         cpus {
17                 cpu@0 {
18                         cpu0-supply = <&vcc>;
19                 };
20         };
21
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";
31                         gpios = <&twl_gpio 19 GPIO_ACTIVE_HIGH>; /* LEDB */
32                 };
33
34                 heartbeat {
35                         label = "beagleboard::usr0";
36                         gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>; /* 150 -> D6 LED */
37                         linux,default-trigger = "heartbeat";
38                 };
39
40                 mmc {
41                         label = "beagleboard::usr1";
42                         gpios = <&gpio5 21 GPIO_ACTIVE_HIGH>; /* 149 -> D7 LED */
43                         linux,default-trigger = "mmc0";
44                 };
45         };
46
47         /* 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         };
74
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         };
94 };
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 = <
104                         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 */
116                 >;
117         };
118
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         };
125 };
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
137 #include "twl4030.dtsi"
138 #include "twl4030_omap3.dtsi"
139
140 &mmc1 {
141         vmmc-supply = <&vmmc1>;
142         vmmc_aux-supply = <&vsim>;
143         bus-width = <8>;
144 };
145
146 &mmc2 {
147         status = "disabled";
148 };
149
150 &mmc3 {
151         status = "disabled";
152 };
153
154 &usbhshost {
155         port2-mode = "ehci-phy";
156 };
157
158 &usbhsehci {
159         phys = <0 &hsusb2_phy>;
160 };
161
162 &twl_gpio {
163         ti,use-leds;
164         /* pullups: BIT(1) */
165         ti,pullups = <0x000002>;
166         /*
167          * pulldowns:
168          * BIT(2), BIT(6), BIT(7), BIT(8), BIT(13)
169          * BIT(15), BIT(16), BIT(17)
170          */
171         ti,pulldowns = <0x03a1c4>;
172 };
173
174 &uart3 {
175         pinctrl-names = "default";
176         pinctrl-0 = <&uart3_pins>;
177 };
178
179 &gpio1 {
180         pinctrl-names = "default";
181         pinctrl-0 = <&gpio1_pins>;
182 };