Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2525796rwe; Sun, 28 Aug 2022 14:14:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR5X71V8fc0GcSEZFv5E7B90TzQtEmaK/BBRa0uE5yldrljX45eAYEJlrwBazdoScTsiJGxu X-Received: by 2002:a17:906:5d12:b0:741:90e5:5f8e with SMTP id g18-20020a1709065d1200b0074190e55f8emr1260627ejt.592.1661721242495; Sun, 28 Aug 2022 14:14:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661721242; cv=none; d=google.com; s=arc-20160816; b=I5z9sX7bpT9Ud+YAh3ydbKk/kJvegCZxsIInh3I2ZAIwDKgD7If1I3ikf5kSZEMKf5 r/IqF6pFYqYQdElNKzl76uzsXpzp2/ZgJFhz7IzX7JbPZOr+CATgbctaiNnJfW6BRSoJ +y/LHHv3CpG66jfffw+2SmaWhlQhVXvN9+3k01/I39SaN+XOs7j/JQgRnSM82dvrIi/k povg5vyhpEh4MQd5Ws7chawEzixP3I50VWu7N1wj+5IYdgO1OUv+oMB4VtdiYt85AnEX xaWDqWGFYts5WQGAdhUzTQ22u+qXup3ACUz28fbwd7jiM7KF32X6YGFgiG4QHJoDqfXr ta/w== 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=mC6gBj0kuKVX2cf4bAsxRZgtAWFeJDMdJEm3tu/7KE0=; b=Mh5hIXmL+IPAnsdcKBzSvgD3BQ4e5a3DhB2qnv5M+TOzyMbmRltwgMU8pVQukx9Cu3 NWC2q7Tcyf8quvhfj/vbmR/aT8AqUZj1syld5g8KoYDu9EQ8QZvzKwxk4GAS24xacjHc 0SLYd6RUmoE0YmlI2y9Xy3XHxnKudTB9+DTx74btE3QqQLasrnaUav1YUnZLQTkkhFAM rqGqj3O/Yu6uq6StHssuM3uFUXZFak3TkRYsVh6a10HqvReN0IUqVeZJePGBJRkSen3T i+6Um8q4ZoJxHMEzGB5eI2o0Vefwpp8K2AHz+8DWblX9XqLQeEAZu7U/F0aJZIwjawUL qOcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=T0fmWP96; 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 i13-20020a1709064fcd00b0073146b3f95asi5708139ejw.632.2022.08.28.14.13.35; Sun, 28 Aug 2022 14:14:02 -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=T0fmWP96; 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 S230118AbiH1U5q (ORCPT + 99 others); Sun, 28 Aug 2022 16:57:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbiH1U5f (ORCPT ); Sun, 28 Aug 2022 16:57:35 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DF4530F4B; Sun, 28 Aug 2022 13:57:32 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id 10so5172218iou.2; Sun, 28 Aug 2022 13:57:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=mC6gBj0kuKVX2cf4bAsxRZgtAWFeJDMdJEm3tu/7KE0=; b=T0fmWP96TcARxU5ZFjM7lFdHzW89Psc3kO7UC2oX8G5q4OBprGJlGx+gGXdPZ/wkts v6sbtR146h3BAhGS+pJgskLcv20KW/b7YLIbI8b6BpwK3ClfOQo4X1pDW8vEy2h/0T+H XWEhAhx/I7af53VtAP4SivnEvz9f/9WWJZq01VR0dmtxybtBBEVjO9GpENg08SnGWalJ /NH+tLza1adfvOw7Wj55GY0uHnK5u5uurjEYcGdBF72cfVhN1Ag9suAfhfZE86bwF9Ks g//GK/9MBKN0ZB+BSjlp/d2Tm2cvcxii9112ibW4owH68tkpFVonBLjp0geC7YZwbkNv 4mNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=mC6gBj0kuKVX2cf4bAsxRZgtAWFeJDMdJEm3tu/7KE0=; b=kTjWd42MSykTpBguE0uyEmfPTHpLeFQ/xVZv1phMDFG82tSJXWEhoSDSSCb3ob48qQ NIlrwHcqA5/pdwg0zUh++WNy2sBux4qwz3P7DUjaayC7P1GVYI/pcFGWaOsCZwXVvXk6 wTb6ADLsq9FjQmL3UWgar9lWiBW4iMZwPeJ/9vl64/inTyW/gRB0SET3SsOfL9XT3WXy 1nm+uXHxdSnL7ALs6M4BDas+hD6La0QYs6b4A+deUkA9cELzLEZVVlUc5ACr/jaHXo0o CH2/acmi88PG/5GJcZVrWHh+vLjGrZCU48nzJubFpITY0WaNMI70Xt8J76Lky8B3xMOo 4ccw== X-Gm-Message-State: ACgBeo1tcMSi34oJq8rn1bsJciTroEjvGbEtwuyPoEIdumyipT3t9o7E im3h0rlIIVc27qbuCYT0LSI= X-Received: by 2002:a05:6638:2105:b0:34a:694:4fa4 with SMTP id n5-20020a056638210500b0034a06944fa4mr9332943jaj.116.1661720251715; Sun, 28 Aug 2022 13:57:31 -0700 (PDT) Received: from fedora.. ([2604:2d80:4d8e:a000:6063:7cd5:2f24:16a6]) by smtp.gmail.com with ESMTPSA id k7-20020a02c767000000b00349be1ef390sm3572404jao.121.2022.08.28.13.57.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Aug 2022 13:57:31 -0700 (PDT) From: Joel Selvaraj To: Andy Gross , Bjorn Andersson , Konrad Dybcio , 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 v4 0/4] Add support for Xiaomi Poco F1 EBBG variant Date: Sun, 28 Aug 2022 15:57:19 -0500 Message-Id: <20220828205723.20834-1-joelselvaraj.oss@gmail.com> X-Mailer: git-send-email 2.37.2 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 Changes in v4: -------------- - Update board's compatible and model property to distinguish between the two variants. (Suggested by Krzysztof Kozlowski and Marijn Suijten) - Update the dt-bindings as per the new compatible values. (Fix checkpatch.pl script warnings) 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. 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: ------------------------------------ - 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. - 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. 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 (4): dt-bindings: arm: qcom: update beryllium compatible property arm64: dts: qcom: split beryllium dts into common dtsi and tianma dts dt-bindings: arm: qcom: Add Xiaomi Poco F1 EBBG variant bindings arm64: dts: qcom: sdm845-xiaomi-beryllium-ebbg: introduce Xiaomi Poco F1 EBBG variant Documentation/devicetree/bindings/arm/qcom.yaml | 3 ++- arch/arm64/boot/dts/qcom/Makefile | 3 ++- ...um.dts => sdm845-xiaomi-beryllium-common.dtsi} | 11 +++++------ .../dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts | 15 +++++++++++++++ .../dts/qcom/sdm845-xiaomi-beryllium-tianma.dts | 15 +++++++++++++++ 5 files changed, 39 insertions(+), 8 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.2