On Wed, Sep 20, 2017 at 10:01:21PM +0200, Jernej Skrabec wrote:
Add documentation about Allwinner DWC HDMI TX node, found in H3 SoC.
Signed-off-by: Jernej Skrabec jernej.skrabec@siol.net
.../bindings/display/sunxi/sun4i-drm.txt | 158 ++++++++++++++++++++- 1 file changed, 157 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt b/Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt index 92512953943e..cb6aee5c486f 100644 --- a/Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt +++ b/Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt @@ -60,6 +60,40 @@ Required properties: first port should be the input endpoint. The second should be the output, usually to an HDMI connector.
+DWC HDMI TX Encoder +-----------------------------
+The HDMI transmitter is a Synopsys DesignWare HDMI 1.4 TX controller IP +with Allwinner's own PHY IP. It supports audio and video outputs and CEC.
+These DT bindings follow the Synopsys DWC HDMI TX bindings defined in +Documentation/devicetree/bindings/display/bridge/dw_hdmi.txt with the +following device-specific properties.
+Required properties:
- compatible: value must be one of:
- "allwinner,sun8i-h3-dw-hdmi"
- reg: two pairs of base address and size of memory-mapped region, first
- for controller and second for PHY
- registers.
- reg-io-width: See dw_hdmi.txt. Shall be 1.
- interrupts: HDMI interrupt number
- clocks: phandles to the clocks feeding the HDMI encoder
- iahb: the HDMI interface clock
- isfr: the HDMI module clock
- ddc: the HDMI ddc clock
- clock-names: the clock names mentioned above
- resets: phandles to the reset controllers driving the encoder
- hdmi: the reset line for the HDMI
- ddc: the reset line for the DDC
- reset-names: the reset names mentioned above
- ports: A ports node with endpoint definitions as defined in
- Documentation/devicetree/bindings/media/video-interfaces.txt. The
- first port should be the input endpoint. The second should be the
- output, usually to an HDMI connector.
TV Encoder
@@ -255,7 +289,7 @@ Required properties:
- allwinner,pipelines: list of phandle to the display engine frontends (DE 1.0) or mixers (DE 2.0) available.
-Example: +Example 1:
panel: panel { compatible = "olimex,lcd-olinuxino-43-ts"; @@ -455,3 +489,125 @@ display-engine { compatible = "allwinner,sun5i-a13-display-engine"; allwinner,pipelines = <&fe0>; };
+Example 2:
+connector {
- compatible = "hdmi-connector";
- type = "a";
- port {
hdmi_con_in: endpoint {
remote-endpoint = <&hdmi_out_con>;
};
- };
+};
+de: display-engine {
- compatible = "allwinner,sun8i-h3-display-engine";
- allwinner,pipelines = <&mixer0>;
+};
+hdmi: hdmi@1ee0000 {
- compatible = "allwinner,h3-dw-hdmi";
- reg = <0x01ee0000 0x10000>,
<0x01ef0000 0x10000>;
- reg-io-width = <1>;
- interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI>,
<&ccu CLK_HDMI_DDC>;
- clock-names = "iahb", "isfr", "ddc";
- resets = <&ccu RST_BUS_HDMI0>, <&ccu RST_BUS_HDMI1>;
- reset-names = "hdmi", "ddc";
- ports {
#address-cells = <1>;
#size-cells = <0>;
hdmi_in: port@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
hdmi_in_tcon0: endpoint@0 {
reg = <0>;
You don't need reg when there's only one.
Otherwise,
Acked-by: Rob Herring robh@kernel.org