Skip to content

Commit 05c4ffc

Browse files
aford173tmlind
authored andcommitted
ARM: dts: LogicPD Torpedo: Add MT9P031 Support
The Logic PD Torpedo standard kits come with a SOM populated to us an 8-bit parallel camera interface. This patch pin muxes the omap3-isp pins, sets the MT9P031 clicks, and configures the i2c2 bus to communicate with the mt9p031 on address 0x48. I have not done a lot of testing, but when modprobing mt9p031, then omap3-isp, the board responds with MT9P031 detected at address 0x48. Signed-off-by: Adam Ford <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent 2338c76 commit 05c4ffc

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,24 @@
217217
>;
218218
};
219219

220+
isp_pins: pinmux_isp_pins {
221+
pinctrl-single,pins = <
222+
OMAP3_CORE1_IOPAD(0x210c, PIN_INPUT | MUX_MODE0) /* cam_hs.cam_hs */
223+
OMAP3_CORE1_IOPAD(0x210e, PIN_INPUT | MUX_MODE0) /* cam_vs.cam_vs */
224+
OMAP3_CORE1_IOPAD(0x2110, PIN_INPUT | MUX_MODE0) /* cam_xclka.cam_xclka */
225+
OMAP3_CORE1_IOPAD(0x2112, PIN_INPUT | MUX_MODE0) /* cam_pclk.cam_pclk */
226+
227+
OMAP3_CORE1_IOPAD(0x2114, PIN_INPUT | MUX_MODE0) /* cam_d0.cam_d0 */
228+
OMAP3_CORE1_IOPAD(0x2116, PIN_INPUT | MUX_MODE0) /* cam_d1.cam_d1 */
229+
OMAP3_CORE1_IOPAD(0x2118, PIN_INPUT | MUX_MODE0) /* cam_d2.cam_d2 */
230+
OMAP3_CORE1_IOPAD(0x211c, PIN_INPUT | MUX_MODE0) /* cam_d3.cam_d3 */
231+
OMAP3_CORE1_IOPAD(0x211e, PIN_INPUT | MUX_MODE0) /* cam_d4.cam_d4 */
232+
OMAP3_CORE1_IOPAD(0x2120, PIN_INPUT | MUX_MODE0) /* cam_d5.cam_d5 */
233+
OMAP3_CORE1_IOPAD(0x2122, PIN_INPUT | MUX_MODE0) /* cam_d6.cam_d6 */
234+
OMAP3_CORE1_IOPAD(0x2124, PIN_INPUT | MUX_MODE0) /* cam_d7.cam_d7 */
235+
>;
236+
};
237+
220238
dss_dpi_pins1: pinmux_dss_dpi_pins1 {
221239
pinctrl-single,pins = <
222240
OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
@@ -268,6 +286,24 @@
268286
};
269287
};
270288

289+
&i2c2 {
290+
mt9p031@48 {
291+
compatible = "aptina,mt9p031";
292+
reg = <0x48>;
293+
clocks = <&isp 0>;
294+
vaa-supply = <&vaux4>;
295+
vdd-supply = <&vaux4>;
296+
vdd_io-supply = <&vaux4>;
297+
port {
298+
mt9p031_out: endpoint {
299+
input-clock-frequency = <24000000>;
300+
pixel-clock-frequency = <72000000>;
301+
remote-endpoint = <&ccdc_ep>;
302+
};
303+
};
304+
};
305+
};
306+
271307
&i2c3 {
272308
touchscreen: tsc2004@48 {
273309
compatible = "ti,tsc2004";
@@ -289,6 +325,23 @@
289325
};
290326
};
291327

328+
&isp {
329+
pinctrl-names = "default";
330+
pinctrl-0 = <&isp_pins>;
331+
ports {
332+
port@0 {
333+
reg = <0>;
334+
ccdc_ep: endpoint {
335+
remote-endpoint = <&mt9p031_out>;
336+
bus-width = <8>;
337+
hsync-active = <1>;
338+
vsync-active = <1>;
339+
pclk-sample = <0>;
340+
};
341+
};
342+
};
343+
};
344+
292345
&uart1 {
293346
interrupts-extended = <&intc 72 &omap3_pmx_core OMAP3_UART1_RX>;
294347
};

0 commit comments

Comments
 (0)