Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8977340ybi; Fri, 7 Jun 2019 01:07:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxebTI8sphnTgws0GHvVYKVd4Itmi3v6h6kebEomkLRJFYxSAqHHUykrEasnh4SaDpSFzEx X-Received: by 2002:a17:902:864b:: with SMTP id y11mr51080442plt.92.1559894875031; Fri, 07 Jun 2019 01:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559894875; cv=none; d=google.com; s=arc-20160816; b=LtdrwC35wbohpS0hLfBUpiG6U/xZ/ISiLGM6znaOazHcKSSI3O9De/w5P1pi1qILBC XrtIteXHsMR9hFQnnr38wMlMDqxKPOKYZN7LeiFmh9wmf03AOIRvzI2vvChgmlYc8rkH ZLgsQysxkKRwBBw55OB5YREJiRmD7QAU6dlUhWv5VgZn+cOuMjQSGpdSgLijWOo3GiM/ 4nm6QmsIdvX2h2mEgJ6OeTKbCtz7ZkkLOQW1eOS7Os9f4Q825cG6TiJuUDUWLGmI2cZo DGU+iUmn6EseoS+gh3Q9FrsfRpZq3g9qmEa0QP4d9oOolA9u6Qergt3daSCLLkVaWPmp v0rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=/CDj1i2KeOXPWMM++I17XXn2ffCeWhZF87gE4Ym4RV0=; b=zyOGQLggd36PF6FmoSE5XA9GYb1qQbX2AsMy+RslZPFJvW/MSaUz3oNfbufEAWrs+X gFnjP/aqiTn0cgWoENigjms8asqkWHVGZjYQ2lMC2ehjwF1OP8cYuajz/XstZQhiDTTz yTRrBiMwPRS5Tt7gmdiKoYIVQ25/0XB+hmQx8qI4g7KyPKVYOe2J3J4gx4XaNJ5JDP9V 7oShU22KZ30et5inWRQE3CJcyCBTYhbtZiKlitpjtxU2fRK42NEeMiH0J7oKj+GXL756 QtJjYxbDAjTAO2KDkux85rvUPMsbBNfc+aOPM8m1Olv8gGKFzVzyxTbb8O2f3UVb8FG+ pdyQ== 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 z24si1127996pfa.190.2019.06.07.01.07.37; Fri, 07 Jun 2019 01:07: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 S1727299AbfFGG2U (ORCPT + 99 others); Fri, 7 Jun 2019 02:28:20 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:58893 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbfFGG2T (ORCPT ); Fri, 7 Jun 2019 02:28:19 -0400 X-Originating-IP: 90.89.68.76 Received: from localhost (lfbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (Authenticated sender: maxime.ripard@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id A363840003; Fri, 7 Jun 2019 06:28:03 +0000 (UTC) Date: Fri, 7 Jun 2019 08:28:02 +0200 From: Maxime Ripard To: Harald Geyer Cc: Torsten Duwe , Vasily Khoruzhick , Chen-Yu Tsai , Rob Herring , Mark Rutland , Thierry Reding , David Airlie , Daniel Vetter , Andrzej Hajda , Laurent Pinchart , Icenowy Zheng , Sean Paul , Greg Kroah-Hartman , Thomas Gleixner , dri-devel , devicetree , arm-linux , linux-kernel Subject: Re: [PATCH v2 7/7] arm64: dts: allwinner: a64: enable ANX6345 bridge on Teres-I Message-ID: <20190607062802.m5wslx3imiqooq5a@flea> References: <20190604122150.29D6468B05@newverein.lst.de> <20190604122308.98D4868B20@newverein.lst.de> <20190605101317.GA9345@lst.de> <20190605120237.ekmytfxcwbjaqy3x@flea> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 06, 2019 at 03:59:27PM +0200, Harald Geyer wrote: > Guys, this discussion is getting heated for no reason. Let's put > personal frustrations aside and discuss the issue on its merits: > > Maxime Ripard writes: > > On Wed, Jun 05, 2019 at 12:13:17PM +0200, Torsten Duwe wrote: > > > On Tue, Jun 04, 2019 at 08:08:40AM -0700, Vasily Khoruzhick wrote: > > > > On Tue, Jun 4, 2019 at 5:23 AM Torsten Duwe wrote: > > > > > > > > > > Teres-I has an anx6345 bridge connected to the RGB666 LCD output, and > > > > > the I2C controlling signals are connected to I2C0 bus. eDP output goes > > > > > to an Innolux N116BGE panel. > > > > > > > > > > Enable it in the device tree. > > > > > > > > > > Signed-off-by: Icenowy Zheng > > > > > Signed-off-by: Torsten Duwe > > > > > --- > > > > > .../boot/dts/allwinner/sun50i-a64-teres-i.dts | 65 ++++++++++++++++++++-- > > > > > 1 file changed, 61 insertions(+), 4 deletions(-) > > > > > > > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts > > > > > index 0ec46b969a75..a0ad438b037f 100644 > > > > > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts > > > > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts > > > > > @@ -65,6 +65,21 @@ > > > > > }; > > > > > }; > > > > > > > > > > + panel: panel { > > > > > + compatible ="innolux,n116bge", "simple-panel"; > > > > > > > > It's still "simple-panel". I believe I already mentioned that Rob > > > > asked it to be edp-connector. > > Actually just dropping the "simple-panel" compatible would be a poor > choice. Even if "edp-connector" is specified as binding and implemented in a > driver, there are older kernel versions and other operating systems to > keep in mind. Which older kernels? This is a new binding, adding a new driver, so if an older kernel uses a separate driver with its own binding, good for them, but we don't have to support it. > If the HW works with "simple-panel" driver satisfactorily, > we should definitely keep the compatible as a fall back for cases where > the edp-connector driver is unavailable. > > If think valid compatible properties would be: > compatible = "innolux,n116bge", "simple-panel"; > compatible = "edp-connector", "simple-panel"; A connector isn't a panel. > compatible = "innolux,n116bge", "edp-connector", "simple-panel"; And the innolux,n116bge is certainly not a connector either. > compatible = "edp-connector", "innolux,n116bge", "simple-panel"; > > I can't make up my mind which one I prefere. However neither of these > variants requires actually implmenting an edp-connector driver. No-one asked to do an edp-connector driver. You should use it in your DT, but if you want to have some code in your driver that parses the DT directly, I'm totally fine with that. > And each of these variants is clearly preferable to shipping DTs > without description of the panel at all and complies with bindings > after adding a stub for "edp-connector". I guess you should describe why do you think it's "clear", because I'm not sure this is obvious for everyone here. eDP allows to discover which device is on the other side and its supported timings, just like HDMI for example (or regular DP, for that matter). Would you think it's clearly preferable to ship a DT with the DP/HDMI monitor connected on the other side exposed as a panel as well? > > And the DT is considered an ABI, so yeah, we will witheld everything > > that doesn't fit what we would like. > > I fail to see how the patch in discussion adds new ABI. The binding itself is the ABI, and we will have to support that binding for pretty much forever. > While I understand the need to pester contributors for more work, > outright blocking DTs, that properly describe the HW Properly is arguable. > and comply with existing bindings And that's bindings meant for another use-case. Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com