Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / arch / arm / boot / dts / omap3-igep.dtsi
1 /*
2  * Common device tree for IGEP boards based on AM/DM37x
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
13 #include "omap36xx.dtsi"
14
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         };
26
27         vdd33: regulator-vdd33 {
28                 compatible = "regulator-fixed";
29                 regulator-name = "vdd33";
30                 regulator-always-on;
31         };
32
33 };
34
35 &omap3_pmx_core {
36         uart1_pins: pinmux_uart1_pins {
37                 pinctrl-single,pins = <
38                         0x152 (PIN_INPUT | MUX_MODE0)           /* uart1_rx.uart1_rx */
39                         0x14c (PIN_OUTPUT |MUX_MODE0)           /* uart1_tx.uart1_tx */
40                 >;
41         };
42
43         uart3_pins: pinmux_uart3_pins {
44                 pinctrl-single,pins = <
45                         0x16e (PIN_INPUT | MUX_MODE0)           /* uart3_rx.uart3_rx */
46                         0x170 (PIN_OUTPUT | MUX_MODE0)          /* uart3_tx.uart3_tx */
47                 >;
48         };
49
50         mcbsp2_pins: pinmux_mcbsp2_pins {
51                 pinctrl-single,pins = <
52                         0x10c (PIN_INPUT | MUX_MODE0)           /* mcbsp2_fsx.mcbsp2_fsx */
53                         0x10e (PIN_INPUT | MUX_MODE0)           /* mcbsp2_clkx.mcbsp2_clkx */
54                         0x110 (PIN_INPUT | MUX_MODE0)           /* mcbsp2_dr.mcbsp2.dr */
55                         0x112 (PIN_OUTPUT | MUX_MODE0)          /* mcbsp2_dx.mcbsp2_dx */
56                 >;
57         };
58
59         mmc1_pins: pinmux_mmc1_pins {
60                 pinctrl-single,pins = <
61                         0x114 (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_clk.sdmmc1_clk */
62                         0x116 (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_cmd.sdmmc1_cmd */
63                         0x118 (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_dat0.sdmmc1_dat0 */
64                         0x11a (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_dat1.sdmmc1_dat1 */
65                         0x11c (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_dat2.sdmmc1_dat2 */
66                         0x11e (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_dat3.sdmmc1_dat3 */
67                 >;
68         };
69
70         mmc2_pins: pinmux_mmc2_pins {
71                 pinctrl-single,pins = <
72                         0x128 (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_clk.sdmmc2_clk */
73                         0x12a (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_cmd.sdmmc2_cmd */
74                         0x12c (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_dat0.sdmmc2_dat0 */
75                         0x12e (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_dat1.sdmmc2_dat1 */
76                         0x130 (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_dat2.sdmmc2_dat2 */
77                         0x132 (PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_dat3.sdmmc2_dat3 */
78                 >;
79         };
80
81         smsc9221_pins: pinmux_smsc9221_pins {
82                 pinctrl-single,pins = <
83                         0x1a2 (PIN_INPUT | MUX_MODE4)           /* mcspi1_cs2.gpio_176 */
84                 >;
85         };
86
87         i2c1_pins: pinmux_i2c1_pins {
88                 pinctrl-single,pins = <
89                         0x18a (PIN_INPUT | MUX_MODE0)   /* i2c1_scl.i2c1_scl */
90                         0x18c (PIN_INPUT | MUX_MODE0)   /* i2c1_sda.i2c1_sda */
91                 >;
92         };
93
94         i2c3_pins: pinmux_i2c3_pins {
95                 pinctrl-single,pins = <
96                         0x192 (PIN_INPUT | MUX_MODE0)   /* i2c3_scl.i2c3_scl */
97                         0x194 (PIN_INPUT | MUX_MODE0)   /* i2c3_sda.i2c3_sda */
98                 >;
99         };
100 };
101
102 &gpmc {
103         nand@0,0 {
104                 linux,mtd-name= "micron,mt29c4g96maz";
105                 reg = <0 0 4>;  /* CS0, offset 0, IO size 4 */
106                 nand-bus-width = <16>;
107                 gpmc,device-width = <2>;
108                 ti,nand-ecc-opt = "bch8";
109
110                 gpmc,sync-clk-ps = <0>;
111                 gpmc,cs-on-ns = <0>;
112                 gpmc,cs-rd-off-ns = <44>;
113                 gpmc,cs-wr-off-ns = <44>;
114                 gpmc,adv-on-ns = <6>;
115                 gpmc,adv-rd-off-ns = <34>;
116                 gpmc,adv-wr-off-ns = <44>;
117                 gpmc,we-off-ns = <40>;
118                 gpmc,oe-off-ns = <54>;
119                 gpmc,access-ns = <64>;
120                 gpmc,rd-cycle-ns = <82>;
121                 gpmc,wr-cycle-ns = <82>;
122                 gpmc,wr-access-ns = <40>;
123                 gpmc,wr-data-mux-bus-ns = <0>;
124
125                 #address-cells = <1>;
126                 #size-cells = <1>;
127
128                 partition@0 {
129                         label = "SPL";
130                         reg = <0 0x100000>;
131                 };
132                 partition@80000 {
133                         label = "U-Boot";
134                         reg = <0x100000 0x180000>;
135                 };
136                 partition@1c0000 {
137                         label = "Environment";
138                         reg = <0x280000 0x100000>;
139                 };
140                 partition@280000 {
141                         label = "Kernel";
142                         reg = <0x380000 0x300000>;
143                 };
144                 partition@780000 {
145                         label = "Filesystem";
146                         reg = <0x680000 0x1f980000>;
147                 };
148         };
149 };
150
151 &i2c1 {
152         pinctrl-names = "default";
153         pinctrl-0 = <&i2c1_pins>;
154         clock-frequency = <2600000>;
155
156         twl: twl@48 {
157                 reg = <0x48>;
158                 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
159                 interrupt-parent = <&intc>;
160
161                 twl_audio: audio {
162                         compatible = "ti,twl4030-audio";
163                         codec {
164                               };
165                 };
166         };
167 };
168
169 #include "twl4030.dtsi"
170 #include "twl4030_omap3.dtsi"
171
172 &i2c3 {
173         pinctrl-names = "default";
174         pinctrl-0 = <&i2c3_pins>;
175 };
176
177 &mcbsp2 {
178         pinctrl-names = "default";
179         pinctrl-0 = <&mcbsp2_pins>;
180         status = "okay";
181 };
182
183 &mmc1 {
184       pinctrl-names = "default";
185       pinctrl-0 = <&mmc1_pins>;
186       vmmc-supply = <&vmmc1>;
187       vmmc_aux-supply = <&vsim>;
188       bus-width = <4>;
189 };
190
191 &mmc3 {
192         status = "disabled";
193 };
194
195 &uart1 {
196        pinctrl-names = "default";
197        pinctrl-0 = <&uart1_pins>;
198 };
199
200 &uart3 {
201        pinctrl-names = "default";
202        pinctrl-0 = <&uart3_pins>;
203 };
204
205 &twl_gpio {
206         ti,use-leds;
207 };
208
209 &usb_otg_hs {
210         interface-type = <0>;
211         usb-phy = <&usb2_phy>;
212         phys = <&usb2_phy>;
213         phy-names = "usb2-phy";
214         mode = <3>;
215         power = <50>;
216 };