Broadcom BCM283x Camera Interface (Unicam)

Schema identifier ($id): "http://devicetree.org/schemas/media/brcm,bcm2835-unicam.yaml#"

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

Maintainers (maintainers): "Raspberry Pi Kernel Maintenance <kernel-list@raspberrypi.com>"

The Unicam block on BCM283x SoCs is the receiver for either CSI-2 or CCP2 data from image sensors or similar devices.

The main platform using this SoC is the Raspberry Pi family of boards. On the Pi the VideoCore firmware can also control this hardware block, and driving it from two different processors will cause issues. To avoid this, the firmware checks the device tree configuration during boot. If it finds device tree nodes whose name starts with 'csi' then it will stop the firmware accessing the block, and it can then safely be used via the device tree binding.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "brcm,bcm2835-unicam"

reg — required here #

Array item rules (items) #

Item 1

Unicam block.

Item 2

Clock Manager Image (CMI) block.

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "unicam"

Item 2

Exact value (const): "cmi"

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Clock to drive the LP state machine of Unicam.

Item 2

Clock for the VPU (core clock).

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "lp"

Item 2

Exact value (const): "vpu"

power-domains — required here #

Array item rules (items) #

Item 1

Unicam power domain

brcm,num-data-lanes — required here #

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

Allowed values (enum): 2, 4

Number of CSI-2 data lanes supported by this Unicam instance. The number of data lanes actively used is specified with the data-lanes endpoint property.

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.

Properties and child nodes (properties) #

endpoint — required here

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

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

false

Not allowed by this rule.

Properties and child nodes (properties)

bus-type — required here

Allowed values (enum): 3, 4

clock-noncontinuous — not listed as required here

true — No constraints added by this property rule.

data-lanes — required here

true — No constraints added by this property rule.

remote-endpoint — required here

true — No constraints added by this property rule.

Required in this object (required): "bus-type", "data-lanes", "remote-endpoint"

Required in this object (required): "endpoint"

Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "clocks", "clock-names", "power-domains", "brcm,num-data-lanes", "port"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/bcm2835.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/media/video-interfaces.h>
#include <dt-bindings/power/raspberrypi-power.h>

csi1: csi@7e801000 {
    compatible = "brcm,bcm2835-unicam";
    reg = <0x7e801000 0x800>,
          <0x7e802004 0x4>;
    reg-names = "unicam", "cmi";
    interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clocks BCM2835_CLOCK_CAM1>,
             <&firmware_clocks 4>;
    clock-names = "lp", "vpu";
    power-domains = <&power RPI_POWER_DOMAIN_UNICAM1>;
    brcm,num-data-lanes = <2>;
    port {
            csi1_ep: endpoint {
                    remote-endpoint = <&imx219_0>;
                    bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>;
                    data-lanes = <1 2>;
            };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page