diff options
author | Robby Cai <R63905@freescale.com> | 2014-02-24 01:52:51 -0500 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-16 09:58:06 -0400 |
commit | 08d6d61ae497b5f03f35aacc937943b8a8e62d3d (patch) | |
tree | bed0a8ad0d8b3603c8adf49003ffd1286f7461e4 | |
parent | 60524305b4485c9801de5323ae12fa4a141c7f54 (diff) |
ENGR00300658-2 ARM: dts: imx6sx: add csi and v4l2 capture support on imx6sx-sdb
Add CSI module and v4l2 capture support on imx6sx-sdb board
Note1: CSI has pin conflict with LCDIF1 on imx6sx-sdb board.
So camera connector(J13) and LCD expansion connector(J11) can not be used
at the same time. As a result, a new DTS file for LCDIF1 is added.
Note2: Camera connector(J13) can not be used without an adapter card (during
manufacturing process so far) because footprint is mirrored on Sabre-SDB.
This patch is to verify camera feature via LCD connector(J11).
Signed-off-by: Robby Cai <R63905@freescale.com>
-rw-r--r-- | arch/arm/boot/dts/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx6sx-sdb-lcdif1.dts | 23 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx6sx-sdb.dts | 11 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx6sx.dtsi | 37 |
4 files changed, 71 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 02e3d4a48f01..fd80bf32d6a4 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile | |||
@@ -139,6 +139,7 @@ dtb-$(CONFIG_ARCH_MXC) += \ | |||
139 | imx6sx-17x17-arm2.dtb \ | 139 | imx6sx-17x17-arm2.dtb \ |
140 | imx6sx-19x19-arm2.dtb \ | 140 | imx6sx-19x19-arm2.dtb \ |
141 | imx6sx-sdb.dtb \ | 141 | imx6sx-sdb.dtb \ |
142 | imx6sx-sdb-lcdif1.dtb \ | ||
142 | vf610-twr.dtb | 143 | vf610-twr.dtb |
143 | dtb-$(CONFIG_ARCH_MXS) += imx23-evk.dtb \ | 144 | dtb-$(CONFIG_ARCH_MXS) += imx23-evk.dtb \ |
144 | imx23-olinuxino.dtb \ | 145 | imx23-olinuxino.dtb \ |
diff --git a/arch/arm/boot/dts/imx6sx-sdb-lcdif1.dts b/arch/arm/boot/dts/imx6sx-sdb-lcdif1.dts new file mode 100644 index 000000000000..dccbcb416769 --- /dev/null +++ b/arch/arm/boot/dts/imx6sx-sdb-lcdif1.dts | |||
@@ -0,0 +1,23 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2014 Freescale Semiconductor, Inc. | ||
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 | |||
9 | #include "imx6sx-sdb.dts" | ||
10 | |||
11 | / { | ||
12 | csi1_v4l2_cap { | ||
13 | status = "disabled"; | ||
14 | }; | ||
15 | }; | ||
16 | |||
17 | &csi1 { | ||
18 | status = "disabled"; | ||
19 | }; | ||
20 | |||
21 | &lcdif1 { | ||
22 | status = "okay"; | ||
23 | }; | ||
diff --git a/arch/arm/boot/dts/imx6sx-sdb.dts b/arch/arm/boot/dts/imx6sx-sdb.dts index 69fcbe4b5a5f..87d7c2f56e52 100644 --- a/arch/arm/boot/dts/imx6sx-sdb.dts +++ b/arch/arm/boot/dts/imx6sx-sdb.dts | |||
@@ -81,6 +81,15 @@ | |||
81 | mux-int-port = <2>; | 81 | mux-int-port = <2>; |
82 | mux-ext-port = <6>; | 82 | mux-ext-port = <6>; |
83 | }; | 83 | }; |
84 | |||
85 | csi1_v4l2_cap { | ||
86 | compatible = "fsl,imx6sx-csi-v4l2", "fsl,imx6sl-csi-v4l2"; | ||
87 | status = "okay"; | ||
88 | }; | ||
89 | }; | ||
90 | |||
91 | &csi1 { | ||
92 | status = "okay"; | ||
84 | }; | 93 | }; |
85 | 94 | ||
86 | &adc1 { | 95 | &adc1 { |
@@ -380,7 +389,7 @@ | |||
380 | &pinctrl_lcdif_ctrl_0>; | 389 | &pinctrl_lcdif_ctrl_0>; |
381 | lcd-supply = <®_lcd_3v3>; | 390 | lcd-supply = <®_lcd_3v3>; |
382 | display = <&display>; | 391 | display = <&display>; |
383 | status = "okay"; | 392 | status = "disabled"; |
384 | 393 | ||
385 | display: display { | 394 | display: display { |
386 | bits-per-pixel = <16>; | 395 | bits-per-pixel = <16>; |
diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi index 8c7f82f00636..7d4b734914a3 100644 --- a/arch/arm/boot/dts/imx6sx.dtsi +++ b/arch/arm/boot/dts/imx6sx.dtsi | |||
@@ -872,6 +872,20 @@ | |||
872 | reg = <0x02240000 0x40000>; | 872 | reg = <0x02240000 0x40000>; |
873 | ranges; | 873 | ranges; |
874 | 874 | ||
875 | csi1: csi@02214000 { | ||
876 | compatible = "fsl,imx6sx-csi", "fsl,imx6sl-csi"; | ||
877 | reg = <0x02214000 0x4000>; | ||
878 | interrupts = <0 7 0x04>; | ||
879 | status = "disabled"; | ||
880 | }; | ||
881 | |||
882 | csi2: csi@0221c000 { | ||
883 | compatible = "fsl,imx6sx-csi", "fsl,imx6sl-csi"; | ||
884 | reg = <0x0221c000 0x4000>; | ||
885 | interrupts = <0 41 0x04>; | ||
886 | status = "disabled"; | ||
887 | }; | ||
888 | |||
875 | lcdif1: lcdif@02220000 { | 889 | lcdif1: lcdif@02220000 { |
876 | compatible = "fsl,imx6sx-lcdif", "fsl,imx28-lcdif"; | 890 | compatible = "fsl,imx6sx-lcdif", "fsl,imx28-lcdif"; |
877 | reg = <0x02220000 0x4000>; | 891 | reg = <0x02220000 0x4000>; |
@@ -992,6 +1006,29 @@ | |||
992 | }; | 1006 | }; |
993 | }; | 1007 | }; |
994 | 1008 | ||
1009 | csi { | ||
1010 | pinctrl_csi_0: csigrp-0 { | ||
1011 | fsl,pins = < | ||
1012 | MX6SX_PAD_LCD1_DATA07__CSI1_MCLK 0x110b0 | ||
1013 | MX6SX_PAD_LCD1_DATA06__CSI1_PIXCLK 0x110b0 | ||
1014 | MX6SX_PAD_LCD1_DATA04__CSI1_VSYNC 0x110b0 | ||
1015 | MX6SX_PAD_LCD1_DATA05__CSI1_HSYNC 0x110b0 | ||
1016 | MX6SX_PAD_LCD1_DATA17__CSI1_DATA_0 0x110b0 | ||
1017 | MX6SX_PAD_LCD1_DATA16__CSI1_DATA_1 0x110b0 | ||
1018 | MX6SX_PAD_LCD1_DATA15__CSI1_DATA_2 0x110b0 | ||
1019 | MX6SX_PAD_LCD1_DATA14__CSI1_DATA_3 0x110b0 | ||
1020 | MX6SX_PAD_LCD1_DATA13__CSI1_DATA_4 0x110b0 | ||
1021 | MX6SX_PAD_LCD1_DATA12__CSI1_DATA_5 0x110b0 | ||
1022 | MX6SX_PAD_LCD1_DATA11__CSI1_DATA_6 0x110b0 | ||
1023 | MX6SX_PAD_LCD1_DATA10__CSI1_DATA_7 0x110b0 | ||
1024 | MX6SX_PAD_LCD1_DATA09__CSI1_DATA_8 0x110b0 | ||
1025 | MX6SX_PAD_LCD1_DATA08__CSI1_DATA_9 0x110b0 | ||
1026 | MX6SX_PAD_LCD1_ENABLE__GPIO3_IO_25 0x80000000 | ||
1027 | MX6SX_PAD_LCD1_HSYNC__GPIO3_IO_26 0x80000000 | ||
1028 | >; | ||
1029 | }; | ||
1030 | }; | ||
1031 | |||
995 | enet1 { | 1032 | enet1 { |
996 | pinctrl_enet1_1: enet1grp-1 { | 1033 | pinctrl_enet1_1: enet1grp-1 { |
997 | fsl,pins = < | 1034 | fsl,pins = < |