1 Samsung S5P/EXYNOS SoC Camera Subsystem (FIMC)
2 ----------------------------------------------
4 The S5P/Exynos SoC Camera subsystem comprises of multiple sub-devices
5 represented by separate device tree nodes. Currently this includes: FIMC (in
6 the S5P SoCs series known as CAMIF), MIPI CSIS, FIMC-LITE and FIMC-IS (ISP).
8 The sub-subdevices are defined as child nodes of the common 'camera' node which
9 also includes common properties of the whole subsystem not really specific to
10 any single sub-device, like common camera port pins or the CAMCLK clock outputs
11 for external image sensors attached to an SoC.
18 - compatible : must be "samsung,fimc", "simple-bus"
19 - clocks : list of clock specifiers, corresponding to entries in
20 the clock-names property;
21 - clock-names : must contain "sclk_cam0", "sclk_cam1", "pxl_async0",
22 "pxl_async1" entries, matching entries in the clocks property.
24 The pinctrl bindings defined in ../pinctrl/pinctrl-bindings.txt must be used
25 to define a required pinctrl state named "default" and optional pinctrl states:
26 "idle", "active-a", active-b". These optional states can be used to switch the
27 camera port pinmux at runtime. The "idle" state should configure both the camera
28 ports A and B into high impedance state, especially the CAMCLK clock output
29 should be inactive. For the "active-a" state the camera port A must be activated
30 and the port B deactivated and for the state "active-b" it should be the other
33 The 'camera' node must include at least one 'fimc' child node.
40 - compatible: "samsung,s5pv210-fimc" for S5PV210, "samsung,exynos4210-fimc"
41 for Exynos4210 and "samsung,exynos4212-fimc" for Exynos4x12 SoCs;
42 - reg: physical base address and length of the registers set for the device;
43 - interrupts: should contain FIMC interrupt;
44 - clocks: list of clock specifiers, must contain an entry for each required
46 - clock-names: must contain "fimc", "sclk_fimc" entries.
47 - samsung,pix-limits: an array of maximum supported image sizes in pixels, for
48 details refer to Table 2-1 in the S5PV210 SoC User Manual; The meaning of
49 each cell is as follows:
50 0 - scaler input horizontal size,
51 1 - input horizontal size for the scaler bypassed,
52 2 - REAL_WIDTH without input rotation,
53 3 - REAL_HEIGHT with input rotation,
54 - samsung,sysreg: a phandle to the SYSREG node.
56 Each FIMC device should have an alias in the aliases node, in the form of
57 fimc<n>, where <n> is an integer specifying the IP block instance.
61 - clock-frequency: maximum FIMC local clock (LCLK) frequency;
62 - samsung,min-pix-sizes: an array specyfing minimum image size in pixels at
63 the FIMC input and output DMA, in the first and second cell respectively.
64 Default value when this property is not present is <16 16>;
65 - samsung,min-pix-alignment: minimum supported image height alignment (first
66 cell) and the horizontal image offset (second cell). The values are in pixels
67 and default to <2 1> when this property is not present;
68 - samsung,mainscaler-ext: a boolean property indicating whether the FIMC IP
69 supports extended image size and has CIEXTEN register;
70 - samsung,rotators: a bitmask specifying whether this IP has the input and
71 the output rotator. Bits 4 and 0 correspond to input and output rotator
72 respectively. If a rotator is present its corresponding bit should be set.
73 Default value when this property is not specified is 0x11.
74 - samsung,cam-if: a bolean property indicating whether the IP block includes
75 the camera input interface.
76 - samsung,isp-wb: this property must be present if the IP block has the ISP
78 - samsung,lcd-wb: this property must be present if the IP block has the LCD
85 This node should contain child 'port' nodes specifying active parallel video
86 input ports. It includes camera A and camera B inputs. 'reg' property in the
87 port nodes specifies data input - 0, 1 indicates input A, B respectively.
91 - samsung,camclk-out : specifies clock output for remote sensor,
92 0 - CAM_A_CLKOUT, 1 - CAM_B_CLKOUT;
97 The sensor device nodes should be added to their control bus controller (e.g.
98 I2C0) nodes and linked to a port node in the csis or the parallel-ports node,
99 using the common video interfaces bindings, defined in video-interfaces.txt.
100 The implementation of this bindings requires clock-frequency property to be
101 present in the sensor device nodes.
109 /* Parallel bus IF sensor */
110 i2c_0: i2c@13860000 {
112 compatible = "samsung,s5k6aafx";
114 vddio-supply = <...>;
116 clock-frequency = <24000000>;
118 clock-names = "mclk";
121 s5k6aa_ep: endpoint {
122 remote-endpoint = <&fimc0_ep>;
132 /* MIPI CSI-2 bus IF sensor */
133 s5c73m3: sensor@0x1a {
134 compatible = "samsung,s5c73m3";
136 vddio-supply = <...>;
138 clock-frequency = <24000000>;
140 clock-names = "mclk";
143 s5c73m3_1: endpoint {
144 data-lanes = <1 2 3 4>;
145 remote-endpoint = <&csis0_ep>;
151 compatible = "samsung,fimc", "simple-bus";
152 #address-cells = <1>;
156 pinctrl-names = "default";
157 pinctrl-0 = <&cam_port_a_clk_active>;
159 /* parallel camera ports */
165 remote-endpoint = <&s5k6aa_ep>;
174 fimc_0: fimc@11800000 {
175 compatible = "samsung,exynos4210-fimc";
176 reg = <0x11800000 0x1000>;
177 interrupts = <0 85 0>;
181 csis_0: csis@11880000 {
182 compatible = "samsung,exynos4210-csis";
183 reg = <0x11880000 0x1000>;
184 interrupts = <0 78 0>;
189 remote-endpoint = <&s5c73m3_ep>;
190 data-lanes = <1 2 3 4>;
191 samsung,csis-hs-settle = <12>;
197 The MIPI-CSIS device binding is defined in samsung-mipi-csis.txt.