Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp345063ybv; Thu, 13 Feb 2020 01:26:06 -0800 (PST) X-Google-Smtp-Source: APXvYqwLb+HZ6kQ5uPjyXWcCpoSYolImF8sIbA/msx0WWhbbuXcrB4mWWYcbhUIfSV/g4Z56Dlym X-Received: by 2002:a05:6830:4a7:: with SMTP id l7mr11952819otd.372.1581585965908; Thu, 13 Feb 2020 01:26:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581585965; cv=none; d=google.com; s=arc-20160816; b=kdAkw8pull5SPYZjOvJZTqI4Bxf80ysTUAN3tr6cU6AiRcxCrOpGd5VNxpVMVC7FIh 6MYyyY95P1JkcbRVzYBVtwd4wbX4jaQsRIxfOM/qb/3qjRcSUSmehdCvl15ZzcVoYH1q Uzhpo46rLRCyuOjYF3XeiVsaIfpoyM33RM5/5YZyP6Rh3ZBQzmTAKQ42OO0lcjRp/NRH RHRdoIJ8WVKX8tmvjOKKgGMmoB7SN1v/OSRyppOAknSusnjxk9heGHSZAlYCeojzVfrr L/392I+9xOkVgjlgv11nyc+U7Q7C7S7RQTSX4c8pahJaKi3maTrGL1oUB/SYGRACuvWO 8rgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=XbLU97l4zers+TXWwIjHkBYNF2++heBtojtr9FpLezA=; b=eQH/zkuPhBz5okVFCX3mASek4Fck+4hy/geV9iJj+K6QmioylMR7QUT7DCLlOa1eGa XF3+0nl58k2mIqbCbS3liLfQCW66u5b9B2FbcOGVGFRNkItsGfPWEAv8KN9PCRp82AeX MFOEHbBcTBmNymcCB2GCbTeLNIcqc4UGxaikgoxVGLWSk+d6HNEeZAVEdGIfdqCpm0HL tfVdlUNwAakXtRmaK7PXCxfjsPVKv+NGFRX26yVQ1k2e2TZbCP+YsbfzTtfTYxY+fPiA toL/rUxc4iCeA3lgCfKc5ViC6v1BMEPNPBYPnf4rM9rPI3qIcslJMT4wmuidjzvl1Trr ye7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b="PjV7/0LD"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=1+rKNlfi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u14si838586otk.178.2020.02.13.01.25.53; Thu, 13 Feb 2020 01:26:05 -0800 (PST) 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; dkim=pass header.i=@cerno.tech header.s=fm2 header.b="PjV7/0LD"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=1+rKNlfi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729713AbgBMJYk (ORCPT + 99 others); Thu, 13 Feb 2020 04:24:40 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:39151 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729526AbgBMJYk (ORCPT ); Thu, 13 Feb 2020 04:24:40 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 850DE21C46; Thu, 13 Feb 2020 04:24:38 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 13 Feb 2020 04:24:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=XbLU97l4zers+TXWwIjHkBYNF2+ +heBtojtr9FpLezA=; b=PjV7/0LD0reTrVkK6LWSxQ0WdqVytHKg8XY8GBdfFYl faOVB0eImMzS+sPwiYd8gcIB0P+8YTq8/HcnjmINXhBHg4GQBMCuqcJ7TtUUhrzz xcIzWL4TI7rqy+frFJyvUJ4Jm9xFIQQ46d+GvFqcHUJMLC4sy8tuTEUoD7fo6zXl jxhC3PvvytQPjpRVz92h4OQwy3yMDiYiKB+zHyD/9lD82xbbXKvlADaoNvF/0A/L jTF9NbaFjUOP9SqtOdaU7dDrAD1oOHnjArwncLlZ6i5wp5kKj3tBpqFZaKATDXIt Ccmg5eL2+7qoUGhd3S5fDSFsHkCjE7pJ4/17hetZN4g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=XbLU97 l4zers+TXWwIjHkBYNF2++heBtojtr9FpLezA=; b=1+rKNlfiBWv+hI5hu+ir17 07IpmVM4Qfr2DyK3HvbMTJx0AJlmv4qOgqHS1VKEp34D4f0r+K+lx91VPG5h13yR wvfHQVIDb5kfHImBteY32tTwlskuZaVBQOwVAT23nehkbTfUm9518nSXpfYD7klZ 6De8+39R0CxJYol8EAb2yvrLUXb5vgaq312Wz8wWnBXLvCwi8WsEV1L1CqC66R16 RAwMIO2uqnmxA7dBOs4fcwfgJMkzPA/8bQbLRHMtOxGBE9xpPr8OamNs6BOVMR+n vCZsJlE0HD6SsIhXZMClLqaWqzf50I2LnyXGIvnY290XJnDDzW1SNHpZ8GSwPDBw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrieekgddtvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucffohhmrghinh epohhpvghnvhgrrhhiohdrohhrghenucfkphepledtrdekledrieekrdejieenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestg gvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 87FB03280062; Thu, 13 Feb 2020 04:24:35 -0500 (EST) Date: Thu, 13 Feb 2020 10:24:33 +0100 From: Maxime Ripard To: Andrey Lebedev Cc: wens@csie.org, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] Support LVDS output on Allwinner A20 Message-ID: <20200213092433.sc2rs7el63mwvf3y@gilmour.lan> References: <20200210195633.GA21832@kedthinkpad> <20200211072004.46tbqixn5ftilxae@gilmour.lan> <20200211204828.GA4361@kedthinkpad> <20200212125345.j6e3txfjqekuxh2s@gilmour.lan> <20200212224653.GA19494@kedthinkpad> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="idvbhwndshxupoi2" Content-Disposition: inline In-Reply-To: <20200212224653.GA19494@kedthinkpad> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --idvbhwndshxupoi2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Feb 13, 2020 at 12:46:53AM +0200, Andrey Lebedev wrote: > On Wed, Feb 12, 2020 at 01:53:45PM +0100, Maxime Ripard wrote: > > > > Side question, this will need some DT changes too, right? > > > > > > Hm, I agree. I think it would be reasonable to include LVDS0/1 pins > > > > That, but most importantly, the reset and clocks for the LVDS > > block. Also from looking at it, I'm not entirely sure that the TCON1 > > has a LVDS output > > I also have impression that LVDS is only supported on TCON0, but that's > mostly from this comment in sun4i_lvds.c: > > /* The LVDS encoder can only work with the TCON channel 0 */ No, that's a separate thing. Internally the TCON has two channels, one connected to panels type of display (LVDS, Parallel, etc), the second one connected to TV outputs (HDMI, composite). But then, on some SoCs like the A20, you have two TCON's too. As far as I could see, only the first TCON can use LVDS, but I'm not definitive. Allwinner seems to allow panels to only be tied to TCON0 in the BSP, so I guess we can assume that. > > do you have a board when you have been able to test it? > > Yes, I have the hardware (Cubieboard 2) at hand, but I cannot change the > any physical connections on it. FWIW, it is https://openvario.org, the > device we are (painfully) trying to upgrade from old kernel-3.4 with > proprietary mali drivers to contemporary software. What painpoints do you have? > > > and sample (but disabled) lvds panel, > > > > That's good for the sake of the example, but it shouldn't be in the > > same patch, it won't be merged. > > I jave just submitted version 2 of the patches - set of 2 patches this > time. Addressed your comments, please take a look. I will, thanks! Maxime --idvbhwndshxupoi2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXkUV0QAKCRDj7w1vZxhR xUjlAQDtP35dyCa1eG2rSVZWUhNVB5ES5QtTp0Jg/SggFeiJ6gD8DeYNvUKtzf3R c7ZWlhAmKKf1V1zA/Xmg+D1ch/lX9A8= =IlPs -----END PGP SIGNATURE----- --idvbhwndshxupoi2--