ARM/dts: omap5-evm: pinmux configuration for audio
[platform/adaptation/renesas_rcar/renesas_kernel.git] / arch / arm / boot / dts / omap5-evm.dts
1 /*
2  * Copyright (C) 2012 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/ "omap5.dtsi"
11
12 / {
13         model = "TI OMAP5 EVM board";
14         compatible = "ti,omap5-evm", "ti,omap5";
15
16         memory {
17                 device_type = "memory";
18                 reg = <0x80000000 0x40000000>; /* 1 GB */
19         };
20
21         vmmcsd_fixed: fixedregulator-mmcsd {
22                 compatible = "regulator-fixed";
23                 regulator-name = "vmmcsd_fixed";
24                 regulator-min-microvolt = <3000000>;
25                 regulator-max-microvolt = <3000000>;
26         };
27
28 };
29
30 &omap5_pmx_core {
31         pinctrl-names = "default";
32         pinctrl-0 = <
33                         &twl6040_pins
34                         &mcpdm_pins
35                         &dmic_pins
36                         &mcbsp1_pins
37                         &mcbsp2_pins
38         >;
39
40         twl6040_pins: pinmux_twl6040_pins {
41                 pinctrl-single,pins = <
42                         0x18a 0x6       /* perslimbus2_clock.gpio5_145 OUTPUT | MODE6 */
43                 >;
44         };
45
46         mcpdm_pins: pinmux_mcpdm_pins {
47                 pinctrl-single,pins = <
48                         0x142 0x108     /* abe_clks.abe_clks INPUT PULLDOWN | MODE0 */
49                         0x15c 0x108     /* abemcpdm_ul_data.abemcpdm_ul_data INPUT PULLDOWN | MODE0 */
50                         0x15e 0x108     /* abemcpdm_dl_data.abemcpdm_dl_data INPUT PULLDOWN | MODE0 */
51                         0x160 0x118     /* abemcpdm_frame.abemcpdm_frame INPUT PULLUP | MODE0 */
52                         0x162 0x108     /* abemcpdm_lb_clk.abemcpdm_lb_clk INPUT PULLDOWN | MODE0 */
53                 >;
54         };
55
56         dmic_pins: pinmux_dmic_pins {
57                 pinctrl-single,pins = <
58                         0x144 0x100     /* abedmic_din1.abedmic_din1 INPUT | MODE0 */
59                         0x146 0x100     /* abedmic_din2.abedmic_din2 INPUT | MODE0 */
60                         0x148 0x100     /* abedmic_din3.abedmic_din3 INPUT | MODE0 */
61                         0x14a 0         /* abedmic_clk1.abedmic_clk1 OUTPUT | MODE0 */
62                 >;
63         };
64
65         mcbsp1_pins: pinmux_mcbsp1_pins {
66                 pinctrl-single,pins = <
67                         0x14c 0x101     /* abedmic_clk2.abemcbsp1_fsx INPUT | MODE1 */
68                         0x14e 0x9       /* abedmic_clk3.abemcbsp1_dx OUTPUT PULLDOWN | MODE1 */
69                         0x150 0x101     /* abeslimbus1_clock.abemcbsp1_clkx INPUT | MODE0 */
70                         0x152 0x109     /* abeslimbus1_data.abemcbsp1_dr INPUT PULLDOWN | MODE1 */
71                 >;
72         };
73
74         mcbsp2_pins: pinmux_mcbsp2_pins {
75                 pinctrl-single,pins = <
76                         0x154 0x108     /* abemcbsp2_dr.abemcbsp2_dr INPUT PULLDOWN | MODE0 */
77                         0x156 0x8       /* abemcbsp2_dx.abemcbsp2_dx OUTPUT PULLDOWN | MODE0 */
78                         0x158 0x100     /* abemcbsp2_fsx.abemcbsp2_fsx INPUT | MODE0 */
79                         0x15a 0x100     /* abemcbsp2_clkx.abemcbsp2_clkx INPUT | MODE0 */
80                 >;
81         };
82 };
83
84 &mmc1 {
85         vmmc-supply = <&vmmcsd_fixed>;
86         bus-width = <4>;
87 };
88
89 &mmc2 {
90         vmmc-supply = <&vmmcsd_fixed>;
91         bus-width = <8>;
92         ti,non-removable;
93 };
94
95 &mmc3 {
96         bus-width = <4>;
97         ti,non-removable;
98 };
99
100 &mmc4 {
101         status = "disabled";
102 };
103
104 &mmc5 {
105         status = "disabled";
106 };
107
108 &i2c2 {
109         clock-frequency = <400000>;
110
111         /* Pressure Sensor */
112         bmp085@77 {
113                 compatible = "bosch,bmp085";
114                 reg = <0x77>;
115         };
116 };
117
118 &i2c4 {
119         clock-frequency = <400000>;
120
121         /* Temperature Sensor */
122         tmp102@48{
123                 compatible = "ti,tmp102";
124                 reg = <0x48>;
125         };
126 };
127
128 &keypad {
129         keypad,num-rows = <8>;
130         keypad,num-columns = <8>;
131         linux,keymap = <0x02020073      /* VOLUP */
132                         0x02030072      /* VOLDOWM */
133                         0x020400e7      /* SEND */
134                         0x02050066      /* HOME */
135                         0x0206006b      /* END */
136                         0x020700d9>;    /* SEARCH */
137         linux,input-no-autorepeat;
138 };
139
140 &mcbsp3 {
141         status = "disabled";
142 };