aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2015-03-18 19:50:22 -0400
committerTony Lindgren <tony@atomide.com>2015-03-19 13:25:40 -0400
commit7eec52db361a6ae6fbbd86c2299718586866b664 (patch)
treee3c0d0f7a3c465fe9c310fcf11011f21cb4b8462
parentd1f2e5a135a6c0fd422398612aeab260cef28e82 (diff)
Documentation: DT: Add bindings for omap3isp
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--Documentation/devicetree/bindings/media/ti,omap3isp.txt71
-rw-r--r--MAINTAINERS1
-rw-r--r--include/dt-bindings/media/omap3-isp.h22
3 files changed, 94 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/media/ti,omap3isp.txt b/Documentation/devicetree/bindings/media/ti,omap3isp.txt
new file mode 100644
index 000000000000..ac23de855641
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/ti,omap3isp.txt
@@ -0,0 +1,71 @@
1OMAP 3 ISP Device Tree bindings
2===============================
3
4The DT definitions can be found in include/dt-bindings/media/omap3-isp.h.
5
6Required properties
7===================
8
9compatible : must contain "ti,omap3-isp"
10
11reg : the two registers sets (physical address and length) for the
12 ISP. The first set contains the core ISP registers up to
13 the end of the SBL block. The second set contains the
14 CSI PHYs and receivers registers.
15interrupts : the ISP interrupt specifier
16iommus : phandle and IOMMU specifier for the IOMMU that serves the ISP
17syscon : the phandle and register offset to the Complex I/O or CSI-PHY
18 register
19ti,phy-type : 0 -- OMAP3ISP_PHY_TYPE_COMPLEX_IO (e.g. 3430)
20 1 -- OMAP3ISP_PHY_TYPE_CSIPHY (e.g. 3630)
21#clock-cells : Must be 1 --- the ISP provides two external clocks,
22 cam_xclka and cam_xclkb, at indices 0 and 1,
23 respectively. Please find more information on common
24 clock bindings in ../clock/clock-bindings.txt.
25
26Port nodes (optional)
27---------------------
28
29More documentation on these bindings is available in
30video-interfaces.txt in the same directory.
31
32reg : The interface:
33 0 - parallel (CCDC)
34 1 - CSIPHY1 -- CSI2C / CCP2B on 3630;
35 CSI1 -- CSIb on 3430
36 2 - CSIPHY2 -- CSI2A / CCP2B on 3630;
37 CSI2 -- CSIa on 3430
38
39Optional properties
40===================
41
42vdd-csiphy1-supply : voltage supply of the CSI-2 PHY 1
43vdd-csiphy2-supply : voltage supply of the CSI-2 PHY 2
44
45Endpoint nodes
46--------------
47
48lane-polarities : lane polarity (required on CSI-2)
49 0 -- not inverted; 1 -- inverted
50data-lanes : an array of data lanes from 1 to 3. The length can
51 be either 1 or 2. (required on CSI-2)
52clock-lanes : the clock lane (from 1 to 3). (required on CSI-2)
53
54
55Example
56=======
57
58 isp@480bc000 {
59 compatible = "ti,omap3-isp";
60 reg = <0x480bc000 0x12fc
61 0x480bd800 0x0600>;
62 interrupts = <24>;
63 iommus = <&mmu_isp>;
64 syscon = <&scm_conf 0x2f0>;
65 ti,phy-type = <OMAP3ISP_PHY_TYPE_CSIPHY>;
66 #clock-cells = <1>;
67 ports {
68 #address-cells = <1>;
69 #size-cells = <0>;
70 };
71 };
diff --git a/MAINTAINERS b/MAINTAINERS
index eaf999638a65..6a271a6ff903 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -7077,6 +7077,7 @@ OMAP IMAGING SUBSYSTEM (OMAP3 ISP and OMAP4 ISS)
7077M: Laurent Pinchart <laurent.pinchart@ideasonboard.com> 7077M: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
7078L: linux-media@vger.kernel.org 7078L: linux-media@vger.kernel.org
7079S: Maintained 7079S: Maintained
7080F: Documentation/devicetree/bindings/media/ti,omap3isp.txt
7080F: drivers/media/platform/omap3isp/ 7081F: drivers/media/platform/omap3isp/
7081F: drivers/staging/media/omap4iss/ 7082F: drivers/staging/media/omap4iss/
7082 7083
diff --git a/include/dt-bindings/media/omap3-isp.h b/include/dt-bindings/media/omap3-isp.h
new file mode 100644
index 000000000000..b18c60e468c7
--- /dev/null
+++ b/include/dt-bindings/media/omap3-isp.h
@@ -0,0 +1,22 @@
1/*
2 * include/dt-bindings/media/omap3-isp.h
3 *
4 * Copyright (C) 2015 Sakari Ailus
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * version 2 as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 */
15
16#ifndef __DT_BINDINGS_OMAP3_ISP_H__
17#define __DT_BINDINGS_OMAP3_ISP_H__
18
19#define OMAP3ISP_PHY_TYPE_COMPLEX_IO 0
20#define OMAP3ISP_PHY_TYPE_CSIPHY 1
21
22#endif /* __DT_BINDINGS_OMAP3_ISP_H__ */