Skip to content

Commit 22662f1

Browse files
committed
dt-bindings: display: sun4i: Add allwinner,tcon-channel property
The Allwinner Timings Controller has two, mutually exclusive, channels. When the binding has been introduced, it was assumed that there would be only a single user per channel in the system. While this is likely for the channel 0 which only connects to LCD displays, it turns out that the channel 1 can be connected to multiple controllers in the SoC (HDMI and TV encoders for example). And while the simultaneous use of HDMI and TV outputs cannot be achieved, switching from one to the other at runtime definitely sounds plausible. Add an extra property, allwinner,tcon-channel, to specify for a given endpoint which TCON channel it is connected to, while falling back to the previous mechanism if that property is missing. Acked-by: Chen-Yu Tsai <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
1 parent 1240f0b commit 22662f1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,13 @@ Required properties:
8686
Documentation/devicetree/bindings/media/video-interfaces.txt. The
8787
first port should be the input endpoint, the second one the output
8888

89-
The output should have two endpoints. The first is the block
90-
connected to the TCON channel 0 (usually a panel or a bridge), the
91-
second the block connected to the TCON channel 1 (usually the TV
92-
encoder)
89+
The output may have multiple endpoints. The TCON has two channels,
90+
usually with the first channel being used for the panels interfaces
91+
(RGB, LVDS, etc.), and the second being used for the outputs that
92+
require another controller (TV Encoder, HDMI, etc.). The endpoints
93+
will take an extra property, allwinner,tcon-channel, to specify the
94+
channel the endpoint is associated to. If that property is not
95+
present, the endpoint number will be used as the channel number.
9396

9497
On SoCs other than the A33 and V3s, there is one more clock required:
9598
- 'tcon-ch1': The clock driving the TCON channel 1

0 commit comments

Comments
 (0)