xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/media/atmel-isc.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunAtmel Image Sensor Controller (ISC)
2*4882a593Smuzhiyun----------------------------------------------
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunRequired properties for ISC:
5*4882a593Smuzhiyun- compatible
6*4882a593Smuzhiyun	Must be "atmel,sama5d2-isc".
7*4882a593Smuzhiyun- reg
8*4882a593Smuzhiyun	Physical base address and length of the registers set for the device.
9*4882a593Smuzhiyun- interrupts
10*4882a593Smuzhiyun	Should contain IRQ line for the ISC.
11*4882a593Smuzhiyun- clocks
12*4882a593Smuzhiyun	List of clock specifiers, corresponding to entries in
13*4882a593Smuzhiyun	the clock-names property;
14*4882a593Smuzhiyun	Please refer to clock-bindings.txt.
15*4882a593Smuzhiyun- clock-names
16*4882a593Smuzhiyun	Required elements: "hclock", "iscck", "gck".
17*4882a593Smuzhiyun- #clock-cells
18*4882a593Smuzhiyun	Should be 0.
19*4882a593Smuzhiyun- clock-output-names
20*4882a593Smuzhiyun	Should be "isc-mck".
21*4882a593Smuzhiyun- pinctrl-names, pinctrl-0
22*4882a593Smuzhiyun	Please refer to pinctrl-bindings.txt.
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunISC supports a single port node with parallel bus. It should contain one
25*4882a593Smuzhiyun'port' child node with child 'endpoint' node. Please refer to the bindings
26*4882a593Smuzhiyundefined in Documentation/devicetree/bindings/media/video-interfaces.txt.
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunExample:
29*4882a593Smuzhiyunisc: isc@f0008000 {
30*4882a593Smuzhiyun	compatible = "atmel,sama5d2-isc";
31*4882a593Smuzhiyun	reg = <0xf0008000 0x4000>;
32*4882a593Smuzhiyun	interrupts = <46 IRQ_TYPE_LEVEL_HIGH 5>;
33*4882a593Smuzhiyun	clocks = <&isc_clk>, <&iscck>, <&isc_gclk>;
34*4882a593Smuzhiyun	clock-names = "hclock", "iscck", "gck";
35*4882a593Smuzhiyun	#clock-cells = <0>;
36*4882a593Smuzhiyun	clock-output-names = "isc-mck";
37*4882a593Smuzhiyun	pinctrl-names = "default";
38*4882a593Smuzhiyun	pinctrl-0 = <&pinctrl_isc_base &pinctrl_isc_data_8bit &pinctrl_isc_data_9_10 &pinctrl_isc_data_11_12>;
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun	port {
41*4882a593Smuzhiyun		isc_0: endpoint {
42*4882a593Smuzhiyun			remote-endpoint = <&ov7740_0>;
43*4882a593Smuzhiyun			hsync-active = <1>;
44*4882a593Smuzhiyun			vsync-active = <0>;
45*4882a593Smuzhiyun			pclk-sample = <1>;
46*4882a593Smuzhiyun		};
47*4882a593Smuzhiyun	};
48*4882a593Smuzhiyun};
49*4882a593Smuzhiyun
50*4882a593Smuzhiyuni2c1: i2c@fc028000 {
51*4882a593Smuzhiyun	ov7740: camera@21 {
52*4882a593Smuzhiyun		compatible = "ovti,ov7740";
53*4882a593Smuzhiyun		reg = <0x21>;
54*4882a593Smuzhiyun		clocks = <&isc>;
55*4882a593Smuzhiyun		clock-names = "xvclk";
56*4882a593Smuzhiyun		assigned-clocks = <&isc>;
57*4882a593Smuzhiyun		assigned-clock-rates = <24000000>;
58*4882a593Smuzhiyun
59*4882a593Smuzhiyun		port {
60*4882a593Smuzhiyun			ov7740_0: endpoint {
61*4882a593Smuzhiyun				remote-endpoint = <&isc_0>;
62*4882a593Smuzhiyun			};
63*4882a593Smuzhiyun		};
64*4882a593Smuzhiyun	};
65*4882a593Smuzhiyun};
66