Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp425782imm; Mon, 21 May 2018 08:12:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZog16Oa1KRWygJ1PbaCYaN+rT86j5YjXzTn99E1fBNKhPIKgvXpEMTa9rNEHjo/COBGdVgs X-Received: by 2002:a62:59d1:: with SMTP id k78-v6mr20398936pfj.54.1526915575458; Mon, 21 May 2018 08:12:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526915575; cv=none; d=google.com; s=arc-20160816; b=JIyu+oEU5Q0Ql+SsRwXfMa82OCSfTN0853wRcJgmYUd1XdBxXjxNmPo2/hyl2LIlOj lS/7WFQFcxa//+yGk37XnqmaAkrESg6B2oC3jwR4YFc1AUe6q4HRRt5oEruJbdPUGUc5 EMpjT/HJ5u0DuSvS+BtEkKzffbrupGQNzTCB1VrN4xNL290zEtUt619qGkE6rByDUO/V Xt96t4QMByQRHuSaneBCgHHIvzdXmx7D/dJClKBLMjeZw4xI9YAFRyyo1S5I3+k0Tic2 EJU6HB8ahNDGcYXX8z4pFaj1J2eU1uQxMPifIUEEeUgOZ5FGcVxO9ndiURjpm+Bgm0/M 8jNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=F0qvfIw9TnyDqwXsoSo3xHfTyA05QAFte6oIRxlkxIY=; b=cgSNa2sDTzCmi6/h1Nfu87t1g3qCb0cnuea1nvwsQ0aHLjwL6vlD9v0D00G2ayFr6E X6eoFru8vV65IVT1V8aUIspAbAaq1ufzdR0LXWZ250MGm3Mv7ReOZjqt35HOY1PfWAyM G/AgKjqRJn8Ud2hpwQiQWZiCght9sdy1/cpJFjpoIOyCAOW+99G7njD0SzpewDcc+ETr Xzury0DuH4JLPz+DvGErcIJ0mpWDdXU2k6M+4185zGD5roaVbh7smDcBxwjuprzGSNpI 9NcftXiNfbul5MrFvrWTKRYvepvf9+5xchu1nXWLiUYraACXUpTI6kPymXlJKKda+QP7 d4fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v190-v6si14230096pfb.324.2018.05.21.08.12.31; Mon, 21 May 2018 08:12:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753007AbeEUPLL (ORCPT + 99 others); Mon, 21 May 2018 11:11:11 -0400 Received: from mailoutvs27.siol.net ([185.57.226.218]:48516 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752247AbeEUPLI (ORCPT ); Mon, 21 May 2018 11:11:08 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Zimbra) with ESMTP id 3C0225206B9; Mon, 21 May 2018 17:11:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at psrvmta12.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta12.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id IFFWw-zpRkmr; Mon, 21 May 2018 17:11:05 +0200 (CEST) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Zimbra) with ESMTPS id 915BD520749; Mon, 21 May 2018 17:11:05 +0200 (CEST) Received: from jernej-laptop.localnet (unknown [194.152.15.144]) (Authenticated sender: 031275009) by mail.siol.net (Zimbra) with ESMTPA id 1E4415206B9; Mon, 21 May 2018 17:11:04 +0200 (CEST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Maxime Ripard Cc: wens@csie.org, robh+dt@kernel.org, mark.rutland@arm.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, linux-sunxi@googlegroups.com Subject: Re: [PATCH 04/15] dt-bindings: display: sunxi-drm: Add TCON TOP description Date: Mon, 21 May 2018 17:10:24 +0200 Message-ID: <5513047.T4egid1SBs@jernej-laptop> In-Reply-To: <20180521080147.72esi2kwzcvzmetk@flea> References: <20180519183127.2718-1-jernej.skrabec@siol.net> <20180519183127.2718-5-jernej.skrabec@siol.net> <20180521080147.72esi2kwzcvzmetk@flea> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Dne ponedeljek, 21. maj 2018 ob 10:01:47 CEST je Maxime Ripard napisal(a): > Hi, > > On Sat, May 19, 2018 at 08:31:16PM +0200, Jernej Skrabec wrote: > > TCON TOP 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, > > I'm not sure you mean GPIO here, but rather pin? Right, I'll fix that. > > > selects TV encoder clock source and contains additional TV TCON and > > DSI gates. > > > > Signed-off-by: Jernej Skrabec > > --- > > > > .../bindings/display/sunxi/sun4i-drm.txt | 20 +++++++++++++++++++ > > 1 file changed, 20 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt > > b/Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt index > > 3346c1e2a7a0..a099957ab62a 100644 > > --- a/Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt > > +++ b/Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt > > > > @@ -187,6 +187,26 @@ And on the A23, A31, A31s and A33, you need one more clock line: > > - 'lvds-alt': An alternative clock source, separate from the TCON > > channel 0 > > > > clock, that can be used to drive the LVDS clock > > > > +TCON TOP > > +-------- > > + > > +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. > > + > > +Required properties: > > + - compatible: value must be one of: > > + * allwinner,sun8i-r40-tcon-top > > + - reg: base address and size of the memory-mapped region. > > + - clocks: phandle to the clocks feeding the TCON TOP > > + * bus: TCON TOP interface clock > > + - clock-names: clock name mentioned above > > + - resets: phandle to the reset line driving the DRC > > + * rst: TCON TOP reset line > > + - reset-names: reset name mentioned above > > + - #clock-cells : must contain 1 > > + > > I guess you should better describe the OF-graph endpoints, and the > clocks output. Just using the binding additions here doesn't allow to > get a clear idea of how the DT should look like. With my idea of implementation, OF graph is the same as before, so I didn't mention anything about it. My idea of dependencies (you should view it in fixed width font): TCON-TOP ^ | mixer <-> TCON <-> HDMI I'll explain my design decision as response to other mail. Best regards, Jernej