Amlogic C3 MIPI CSI-2 receiver

Schema identifier ($id): "http://devicetree.org/schemas/media/amlogic,c3-mipi-csi2.yaml#"

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

Maintainers (maintainers): "Keke Li <keke.li@amlogic.com>"

MIPI CSI-2 receiver contains CSI-2 RX PHY and host controller. It receives the MIPI data from the image sensor and sends MIPI data to MIPI adapter.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "amlogic,c3-mipi-csi2"

reg — required here #

Maximum number of items (maxItems): 3

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "aphy"

Item 2

Exact value (const): "dphy"

Item 3

Exact value (const): "host"

power-domains — 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): "vapb"

Item 2

Exact value (const): "phy0"

ports — 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.

input port node, connected to sensor.

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)

data-lanes — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Required in this object (required): "data-lanes"

port@1 — required here

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

output port node

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

Required in this object (required): "compatible", "reg", "reg-names", "power-domains", "clocks", "clock-names", "ports"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/amlogic,c3-peripherals-clkc.h>
#include <dt-bindings/power/amlogic,c3-pwrc.h>

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    csi: csi@ff018000 {
        compatible = "amlogic,c3-mipi-csi2";
        reg = <0x0 0xff018000 0x0 0x400>,
              <0x0 0xff019000 0x0 0x300>,
              <0x0 0xff01a000 0x0 0x100>;
        reg-names = "aphy", "dphy", "host";
        power-domains = <&pwrc PWRC_C3_MIPI_ISP_WRAP_ID>;
        clocks =  <&clkc_periphs CLKID_VAPB>,
                  <&clkc_periphs CLKID_CSI_PHY0>;
        clock-names = "vapb", "phy0";
        assigned-clocks = <&clkc_periphs CLKID_VAPB>,
                          <&clkc_periphs CLKID_CSI_PHY0>;
        assigned-clock-rates = <0>, <200000000>;

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

            port@0 {
                reg = <0>;
                c3_mipi_csi_in: endpoint {
                    remote-endpoint = <&imx290_out>;
                    data-lanes = <1 2 3 4>;
                };
            };

            port@1 {
                reg = <1>;
                c3_mipi_csi_out: endpoint {
                    remote-endpoint = <&c3_adap_in>;
                };
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page