xref: /freebsd/sys/contrib/device-tree/Bindings/media/pxa-camera.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotMarvell PXA camera host interface
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot - compatible: Should be "marvell,pxa270-qci"
5*c66ec88fSEmmanuel Vadot - reg: register base and size
6*c66ec88fSEmmanuel Vadot - interrupts: the interrupt number
7*c66ec88fSEmmanuel Vadot - any required generic properties defined in video-interfaces.txt
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel VadotOptional properties:
10*c66ec88fSEmmanuel Vadot - clocks: input clock (see clock-bindings.txt)
11*c66ec88fSEmmanuel Vadot - clock-output-names: should contain the name of the clock driving the
12*c66ec88fSEmmanuel Vadot                       sensor master clock MCLK
13*c66ec88fSEmmanuel Vadot - clock-frequency: host interface is driving MCLK, and MCLK rate is this rate
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel VadotExample:
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel Vadot	pxa_camera: pxa_camera@50000000 {
18*c66ec88fSEmmanuel Vadot		compatible = "marvell,pxa270-qci";
19*c66ec88fSEmmanuel Vadot		reg = <0x50000000 0x1000>;
20*c66ec88fSEmmanuel Vadot		interrupts = <33>;
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel Vadot		clocks = <&pxa2xx_clks 24>;
23*c66ec88fSEmmanuel Vadot		clock-names = "ciclk";
24*c66ec88fSEmmanuel Vadot		clock-frequency = <50000000>;
25*c66ec88fSEmmanuel Vadot		clock-output-names = "qci_mclk";
26*c66ec88fSEmmanuel Vadot
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot		port {
29*c66ec88fSEmmanuel Vadot			#address-cells = <1>;
30*c66ec88fSEmmanuel Vadot			#size-cells = <0>;
31*c66ec88fSEmmanuel Vadot
32*c66ec88fSEmmanuel Vadot			/* Parallel bus endpoint */
33*c66ec88fSEmmanuel Vadot			qci: endpoint@0 {
34*c66ec88fSEmmanuel Vadot				reg = <0>;		/* Local endpoint # */
35*c66ec88fSEmmanuel Vadot				remote-endpoint = <&mt9m111_1>;
36*c66ec88fSEmmanuel Vadot				bus-width = <8>;	/* Used data lines */
37*c66ec88fSEmmanuel Vadot				hsync-active = <0>;	/* Active low */
38*c66ec88fSEmmanuel Vadot				vsync-active = <0>;	/* Active low */
39*c66ec88fSEmmanuel Vadot				pclk-sample = <1>;	/* Rising */
40*c66ec88fSEmmanuel Vadot			};
41*c66ec88fSEmmanuel Vadot		};
42*c66ec88fSEmmanuel Vadot	};
43