Renesas RZ/G2L MIPI DSI Encoder
Schema identifier ($id): "http://devicetree.org/schemas/display/bridge/renesas,dsi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Biju Das <biju.das.jz@bp.renesas.com>"
This binding describes the MIPI DSI encoder embedded in the Renesas RZ/G2L alike family of SoC's. The encoder can operate in DSI mode, with up to four data lanes.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,r9a07g044-mipi-dsi","renesas,r9a07g054-mipi-dsi"Item 2
Exact value (
const):"renesas,rzg2l-mipi-dsi"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a09g056-mipi-dsi"Item 2
Exact value (
const):"renesas,r9a09g057-mipi-dsi"
Rule 3
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
Sequence operation channel 0 interrupt
Item 2
Sequence operation channel 1 interrupt
Item 3
Video-Input operation channel 1 interrupt
Item 4
DSI Packet Receive interrupt
Item 5
DSI Fatal Error interrupt
Item 6
DSI D-PHY PPI interrupt
Item 7
Debug interrupt
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"seq0"
Item 2
Exact value (
const):"seq1"
Item 3
Exact value (
const):"vin1"
Item 4
Exact value (
const):"rcv"
Item 5
Exact value (
const):"ferr"
Item 6
Exact value (
const):"ppi"
Item 7
Exact value (
const):"debug"
clocks — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
DSI D-PHY PLL multiplied clock
Item 2
DSI D-PHY system clock
Item 3
DSI AXI bus clock
Item 4
DSI Register access clock
Item 5
DSI Video clock
Item 6
DSI D-PHY Escape mode transmit clock
Rule 2
Array item rules (
items)Item 1
DSI D-PHY PLL reference clock
Item 2
DSI AXI bus clock
Item 3
DSI Register access clock
Item 4
DSI Video clock
Item 5
DSI D-PHY Escape mode transmit clock
clock-names — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"pllclk"Item 2
Exact value (
const):"sysclk"Item 3
Exact value (
const):"aclk"Item 4
Exact value (
const):"pclk"Item 5
Exact value (
const):"vclk"Item 6
Exact value (
const):"lpclk"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"pllrefclk"Item 2
Exact value (
const):"aclk"Item 3
Exact value (
const):"pclk"Item 4
Exact value (
const):"vclk"Item 5
Exact value (
const):"lpclk"
resets — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
MIPI_DSI_CMN_RSTB
Item 2
MIPI_DSI_ARESET_N
Item 3
MIPI_DSI_PRESET_N
Rule 2
Array item rules (
items)Item 1
MIPI_DSI_ARESET_N
Item 2
MIPI_DSI_PRESET_N
reset-names — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"rst"Item 2
Exact value (
const):"arst"Item 3
Exact value (
const):"prst"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"arst"Item 2
Exact value (
const):"prst"
power-domains — 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 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
array of physical DSI data lane indexes.
Minimum number of items (minItems): 1
Array item rules (items)
Item 1
Exact value (
const):1
Item 2
Exact value (
const):2
Item 3
Exact value (
const):3
Item 4
Exact value (
const):4
Required in this object (required): "data-lanes"
Required in this object (required): "port@0", "port@1"
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "resets", "reset-names", "power-domains", "ports"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):../dsi-controller.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,r9a09g057-mipi-dsi"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):5
clock-names— not listed as required hereMaximum number of items (
maxItems):5
resets— not listed as required hereMaximum number of items (
maxItems):2
reset-names— not listed as required hereMaximum number of items (
maxItems):2When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):6
clock-names— not listed as required hereMinimum number of items (
minItems):6
resets— not listed as required hereMinimum number of items (
minItems):3
reset-names— not listed as required hereMinimum number of items (
minItems):3
Examples (examples) #
#include <dt-bindings/clock/r9a07g044-cpg.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
dsi0: dsi@10850000 {
compatible = "renesas,r9a07g044-mipi-dsi", "renesas,rzg2l-mipi-dsi";
reg = <0x10850000 0x20000>;
interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "seq0", "seq1", "vin1", "rcv",
"ferr", "ppi", "debug";
clocks = <&cpg CPG_MOD R9A07G044_MIPI_DSI_PLLCLK>,
<&cpg CPG_MOD R9A07G044_MIPI_DSI_SYSCLK>,
<&cpg CPG_MOD R9A07G044_MIPI_DSI_ACLK>,
<&cpg CPG_MOD R9A07G044_MIPI_DSI_PCLK>,
<&cpg CPG_MOD R9A07G044_MIPI_DSI_VCLK>,
<&cpg CPG_MOD R9A07G044_MIPI_DSI_LPCLK>;
clock-names = "pllclk", "sysclk", "aclk", "pclk", "vclk", "lpclk";
resets = <&cpg R9A07G044_MIPI_DSI_CMN_RSTB>,
<&cpg R9A07G044_MIPI_DSI_ARESET_N>,
<&cpg R9A07G044_MIPI_DSI_PRESET_N>;
reset-names = "rst", "arst", "prst";
power-domains = <&cpg>;
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 3 4>;
remote-endpoint = <&adv7535_in>;
};
};
};
};
#include <dt-bindings/gpio/gpio.h>
dsi1: dsi@10860000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "renesas,r9a07g044-mipi-dsi", "renesas,rzg2l-mipi-dsi";
reg = <0x10860000 0x20000>;
interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "seq0", "seq1", "vin1", "rcv",
"ferr", "ppi", "debug";
clocks = <&cpg CPG_MOD R9A07G044_MIPI_DSI_PLLCLK>,
<&cpg CPG_MOD R9A07G044_MIPI_DSI_SYSCLK>,
<&cpg CPG_MOD R9A07G044_MIPI_DSI_ACLK>,
<&cpg CPG_MOD R9A07G044_MIPI_DSI_PCLK>,
<&cpg CPG_MOD R9A07G044_MIPI_DSI_VCLK>,
<&cpg CPG_MOD R9A07G044_MIPI_DSI_LPCLK>;
clock-names = "pllclk", "sysclk", "aclk", "pclk", "vclk", "lpclk";
resets = <&cpg R9A07G044_MIPI_DSI_CMN_RSTB>,
<&cpg R9A07G044_MIPI_DSI_ARESET_N>,
<&cpg R9A07G044_MIPI_DSI_PRESET_N>;
reset-names = "rst", "arst", "prst";
power-domains = <&cpg>;
panel@0 {
compatible = "rocktech,jh057n00900";
reg = <0>;
vcc-supply = <®_2v8_p>;
iovcc-supply = <®_1v8_p>;
reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;
port {
panel_in: endpoint {
remote-endpoint = <&dsi1_out>;
};
};
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
dsi1_in: endpoint {
remote-endpoint = <&du_out_dsi1>;
};
};
port@1 {
reg = <1>;
dsi1_out: endpoint {
data-lanes = <1 2 3 4>;
remote-endpoint = <&panel_in>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 22: RZ/G2{L,LC}
Line 23: RZ/V2L
Line 27: RZ/V2N
Line 31: RZ/V2H(P)