Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4749439rwb; Mon, 8 Aug 2022 06:31:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR79H8bungrueDYAabPEDgy7HYq2lBi+wVK1dpZdmGoEBZxNd2VCwvf+nrjY7YfwM03WgJEF X-Received: by 2002:a17:902:ccc4:b0:16c:5766:51f9 with SMTP id z4-20020a170902ccc400b0016c576651f9mr18691028ple.84.1659965467930; Mon, 08 Aug 2022 06:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659965467; cv=none; d=google.com; s=arc-20160816; b=TDSDqbJyv8jefqKGxi2r9GdhNv9dTDVgC583FllInDSX1dVoXbx2SUD7W9mhWg9q1b 4NzGO9eMCJim6GO+Q5Vusz9j5hhihtyRl2R3VJ2twIS6mJjgG6VRFtU9PXWEaxa5OLW9 I3TEXAb3YdY7P+foUCsf9sUYZnIfiJwYt0IHcIZsegm6rH+wckUYH6EMXgU5+LL7Kr07 oG2aL/1yF0iIEEHms0Zag7oJx118X+W3LMr2w8gaG6Zavh4JuJk1n1Kloyg/8Ew4GXeq KApegtcHaB1YYQo+B9aGxM0PZAtOBAko0NdylXTXdhm7gnAEIE3bIe38OR/XQWvsK81T mHfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=zIext4iM7Gt/jzmUdgVWJYWrfCPvh6MCFoYbhIH803w=; b=MXGvRveGebW+sJ9FOsVks+kISVFX7FfVGjnW6STdpuoZM6lkGIqBKfZfVwDPVpZDkT /V1m2fQGzOrE6kDMnGOaqmh3R5RpH3QS2w9RJ5MAhE6owGq3AGFWDGoLYhinfA/9SQG1 vc483dVDm3b7m2PzFiUJpn2okKtjJy9hYplojmHnGyf+6itr7LMBu6CTj4als6umzT+Y I6U/p7Y6BXTCwP0EnRc6bcsRe5PW2Ku/W8E/lPzqVsqO/jw03aGo7J2bWl+plrjiR2lt rKTogQTHbMs8h4++j7CBwwuR4DYV/RVUKnQn/gtBmG43fUNw9qOFhILrx1ur5ntd/teV R/+w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a64-20020a639043000000b00419f8572858si10663842pge.755.2022.08.08.06.30.52; Mon, 08 Aug 2022 06:31:07 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243121AbiHHNNB (ORCPT + 99 others); Mon, 8 Aug 2022 09:13:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242737AbiHHNM7 (ORCPT ); Mon, 8 Aug 2022 09:12:59 -0400 Received: from relay03.th.seeweb.it (relay03.th.seeweb.it [5.144.164.164]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDBE41A2 for ; Mon, 8 Aug 2022 06:12:56 -0700 (PDT) Received: from SoMainline.org (D57D4C6E.static.ziggozakelijk.nl [213.125.76.110]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 447E31F697; Mon, 8 Aug 2022 15:12:53 +0200 (CEST) Date: Mon, 8 Aug 2022 15:12:51 +0200 From: Marijn Suijten To: Joel Selvaraj Cc: 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 v3 1/2] arm64: dts: qcom: split beryllium dts into common dtsi and tianma dts Message-ID: <20220808130940.yztpesbkgootqwds@SoMainline.org> References: <20220806210220.31565-1-joelselvaraj.oss@gmail.com> <20220806210220.31565-2-joelselvaraj.oss@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220806210220.31565-2-joelselvaraj.oss@gmail.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 2022-08-07 02:32:19, Joel Selvaraj wrote: > 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 Nice, this is much more concise now and keeps the tree compiling _with this dts_ at all times, at the detriment of stuffing "many" changes in a single patch which is fine here, IMO. I just hope users of this dtb notice the name changed (unless unreferenced dtbs get cleaned after a dirty-rebuild) when their scripts are inevitably hardcoded to take this specificly named dtb to flash to the(ir) phone. After giving both DTs a unique compatible as pointed out by Krzysztof, please add my: 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"; > +}; > -- > 2.37.1 >