blob: ad17b6bdc87a5dc40b17e7ebebf9a29048101069 [file] [log] [blame]
Benoit Cousson295e98c62011-07-14 01:44:54 +05301/*
2 * Copyright (C) 2011 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 "omap36xx.dtsi"
Benoit Cousson295e98c62011-07-14 01:44:54 +053011
12/ {
Tony Lindgren642f12b2012-09-10 10:20:44 -070013 model = "TI OMAP3 BeagleBoard xM";
14 compatible = "ti,omap3-beagle-xm, ti,omap3-beagle", "ti,omap3";
Benoit Cousson295e98c62011-07-14 01:44:54 +053015
Nishanth Menona134be32013-03-19 12:53:05 -050016 cpus {
17 cpu@0 {
18 cpu0-supply = <&vcc>;
19 };
20 };
21
Benoit Cousson295e98c62011-07-14 01:44:54 +053022 memory {
23 device_type = "memory";
24 reg = <0x80000000 0x20000000>; /* 512 MB */
25 };
Florian Vaussarda60be2f2012-09-05 09:46:26 +020026
27 leds {
28 compatible = "gpio-leds";
Benoit Cousson1c1737e2012-09-05 16:42:04 +020029
30 heartbeat {
31 label = "beagleboard::usr0";
Florian Vaussard6d624ea2013-05-31 14:32:56 +020032 gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>; /* 150 -> D6 LED */
Benoit Cousson1c1737e2012-09-05 16:42:04 +020033 linux,default-trigger = "heartbeat";
34 };
35
36 mmc {
37 label = "beagleboard::usr1";
Florian Vaussard6d624ea2013-05-31 14:32:56 +020038 gpios = <&gpio5 21 GPIO_ACTIVE_HIGH>; /* 149 -> D7 LED */
Benoit Cousson1c1737e2012-09-05 16:42:04 +020039 linux,default-trigger = "mmc0";
40 };
Florian Vaussarda60be2f2012-09-05 09:46:26 +020041 };
Peter Ujfalusi2c195f92012-08-29 16:31:05 +030042
Peter Ujfalusi2c09c602013-01-18 15:16:18 +010043 pwmleds {
44 compatible = "pwm-leds";
45
46 pmu_stat {
47 label = "beagleboard::pmu_stat";
48 pwms = <&twl_pwmled 1 7812500>;
49 max-brightness = <127>;
50 };
51 };
52
Peter Ujfalusi2c195f92012-08-29 16:31:05 +030053 sound {
54 compatible = "ti,omap-twl4030";
55 ti,model = "omap3beagle";
56
57 ti,mcbsp = <&mcbsp2>;
58 ti,codec = <&twl_audio>;
59 };
Kevin Hilmand641c3d2013-05-31 09:27:05 -070060
61 gpio_keys {
62 compatible = "gpio-keys";
63
64 user {
65 label = "user";
66 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
67 linux,code = <0x114>;
68 gpio-key,wakeup;
69 };
70
71 };
72};
73
74&omap3_pmx_wkup {
75 gpio1_pins: pinmux_gpio1_pins {
76 pinctrl-single,pins = <
77 0x0e (PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE4) /* sys_boot2.gpio_4 */
78 >;
79 };
Benoit Cousson295e98c62011-07-14 01:44:54 +053080};
Benoit Cousson5340b512011-07-14 01:44:54 +053081
82&i2c1 {
83 clock-frequency = <2600000>;
84
85 twl: twl@48 {
86 reg = <0x48>;
87 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
88 interrupt-parent = <&intc>;
Rajendra Nayakecc7b062012-02-08 15:50:12 -080089
Peter Ujfalusi2c195f92012-08-29 16:31:05 +030090 twl_audio: audio {
91 compatible = "ti,twl4030-audio";
92 codec {
93 };
94 };
Benoit Cousson5340b512011-07-14 01:44:54 +053095 };
96};
97
Florian Vaussard98ef79572013-05-31 14:32:55 +020098#include "twl4030.dtsi"
Benoit Cousson5340b512011-07-14 01:44:54 +053099
100&i2c2 {
101 clock-frequency = <400000>;
102};
103
104&i2c3 {
105 clock-frequency = <100000>;
106
107 /*
108 * Display monitor features are burnt in the EEPROM
109 * as EDID data.
110 */
111 eeprom@50 {
112 compatible = "ti,eeprom";
113 reg = <0x50>;
114 };
115};
Rajendra Nayakb3431f52012-02-22 17:42:27 +0530116
117&mmc1 {
118 vmmc-supply = <&vmmc1>;
119 vmmc_aux-supply = <&vsim>;
Arnd Bergmann7f217792012-05-13 00:14:24 -0400120 bus-width = <8>;
Rajendra Nayakb3431f52012-02-22 17:42:27 +0530121};
122
123&mmc2 {
Roland Stiggefd5c3fd2012-06-21 01:36:03 -0700124 status = "disabled";
Rajendra Nayakb3431f52012-02-22 17:42:27 +0530125};
126
127&mmc3 {
Roland Stiggefd5c3fd2012-06-21 01:36:03 -0700128 status = "disabled";
Rajendra Nayakb3431f52012-02-22 17:42:27 +0530129};
Florian Vaussarda60be2f2012-09-05 09:46:26 +0200130
131&twl_gpio {
132 ti,use-leds;
133 /* pullups: BIT(1) */
134 ti,pullups = <0x000002>;
135 /*
136 * pulldowns:
137 * BIT(2), BIT(6), BIT(7), BIT(8), BIT(13)
138 * BIT(15), BIT(16), BIT(17)
139 */
140 ti,pulldowns = <0x03a1c4>;
141};
Kishon Vijay Abraham Iad871c12013-03-07 19:05:16 +0530142
143&usb_otg_hs {
144 interface-type = <0>;
Jason Cooper914dc322013-05-09 09:06:57 -0700145 usb-phy = <&usb2_phy>;
Kishon Vijay Abraham Iad871c12013-03-07 19:05:16 +0530146 mode = <3>;
147 power = <50>;
148};
Kevin Hilmanb859c1e2013-05-30 17:38:00 -0700149
150&omap3_pmx_core {
151 uart3_pins: pinmux_uart3_pins {
152 pinctrl-single,pins = <
153 0x16e (PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
154 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx OUTPUT | MODE0 */
155 >;
156 };
157};
158
159&uart3 {
160 pinctrl-names = "default";
161 pinctrl-0 = <&uart3_pins>;
162};
Kevin Hilmand641c3d2013-05-31 09:27:05 -0700163
164&gpio1 {
165 pinctrl-names = "default";
166 pinctrl-0 = <&gpio1_pins>;
167};