blob: 1751a254bebc56ac4038a506ae671badd7c8465a [file] [log] [blame]
Benoit Cousson38eb2ae2011-08-16 15:57:51 +02001/*
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
10/include/ "omap4.dtsi"
Aneesh V11c27062012-01-20 20:35:26 +053011/include/ "elpida_ecb240abacn.dtsi"
Benoit Cousson38eb2ae2011-08-16 15:57:51 +020012
13/ {
14 model = "TI OMAP4 PandaBoard";
15 compatible = "ti,omap4-panda", "ti,omap4430", "ti,omap4";
16
Benoit Cousson38eb2ae2011-08-16 15:57:51 +020017 memory {
18 device_type = "memory";
19 reg = <0x80000000 0x40000000>; /* 1 GB */
20 };
Benoit Cousson40364b92012-05-08 18:37:27 +020021
22 leds {
23 compatible = "gpio-leds";
24 heartbeat {
25 label = "pandaboard::status1";
26 gpios = <&gpio1 7 0>;
27 linux,default-trigger = "heartbeat";
28 };
29
30 mmc {
31 label = "pandaboard::status2";
32 gpios = <&gpio1 8 0>;
33 linux,default-trigger = "mmc0";
34 };
35 };
Peter Ujfalusi6cd3bc32012-06-08 17:02:04 +030036
37 sound: sound {
38 compatible = "ti,abe-twl6040";
39 ti,model = "PandaBoard";
40
41 ti,mclk-freq = <38400000>;
42
43 ti,mcpdm = <&mcpdm>;
44
45 ti,twl6040 = <&twl6040>;
46
47 /* Audio routing */
48 ti,audio-routing =
49 "Headset Stereophone", "HSOL",
50 "Headset Stereophone", "HSOR",
51 "Ext Spk", "HFL",
52 "Ext Spk", "HFR",
53 "Line Out", "AUXL",
54 "Line Out", "AUXR",
55 "HSMIC", "Headset Mic",
56 "Headset Mic", "Headset Mic Bias",
57 "AFML", "Line In",
58 "AFMR", "Line In";
59 };
Benoit Cousson38eb2ae2011-08-16 15:57:51 +020060};
Benoit Cousson898ee392011-08-17 18:42:25 +053061
Peter Ujfalusid0339b42012-10-04 14:57:26 +030062&omap4_pmx_core {
63 pinctrl-names = "default";
64 pinctrl-0 = <
65 &twl6040_pins
66 &mcpdm_pins
67 &mcbsp1_pins
Ricardo Neri0d9250c2012-11-05 15:14:14 +020068 &dss_hdmi_pins
69 &tpd12s015_pins
Peter Ujfalusid0339b42012-10-04 14:57:26 +030070 >;
71
72 twl6040_pins: pinmux_twl6040_pins {
73 pinctrl-single,pins = <
74 0xe0 0x3 /* hdq_sio.gpio_127 OUTPUT | MODE3 */
75 0x160 0x100 /* sys_nirq2.sys_nirq2 INPUT | MODE0 */
76 >;
77 };
78
79 mcpdm_pins: pinmux_mcpdm_pins {
80 pinctrl-single,pins = <
81 0xc6 0x108 /* abe_pdm_ul_data.abe_pdm_ul_data INPUT PULLDOWN | MODE0 */
82 0xc8 0x108 /* abe_pdm_dl_data.abe_pdm_dl_data INPUT PULLDOWN | MODE0 */
83 0xca 0x118 /* abe_pdm_frame.abe_pdm_frame INPUT PULLUP | MODE0 */
84 0xcc 0x108 /* abe_pdm_lb_clk.abe_pdm_lb_clk INPUT PULLDOWN | MODE0 */
85 0xce 0x108 /* abe_clks.abe_clks INPUT PULLDOWN | MODE0 */
86 >;
87 };
88
89 mcbsp1_pins: pinmux_mcbsp1_pins {
90 pinctrl-single,pins = <
91 0xbe 0x100 /* abe_mcbsp1_clkx.abe_mcbsp1_clkx INPUT | MODE0 */
92 0xc0 0x108 /* abe_mcbsp1_dr.abe_mcbsp1_dr INPUT PULLDOWN | MODE0 */
93 0xc2 0x8 /* abe_mcbsp1_dx.abe_mcbsp1_dx OUTPUT PULLDOWN | MODE0 */
94 0xc4 0x100 /* abe_mcbsp1_fsx.abe_mcbsp1_fsx INPUT | MODE0 */
95 >;
96 };
Ricardo Neri0d9250c2012-11-05 15:14:14 +020097
98 dss_hdmi_pins: pinmux_dss_hdmi_pins {
99 pinctrl-single,pins = <
100 0x5a 0x118 /* hdmi_cec.hdmi_cec INPUT PULLUP | MODE 0 */
101 0x5c 0x118 /* hdmi_scl.hdmi_scl INPUT PULLUP | MODE 0 */
102 0x5e 0x118 /* hdmi_sda.hdmi_sda INPUT PULLUP | MODE 0 */
103 >;
104 };
105
106 tpd12s015_pins: pinmux_tpd12s015_pins {
107 pinctrl-single,pins = <
108 0x22 0x3 /* gpmc_a17.gpio_41 OUTPUT | MODE3 */
109 0x48 0x3 /* gpmc_nbe1.gpio_60 OUTPUT | MODE3 */
110 0x58 0x10b /* hdmi_hpd.gpio_63 INPUT PULLDOWN | MODE3 */
111 >;
112 };
Sourav Poddaradb9e562013-02-13 14:58:30 +0530113
114 i2c1_pins: pinmux_i2c1_pins {
115 pinctrl-single,pins = <
116 0xe2 0x118 /* i2c1_scl PULLUP | INPUTENABLE | MODE0 */
117 0xe4 0x118 /* i2c1_sda PULLUP | INPUTENABLE | MODE0 */
118 >;
119 };
120
121 i2c2_pins: pinmux_i2c2_pins {
122 pinctrl-single,pins = <
123 0xe6 0x118 /* i2c2_scl PULLUP | INPUTENABLE | MODE0 */
124 0xe8 0x118 /* i2c2_sda PULLUP | INPUTENABLE | MODE0 */
125 >;
126 };
127
128 i2c3_pins: pinmux_i2c3_pins {
129 pinctrl-single,pins = <
130 0xea 0x118 /* i2c3_scl PULLUP | INPUTENABLE | MODE0 */
131 0xec 0x118 /* i2c3_sda PULLUP | INPUTENABLE | MODE0 */
132 >;
133 };
134
135 i2c4_pins: pinmux_i2c4_pins {
136 pinctrl-single,pins = <
137 0xee 0x118 /* i2c4_scl PULLUP | INPUTENABLE | MODE0 */
138 0xf0 0x118 /* i2c4_sda PULLUP | INPUTENABLE | MODE0 */
139 >;
140 };
Peter Ujfalusid0339b42012-10-04 14:57:26 +0300141};
142
Benoit Cousson898ee392011-08-17 18:42:25 +0530143&i2c1 {
Sourav Poddaradb9e562013-02-13 14:58:30 +0530144 pinctrl-names = "default";
145 pinctrl-0 = <&i2c1_pins>;
146
Benoit Cousson898ee392011-08-17 18:42:25 +0530147 clock-frequency = <400000>;
148
149 twl: twl@48 {
150 reg = <0x48>;
151 /* SPI = 0, IRQ# = 7, 4 = active high level-sensitive */
152 interrupts = <0 7 4>; /* IRQ_SYS_1N cascaded to gic */
153 interrupt-parent = <&gic>;
154 };
Peter Ujfalusi6cd3bc32012-06-08 17:02:04 +0300155
156 twl6040: twl@4b {
157 compatible = "ti,twl6040";
158 reg = <0x4b>;
159 /* SPI = 0, IRQ# = 119, 4 = active high level-sensitive */
160 interrupts = <0 119 4>; /* IRQ_SYS_2N cascaded to gic */
161 interrupt-parent = <&gic>;
162 ti,audpwron-gpio = <&gpio4 31 0>; /* gpio line 127 */
163
164 vio-supply = <&v1v8>;
165 v2v1-supply = <&v2v1>;
166 enable-active-high;
167 };
Benoit Cousson898ee392011-08-17 18:42:25 +0530168};
169
170/include/ "twl6030.dtsi"
171
172&i2c2 {
Sourav Poddaradb9e562013-02-13 14:58:30 +0530173 pinctrl-names = "default";
174 pinctrl-0 = <&i2c2_pins>;
175
Benoit Cousson898ee392011-08-17 18:42:25 +0530176 clock-frequency = <400000>;
177};
178
179&i2c3 {
Sourav Poddaradb9e562013-02-13 14:58:30 +0530180 pinctrl-names = "default";
181 pinctrl-0 = <&i2c3_pins>;
182
Benoit Cousson898ee392011-08-17 18:42:25 +0530183 clock-frequency = <100000>;
184
185 /*
186 * Display monitor features are burnt in their EEPROM as EDID data.
187 * The EEPROM is connected as I2C slave device.
188 */
189 eeprom@50 {
190 compatible = "ti,eeprom";
191 reg = <0x50>;
192 };
193};
194
195&i2c4 {
Sourav Poddaradb9e562013-02-13 14:58:30 +0530196 pinctrl-names = "default";
197 pinctrl-0 = <&i2c4_pins>;
198
Benoit Cousson898ee392011-08-17 18:42:25 +0530199 clock-frequency = <400000>;
200};
Rajendra Nayak74981762011-10-04 17:10:27 +0530201
202&mmc1 {
203 vmmc-supply = <&vmmc>;
Arnd Bergmann7f217792012-05-13 00:14:24 -0400204 bus-width = <8>;
Rajendra Nayak74981762011-10-04 17:10:27 +0530205};
206
207&mmc2 {
Roland Stiggefd5c3fd2012-06-21 01:36:03 -0700208 status = "disabled";
Rajendra Nayak74981762011-10-04 17:10:27 +0530209};
210
211&mmc3 {
Roland Stiggefd5c3fd2012-06-21 01:36:03 -0700212 status = "disabled";
Rajendra Nayak74981762011-10-04 17:10:27 +0530213};
214
215&mmc4 {
Roland Stiggefd5c3fd2012-06-21 01:36:03 -0700216 status = "disabled";
Rajendra Nayak74981762011-10-04 17:10:27 +0530217};
218
219&mmc5 {
220 ti,non-removable;
Arnd Bergmann7f217792012-05-13 00:14:24 -0400221 bus-width = <4>;
Rajendra Nayak74981762011-10-04 17:10:27 +0530222};
Aneesh V11c27062012-01-20 20:35:26 +0530223
224&emif1 {
225 cs1-used;
226 device-handle = <&elpida_ECB240ABACN>;
227};
228
229&emif2 {
230 cs1-used;
231 device-handle = <&elpida_ECB240ABACN>;
232};
Peter Ujfalusi6badc632012-10-04 14:57:22 +0300233
234&mcbsp2 {
235 status = "disabled";
236};
237
238&mcbsp3 {
239 status = "disabled";
240};
241
242&dmic {
243 status = "disabled";
244};
Kishon Vijay Abraham I6ff862f2012-09-19 15:02:06 +0530245
246&twl_usb_comparator {
247 usb-supply = <&vusb>;
248};
Kishon Vijay Abraham Iad871c12013-03-07 19:05:16 +0530249
250&usb_otg_hs {
251 interface-type = <1>;
252 mode = <3>;
253 power = <50>;
254};