xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/media/rockchip-isp1.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Rockchip SoC Image Signal Processing unit v1
2----------------------------------------------
3
4Rockchip ISP1 is the Camera interface for the Rockchip series of SoCs
5which contains image processing, scaling, and compression funcitons.
6
7Required properties:
8- compatible: value should be one of the following
9	"rockchip,rk1808-rkisp1";
10	"rockchip,rk3288-rkisp1";
11	"rockchip,rk3326-rkisp1";
12	"rockchip,rk3368-rkisp1";
13	"rockchip,rk3399-rkisp1";
14- reg : offset and length of the register set for the device.
15- interrupts: should contain ISP interrupt.
16- clocks: phandle to the required clocks.
17- clock-names: required clock name.
18- iommus: required a iommu node.
19
20port node
21-------------------
22
23The device node should contain one 'port' child node with child 'endpoint'
24nodes, according to the bindings defined in Documentation/devicetree/bindings/
25media/video-interfaces.txt.
26
27- endpoint(parallel):
28	- remote-endpoint: Connecting to a sensor with a parallel video bus.
29	- parallel_bus properties: Refer to Documentation/devicetree/bindings/
30		media/video-interfaces.txt.
31- endpoint(mipi):
32	- remote-endpoint: Connecting to Rockchip MIPI-DPHY,
33		which is defined in rockchip-mipi-dphy.txt.
34
35The port node must contain at least one endpoint, either parallel or mipi.
36It could have multiple endpoints, but please note the hardware don't support
37two sensors work at a time, they are supposed to work asynchronously.
38
39Device node example
40-------------------
41
42	isp0: isp0@ff910000 {
43		compatible = "rockchip,rk3399-rkisp1";
44		reg = <0x0 0xff910000 0x0 0x4000>;
45		interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH 0>;
46		clocks = <&cru SCLK_ISP0>,
47			 <&cru ACLK_ISP0>, <&cru ACLK_ISP0_WRAPPER>,
48			 <&cru HCLK_ISP0>, <&cru HCLK_ISP0_WRAPPER>;
49		clock-names = "clk_isp",
50			      "aclk_isp", "aclk_isp_wrap",
51			      "hclk_isp", "hclk_isp_wrap";
52		power-domains = <&power RK3399_PD_ISP0>;
53		iommus = <&isp0_mmu>;
54
55		port {
56			#address-cells = <1>;
57			#size-cells = <0>;
58
59			/* mipi */
60			isp0_mipi_in: endpoint@0 {
61				reg = <0>;
62				remote-endpoint = <&dphy_rx0_out>;
63			};
64
65			/* parallel */
66			isp0_parallel_in: endpoint@1 {
67				reg = <1>;
68				remote-endpoint = <&ov5640_out>;
69				bus-width = <8>;
70			};
71		};
72	};
73