Samsung Exynos Multi Format Codec (MFC)
Schema identifier ($id): "http://devicetree.org/schemas/media/samsung,s5p-mfc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marek Szyprowski <m.szyprowski@samsung.com>", "Aakarsh Jain <aakarsh.jain@samsung.com>"
Multi Format Codec (MFC) is the IP present in Samsung SoCs which supports high resolution decoding and encoding functionalities.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"samsung,exynos5433-mfc","samsung,mfc-v5","samsung,mfc-v6","samsung,mfc-v7","samsung,mfc-v8","samsung,mfc-v10","tesla,fsd-mfc"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"samsung,mfc-v7"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
clock-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
interrupts — required here #
Maximum number of items (maxItems): 1
iommus — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
iommu-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"left"
Item 2
Exact value (
const):"right"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
memory-region — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"mfc"Item 2
Exact value (
const):"sclk_mfc"
iommus— not listed as required hereMaximum number of items (
maxItems):1
iommu-names— not listed as required here
false— Not permitted by this property rule.
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):3
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"pclk"Item 2
Exact value (
const):"aclk"Item 3
Exact value (
const):"aclk_xiu"
iommus— not listed as required hereMinimum number of items (
minItems):2
iommu-names— not listed as required hereMinimum number of items (
minItems):2
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"mfc"Item 2
Exact value (
const):"sclk_mfc"
iommus— not listed as required hereMinimum number of items (
minItems):2
iommu-names— not listed as required hereMinimum number of items (
minItems):2
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"mfc"
iommus— not listed as required hereMinimum number of items (
minItems):2
iommu-names— not listed as required hereMinimum number of items (
minItems):2
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):2
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"mfc"
iommus— not listed as required hereMaximum number of items (
maxItems):2
iommus-names— not listed as required here
false— Not permitted by this property rule.
Examples (examples) #
#include <dt-bindings/clock/exynos4.h>
#include <dt-bindings/clock/exynos-audss-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
codec@13400000 {
compatible = "samsung,mfc-v5";
reg = <0x13400000 0x10000>;
interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&pd_mfc>;
clocks = <&clock CLK_MFC>, <&clock CLK_SCLK_MFC>;
clock-names = "mfc", "sclk_mfc";
iommus = <&sysmmu_mfc_l>, <&sysmmu_mfc_r>;
iommu-names = "left", "right";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 21: Exynos5433
Line 22: Exynos4
Line 23: Exynos5
Line 24: Exynos5420
Line 25: Exynos5800
Line 26: Exynos7880
Line 27: Tesla FSD
Line 30: Exynos3250
Line 31: Fall back for Exynos3250