aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/media/samsung-fimc.txt101
1 files changed, 101 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/media/samsung-fimc.txt b/Documentation/devicetree/bindings/media/samsung-fimc.txt
new file mode 100644
index 000000000000..22e2889162c3
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/samsung-fimc.txt
@@ -0,0 +1,101 @@
1Samsung S5P/EXYNOS SoC Camera Subsystem (FIMC)
2----------------------------------------------
3
4The S5P/Exynos SoC Camera subsystem comprises of multiple sub-devices
5represented by separate device tree nodes. Currently this includes: FIMC (in
6the S5P SoCs series known as CAMIF), MIPI CSIS, FIMC-LITE and FIMC-IS (ISP).
7
8The sub-subdevices are defined as child nodes of the common 'camera' node which
9also includes common properties of the whole subsystem not really specific to
10any single sub-device, like common camera port pins or the CAMCLK clock outputs
11for external image sensors attached to an SoC.
12
13Common 'camera' node
14--------------------
15
16Required properties:
17
18- compatible : must be "samsung,fimc", "simple-bus"
19- clocks : list of clock specifiers, corresponding to entries in
20 clock-names property;
21- clock-names : must contain "fimc", "sclk_fimc" entries, matching entries
22 in the clocks property.
23
24The 'camera' node must include at least one 'fimc' child node.
25
26
27'fimc' device nodes
28-------------------
29
30Required properties:
31
32- compatible: "samsung,s5pv210-fimc" for S5PV210, "samsung,exynos4210-fimc"
33 for Exynos4210 and "samsung,exynos4212-fimc" for Exynos4x12 SoCs;
34- reg: physical base address and length of the registers set for the device;
35- interrupts: should contain FIMC interrupt;
36- clocks: list of clock specifiers, must contain an entry for each required
37 entry in clock-names;
38- clock-names: must include "fimc", "sclk_fimc", "mux" entries and optionally
39 "parent" entry.
40- samsung,pix-limits: an array of maximum supported image sizes in pixels, for
41 details refer to Table 2-1 in the S5PV210 SoC User Manual; The meaning of
42 each cell is as follows:
43 0 - scaler input horizontal size,
44 1 - input horizontal size for the scaler bypassed,
45 2 - REAL_WIDTH without input rotation,
46 3 - REAL_HEIGHT with input rotation,
47- samsung,sysreg: a phandle to the SYSREG node.
48
49Each FIMC device should have an alias in the aliases node, in the form of
50fimc<n>, where <n> is an integer specifying the IP block instance.
51
52Optional properties:
53
54- clock-frequency: maximum FIMC local clock (LCLK) frequency;
55- samsung,min-pix-sizes: an array specyfing minimum image size in pixels at
56 the FIMC input and output DMA, in the first and second cell respectively.
57 Default value when this property is not present is <16 16>;
58- samsung,min-pix-alignment: minimum supported image height alignment (first
59 cell) and the horizontal image offset (second cell). The values are in pixels
60 and default to <2 1> when this property is not present;
61- samsung,mainscaler-ext: a boolean property indicating whether the FIMC IP
62 supports extended image size and has CIEXTEN register;
63- samsung,rotators: a bitmask specifying whether this IP has the input and
64 the output rotator. Bits 4 and 0 correspond to input and output rotator
65 respectively. If a rotator is present its corresponding bit should be set.
66 Default value when this property is not specified is 0x11.
67- samsung,cam-if: a bolean property indicating whether the IP block includes
68 the camera input interface.
69- samsung,isp-wb: this property must be present if the IP block has the ISP
70 writeback input.
71- samsung,lcd-wb: this property must be present if the IP block has the LCD
72 writeback input.
73
74
75Example:
76
77 aliases {
78 fimc0 = &fimc_0;
79 };
80
81 camera {
82 compatible = "samsung,fimc", "simple-bus";
83 #address-cells = <1>;
84 #size-cells = <1>;
85 status = "okay";
86
87 fimc_0: fimc@11800000 {
88 compatible = "samsung,exynos4210-fimc";
89 reg = <0x11800000 0x1000>;
90 interrupts = <0 85 0>;
91 status = "okay";
92 };
93
94 csis_0: csis@11880000 {
95 compatible = "samsung,exynos4210-csis";
96 reg = <0x11880000 0x1000>;
97 interrupts = <0 78 0>;
98 };
99 };
100
101The MIPI-CSIS device binding is defined in samsung-mipi-csis.txt.