summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/omap3-minnow.dtsi
blob: 7140a47cca1b973741d2bb43f2eba27382416263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
/*
 * Copyright (C) 2013 Motorola Mobility LLC
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */
/include/ "omap36xx.dtsi"

/ {
	model = "Motorola OMAP3 Platform";
	compatible = "mot,omap3-minnow", "ti,omap3";

	Display@0 {
		compatible = "mot,minnow-panel-dsi-cm";
		/* 0: MINNOW_PANEL_CM_220X176
		 * 1: MINNOW_PANEL_CM_220X220
		 */
		id_panel = <1>;
		gpio_reset = <&gpio1 14 0>;	/* RESET gpio-14 */
		/* declare it if ext_te enable */
		//gpio_te = <&gpio1 0 0>;	/* EXT_TE gpio-0 */
		pins = <0 1 2 3>;		/* DSI Pin config */
		esd_interval = <0>;		/* ESD_INTERVAL */
		pixel_clock = <4608>;		/* kHZ = 320*240*60/1000*/
		/* 0: RGB888
		 * 1: RGB666
		 * 2: RGB666_PACKED
		 * 3: RGB565
		 */
		pixel_format = <1>;
		hs_clk = <100000000 150000000>;	/* min max*/
		lp_clk = <7000000 9000000>; 	/* min max*/
	};

	/* FIXME: this dummy regulator is only needed as
	   a reference, but is enough to let devices
	   reference something.  The regulator_get will
	   fall back to a dummy regulator internally.
	*/
	regulators {
		compatible = "simple-bus";

		dummy: regulator-dummy {
			compatible = "regulator-fixed";
			regulator-name = "dummy";
			regulator-always-on;
		};

		vmmc: gpio-regulator {
			compatible = "regulator-fixed";

			regulator-min-microvolt = <1800000>;
			regulator-max-microvolt = <1800000>;
			regulator-name = "vmmc";
			gpio = <&gpio6 26 0>;
			startup-delay-us = <70000>;
			enable-active-high;
		};

	};

	m4sensor {
		compatible = "simple-bus";
		wrist {
			compatible = "mot,m4wrist";
			mot,wrist_xres = <&gpio6 15 0>; /* xres gpio-175 */
			mot,wrist_clk =  <&gpio1 29 0>; /* clk  gpio-029 */
			mot,wrist_data = <&gpio1 15 0>; /* data gpio-015 */
		};

		pressure {
			compatible = "mot,m4pressure";
		};
		mpu9150 {
			compatible = "mot,m4mpu9150";
		};
		pedometer {
			compatible = "mot,m4pedometer";
		};
		passive {
			compatible = "mot,m4passive";
		};
		gesture {
			compatible = "mot,m4gesture";
		};
		display {
			compatible = "mot,m4display";
		};
		download {
			compatible = "mot,m4download";
		};
		stillmode {
			compatible = "mot,m4stillmode";
		};
	};
};



&i2c1 {
	clock-frequency = <400000>;

	atmxt@4a {
		compatible = "atmel,atmxt-ts";
		reg = <0x4a>;
		interrupt-parent = <&intc>;
		gpios = <&gpio4 3 0>, /* IRQ   gpio-099 */
			<&gpio6 4 0>; /* RESET gpio-164*/
		atmel,atmxt-tdat-filename = "atmxt-r2.tdat";
	};
};

&i2c2 {
	m4sensorhub@39 {
		compatible = "mot,m4sensorhub";
		status = "ok";
		reg = <0x39>;

		mot,irq-gpio    = <&gpio2 27 1>; /* gpio-059 */
		mot,reset-gpio  = <&gpio5  1 2>; /* gpio-129 */
		mot,wake-gpio   = <&gpio4 30 0>; /* gpio-126 */
		mot,boot0-gpio  = <&gpio1 21 0>; /* gpio-021 */
		mot,boot1-gpio  = <&gpio1 24 0>; /* gpio-024 */
		mot,enable-gpio = <&gpio1 28 0>; /* gpio-028 */
		mot,fw-filename = "m4sensorhub-p0_minnow.bin";
	};
};

&mcspi2 {
	m4sensorhubaudio {
		compatible = "mot,m4audio";
		reg = <0>; /* CS 0 */
		spi-max-frequency = <2000000>;
		spi-cpha = <0>;
		spi-cpol = <0>;
	};
};

&i2c3 {

	clock-frequency = <400000>;

	lm3535@38 {
		compatible = "ti,lm3535";
		reg = <0x38>;
	};
};


&omap3_pmx_core {
	pinctrl-names = "default";
	pinctrl-0 = <
		&board_pins
		&usb_phy_pins
	>;

	board_pins: pinmux_board_pins {
		pinctrl-single,pins = <
			0x08e 0x104	/* GPMC_CLK, MODE4 | INPUT */
			0x0a0 0x002	/* GPMC_WAIT2, MODE2 | OUTPUT */
			0x0a2 0x102	/* GPMC_WAIT3, MODE2 | INPUT */
			0x0c6 0x004	/* DSS_DATA13, MODE4 | OUTPUT */
			0x0ea 0x004	/* MUXCAM_D2, MODE4 | OUTPUT */
			0x0e4 0x004	/* CAM_FLD, MODE4 | OUTPUT */
			0x0e6 0x11c	/* CAM_D0, MODE4 | INPUT_PULLUP */
			0x122 0x004	/* SIM_CLK, MODE4 | OUTPUT */
			0x124 0x104	/* SIM_PWRCTRL, MODE4 | INPUT */
			0x144 0x000	/* UART2_TX, MODE0  | OUTPUT */
			0x146 0x000	/* UART2_RTS, MODE0 | OUTPUT */
			0x148 0x100	/* UART2_CTS, MODE0 | INPUT */
			0x14a 0x100	/* UART2_RX, MODE0 | INPUT */
			0x14c 0x000	/* UART1_TX, MODE0 | OUTPUT */
			0x14e 0x000	/* UART1_RTS, MODE0 | OUTPUT */
			0x150 0x100	/* UART1_CTS, MODE0 | INPUT */
			0x152 0x100	/* UART1_RX, MODE0 | INPUT */
			0x168 0x104	/* MCBSP1_CLKX, MODE4 | INPUT */
			0x16c 0x004	/* UART3_RTS_SD, MODE4 | OUTPUT */
			0x1a0 0x11b	/* MCSPI1_CS1, MODE3 | INPUT_PULLUP */
			0x18e 0x118	/* I2C2_SCL, MODE0 | INPUT_PULLUP */
			0x190 0x118	/* I2C2_SDA, MODE0 | INPUT_PULLUP */
			0x198 0x100     /* MCSPI1_CLK, MODE0 | INPUT */
			0x19a 0x000     /* MCSPI1_SIMO, MODE0 | OUTPUT */
			0x19c 0x100     /* MCSPI1_SOMI, MODE0 | INPUT */
			0x19e 0x000     /* MCSPI1_CS0, MODE0 | OUTPUT */
			0x1a6 0x100	/* MCSPI2_CLK, MODE0 | INPUT */
			0x1a8 0x000	/* MCSPI2_SIMO, MODE0 | OUTPUT */
			0x1aa 0x100	/* MCSPI2_SOMI, MODE0 | INPUT */
			0x1ac 0x000	/* MCSPI2_CS0, MODE0 | OUTPUT */
			0x1b0 0x104	/* SYS_NIRQ, MODE4 | INPUT  */
			0x1b2 0x004	/* SYS_CLKOUT2, MODE4 | OUTPUT  */
			0x5a8 0x11a	/* ETK_CLK, MODE2 | INPUT_PULLUP */
			0x5aa 0x11a	/* ETK_CTL, MODE2 | INPUT_PULLUP */
			0x5b2 0x11a	/* ETK_D3, MODE2 | INPUT_PULLUP */
			0x5b4 0x11a	/* ETK_D4, MODE2 | INPUT_PULLUP */
			0x5b6 0x11a	/* ETK_D5, MODE2 | INPUT_PULLUP */
			0x5b8 0x11a	/* ETK_D6, MODE2 | INPUT_PULLUP */
			0x5ba 0x004	/* ETK_D7, MODE4 | OUTPUT */
			0x5c0 0x004	/* ETK_D10, MODE4 | OUTPUT */
			0x5c8 0x004	/* ETK_D14, MODE4 | OUTPUT */
		>;
	};

	usb_phy_pins: pinmux_board_pins {
	};
};

&omap3_pmx_wkup{
	pinctrl-names = "default";
	pinctrl-0 = <&wkup_pins>;

	wkup_pins: pinmux_board_pins {
		pinctrl-single,pins = <
			0x01a 0x10c     /* SYS_CLKOUT1, MODE4 | INPUT_PULLDOWN */
			0x05a 0x004     /* GPIO_129, MODE4 | OUTPUT */
		>;
	};
};

/* internal */
&mmc2 {
	ti,non-removeable;
	bus-width = <8>;
	vmmc-supply = <&dummy>;
	vmmc_aux-supply = <&dummy>;
};

/* wireless */
&mmc3 {
	ti,non-removeable;
	cap-power-off-card;
	bus-width = <4>;
	vmmc-supply = <&vmmc>;
	wl_host_wake_gpio = <10>;
};