Samsung S5P/Exynos SoC Fully Integrated Mobile Camera

Schema identifier ($id): "http://devicetree.org/schemas/media/samsung,exynos4210-fimc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Sylwester Nawrocki <s.nawrocki@samsung.com>"

Each FIMC device should have an alias in the aliases node, in the form of fimc<n>, where <n> is an integer specifying the IP block instance.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "samsung,exynos4210-fimc", "samsung,exynos4212-fimc", "samsung,s5pv210-fimc"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "fimc"

Item 2

Exact value (const): "sclk_fimc"

clock-frequency — not listed as required here #

Maximum FIMC local clock (LCLK) frequency.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

iommus — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

samsung,cam-if — not listed as required here #

Value type (type): "boolean"

The FIMC IP block includes the camera input interface.

samsung,isp-wb — not listed as required here #

Value type (type): "boolean"

The FIMC IP block has the ISP writeback input.

samsung,lcd-wb — not listed as required here #

Value type (type): "boolean"

The FIMC IP block has the LCD writeback input.

samsung,mainscaler-ext — not listed as required here #

Value type (type): "boolean"

FIMC IP supports extended image size and has CIEXTEN register.

samsung,min-pix-alignment — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Array item rules (items) #

Item 1

Minimum supported image height alignment.

Item 2

Horizontal image offset.

The values are in pixels and default is <2 1>.

samsung,min-pix-sizes — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Maximum number of items (maxItems): 2

An array specifying minimum image size in pixels at the FIMC input and output DMA, in the first and second cell respectively. Default value is <16 16>.

samsung,pix-limits — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Maximum number of items (maxItems): 4

An array of maximum supported image sizes in pixels, for details refer to Table 2-1 in the S5PV210 SoC User Manual. The meaning of each cell is as follows: 0 - scaler input horizontal size 1 - input horizontal size for the scaler bypassed 2 - REAL_WIDTH without input rotation 3 - REAL_HEIGHT with input rotation

samsung,rotators — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 17

A bitmask specifying whether this IP has the input and the output rotator. Bits 4 and 0 correspond to input and output rotator respectively. If a rotator is present its corresponding bit should be set.

samsung,sysreg — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

System Registers (SYSREG) node.

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "samsung,pix-limits"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Required in this object (required): "samsung,isp-wb"

When the condition matches (then) #

Required in this object (required): "samsung,sysreg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/exynos4.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

fimc@11800000 {
    compatible = "samsung,exynos4212-fimc";
    reg = <0x11800000 0x1000>;
    clocks = <&clock CLK_FIMC0>,
             <&clock CLK_SCLK_FIMC0>;
    clock-names = "fimc", "sclk_fimc";
    interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
    iommus = <&sysmmu_fimc0>;
    power-domains = <&pd_cam>;
    samsung,sysreg = <&sys_reg>;

    samsung,pix-limits = <4224 8192 1920 4224>;
    samsung,mainscaler-ext;
    samsung,isp-wb;
    samsung,cam-if;

    assigned-clocks = <&clock CLK_MOUT_FIMC0>,
                      <&clock CLK_SCLK_FIMC0>;
    assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
    assigned-clock-rates = <0>, <176000000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page