18c2ecf20Sopenharmony_ciSamsung S5P/Exynos SoC series MIPI CSI-2 receiver (MIPI CSIS)
28c2ecf20Sopenharmony_ci-------------------------------------------------------------
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ciRequired properties:
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci- compatible	  : "samsung,s5pv210-csis" for S5PV210 (S5PC110),
78c2ecf20Sopenharmony_ci		    "samsung,exynos4210-csis" for Exynos4210 (S5PC210),
88c2ecf20Sopenharmony_ci		    "samsung,exynos4212-csis" for Exynos4212/Exynos4412,
98c2ecf20Sopenharmony_ci		    "samsung,exynos5250-csis" for Exynos5250;
108c2ecf20Sopenharmony_ci- reg		  : offset and length of the register set for the device;
118c2ecf20Sopenharmony_ci- interrupts      : should contain MIPI CSIS interrupt; the format of the
128c2ecf20Sopenharmony_ci		    interrupt specifier depends on the interrupt controller;
138c2ecf20Sopenharmony_ci- bus-width	  : maximum number of data lanes supported (SoC specific);
148c2ecf20Sopenharmony_ci- vddio-supply    : MIPI CSIS I/O and PLL voltage supply (e.g. 1.8V);
158c2ecf20Sopenharmony_ci- vddcore-supply  : MIPI CSIS Core voltage supply (e.g. 1.1V);
168c2ecf20Sopenharmony_ci- clocks	  : list of clock specifiers, corresponding to entries in
178c2ecf20Sopenharmony_ci		    clock-names property;
188c2ecf20Sopenharmony_ci- clock-names	  : must contain "csis", "sclk_csis" entries, matching entries
198c2ecf20Sopenharmony_ci		    in the clocks property.
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ciOptional properties:
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci- clock-frequency : The IP's main (system bus) clock frequency in Hz, default
248c2ecf20Sopenharmony_ci		    value when this property is not specified is 166 MHz;
258c2ecf20Sopenharmony_ci- samsung,csis-wclk : CSI-2 wrapper clock selection. If this property is present
268c2ecf20Sopenharmony_ci		    external clock from CMU will be used, or the bus clock if
278c2ecf20Sopenharmony_ci		    if it's not specified.
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ciThe device node should contain one 'port' child node with one child 'endpoint'
308c2ecf20Sopenharmony_cinode, according to the bindings defined in Documentation/devicetree/bindings/
318c2ecf20Sopenharmony_cimedia/video-interfaces.txt. The following are properties specific to those nodes.
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ciport node
348c2ecf20Sopenharmony_ci---------
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci- reg		  : (required) must be 3 for camera C input (CSIS0) or 4 for
378c2ecf20Sopenharmony_ci		    camera D input (CSIS1);
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ciendpoint node
408c2ecf20Sopenharmony_ci-------------
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci- data-lanes	  : (required) an array specifying active physical MIPI-CSI2
438c2ecf20Sopenharmony_ci		    data input lanes and their mapping to logical lanes; the
448c2ecf20Sopenharmony_ci		    array's content is unused, only its length is meaningful;
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci- samsung,csis-hs-settle : (optional) differential receiver (HS-RX) settle time;
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ciExample:
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci	reg0: regulator@0 {
528c2ecf20Sopenharmony_ci	};
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ci	reg1: regulator@1 {
558c2ecf20Sopenharmony_ci	};
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci/* SoC properties */
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ci	csis_0: csis@11880000 {
608c2ecf20Sopenharmony_ci		compatible = "samsung,exynos4210-csis";
618c2ecf20Sopenharmony_ci		reg = <0x11880000 0x1000>;
628c2ecf20Sopenharmony_ci		interrupts = <0 78 0>;
638c2ecf20Sopenharmony_ci		#address-cells = <1>;
648c2ecf20Sopenharmony_ci		#size-cells = <0>;
658c2ecf20Sopenharmony_ci	};
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ci/* Board properties */
688c2ecf20Sopenharmony_ci
698c2ecf20Sopenharmony_ci	csis_0: csis@11880000 {
708c2ecf20Sopenharmony_ci		clock-frequency = <166000000>;
718c2ecf20Sopenharmony_ci		vddio-supply = <&reg0>;
728c2ecf20Sopenharmony_ci		vddcore-supply = <&reg1>;
738c2ecf20Sopenharmony_ci		port {
748c2ecf20Sopenharmony_ci			reg = <3>; /* 3 - CSIS0, 4 - CSIS1 */
758c2ecf20Sopenharmony_ci			csis0_ep: endpoint {
768c2ecf20Sopenharmony_ci				remote-endpoint = <...>;
778c2ecf20Sopenharmony_ci				data-lanes = <1>, <2>;
788c2ecf20Sopenharmony_ci				samsung,csis-hs-settle = <12>;
798c2ecf20Sopenharmony_ci			};
808c2ecf20Sopenharmony_ci		};
818c2ecf20Sopenharmony_ci	};
82