blob: ba1e58b7b7e35ddbdf4825853cf72cef6a951939 [file] [log] [blame]
Javier Martinez Canillas947fd0a2012-12-19 14:33:08 +01001/*
2 * Device Tree Source for IGEP Technology devices
3 *
4 * Copyright (C) 2012 Javier Martinez Canillas <javier@collabora.co.uk>
5 * Copyright (C) 2012 Enric Balletbo i Serra <eballetbo@gmail.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11/dts-v1/;
12
Florian Vaussard98ef79572013-05-31 14:32:55 +020013#include "omap34xx.dtsi"
Javier Martinez Canillas947fd0a2012-12-19 14:33:08 +010014
15/ {
16 memory {
17 device_type = "memory";
18 reg = <0x80000000 0x20000000>; /* 512 MB */
19 };
20
21 sound {
22 compatible = "ti,omap-twl4030";
23 ti,model = "igep2";
24 ti,mcbsp = <&mcbsp2>;
25 ti,codec = <&twl_audio>;
26 };
27};
28
29&omap3_pmx_core {
Matthias Bruggerbc0b8b72012-12-12 16:33:42 +010030 uart1_pins: pinmux_uart1_pins {
31 pinctrl-single,pins = <
Florian Vaussardbcd3cca2013-05-31 14:32:59 +020032 0x152 (PIN_INPUT | MUX_MODE0) /* uart1_rx.uart1_rx */
33 0x14c (PIN_OUTPUT |MUX_MODE0) /* uart1_tx.uart1_tx */
Matthias Bruggerbc0b8b72012-12-12 16:33:42 +010034 >;
35 };
36
37 uart2_pins: pinmux_uart2_pins {
38 pinctrl-single,pins = <
Florian Vaussardbcd3cca2013-05-31 14:32:59 +020039 0x14a (PIN_INPUT | MUX_MODE0) /* uart2_rx.uart2_rx */
40 0x148 (PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
Matthias Bruggerbc0b8b72012-12-12 16:33:42 +010041 >;
42 };
43
Javier Martinez Canillas947fd0a2012-12-19 14:33:08 +010044 uart3_pins: pinmux_uart3_pins {
45 pinctrl-single,pins = <
Florian Vaussardbcd3cca2013-05-31 14:32:59 +020046 0x16e (PIN_INPUT | MUX_MODE0) /* uart3_rx.uart3_rx */
47 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx.uart3_tx */
Javier Martinez Canillas947fd0a2012-12-19 14:33:08 +010048 >;
49 };
50
Enric Balletbo i Serra65399f02013-09-10 17:35:23 +020051 mcbsp2_pins: pinmux_mcbsp2_pins {
52 pinctrl-single,pins = <
53 0x10c (PIN_INPUT | MUX_MODE0) /* mcbsp2_fsx.mcbsp2_fsx */
54 0x10e (PIN_INPUT | MUX_MODE0) /* mcbsp2_clkx.mcbsp2_clkx */
55 0x110 (PIN_INPUT | MUX_MODE0) /* mcbsp2_dr.mcbsp2.dr */
56 0x112 (PIN_OUTPUT | MUX_MODE0) /* mcbsp2_dx.mcbsp2_dx */
57 >;
58 };
59
Javier Martinez Canillas947fd0a2012-12-19 14:33:08 +010060 mmc1_pins: pinmux_mmc1_pins {
61 pinctrl-single,pins = <
Florian Vaussardbcd3cca2013-05-31 14:32:59 +020062 0x114 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
63 0x116 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
64 0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
65 0x11a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
66 0x11c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
67 0x11e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
68 0x120 (PIN_INPUT | MUX_MODE0) /* sdmmc1_dat4.sdmmc1_dat4 */
69 0x122 (PIN_INPUT | MUX_MODE0) /* sdmmc1_dat5.sdmmc1_dat5 */
70 0x124 (PIN_INPUT | MUX_MODE0) /* sdmmc1_dat6.sdmmc1_dat6 */
71 0x126 (PIN_INPUT | MUX_MODE0) /* sdmmc1_dat7.sdmmc1_dat7 */
Javier Martinez Canillas947fd0a2012-12-19 14:33:08 +010072 >;
73 };
Javier Martinez Canillasd72b4412013-04-17 18:32:09 +020074
75 smsc911x_pins: pinmux_smsc911x_pins {
76 pinctrl-single,pins = <
Florian Vaussardbcd3cca2013-05-31 14:32:59 +020077 0x1a2 (PIN_INPUT | MUX_MODE4) /* mcspi1_cs2.gpio_176 */
Javier Martinez Canillasd72b4412013-04-17 18:32:09 +020078 >;
79 };
Javier Martinez Canillas00964a92013-06-20 16:42:30 +020080
81 leds_pins: pinmux_leds_pins { };
Javier Martinez Canillas947fd0a2012-12-19 14:33:08 +010082};
83
84&i2c1 {
85 clock-frequency = <2600000>;
86
87 twl: twl@48 {
88 reg = <0x48>;
89 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
90 interrupt-parent = <&intc>;
91
92 twl_audio: audio {
93 compatible = "ti,twl4030-audio";
94 codec {
95 };
96 };
97 };
98};
99
Florian Vaussard98ef79572013-05-31 14:32:55 +0200100#include "twl4030.dtsi"
Kevin Hilmanf9688452013-05-31 14:09:34 -0700101#include "twl4030_omap3.dtsi"
Javier Martinez Canillas947fd0a2012-12-19 14:33:08 +0100102
103&i2c2 {
104 clock-frequency = <400000>;
105};
106
Enric Balletbo i Serra65399f02013-09-10 17:35:23 +0200107&mcbsp2 {
108 pinctrl-names = "default";
109 pinctrl-0 = <&mcbsp2_pins>;
110};
111
Javier Martinez Canillas947fd0a2012-12-19 14:33:08 +0100112&mmc1 {
113 pinctrl-names = "default";
114 pinctrl-0 = <&mmc1_pins>;
115 vmmc-supply = <&vmmc1>;
116 vmmc_aux-supply = <&vsim>;
117 bus-width = <8>;
118};
119
120&mmc2 {
121 status = "disabled";
122};
123
124&mmc3 {
125 status = "disabled";
126};
127
Matthias Bruggerbc0b8b72012-12-12 16:33:42 +0100128&uart1 {
129 pinctrl-names = "default";
130 pinctrl-0 = <&uart1_pins>;
131};
132
133&uart2 {
134 pinctrl-names = "default";
135 pinctrl-0 = <&uart2_pins>;
136};
137
Javier Martinez Canillas947fd0a2012-12-19 14:33:08 +0100138&uart3 {
139 pinctrl-names = "default";
140 pinctrl-0 = <&uart3_pins>;
141};
142
143&twl_gpio {
144 ti,use-leds;
145};
Javier Martinez Canillasaa496bd2013-10-07 17:12:23 +0200146
147&usb_otg_hs {
148 interface-type = <0>;
149 usb-phy = <&usb2_phy>;
150 phys = <&usb2_phy>;
151 phy-names = "usb2-phy";
152 mode = <3>;
153 power = <50>;
154};