Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752129AbdI0V4n (ORCPT ); Wed, 27 Sep 2017 17:56:43 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:33935 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752011AbdI0V4l (ORCPT ); Wed, 27 Sep 2017 17:56:41 -0400 X-Google-Smtp-Source: AOwi7QByo9s4fTIR8BoJWuNg94Yxu7oSVWGT1fbb9gFnaEF3LumlkRvYmHP8wezztT1awFRTLiUcUg== Date: Wed, 27 Sep 2017 16:56:38 -0500 From: Rob Herring To: Jernej Skrabec Cc: maxime.ripard@free-electrons.com, wens@csie.org, Laurent.pinchart@ideasonboard.com, hans.verkuil@cisco.com, narmstrong@baylibre.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, icenowy@aosc.io, linux-sunxi@googlegroups.com, linux-media@vger.kernel.org Subject: Re: [RESEND RFC PATCH 4/7] dt-bindings: Document Allwinner DWC HDMI TX node Message-ID: <20170927215638.tjbllqq2twdvuivj@rob-hp-laptop> References: <20170920200124.20457-1-jernej.skrabec@siol.net> <20170920200124.20457-5-jernej.skrabec@siol.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170920200124.20457-5-jernej.skrabec@siol.net> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3748 Lines: 114 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 > --- > .../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 = ; > + 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