Renesas R-Car MIPI DSI/CSI-2 Encoder

Schema identifier ($id): "http://devicetree.org/schemas/display/bridge/renesas,dsi-csi2-tx.yaml#"

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

Maintainers (maintainers): "Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>"

This binding describes the MIPI DSI/CSI-2 encoder embedded in the Renesas R-Car Gen4 SoCs. The encoder can operate in either DSI or CSI-2 mode, with up to four data lanes.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/display/dsi-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "renesas,r8a779a0-dsi-csi2-tx", "renesas,r8a779g0-dsi-csi2-tx", "renesas,r8a779h0-dsi-csi2-tx"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Functional clock

Item 2

DSI (and CSI-2) functional clock

Item 3

PLL reference clock

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "fck"

Item 2

Exact value (const): "dsi"

Item 3

Exact value (const): "pll"

power-domains — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

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

Parallel input port

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

DSI/CSI-2 output port

Properties and child nodes (properties)

endpoint — not listed as required here

Shared schema rule ($ref): /schemas/media/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"

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

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r8a779a0-cpg-mssr.h>
#include <dt-bindings/power/r8a779a0-sysc.h>

dsi@fed80000 {
    compatible = "renesas,r8a779a0-dsi-csi2-tx";
    reg = <0xfed80000 0x10000>;
    power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>;
    clocks = <&cpg CPG_MOD 415>,
             <&cpg CPG_CORE R8A779A0_CLK_DSI>,
             <&cpg CPG_CORE R8A779A0_CLK_CP>;
    clock-names = "fck", "dsi", "pll";
    resets = <&cpg 415>;

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

        port@0 {
            reg = <0>;
            dsi0_in: endpoint {
                remote-endpoint = <&du_out_dsi0>;
            };
        };

        port@1 {
            reg = <1>;
            dsi0_out: endpoint {
                data-lanes = <1 2>;
                remote-endpoint = <&sn65dsi86_in>;
            };
        };
    };
};
#include <dt-bindings/clock/r8a779g0-cpg-mssr.h>
#include <dt-bindings/power/r8a779g0-sysc.h>

dsi@fed80000 {
    #address-cells = <1>;
    #size-cells = <0>;
    compatible = "renesas,r8a779g0-dsi-csi2-tx";
    reg = <0xfed80000 0x10000>;
    clocks = <&cpg CPG_MOD 415>,
             <&cpg CPG_CORE R8A779G0_CLK_DSIEXT>,
             <&cpg CPG_CORE R8A779G0_CLK_DSIREF>;
    clock-names = "fck", "dsi", "pll";
    power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>;
    resets = <&cpg 415>;

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

        port@0 {
            reg = <0>;
        };

        port@1 {
            reg = <1>;

            dsi0port1_out: endpoint {
                remote-endpoint = <&panel_in>;
                data-lanes = <1 2>;
            };
        };
    };

    panel@0 {
        reg = <0>;
        compatible = "raspberrypi,dsi-7inch", "ilitek,ili9881c";
        power-supply = <&vcc_lcd_reg>;

        port {
            panel_in: endpoint {
                remote-endpoint = <&dsi0port1_out>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Line 23: for V3U

Line 24: for V4H

Line 25: for V4M

Edit this page