STMicroelectronics STM32 Digital Camera Memory Interface (DCMI)

Schema identifier ($id): "http://devicetree.org/schemas/media/st,stm32-dcmi.yaml#"

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

Maintainers (maintainers): "Hugues Fruchet <hugues.fruchet@foss.st.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "st,stm32-dcmi"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

dmas — required here #

Maximum number of items (maxItems): 1

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

resets — required here #

Maximum number of items (maxItems): 1

access-controllers — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

port — required here #

Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

DCMI supports a single port node with parallel bus.

Properties and child nodes (properties) #

endpoint — not listed as required here

Shared schema rule ($ref): video-interfaces.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

bus-type — required here

Allowed values (enum): 5, 6

Default value (default): 5

bus-width — not listed as required here

Allowed values (enum): 8, 10, 12, 14

Default value (default): 8

All of these rules must match (allOf)

Rule 1

Condition (if)

Properties and child nodes (properties)

bus-type — not listed as required here

Exact value (const): 6

When the condition matches (then)

Properties and child nodes (properties)

hsync-active — not listed as required here

false — Not permitted by this property rule.

vsync-active — not listed as required here

false — Not permitted by this property rule.

bus-width — not listed as required here

Allowed values (enum): 8

Required in this object (required): "bus-type", "pclk-sample"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "resets", "dmas", "dma-names", "port"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/stm32mp1-clks.h>
#include <dt-bindings/media/video-interfaces.h>
#include <dt-bindings/reset/stm32mp1-resets.h>

dcmi: dcmi@4c006000 {
    compatible = "st,stm32-dcmi";
    reg = <0x4c006000 0x400>;
    interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
    resets = <&rcc CAMITF_R>;
    clocks = <&rcc DCMI>;
    clock-names = "mclk";
    dmas = <&dmamux1 75 0x400 0x0d>;
    dma-names = "tx";

    port {
         dcmi_0: endpoint {
               remote-endpoint = <&ov5640_0>;
               bus-type = <MEDIA_BUS_TYPE_PARALLEL>;
               bus-width = <8>;
               hsync-active = <0>;
               vsync-active = <0>;
               pclk-sample = <1>;
         };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page