diff options
author | Josh Wu <josh.wu@atmel.com> | 2014-07-28 03:25:17 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-30 18:48:36 -0400 |
commit | 8ff19bc437f8d42d8a03dafe2bb28c5b3fc1bff1 (patch) | |
tree | 4701913487f39c3687b2f002e4c40a7e64b16463 /Documentation/devicetree/bindings/media | |
parent | 833e1063266ebbf75934f1171c6546cdf33e9848 (diff) |
[media] media: atmel-isi: add primary DT support
This patch add the DT support for Atmel ISI driver.
It use the same v4l2 DT interface that defined in video-interfaces.txt.
Signed-off-by: Josh Wu <josh.wu@atmel.com>
Cc: devicetree@vger.kernel.org
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'Documentation/devicetree/bindings/media')
-rw-r--r-- | Documentation/devicetree/bindings/media/atmel-isi.txt | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/media/atmel-isi.txt b/Documentation/devicetree/bindings/media/atmel-isi.txt new file mode 100644 index 000000000000..17e71b7b44c6 --- /dev/null +++ b/Documentation/devicetree/bindings/media/atmel-isi.txt | |||
@@ -0,0 +1,51 @@ | |||
1 | Atmel Image Sensor Interface (ISI) SoC Camera Subsystem | ||
2 | ---------------------------------------------- | ||
3 | |||
4 | Required properties: | ||
5 | - compatible: must be "atmel,at91sam9g45-isi" | ||
6 | - reg: physical base address and length of the registers set for the device; | ||
7 | - interrupts: should contain IRQ line for the ISI; | ||
8 | - clocks: list of clock specifiers, corresponding to entries in | ||
9 | the clock-names property; | ||
10 | - clock-names: must contain "isi_clk", which is the isi peripherial clock. | ||
11 | |||
12 | ISI supports a single port node with parallel bus. It should contain one | ||
13 | 'port' child node with child 'endpoint' node. Please refer to the bindings | ||
14 | defined in Documentation/devicetree/bindings/media/video-interfaces.txt. | ||
15 | |||
16 | Example: | ||
17 | isi: isi@f0034000 { | ||
18 | compatible = "atmel,at91sam9g45-isi"; | ||
19 | reg = <0xf0034000 0x4000>; | ||
20 | interrupts = <37 IRQ_TYPE_LEVEL_HIGH 5>; | ||
21 | |||
22 | clocks = <&isi_clk>; | ||
23 | clock-names = "isi_clk"; | ||
24 | |||
25 | pinctrl-names = "default"; | ||
26 | pinctrl-0 = <&pinctrl_isi>; | ||
27 | |||
28 | port { | ||
29 | #address-cells = <1>; | ||
30 | #size-cells = <0>; | ||
31 | |||
32 | isi_0: endpoint { | ||
33 | remote-endpoint = <&ov2640_0>; | ||
34 | bus-width = <8>; | ||
35 | }; | ||
36 | }; | ||
37 | }; | ||
38 | |||
39 | i2c1: i2c@f0018000 { | ||
40 | ov2640: camera@0x30 { | ||
41 | compatible = "omnivision,ov2640"; | ||
42 | reg = <0x30>; | ||
43 | |||
44 | port { | ||
45 | ov2640_0: endpoint { | ||
46 | remote-endpoint = <&isi_0>; | ||
47 | bus-width = <8>; | ||
48 | }; | ||
49 | }; | ||
50 | }; | ||
51 | }; | ||