Amlogic C3 MIPI adapter receiver

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

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

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

MIPI adapter is used to convert the MIPI CSI-2 data into an ISP supported data format.

Properties and child nodes (properties) #

compatible — required here #

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

reg — required here #

Maximum number of items (maxItems): 3

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "top"

Item 2

Exact value (const): "fd"

Item 3

Exact value (const): "rd"

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): "isp0"

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#/properties/port

input port node.

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>;

    adap: adap@ff010000 {
        compatible = "amlogic,c3-mipi-adapter";
        reg = <0x0 0xff010000 0x0 0x100>,
              <0x0 0xff01b000 0x0 0x100>,
              <0x0 0xff01d000 0x0 0x200>;
        reg-names = "top", "fd", "rd";
        power-domains = <&pwrc PWRC_C3_ISP_TOP_ID>;
        clocks = <&clkc_periphs CLKID_VAPB>,
                 <&clkc_periphs CLKID_ISP0>;
        clock-names = "vapb", "isp0";
        assigned-clocks = <&clkc_periphs CLKID_VAPB>,
                          <&clkc_periphs CLKID_ISP0>;
        assigned-clock-rates = <0>, <400000000>;

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

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

            port@1 {
                reg = <1>;
                c3_adap_out: endpoint {
                    remote-endpoint = <&c3_isp_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