Texas Instruments DRA72x CAMERA ADAPTATION LAYER (CAL)

Schema identifier ($id): "http://devicetree.org/schemas/media/ti,cal.yaml#"

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

Maintainers (maintainers): "Benoit Parrot <bparrot@ti.com>"

The Camera Adaptation Layer (CAL) is a key component for image capture applications. The capture module provides the system interface and the processing capability to connect CSI2 image-sensor modules to the DRA72x device.

CAL supports 2 camera port nodes on MIPI bus.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,dra72-cal", "ti,dra72-pre-es2-cal", "ti,dra76-cal", "ti,am654-cal"

reg — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

The CAL main register region

Item 2

The RX Core0 (DPHY0) register region

Item 3

The RX Core1 (DPHY1) register region

reg-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "cal_top"

Item 2

Exact value (const): "cal_rx_core0"

Item 3

Exact value (const): "cal_rx_core1"

interrupts — required here #

Maximum number of items (maxItems): 1

ti,camerrx-control — required here #

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

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to device control module

Item 2

offset to the control_camerarx_core register

phandle to the device control module and offset to the control_camerarx_core register

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "fck"

power-domains — not listed as required here #

List of phandle and PM domain specifier as documented in Documentation/devicetree/bindings/power/power_domain.txt

Maximum number of items (maxItems): 1

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties and child nodes (properties) #

port@0 — 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.

CSI2 Port #0

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)

clock-lanes — not listed as required here

Maximum number of items (maxItems): 1

data-lanes — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

port@1 — not listed as 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.

CSI2 Port #1

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)

clock-lanes — not listed as required here

Maximum number of items (maxItems): 1

data-lanes — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Required in this object (required): "port@0"

Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "ti,camerrx-control"

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>

cal: cal@4845b000 {
    compatible = "ti,dra72-cal";
    reg = <0x4845B000 0x400>,
          <0x4845B800 0x40>,
          <0x4845B900 0x40>;
    reg-names = "cal_top",
                "cal_rx_core0",
                "cal_rx_core1";
    interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
    ti,camerrx-control = <&scm_conf 0xE94>;

    ports {
          #address-cells = <1>;
          #size-cells = <0>;

          csi2_0: port@0 {
                reg = <0>;
                csi2_phy0: endpoint {
                       remote-endpoint = <&csi2_cam0>;
                       clock-lanes = <0>;
                       data-lanes = <1 2>;
                };
          };
    };
};

i2c {
    clock-frequency = <400000>;
    #address-cells = <1>;
    #size-cells = <0>;

    camera-sensor@3c {
           compatible = "ovti,ov5640";
           reg = <0x3c>;
           AVDD-supply = <&reg_2p8v>;
           DOVDD-supply = <&reg_1p8v>;
           DVDD-supply = <&reg_1p5v>;
           clocks = <&clk_ov5640_fixed>;
           clock-names = "xclk";

           port {
                csi2_cam0: endpoint {
                        remote-endpoint = <&csi2_phy0>;
                        clock-lanes = <0>;
                        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)

Line 23: for DRA72 controllers

Line 25: for DRA72 controllers pre ES2.0

Line 27: for DRA76 controllers

Line 29: for AM654 controllers

Edit this page