mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Naman Jain <quic_namajain@quicinc.com>,
	Andy Gross <agross@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konrad.dybcio@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, quic_pkondeti@quicinc.com,
	quic_kaushalk@quicinc.com, quic_rohiagar@quicinc.com,
	kernel@quicinc.com
Subject: Re: [PATCH] dt-bindings: firmware: Add documentation for qcom,platform-parts-info
Date: Mon, 4 Sep 2023 11:32:57 +0200	[thread overview]
Message-ID: <fbfc6e8d-dd6a-ee1d-a62a-d076470db18b@linaro.org> (raw)
In-Reply-To: <359ba91d-866b-45e4-83fe-598ed791f877@quicinc.com>

On 04/09/2023 10:38, Naman Jain wrote:
> 
> On 9/1/2023 12:52 PM, Krzysztof Kozlowski wrote:
>> On 01/09/2023 08:02, Naman Jain wrote:
>>> Add documentation to describe device tree bindings for QCOM's
>>> platform-parts-info node. Firmware populates these nodes to pass the
>>> information to kernel regarding the subset of hardware blocks
>>> and features like Camera, Modem, Display present in a product.
>>>
>>> This is to support that the same software image runs seamlessly on
>>> different platforms where one or more HW blocks are not supported or
>>> if some sub parts for a particular block are not supported.
>>>
>>> Purpose of these definitions is to allow clients to know about this,
>>> and thus, handle these cases gracefully.
>> Whether camera is or is not supported, is defined by presence of camera
>> node or by its status field.
>>
>> Existing firmware (e.g. U-Boot) is also doing this - patching DTS when
>> needed.
>>
>> I do not think introducing some parallel way makes any sense, so no,
>> that's not the way to do it.
>>
>> Best regards,
>> Krzysztof
> 
> 
> Thanks Krzysztof for reviewing the patch. I think for telling whether 
> the Camera HW block is not
> supported / not present, firmware can either remove the device tree 
> node, or change its status
> to disabled, so that is fine.
> With this patch, I was trying to address the use case, where Camera is 
> supported but certain features
> of that particular Camera are not supported, due to dependent HW blocks 
> not present, or due to
> product decision to not support it. We wanted to avoid the firmware to 
> have this overhead of knowing
> what these individual bits mean and thus, disable few of the HW blocks 
> that are supposed to be
> disabled. And this is applicable for each of these HW blocks.

What is and what is not supported by camera, is obvious from the
compatible and you do not need this patch.

> 
> For example, we can know from 32 bits provided for modem, if 3G/4G/5G is 
> supported or not on a
> platform.

Again, compatible-dependent.

> That is decided based on presence/absence of certain HW 
> blocks, but it may or may not be as
> simple as disabling a particular DT node.
> Basically we wanted to defer it to the subsystem drivers, to do whatever 
> they like with this
> information on sub-parts that are available.
> 
> Will rephrase my commit message to make it clearer, but would like to 
> hear your thoughts on this first.

Sorry, no, such node is not the solution.

Best regards,
Krzysztof


  reply	other threads:[~2023-09-04  9:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-01  6:02 Naman Jain
2023-09-01  7:22 ` Krzysztof Kozlowski
2023-09-04  8:38   ` Naman Jain
2023-09-04  9:32     ` Krzysztof Kozlowski [this message]
2023-09-04 16:04     ` Konrad Dybcio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fbfc6e8d-dd6a-ee1d-a62a-d076470db18b@linaro.org \
    --to=krzysztof.kozlowski@linaro.org \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kernel@quicinc.com \
    --cc=konrad.dybcio@linaro.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=quic_kaushalk@quicinc.com \
    --cc=quic_namajain@quicinc.com \
    --cc=quic_pkondeti@quicinc.com \
    --cc=quic_rohiagar@quicinc.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®