Allwinner R40 TCON TOP
Schema identifier ($id): "http://devicetree.org/schemas/display/allwinner,sun8i-r40-tcon-top.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
TCON TOPs main purpose is to configure whole display pipeline. It determines relationships between mixers and TCONs, selects source TCON for HDMI, muxes LCD and TV encoder GPIO output, selects TV encoder clock source and contains additional TV TCON and DSI gates.
It allows display pipeline to be configured in very different ways:
/ LCD0/LVDS0
/ [0] TCON-LCD0
| \ MIPI DSI
mixer0 |
\ / [1] TCON-LCD1 - LCD1/LVDS1
TCON-TOP
/ \ [2] TCON-TV0 [0] - TVE0/RGB
mixer1 | \
| TCON-TOP - HDMI
| /
\ [3] TCON-TV1 [1] - TVE1/RGB
Note that both TCON TOP references same physical unit. Both mixers can be connected to any TCON. Not all TCON TOP variants support all features.
Properties and child nodes (properties) #
#clock-cells — required here #
Exact value (const): 1
compatible — required here #
Allowed values (enum): "allwinner,sun8i-r40-tcon-top", "allwinner,sun20i-d1-tcon-top", "allwinner,sun50i-h6-tcon-top"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 6
clock-names — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 6
clock-output-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
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
Input endpoint for Mixer 0 mux.
port@1 — required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Output endpoint for Mixer 0 mux
port@2 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Input endpoint for Mixer 1 mux.
port@3 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Output endpoint for Mixer 1 mux
port@4 — required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Input endpoint for HDMI mux.
port@5 — required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Output endpoint for HDMI mux
Required in this object (required): "port@0", "port@1", "port@4", "port@5"
Required in this object (required): "#clock-cells", "compatible", "reg", "clocks", "clock-names", "clock-output-names", "resets", "ports"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"allwinner,sun8i-r40-tcon-top"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
The TCON TOP interface clock
Item 2
The TCON TOP TV0 clock
Item 3
The TCON TOP TVE0 clock
Item 4
The TCON TOP TV1 clock
Item 5
The TCON TOP TVE1 clock
Item 6
The TCON TOP MIPI DSI clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"bus"Item 2
Exact value (
const):"tcon-tv0"Item 3
Exact value (
const):"tve0"Item 4
Exact value (
const):"tcon-tv1"Item 5
Exact value (
const):"tve1"Item 6
Exact value (
const):"dsi"
clock-output-names— not listed as required hereArray item rules (
items)Item 1
TCON TV0 output clock name
Item 2
TCON TV1 output clock name
Item 3
DSI output clock name
ports— not listed as required here
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"allwinner,sun20i-d1-tcon-top"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
The TCON TOP interface clock
Item 2
The TCON TOP TV0 clock
Item 3
The TCON TOP TVE0 clock
Item 4
The TCON TOP MIPI DSI clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"bus"Item 2
Exact value (
const):"tcon-tv0"Item 3
Exact value (
const):"tve0"Item 4
Exact value (
const):"dsi"
clock-output-names— not listed as required hereArray item rules (
items)Item 1
TCON TV0 output clock name
Item 2
DSI output clock name
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"allwinner,sun50i-h6-tcon-top"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
The TCON TOP interface clock
Item 2
The TCON TOP TV0 clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"bus"Item 2
Exact value (
const):"tcon-tv0"
clock-output-names— not listed as required hereArray item rules (
items)Item 1
TCON TV0 output clock name
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/sun8i-r40-ccu.h>
#include <dt-bindings/reset/sun8i-r40-ccu.h>
tcon_top: tcon-top@1c70000 {
compatible = "allwinner,sun8i-r40-tcon-top";
reg = <0x01c70000 0x1000>;
clocks = <&ccu CLK_BUS_TCON_TOP>,
<&ccu CLK_TCON_TV0>,
<&ccu CLK_TVE0>,
<&ccu CLK_TCON_TV1>,
<&ccu CLK_TVE1>,
<&ccu CLK_DSI_DPHY>;
clock-names = "bus",
"tcon-tv0",
"tve0",
"tcon-tv1",
"tve1",
"dsi";
clock-output-names = "tcon-top-tv0",
"tcon-top-tv1",
"tcon-top-dsi";
resets = <&ccu RST_BUS_TCON_TOP>;
#clock-cells = <1>;
ports {
#address-cells = <1>;
#size-cells = <0>;
tcon_top_mixer0_in: port@0 {
reg = <0>;
tcon_top_mixer0_in_mixer0: endpoint {
remote-endpoint = <&mixer0_out_tcon_top>;
};
};
tcon_top_mixer0_out: port@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
tcon_top_mixer0_out_tcon_lcd0: endpoint@0 {
reg = <0>;
};
tcon_top_mixer0_out_tcon_lcd1: endpoint@1 {
reg = <1>;
};
tcon_top_mixer0_out_tcon_tv0: endpoint@2 {
reg = <2>;
remote-endpoint = <&tcon_tv0_in_tcon_top_mixer0>;
};
tcon_top_mixer0_out_tcon_tv1: endpoint@3 {
reg = <3>;
remote-endpoint = <&tcon_tv1_in_tcon_top_mixer0>;
};
};
tcon_top_mixer1_in: port@2 {
#address-cells = <1>;
#size-cells = <0>;
reg = <2>;
tcon_top_mixer1_in_mixer1: endpoint@1 {
reg = <1>;
remote-endpoint = <&mixer1_out_tcon_top>;
};
};
tcon_top_mixer1_out: port@3 {
#address-cells = <1>;
#size-cells = <0>;
reg = <3>;
tcon_top_mixer1_out_tcon_lcd0: endpoint@0 {
reg = <0>;
};
tcon_top_mixer1_out_tcon_lcd1: endpoint@1 {
reg = <1>;
};
tcon_top_mixer1_out_tcon_tv0: endpoint@2 {
reg = <2>;
remote-endpoint = <&tcon_tv0_in_tcon_top_mixer1>;
};
tcon_top_mixer1_out_tcon_tv1: endpoint@3 {
reg = <3>;
remote-endpoint = <&tcon_tv1_in_tcon_top_mixer1>;
};
};
tcon_top_hdmi_in: port@4 {
#address-cells = <1>;
#size-cells = <0>;
reg = <4>;
tcon_top_hdmi_in_tcon_tv0: endpoint@0 {
reg = <0>;
remote-endpoint = <&tcon_tv0_out_tcon_top>;
};
tcon_top_hdmi_in_tcon_tv1: endpoint@1 {
reg = <1>;
remote-endpoint = <&tcon_tv1_out_tcon_top>;
};
};
tcon_top_hdmi_out: port@5 {
reg = <5>;
tcon_top_hdmi_out_hdmi: endpoint {
remote-endpoint = <&hdmi_in_tcon_top>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0