diff options
author | Sakari Ailus <sakari.ailus@iki.fi> | 2015-03-18 19:50:22 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2015-03-19 13:25:40 -0400 |
commit | 7eec52db361a6ae6fbbd86c2299718586866b664 (patch) | |
tree | e3c0d0f7a3c465fe9c310fcf11011f21cb4b8462 | |
parent | d1f2e5a135a6c0fd422398612aeab260cef28e82 (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.txt | 71 | ||||
-rw-r--r-- | MAINTAINERS | 1 | ||||
-rw-r--r-- | include/dt-bindings/media/omap3-isp.h | 22 |
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 @@ | |||
1 | OMAP 3 ISP Device Tree bindings | ||
2 | =============================== | ||
3 | |||
4 | The DT definitions can be found in include/dt-bindings/media/omap3-isp.h. | ||
5 | |||
6 | Required properties | ||
7 | =================== | ||
8 | |||
9 | compatible : must contain "ti,omap3-isp" | ||
10 | |||
11 | reg : 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. | ||
15 | interrupts : the ISP interrupt specifier | ||
16 | iommus : phandle and IOMMU specifier for the IOMMU that serves the ISP | ||
17 | syscon : the phandle and register offset to the Complex I/O or CSI-PHY | ||
18 | register | ||
19 | ti,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 | |||
26 | Port nodes (optional) | ||
27 | --------------------- | ||
28 | |||
29 | More documentation on these bindings is available in | ||
30 | video-interfaces.txt in the same directory. | ||
31 | |||
32 | reg : 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 | |||
39 | Optional properties | ||
40 | =================== | ||
41 | |||
42 | vdd-csiphy1-supply : voltage supply of the CSI-2 PHY 1 | ||
43 | vdd-csiphy2-supply : voltage supply of the CSI-2 PHY 2 | ||
44 | |||
45 | Endpoint nodes | ||
46 | -------------- | ||
47 | |||
48 | lane-polarities : lane polarity (required on CSI-2) | ||
49 | 0 -- not inverted; 1 -- inverted | ||
50 | data-lanes : an array of data lanes from 1 to 3. The length can | ||
51 | be either 1 or 2. (required on CSI-2) | ||
52 | clock-lanes : the clock lane (from 1 to 3). (required on CSI-2) | ||
53 | |||
54 | |||
55 | Example | ||
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) | |||
7077 | M: Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 7077 | M: Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
7078 | L: linux-media@vger.kernel.org | 7078 | L: linux-media@vger.kernel.org |
7079 | S: Maintained | 7079 | S: Maintained |
7080 | F: Documentation/devicetree/bindings/media/ti,omap3isp.txt | ||
7080 | F: drivers/media/platform/omap3isp/ | 7081 | F: drivers/media/platform/omap3isp/ |
7081 | F: drivers/staging/media/omap4iss/ | 7082 | F: 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__ */ | ||