Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp381595imn; Thu, 4 Aug 2022 09:30:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Qm+gTxqoyaWf0y1HCkBQVKMvK2TI5xoLG7G9xnx6u7F9IvTcE6EoPNzWHgYFe52Nq05xe X-Received: by 2002:a63:4942:0:b0:41a:20e8:cba1 with SMTP id y2-20020a634942000000b0041a20e8cba1mr2248686pgk.514.1659630651247; Thu, 04 Aug 2022 09:30:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659630651; cv=none; d=google.com; s=arc-20160816; b=wrPchdPDkh7ipgPYn+9bbdvCVbeYp6gLtq9VkDpuaMGu/Zmh6bgPHz4XG6CgfoARA2 86ledvrHLlknowmuAvO5u7MKPDu61bPDNLRV3gOQy7Qb9mTpiYS/2BVkiZt1niiQlXbu UsT4SfmwH0El9v/huGjf4SImVQypU9dc5EO5ZMLB47sOW79WINS8kibPHoy/Puohx1k9 vFBurEXk7kQuxoSbFO5WbMWppQqxZyw9o0s+XmCVcXbmcQIgWbS7csq+5CV6OgVELH2m ZJJGuv5G0qm2WxlBp0KSLsLF95QGJRfdz5kKx5TDlbc4+fKJ2g2cfbwzkKtKBIHJu/E4 R2Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kWEuEGyWD5cuZYPsK0JtmnKau5dObaXccnxnYn2McBc=; b=U3zmzXWL+HE3a4nHXJsv6Nkuz6+tT+eqkKdCc68n6oXdIU2OnqFCHB3M0XA8ZBH9xB X5IZJG+MIeObuoAHIzoPzSN6+IM9EotwgIfMD4ipNjEqnj/n56X5GBqnEaq3wN4oWAEw M0A0Pld2ne9C/8hTcVjwdGOprKqodhhxz2fUYVLDd0PfH8q0S3SoF7+atCyRpFzSnL5E 81kCrXS3gSNRyrs7t9NiA98gAUmsSawOIfzsZOSTjiRaoKS6LUE4RfQdJfRhTM2j8/1b U0bCy4OJN78JSnrN5ls3ajG5JKjhyFwgp/h1N4ImGIdQm3w/ElE7WrDGKYJZSXNUloLZ W1Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=SGsbS4ac; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u10-20020a65670a000000b0041614a27d32si193488pgf.786.2022.08.04.09.30.36; Thu, 04 Aug 2022 09:30:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=SGsbS4ac; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232454AbiHDQVj (ORCPT + 99 others); Thu, 4 Aug 2022 12:21:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230482AbiHDQVh (ORCPT ); Thu, 4 Aug 2022 12:21:37 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B53F66120; Thu, 4 Aug 2022 09:21:35 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 6BFCA1C000D; Thu, 4 Aug 2022 18:21:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1659630093; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kWEuEGyWD5cuZYPsK0JtmnKau5dObaXccnxnYn2McBc=; b=SGsbS4acDy67iFtBrlo9VdHE2Zothsst7u8IpJjobkSnRzYB/xHfRkAY2RkGfOk63GnGb5 WchCTs4DNvdpnsxcRaM7w48BuJDV39s97MjMHK7bH8+/VmwXgzuzraso4iTbMbd2L2Tdi5 fXEQOqeFLChxY5RutWFG8SQDmCiQvQI= Date: Thu, 4 Aug 2022 18:21:05 +0200 From: Pavel Machek To: Konrad Dybcio Cc: Joel Selvaraj , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org Subject: Re: [PATCH 0/5] Add support for Xiaomi Poco F1 EBBG variant Message-ID: <20220804162104.GA1189@bug> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > > - Tianma variant with NOVATEK NT36672A panel + touchscreen manufactured > > by Tianma > > - EBBG variant with Focaltech FT8719 panel + touchscreen manufactured > > by EBBG > >=20 > > The current sdm845-xiaomi-beryllium.dts represents tianma panel variant. > >=20 > > To add support for the EBBG variant, let's split this into 3 files, > > - sdm845-xiaomi-beryllium-common.dtsi which contains all the common nod= es > > - sdm845-xiaomi-beryllium-tianma.dts for the tianma variant > > - sdm845-xiaomi-beryllium-ebbg.dts for the ebbg variant > >=20 > > Note: > > ----- > > Both the panels are already upstreamed and the split is based on them. > > There were patches earlier for both the touchscreens, but they are not > > accepted upstream yet. Once they are accepted, we will add them to > > respective variants. > Hi, >=20 > I believe this is not the correct approach. This may work short-term, but > you will have to prepare 2 separate images for the device and mistaking t= hem > may cause irreversible hw damage at worst, or lots of user complaining at= best. > Instead, I think it's about time we should look into implementing dynamic= panel > detection. It is certainly better than current state. Now user will need to decide what panel he has. > Qualcomm devices do this by parsing the command line [1], as LK/XBL > gives you a nice-ish string to work with that you can simply match > against a label. Other vendors may use custom mechanisms, such as > a resistor / GPIO to determine which panel (or generally hw config), > but implementing this mechanism would make upstreaming of lots of other > devices easier.. I believe ideal solution would be bootloader passing the correct dtb to the kernel... Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html