Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp3169968rwb; Sat, 6 Aug 2022 14:32:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Ux0kSiI8w3F/j3AaRzxGXXP4Df35u1Piylt97u9mfPLEFaJ6zx+M+7Mp8YPrSpC0WmBb5 X-Received: by 2002:a17:906:58c6:b0:731:39e0:3eb8 with SMTP id e6-20020a17090658c600b0073139e03eb8mr1886681ejs.205.1659821526188; Sat, 06 Aug 2022 14:32:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659821526; cv=none; d=google.com; s=arc-20160816; b=aKlSfnLo4JdN8Q1ULYZ2YaLijvSJ1xdiAFPeJ/d/Xzm8TB7LFnA/c6T0WrCR65QEDF ZBqY7idA0KSPNNyCFR5Jm7qiXNWVwnxh8oTEQ/qzU9zQb8oaci7nyZnoQWkDg8a2E/QD Z5llIRAENtwgVf2jfQ6ZDp1Ug8D+78YLVyr97Z7UpIyAb7QNZyMs/JZLiXEBg0UIy7Is uA065DtSqqGxG0lBQfj9H+pNi71Q/nTlqMxmDsON/B8Q9gfMM7vAeAkZc16Qve+aU1dp bFBoHVDVR3DJrYQ3DrVqo0exvu2b/8BS5p0sN5Bd23F5PkJRGXvMpvrFJSgq+PjRdXea Ipjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=LRe7Qi9ZOxXvGGMfrErpYT9kxajfvdTVrAFtsbgdYtk=; b=O2lqBPKZ6DSZTRLviW5p9Uczkuws+4KYUOGa5bO+97E83HLnGbiEfDZyglyRVpwFtz OhdEg/z5fvrECtYzwvBpSbtIx3tvuqLWU1B0cRnQBPpmRn5G4iTdps+HA0mT4jtSRzIL J/A9WK7lFXYB8GUb0vNBQtlu5n36j/Mfzy8SXFZcUfydJ4H+1/ScfI4NVrfwdLRxUuSG nvkN41xSM9nbQt6ZlW3yxLJLR1eSKIISiCZ34WmglHK2P4n5Y8qz4ChkcAZZKqRM8xyc qKfypb91wB1adnXugdai/GB/k7hJYkFBPyY8J8XKTLhls+IdP89k/mB5HBoFNM2WDeU0 FIzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ug8oeK4+; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w5-20020a056402268500b0043c432626ffsi2820317edd.5.2022.08.06.14.31.40; Sat, 06 Aug 2022 14:32:06 -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=@gmail.com header.s=20210112 header.b=Ug8oeK4+; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231738AbiHFVCn (ORCPT + 99 others); Sat, 6 Aug 2022 17:02:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229740AbiHFVCl (ORCPT ); Sat, 6 Aug 2022 17:02:41 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FB99E023; Sat, 6 Aug 2022 14:02:40 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id z187so5054331pfb.12; Sat, 06 Aug 2022 14:02:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LRe7Qi9ZOxXvGGMfrErpYT9kxajfvdTVrAFtsbgdYtk=; b=Ug8oeK4+D3PRIxzHwknKZrZEyz5wRGY0eZTjtvJ/IisX9fY+pJd4DjV6kbTOCPuvWA JMGnhLq882lBbVBOSJCjAGvBF9fJ39NK6e4/8u/YoMGFVuLyTQTpZjVcFgSoqD9153bs jfQRaUD1X9UyShSs0ZfIJLY/rNzIzI+2PD27si4QyvVAgqWwB2xLuhqZmQ0I7rarW4BH +Q3GQoXgu9f+HOGn4GZDygTAvt1OpEkUoL05rXcvpwCJ3uh7nQ8T9mOnbcygc8Wugg10 wxJ7l9t4OjQDRp5y7gPEZDwL8McRD1ME7vTbMsVwoGwiq4513AnsBLg7EdmTjevfuWAO fRaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LRe7Qi9ZOxXvGGMfrErpYT9kxajfvdTVrAFtsbgdYtk=; b=UAemWPNYCKDUk4rTPtq9cxFhv7Wu+ixDiBfFzabTDrU8Q0wx2cBazTGyHNRaxPBK9n JfUQbZHiPtqAnhrDiD36q5IZH3Fz9n2TvWQkuyniyU/EoHTdXIZZSo95/WzJIst20COI haiN5Rv0U8eedLikDXki+oYX2+Rc47w0AO6q14IJtPUIS4LYVHB7Vjs5HGTD7Vv2Z864 tgyBewtYT4M+CR/GMW36cmP6YnC/8bvPYbTLCNV9uATVGpP35jdUBQjlRyGqxNUjzRKI tR1l5X8RjlqJMDecfQlEHV/ZzWiZQOZIngKnKgUPxhnMThr6PezK/O0Msla3ibE7xrfZ a5hQ== X-Gm-Message-State: ACgBeo1zWMF4GOVkLr9v9gdi8exbjAotImp0kgimhiVmO5XhurykgJrW /mwVcTii3PCaxaVZQOymcFI= X-Received: by 2002:a63:dd57:0:b0:41c:fd02:56d3 with SMTP id g23-20020a63dd57000000b0041cfd0256d3mr7787626pgj.427.1659819760145; Sat, 06 Aug 2022 14:02:40 -0700 (PDT) Received: from fedora.. ([2405:201:e01d:6040:3f6e:eaa:537b:816f]) by smtp.gmail.com with ESMTPSA id c203-20020a624ed4000000b0052ea306a1e8sm4538815pfb.210.2022.08.06.14.02.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Aug 2022 14:02:39 -0700 (PDT) From: Joel Selvaraj To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski Cc: Marijn Suijten , 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, Joel Selvaraj Subject: [PATCH v3 0/2] Add support for Xiaomi Poco F1 EBBG variant Date: Sun, 7 Aug 2022 02:32:18 +0530 Message-Id: <20220806210220.31565-1-joelselvaraj.oss@gmail.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 There are two variants of Xiaomi Poco F1. - Tianma variant with NOVATEK NT36672A panel + touchscreen manufactured by Tianma - EBBG variant with Focaltech FT8719 panel + touchscreen manufactured by EBBG The current sdm845-xiaomi-beryllium.dts represents Tianma panel variant. To add support for the EBBG variant, In the PATCH 1/2, let's ----------------------- - Rename sdm845-xiaomi-beryllium.dts to sdm845-xiaomi-beryllium-common.dtsi - Generalize the display panel node by assigning label, removing compatible property and renaming the panel endpoints to be generic. - Create a dts for the Tianma variant called sdm845-xiaomi-beryllium-tianma.dts which will inherit the common dtsi and set the compatible property for the respective display panel. - Adjust the Makefile since the sdm845-xiaomi-beryllium.dts is now called sdm845-xiaomi-beryllium-tianma.dts for the tianma variant. In the PATCH 2/2, let's ----------------------- - Create sdm845-xiaomi-beryllium-ebbg.dts for the EBBG variant which will inherit the common dtsi and set the compatible property for the respective display panel. Changes in v3: -------------- - Approach suggested by Marijn Suijten and Krzysztof Kozlowski to make git handle renames more appropriately and to avoid moving large chunks of code. Helps with reviewing the patch. Changes in v2: -------------- - Fix issue with builds breaking across multiple commits making git bisect harder to find where the rename has happened. 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 in upstream yet. Once they are accepted, we will add them to respective variants. Joel Selvaraj (2): arm64: dts: qcom: split beryllium dts into common dtsi and tianma dts arm64: dts: qcom: sdm845-xiaomi-beryllium-ebbg: introduce Xiaomi Poco F1 EBBG variant arch/arm64/boot/dts/qcom/Makefile | 3 ++- ...ryllium.dts => sdm845-xiaomi-beryllium-common.dtsi} | 9 +++++---- .../boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts | 10 ++++++++++ .../boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts | 10 ++++++++++ 4 files changed, 27 insertions(+), 5 deletions(-) rename arch/arm64/boot/dts/qcom/{sdm845-xiaomi-beryllium.dts => sdm845-xiaomi-beryllium-common.dtsi} (98%) create mode 100644 arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts create mode 100644 arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts -- 2.37.1