From patchwork Sat Aug 6 21:02:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Selvaraj X-Patchwork-Id: 595807 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA112C3F6B0 for ; Sat, 6 Aug 2022 21:02:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233414AbiHFVCp (ORCPT ); Sat, 6 Aug 2022 17:02:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233401AbiHFVCo (ORCPT ); Sat, 6 Aug 2022 17:02:44 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 101721180F; Sat, 6 Aug 2022 14:02:44 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id r186so5468559pgr.2; Sat, 06 Aug 2022 14:02:44 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=cwBgkJUZDFQk22Vxi4B/5USog1bwDuUOWtWL0DhbtIg=; b=VAbmlScAxnYrEw8uHKGvm0WO6+fcXvmUw5Wurdw/r8CXoOFC0ODPyHR3tiJfXU8eqh ni71EDVft0eB0pRwFdABgQzSjs70mhyvqUxabRp65XWAgjCECRsy84CGyXFXJrfTEIph fF+Cu12Zevap/GFw0E1AQpuG5XfA27uaHJMgdLmoel/8jyP/cG4SyXBQY5lUl6/sUE1e xyjS7Yh2L+sBx61rg0IKrv9RHCNqtCq0IeZ2gqM0y1n5SDOyjF0WVjTUkaOcVpW2EAfN cTmIh6kyBS0SiKCj3TSTcxYXwciI22xIdjb36F5v1o9hoh8nkC5YASwxX8ILVMLXP/b7 VI8Q== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=cwBgkJUZDFQk22Vxi4B/5USog1bwDuUOWtWL0DhbtIg=; b=4qm/J6mVh9lzCM9BudQON7FGaQNOlXqULn+a5m3YEQUqzrI5/O64je9FfzVJjQReRL BtYgdF3oFWiXciZB/BGvhKuOKQ0DQvUuz4Y5CV5UFiIZin5eQWcyZ6DSgS55I9bDorEu w81+OOfCUEV0605DloPbtzPEKoMjCrdiTzSkZNfY9CtO9v1pbmM6WWeP3ZldXxoHfRAs Aiarm/eBG1IO3RI2Io0jtYMKuHv6ejt+IUrORt91i3n/vpMhggI1aa54SDy7LDwpd5sg 0TTcd15DmZkkGXjgnbyXQ5umdEPYOmsV3FKcZs9SV9FGADOCaVfoW9zmQYuPqr/dZ6IE vyvQ== X-Gm-Message-State: ACgBeo2TVX2lWdXDcagOe4aICj73rkx7LUxSUlA9KlrONF6A4B5o+Y1C Z9yChElZq+/VIvrs980d/Gw= X-Google-Smtp-Source: AA6agR6wlttnE4n3UDJLaMezhCFEVAHwfhxrsRyBRl2QcBkrwIpoQ94tKV7m0Oe1QZVJx0dcTha2RA== X-Received: by 2002:a65:6b93:0:b0:41b:823d:416f with SMTP id d19-20020a656b93000000b0041b823d416fmr10256733pgw.262.1659819763540; Sat, 06 Aug 2022 14:02:43 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Aug 2022 14:02:43 -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 1/2] arm64: dts: qcom: split beryllium dts into common dtsi and tianma dts Date: Sun, 7 Aug 2022 02:32:19 +0530 Message-Id: <20220806210220.31565-2-joelselvaraj.oss@gmail.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220806210220.31565-1-joelselvaraj.oss@gmail.com> References: <20220806210220.31565-1-joelselvaraj.oss@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org There are two panel variants of Xiaomi Poco F1. Tianma and EBBG panel. The previous beryllium dts supported the Tianma variant. In order to add support for EBBG variant, the common nodes from beryllium dts are moved to a new common dtsi and to make the variants distinguishable, sdm845-xiaomi-beryllium.dts is now named as sdm845-xiaomi-beryllium-tianma.dts Signed-off-by: Joel Selvaraj Reviewed-by: Marijn Suijten --- arch/arm64/boot/dts/qcom/Makefile | 2 +- ...ryllium.dts => sdm845-xiaomi-beryllium-common.dtsi} | 9 +++++---- .../boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts | 10 ++++++++++ 3 files changed, 16 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-tianma.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 2f8aec2cc6db..02db413b228c 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -106,7 +106,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sdm845-oneplus-fajita.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-sony-xperia-tama-akari.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-sony-xperia-tama-akatsuki.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-sony-xperia-tama-apollo.dtb -dtb-$(CONFIG_ARCH_QCOM) += sdm845-xiaomi-beryllium.dtb +dtb-$(CONFIG_ARCH_QCOM) += sdm845-xiaomi-beryllium-tianma.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-shift-axolotl.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm850-lenovo-yoga-c630.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm850-samsung-w737.dtb diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi similarity index 98% rename from arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts rename to arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi index d88dc07205f7..83edcb1171f5 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi @@ -221,8 +221,7 @@ &dsi0 { status = "okay"; vdda-supply = <&vreg_l26a_1p2>; - panel@0 { - compatible = "tianma,fhd-video"; + display_panel: panel@0 { reg = <0>; vddio-supply = <&vreg_l14a_1p8>; vddpos-supply = <&lab>; @@ -234,8 +233,10 @@ panel@0 { backlight = <&pmi8998_wled>; reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>; + status = "disabled"; + port { - tianma_nt36672a_in_0: endpoint { + panel_in_0: endpoint { remote-endpoint = <&dsi0_out>; }; }; @@ -243,7 +244,7 @@ tianma_nt36672a_in_0: endpoint { }; &dsi0_out { - remote-endpoint = <&tianma_nt36672a_in_0>; + remote-endpoint = <&panel_in_0>; data-lanes = <0 1 2 3>; }; diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts new file mode 100644 index 000000000000..fcbef5ad2909 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 + +/dts-v1/; + +#include "sdm845-xiaomi-beryllium-common.dtsi" + +&display_panel { + compatible = "tianma,fhd-video"; + status = "okay"; +}; From patchwork Sat Aug 6 21:02:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Selvaraj X-Patchwork-Id: 596035 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D4DEC25B0C for ; Sat, 6 Aug 2022 21:02:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233580AbiHFVCt (ORCPT ); Sat, 6 Aug 2022 17:02:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232650AbiHFVCr (ORCPT ); Sat, 6 Aug 2022 17:02:47 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66BA311833; Sat, 6 Aug 2022 14:02:47 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id y141so5078256pfb.7; Sat, 06 Aug 2022 14:02:47 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=LnCYxidkbqPSIhSju2tTZKFe01JSQbzeOLwbX11AAGA=; b=X4SjB28poocY80XBxfAS4UQBWvh89vlmp+kEbdLqdAy34xD/m9ryGH0elE2B5WsBml FrmXfF6fR/rBexMEuo7zWEmANf4o6Ww9TkRuC9m8gsfA3iNd7olBmUWaIR4+rdO0g7GC nkyMEg8u66d8Y5QW/8s/phgRzZDLTl72bV/HtpgI1y32PsSKGi7XJI6/vYSUJtjc7YUp sbDUeKedHgmjiPXhr4sa0oVagt/Rvt7HfmESQNeq9S3zVS6teThicb8+zVAJWO0jRDbI oci44NiGNZo1+IWJwx5Z2ks5FfOKVevJ0TahJRqUH2p/NjErWXe4IQ/SxN7+6RTYJzwm f6DA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=LnCYxidkbqPSIhSju2tTZKFe01JSQbzeOLwbX11AAGA=; b=MB3qMRjkf7biLzieJSGB2fg8TCvd1Mtvw35pVnfR28Z7oWai/D982+BtqQBKFhkycl KRmQqFe5nchhqfz5iXcl6aDfmYrLmmXqm1fkUOZBNbroRQiExS7YrjV9/pHMRaY4ya/P OpXzSpIXUwdquUR9ynI6citG6+pb/L5WOL0ZtT5o/Azf3myRGtNISFCnRrIK/kUmDbHn qT3GJio8A4werC4TZT3kwpHe3GG5F7rVXLjTBU8pFX+NIviGMb48ujD6zr/B3ItkeaJc hPLkytJtZ/TW8A1c0sTzKM5hG/qHDhMUu/+oZDHvpR2kJe055Xc/iI5APwo0BVXK9g2S j8nw== X-Gm-Message-State: ACgBeo0CTs/vnGulmqcPnA+xBHAzS6G6O8H0lN/BgoDfjfa84yL7lWvY HBES1a1V5wvWUvh8QvGecL5T1EgxwmFiEg== X-Google-Smtp-Source: AA6agR72Gz7vEJVNeKZ1E7yqvPrB0xhFZbxFctqWWpBUcJkuh50bKes31Khl2Vt0d/VyttYOzZOrqQ== X-Received: by 2002:a63:6a41:0:b0:41c:86b0:596b with SMTP id f62-20020a636a41000000b0041c86b0596bmr10045444pgc.582.1659819766925; Sat, 06 Aug 2022 14:02:46 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Aug 2022 14:02:46 -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 2/2] arm64: dts: qcom: sdm845-xiaomi-beryllium-ebbg: introduce Xiaomi Poco F1 EBBG variant Date: Sun, 7 Aug 2022 02:32:20 +0530 Message-Id: <20220806210220.31565-3-joelselvaraj.oss@gmail.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220806210220.31565-1-joelselvaraj.oss@gmail.com> References: <20220806210220.31565-1-joelselvaraj.oss@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Introduce support for the Xiaomi Poco F1 EBBG variant. The EBBG variant uses EBBG FT8719 panel manufactured by EBBG. Signed-off-by: Joel Selvaraj Reviewed-by: Marijn Suijten --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 02db413b228c..29f15031a199 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -106,6 +106,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sdm845-oneplus-fajita.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-sony-xperia-tama-akari.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-sony-xperia-tama-akatsuki.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-sony-xperia-tama-apollo.dtb +dtb-$(CONFIG_ARCH_QCOM) += sdm845-xiaomi-beryllium-ebbg.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-xiaomi-beryllium-tianma.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-shift-axolotl.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm850-lenovo-yoga-c630.dtb diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts new file mode 100644 index 000000000000..1e0be481b9da --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 + +/dts-v1/; + +#include "sdm845-xiaomi-beryllium-common.dtsi" + +&display_panel { + compatible = "ebbg,ft8719"; + status = "okay"; +};