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