Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7021530ybi; Thu, 13 Jun 2019 08:16:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgkNRlXVMdQdwVGgztAdEex8HKOBQSYBiCCSmOP6rOkydrcpRSy9nj99OaGTBwv4Mkc46I X-Received: by 2002:a62:6341:: with SMTP id x62mr95174703pfb.63.1560438988289; Thu, 13 Jun 2019 08:16:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438988; cv=none; d=google.com; s=arc-20160816; b=RAqPOuwDNEP45zsFpmn7ICzMUc0mqvaQZQr+B4w3RVaehN5KElbdWr78CRSU3PfhwN fKlIX/UrPAtbve+5zHcp5lj7FgZ9LuHTmYewGN5hxSyxZLW26q1Ku7c0/j579vE3rvfA 4AggsdZIfg573KANvK202HHuztrjuEIT2k8U9bN3+dr8BGUEIZ2hdfzTfA60khKGzxj5 SRHrKUtUJAuAGTJkDLALR9VGcUw9oI02vh5IXiXrXSykwucKsm9kQu4mPGLc0MIsUy4Q bPecGga+5aLFRoquzzeCVMLzIdNhlDZk22MhgSbf0CufNIZkpR9V+n7tAGa92GdMlnX3 /tSg== 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=Em7WAxb6fo/zc0cw+1a1Znb8BaFZ3/bjmngz+dpv6u8=; b=r26JDEvRd3CYygmpWbf76NnpaAR7+hZT4PdiDqQDzGYMfcpTAaLTMLW6ecBuqysJdL /TMFWHD8w5z18QgKPCYWb50vlekeN52rxP5VVWCeUfn27c9IQxlHwBcyYmxEVTB9lf3d 88wF7JlNr/TwzhlI/EhLfofHHJxxMgh6uwLcyMzB8CK3D9367dzBNa8+F0bCP/3VrhGv 9FU02q3CRm1fuJBnaevOwwoBnJrMpdxPMJtffuocC9Eo2mQvvfYIaVLmy9GzBajo0/IS 2owjyCNheCp4Mmctdgm4ct35iTmrHR1666u3MyNBuHnPz1qOeKEe3+Orsawc4Oodr40d QJfg== 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 d191si31463pgc.460.2019.06.13.08.16.12; Thu, 13 Jun 2019 08:16:28 -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 S1732868AbfFMPPT (ORCPT + 99 others); Thu, 13 Jun 2019 11:15:19 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:57299 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732226AbfFMNZy (ORCPT ); Thu, 13 Jun 2019 09:25:54 -0400 X-Originating-IP: 90.88.159.246 Received: from localhost (aaubervilliers-681-1-40-246.w90-88.abo.wanadoo.fr [90.88.159.246]) (Authenticated sender: maxime.ripard@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 1CBDAE0008; Thu, 13 Jun 2019 13:25:40 +0000 (UTC) Date: Wed, 12 Jun 2019 17:20:22 +0200 From: Maxime Ripard To: Andrzej Hajda Cc: Torsten Duwe , Harald Geyer , Vasily Khoruzhick , Chen-Yu Tsai , Rob Herring , Mark Rutland , Thierry Reding , David Airlie , Daniel Vetter , 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: <20190612152022.c3cfhp4cauhzhfyr@flea> References: <20190604122150.29D6468B05@newverein.lst.de> <20190604122308.98D4868B20@newverein.lst.de> <20190605101317.GA9345@lst.de> <20190605120237.ekmytfxcwbjaqy3x@flea> <20190607062802.m5wslx3imiqooq5a@flea> <20190607094030.GA12373@lst.de> <66707fcc-b48e-02d3-5ed7-6b7e77d53266@samsung.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kbzg5qkkfku6tqsr" Content-Disposition: inline In-Reply-To: <66707fcc-b48e-02d3-5ed7-6b7e77d53266@samsung.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --kbzg5qkkfku6tqsr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Wed, Jun 12, 2019 at 12:00:21PM +0200, Andrzej Hajda wrote: > On 07.06.2019 11:40, Torsten Duwe wrote: > > On Fri, Jun 07, 2019 at 08:28:02AM +0200, Maxime Ripard wrote: > >> On Thu, Jun 06, 2019 at 03:59:27PM +0200, Harald Geyer wrote: > >>> If think valid compatible properties would be: > >>> compatible =3D "innolux,n116bge", "simple-panel"; > >>> compatible =3D "edp-connector", "simple-panel"; > >> A connector isn't a panel. > >> > >>> compatible =3D "innolux,n116bge", "edp-connector", "simple-panel"; > >> And the innolux,n116bge is certainly not a connector either. > >> > >>> compatible =3D "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. > > I must admit I fail to understand what that extra node would be good fo= r. > > Logically, the eDP far side is connected to the well-known n116bge. > > Inside the laptop case it might as well be a flat ribbon cable or > > soldered directly. > > In good intention, that's all I wanted to express in the DT. I don't > > know whether the relevant mechanical dimensions of the panel and the > > connector are standardised, so whether one could in theory assemble it > > with a different panel than the one it came with. > > > > OTOH, as I checked during the discussion with anarsoul, the panel's > > supply voltage is permanently connected to the main 3.3V rail. > > We already agreed that the eDP output port must not neccessarily be > > specified, this setup is a good example why: because the panel is > > always powered, the anx6345 can always pull valid EDID data from it > > so at this stage there's no need for any OS driver to reach beyond > > the bridge. IIRC even the backlight got switched off for the blank > > screen without. > > > > All I wanted to say is that "there's usually an n116bge behind it"; > > but this is mostly redundant. > > > > So, shall we just drop the output port specification (along with the > > panel node) in order to get one step further? > > I am not sure if I understand whole discussion here, but I also do not > understand whole edp-connector thing. The context is this one: https://patchwork.freedesktop.org/patch/257352/?series=3D51182&rev=3D1 https://patchwork.freedesktop.org/patch/283012/?series=3D56163&rev=3D1 https://patchwork.freedesktop.org/patch/286468/?series=3D56776&rev=3D2 TL;DR: This bridge is being used on ARM laptops that can come with different eDP panels. Some of these panels require a regulator to be enabled for the panel to work, and this is obviously something that should be in the DT. However, we can't really describe the panel itself, since the vendor uses several of them and just relies on the eDP bus to do its job at retrieving the EDIDs. A generic panel isn't really working either since that would mean having a generic behaviour for all the panels connected to that bus, which isn't there either. The connector allows to expose this nicely. > According to VESA[1] eDP is "Internal display interface" - there is no > external connector for eDP, the way it is connected is integrator's > decision, but it is fixed - ie end user do not plug/unplug it. I'm not sure if you mean DRM or DT connector here though. In DRM, we're doing this all the time for panels. I'm literaly typing this =66rom a laptop that has a screen with an eDP connector. Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --kbzg5qkkfku6tqsr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXQEYNgAKCRDj7w1vZxhR xagZAP9+AZ8uzanMLNIT15MfMeCtszC85MU2JHwDCbzueao68wD/WPbzy8s2BkPf pRPeI1xiny1h0ObfHZ8o1OdpRlKPHQg= =nu8d -----END PGP SIGNATURE----- --kbzg5qkkfku6tqsr--