Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5464298rwd; Mon, 5 Jun 2023 04:12:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ45VU+BXljSdiGGhYxAwh+yq5r/+82OnbeG3jGbpNg3RxNc+zYInv9yBgT70h+HQ85BO/uS X-Received: by 2002:a05:6a20:3d0a:b0:114:7637:3451 with SMTP id y10-20020a056a203d0a00b0011476373451mr4069798pzi.37.1685963577917; Mon, 05 Jun 2023 04:12:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685963577; cv=none; d=google.com; s=arc-20160816; b=GRU9RHlEc5qteDMV0Nd1ubw73bJ+oLS1ZjxfXYdkWL+8+2V4pmEtEV+T94qPb8CeXo JNzNDd7VZTPCtjZxCSmz9CGb+8RuC6apMRgFQC92gM3/6TXH6oNpg2YOGgSm+Z0d/WsN QU2ywgdnXwJthz/B9gWE56inS8IoYyjixcwtJIMtOwOI6YD4P3gotg7/PVC8jWm/selT OVtuPlo4M+z5fpjoUo8mHrcC7+vKjD/jhe2Y8NTzZaJJvTmjfvy0vvD0rEt4lIWIPXbt V55tkS3oshcgi5SGE3skEb6LKPiFsQVjRr3wZSHxuejnSN2A58K2ElnDrWjbeTWrKO5H 3NiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=aOcvx95y08Gz26+xoTBjezMM0R9qofVzp0SopEjZHOQ=; b=zGALapkkKf5po5OBXBZATm13XfSnuiWruUX6z52MPvSfCuCNcJV9yB7dS25kdyoW02 urdfxI8tgGn79whzucHLYFFEDXMpy4GPY2lGaN0PrPB+XENRmi1wMmDRnvSzqnvaMKqt cKcldo//iuzg9ZXAWxUrcQQvXVIfBJewkczKZrrxGYHG4NjqPQ/b/RgzWAkilIPfi3GI w9htU5wwuivNaKlHHj8sz4elFvYTnSpNMlMtWKc2D6POGhIjdD3rkOImHKk8a6paT8W/ M025AWopcYAUAHCeo/44L7SOv6FXs+f7bT4FHuvunJXwdm6OZIINk3BTpBfVZFiNyr9Y JXAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="rt0Rcc/e"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a627b08000000b0063b77e2123csi5355668pfc.26.2023.06.05.04.12.43; Mon, 05 Jun 2023 04:12:57 -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=@linaro.org header.s=google header.b="rt0Rcc/e"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229489AbjFEKh2 (ORCPT + 99 others); Mon, 5 Jun 2023 06:37:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbjFEKh1 (ORCPT ); Mon, 5 Jun 2023 06:37:27 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC8C7EC for ; Mon, 5 Jun 2023 03:37:25 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-977c72b116fso285273766b.3 for ; Mon, 05 Jun 2023 03:37:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685961444; x=1688553444; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=aOcvx95y08Gz26+xoTBjezMM0R9qofVzp0SopEjZHOQ=; b=rt0Rcc/eCQBeaPHqu7XDXzAGCyuRJOzkJQOyy1aX6nkGg+82+j5cbs4bVtgXqmWwII 3Mh3y6GijeEiUvlu2xdPSaxfgGshRlGJRxrAzKA1KgHUGk9lc12YXCD5D4xZL7tKAs4u QmTxa9VKBOb8VbSZRT9i9Ci+sCZgCom+x7SYHO9kSgzq5ZJoHBzelKG2gmlIUtggDaz8 m5hTOkfhdxICvVpYqFa24mYzCHL3Sb+OkTWvfaTuRQ5fqJZvwZUC5dR3ku0d2X5S1PZu hgKVPq/sgaJSnlTj4nFsGutvSIKoqBKb+WVR/f+nn4znyoCqsKw9Ra91e3kG4N/ALFdH YCQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685961444; x=1688553444; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aOcvx95y08Gz26+xoTBjezMM0R9qofVzp0SopEjZHOQ=; b=Ibp2GzHNFy/1cF+FwaflsBla/5NajDqJ6NL/uqXYMaP0BNbpfqE8Q9fyqG3IX/Vle7 pObtBQbE+auqyIiohrFx3Sw1xKxHhDDxyMdIRi0992lOvKZZCkYvn6O2L0fJxGenMvMo CP17hBtk+f5CQRM8t6iuAI6MXPYX1+M1MY9eJI5FfUvmmlUcObsfRFfET0Mli+CWFo2Z zEjNwU1tGDRB3Yf9XRmeFtJNTSehe86+MuAHYr+2fQsWY5nLJLKLruLyrK4nYFv0lE2z GwR6rNHvtrafTKQPw4Px8muHywxDt39l1oooomWXnmfkMNFtzUoZDilzRse+QCrgC90e fG0g== X-Gm-Message-State: AC+VfDwdIjnwLKwjEVfIR1IXuoOKXCjWkNRhr4yrbpEnj47Ss7Lt0gUY YxoC1jho++Oez8/h+w/2Vus9Vg== X-Received: by 2002:a17:907:36c3:b0:960:ddba:e5c6 with SMTP id bj3-20020a17090736c300b00960ddbae5c6mr5332528ejc.22.1685961444353; Mon, 05 Jun 2023 03:37:24 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id kq6-20020a170906abc600b0096599bf7029sm4160816ejb.145.2023.06.05.03.37.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Jun 2023 03:37:23 -0700 (PDT) Message-ID: Date: Mon, 5 Jun 2023 12:37:21 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH] arm64: dts: qcom: Split sdm845-db845c to add headless support Content-Language: en-US To: Amit Pundir , Bjorn Andersson , Konrad Dybcio , Dmitry Baryshkov , Bryan O'Donoghue , Caleb Connolly Cc: Andy Gross , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm , lkml References: <20230605094710.2037879-1-amit.pundir@linaro.org> From: Krzysztof Kozlowski In-Reply-To: <20230605094710.2037879-1-amit.pundir@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 05/06/2023 11:47, Amit Pundir wrote: > This is a follow-up of the upstream discussion, > https://lore.kernel.org/linux-kernel/20230124182857.1524912-1-amit.pundir@linaro.org/T/#u, > around adding a reserved memory region in sdm845-db845c > for the framebuffer memory (the splash region set up by > the bootloader) but the general opinion was to avoid > adding that reserved memory for the headless DB845c > usecase. > > So this patch splits the sdm845-db845c into a common dtsi, > a new sdm845-db845-headless DT, which disables the mdss > display subsystem, and a new sdm845-db845c DT with an > additional reserved-memory region for the framebuffer. > > The default sdm845-db845c.dtb remains pretty much the same > (with an exception of additional reserved-memory region), > while others can use sdm845-db845c-headless.dtb for their > headless systems. You should describe the hardware in commit msg. What is "headless"? If no HDMI plugged in, then it is a NAK because plug or unplugged HDMI cable is not a property of a DTS. > > Signed-off-by: Amit Pundir > --- > Please pick this after the lvs regulator nodes reordering patch > https://lore.kernel.org/lkml/20230602161246.1855448-1-amit.pundir@linaro.org/T/#u. > I'll rebase and resend this patch otherwise. > > arch/arm64/boot/dts/qcom/Makefile | 1 + > .../boot/dts/qcom/sdm845-db845c-common.dtsi | 1178 +++++++++++++++++ > .../boot/dts/qcom/sdm845-db845c-headless.dts | 9 + > arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 1172 +--------------- A lot of duplication. Are you sure you generated the patches with correct -M/-C/-B arguments to rename or copy? > 4 files changed, 1194 insertions(+), 1166 deletions(-) > create mode 100644 arch/arm64/boot/dts/qcom/sdm845-db845c-common.dtsi > create mode 100644 arch/arm64/boot/dts/qcom/sdm845-db845c-headless.dts > > diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile > index 4f9e81253e18..22876ea2e409 100644 > --- a/arch/arm64/boot/dts/qcom/Makefile > +++ b/arch/arm64/boot/dts/qcom/Makefile > @@ -166,6 +166,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r1.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r2.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r3.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm845-db845c.dtb > +dtb-$(CONFIG_ARCH_QCOM) += sdm845-db845c-headless.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm845-db845c-navigation-mezzanine.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm845-lg-judyln.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm845-lg-judyp.dtb > diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-db845c-common.dtsi > new file mode 100644 > index 000000000000..ecc4a851e29c > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c-common.dtsi > @@ -0,0 +1,1178 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (c) 2019, Linaro Ltd. > + */ > + > +/dts-v1/; > + > +#include > +#include > +#include > +#include > +#include > +#include "sdm845.dtsi" > +#include "sdm845-wcd9340.dtsi" > +#include "pm8998.dtsi" > +#include "pmi8998.dtsi" > + > +/ { > + model = "Thundercomm Dragonboard 845c"; > + compatible = "thundercomm,db845c", "qcom,sdm845"; So it is the same hardware? Why compatible is in common part? I don't understand this change. Best regards, Krzysztof