ARM: dts: am3517: Add pinmuxing, CD and WP for MMC1
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / am3517-evm.dts
1 /*
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 "am3517.dtsi"
11
12 / {
13         model = "TI AM3517 EVM (AM3517/05 TMDSEVM3517)";
14         compatible = "ti,am3517-evm", "ti,am3517", "ti,omap3";
15
16         memory@80000000 {
17                 device_type = "memory";
18                 reg = <0x80000000 0x10000000>; /* 256 MB */
19         };
20
21         vmmc_fixed: vmmc {
22                 compatible = "regulator-fixed";
23                 regulator-name = "vmmc_fixed";
24                 regulator-min-microvolt = <3300000>;
25                 regulator-max-microvolt = <3300000>;
26         };
27 };
28
29 &davinci_emac {
30              status = "okay";
31 };
32
33 &davinci_mdio {
34              status = "okay";
35 };
36
37 &i2c1 {
38         clock-frequency = <400000>;
39 };
40
41 &i2c2 {
42         clock-frequency = <400000>;
43 };
44
45 &i2c3 {
46         clock-frequency = <400000>;
47 };
48
49 &mmc1 {
50         status = "okay";
51         pinctrl-names = "default";
52         pinctrl-0 = <&mmc1_pins>;
53         vmmc-supply = <&vmmc_fixed>;
54         bus-width = <4>;
55         wp-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>; /* gpio_126 */
56         cd-gpios = <&gpio4 31 GPIO_ACTIVE_HIGH>; /* gpio_127 */
57 };
58
59 &mmc2 {
60       status = "disabled";
61 };
62
63 &mmc3 {
64       status = "disabled";
65 };
66
67 &omap3_pmx_core {
68
69         mmc1_pins: pinmux_mmc1_pins {
70                 pinctrl-single,pins = <
71                         OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
72                         OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
73                         OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
74                         OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
75                         OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
76                         OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
77                         OMAP3_CORE1_IOPAD(0x2150, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat4.gpio_126 */
78                         OMAP3_CORE1_IOPAD(0x2152, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat5.gpio_127 */
79                 >;
80         };
81 };