-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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>
- Loading branch information
Josh Wu
authored and
Mauro Carvalho Chehab
committed
Jul 30, 2014
1 parent
833e106
commit 8ff19bc
Showing
2 changed files
with
114 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
Atmel Image Sensor Interface (ISI) SoC Camera Subsystem | ||
---------------------------------------------- | ||
|
||
Required properties: | ||
- compatible: must be "atmel,at91sam9g45-isi" | ||
- reg: physical base address and length of the registers set for the device; | ||
- interrupts: should contain IRQ line for the ISI; | ||
- clocks: list of clock specifiers, corresponding to entries in | ||
the clock-names property; | ||
- clock-names: must contain "isi_clk", which is the isi peripherial clock. | ||
|
||
ISI supports a single port node with parallel bus. It should contain one | ||
'port' child node with child 'endpoint' node. Please refer to the bindings | ||
defined in Documentation/devicetree/bindings/media/video-interfaces.txt. | ||
|
||
Example: | ||
isi: isi@f0034000 { | ||
compatible = "atmel,at91sam9g45-isi"; | ||
reg = <0xf0034000 0x4000>; | ||
interrupts = <37 IRQ_TYPE_LEVEL_HIGH 5>; | ||
|
||
clocks = <&isi_clk>; | ||
clock-names = "isi_clk"; | ||
|
||
pinctrl-names = "default"; | ||
pinctrl-0 = <&pinctrl_isi>; | ||
|
||
port { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
isi_0: endpoint { | ||
remote-endpoint = <&ov2640_0>; | ||
bus-width = <8>; | ||
}; | ||
}; | ||
}; | ||
|
||
i2c1: i2c@f0018000 { | ||
ov2640: camera@0x30 { | ||
compatible = "omnivision,ov2640"; | ||
reg = <0x30>; | ||
|
||
port { | ||
ov2640_0: endpoint { | ||
remote-endpoint = <&isi_0>; | ||
bus-width = <8>; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters