Renesas R-Car LVDS Encoder
Schema identifier ($id): "http://devicetree.org/schemas/display/bridge/renesas,lvds.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>"
These DT bindings describe the LVDS encoder embedded in the Renesas R-Car Gen2, R-Car Gen3, RZ/G1 and RZ/G2 SoCs.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "renesas,r8a7742-lvds", "renesas,r8a7743-lvds", "renesas,r8a7744-lvds", "renesas,r8a774a1-lvds", "renesas,r8a774b1-lvds", "renesas,r8a774c0-lvds", "renesas,r8a774e1-lvds", "renesas,r8a7790-lvds", "renesas,r8a7791-lvds", "renesas,r8a7793-lvds", "renesas,r8a7795-lvds", "renesas,r8a7796-lvds", "renesas,r8a77961-lvds", "renesas,r8a77965-lvds", "renesas,r8a77970-lvds", "renesas,r8a77980-lvds", "renesas,r8a77990-lvds", "renesas,r8a77995-lvds"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
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 RGB input port
port@1 — required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
LVDS output port
Required in this object (required): "port@0", "port@1"
power-domains — required here #
Maximum number of items (maxItems): 1
renesas,companion — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the companion LVDS encoder. This property is mandatory for the first LVDS encoder on R-Car D3 and E3, and RZ/G2E SoCs, and shall point to the second encoder to be used as a companion in dual-link mode. It shall not be set for any other LVDS encoder.
Required in this object (required): "compatible", "reg", "clocks", "power-domains", "resets", "ports"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Allowed values (
enum):"renesas,r8a774c0-lvds","renesas,r8a77990-lvds","renesas,r8a77995-lvds"
When the condition matches (then) #
Properties and child nodes (
properties) #
clocks— not listed as required here #Minimum number of items (
minItems):1Array item rules (
items)Item 1
Functional clock
Item 2
EXTAL input clock
Item 3
DU_DOTCLKIN0 input clock
Item 4
DU_DOTCLKIN1 input clock
clock-names— required here #Minimum number of items (
minItems):1Array item rules (
items)Item 1
Exact value (
const):"fck"Item 2
Item 3
Item 4
When the condition does not match (else) #
Properties and child nodes (
properties) #
clocks— not listed as required here #Array item rules (
items)Item 1
Functional clock
clock-names— not listed as required here #Array item rules (
items)Item 1
Exact value (
const):"fck"
renesas,companion— not listed as required here #
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/renesas-cpg-mssr.h>
#include <dt-bindings/power/r8a7795-sysc.h>
lvds@feb90000 {
compatible = "renesas,r8a7795-lvds";
reg = <0xfeb90000 0x14>;
clocks = <&cpg CPG_MOD 727>;
power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
resets = <&cpg 727>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
lvds_in: endpoint {
remote-endpoint = <&du_out_lvds0>;
};
};
port@1 {
reg = <1>;
lvds_out: endpoint {
remote-endpoint = <&panel_in>;
};
};
};
};
#include <dt-bindings/clock/renesas-cpg-mssr.h>
#include <dt-bindings/power/r8a77990-sysc.h>
lvds0: lvds@feb90000 {
compatible = "renesas,r8a77990-lvds";
reg = <0xfeb90000 0x20>;
clocks = <&cpg CPG_MOD 727>,
<&x13_clk>,
<&extal_clk>;
clock-names = "fck", "dclkin.0", "extal";
power-domains = <&sysc R8A77990_PD_ALWAYS_ON>;
resets = <&cpg 727>;
renesas,companion = <&lvds1>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
lvds0_in: endpoint {
remote-endpoint = <&du_out_lvds0>;
};
};
port@1 {
reg = <1>;
lvds0_out: endpoint {
remote-endpoint = <&panel_in1>;
};
};
};
};
lvds1: lvds@feb90100 {
compatible = "renesas,r8a77990-lvds";
reg = <0xfeb90100 0x20>;
clocks = <&cpg CPG_MOD 727>,
<&x13_clk>,
<&extal_clk>;
clock-names = "fck", "dclkin.0", "extal";
power-domains = <&sysc R8A77990_PD_ALWAYS_ON>;
resets = <&cpg 726>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
lvds1_in: endpoint {
remote-endpoint = <&du_out_lvds1>;
};
};
port@1 {
reg = <1>;
lvds1_out: endpoint {
remote-endpoint = <&panel_in2>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 19: for RZ/G1H compatible LVDS encoders
Line 20: for RZ/G1M compatible LVDS encoders
Line 21: for RZ/G1N compatible LVDS encoders
Line 22: for RZ/G2M compatible LVDS encoders
Line 23: for RZ/G2N compatible LVDS encoders
Line 24: for RZ/G2E compatible LVDS encoders
Line 25: for RZ/G2H compatible LVDS encoders
Line 26: for R-Car H2 compatible LVDS encoders
Line 27: for R-Car M2-W compatible LVDS encoders
Line 28: for R-Car M2-N compatible LVDS encoders
Line 29: for R-Car H3 compatible LVDS encoders
Line 30: for R-Car M3-W compatible LVDS encoders
Line 31: for R-Car M3-W+ compatible LVDS encoders
Line 32: for R-Car M3-N compatible LVDS encoders
Line 33: for R-Car V3M compatible LVDS encoders
Line 34: for R-Car V3H compatible LVDS encoders
Line 35: for R-Car E3 compatible LVDS encoders
Line 36: for R-Car D3 compatible LVDS encoders
Line 108: The LVDS encoder can use the EXTAL or DU_DOTCLKINx clocks.
Line 109: These clocks are optional.