From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
To: Krzysztof Kozlowski <krzk@kernel.org>,
vincent.knecht@mailoo.org, Robert Foss <rfoss@kernel.org>,
Todor Tomov <todor.too@gmail.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
"André Apitzsch" <git@apitzsch.eu>,
phone-devel@vger.kernel.org,
~postmarketos/upstreaming@lists.sr.ht,
"Vladimir Zapolskiy" <vladimir.zapolskiy@linaro.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski@linaro.org>
Subject: Re: [PATCH v5 3/4] media: dt-bindings: Add qcom,msm8939-camss
Date: Thu, 26 Jun 2025 11:48:12 +0100 [thread overview]
Message-ID: <d1b0b5c1-a031-4429-bb4b-ad8bc914c971@linaro.org> (raw)
In-Reply-To: <0e030c09-0a89-4883-b958-85ddd6831407@kernel.org>
On 26/06/2025 11:28, Krzysztof Kozlowski wrote:
> On 26/06/2025 12:19, Bryan O'Donoghue wrote:
>> On 26/06/2025 11:00, Krzysztof Kozlowski wrote:
>>>> + reg-names:
>>>> + items:
>>>> + - const: csi_clk_mux
>>> No, I already provided arguments in two lengthy discussions - this is
>>> not sorted by name.
>>>
>>> Keep the same order as in previous device, so msm8916 for example. Or
>>> any other, but listen to some requests to sort it by some arbitrary rule
>>> which was never communicated by DT maintainers.
>>
>> I don't think if you look through the history that you can find a
>> consistent rule that was used to arrange the registers.
>>
>> So we are trying to have a consistent way of doing that. Thats why the
>> last number of additions have been sort by name, because it seemed to be
>> the most consistent.
>
>
> Why are we discussing it again? You asked me the same here:
> https://lore.kernel.org/all/8f11c99b-f3ca-4501-aec4-0795643fc3a9@kernel.org/
>
> and I already said - not sorting by name. You take the same order as
> previous.
>
> If you ever want to sort by name, answer to yourself:
> NO. Take the same order as other existing device.
>
> If you ever want to sort by value, answer to yourself:
> NO.
>
> You both came with some new, invented rules of sorting, applied it, and
> now you claim that "existing devices were sorted like that". What? NO!
>
> Best regards,
> Krzysztof
OK.
Discussed this on Slack with Krzysztof.
8939 should be like 8916 because these are devices of a similar class.
x1e has a particular order if a new device x1e+1 comes along with a new
register then
reg-names:
23 items:
24 - const: csid0
25 - const: csid1
26 - const: csid2
27 - const: csid_lite0
28 - const: csid_lite1
29 - const: csid_wrapper
30 - const: csiphy0
31 - const: csiphy1
32 - const: csiphy2
33 - const: csiphy4
34 - const: csitpg0
35 - const: csitpg1
36 - const: csitpg2
37 - const: vfe0
38 - const: vfe1
39 - const: vfe_lite0
40 - const: vfe_lite1
reg-names:
23 items:
24 - const: csid0
25 - const: csid1
26 - const: csid2
27 - const: csid_lite0
28 - const: csid_lite1
29 - const: csid_wrapper
30 - const: csiphy0
31 - const: csiphy1
32 - const: csiphy2
33 - const: csiphy4
34 - const: csitpg0
35 - const: csitpg1
36 - const: csitpg2
37 - const: vfe0
38 - const: vfe1
39 - const: vfe_lite0
40 - const: vfe_lite1
- NEW ENTRY GOES HERE csid3
A new SoC with a significantly different architecture could have
different ordering of regs.
The main block should go first which means the above should look like:
reg-names:
23 items:
24 - const: csid_wrapper
25 - const: csid0
26 - const: csid1
27 - const: csid2
28 - const: csid_lite0
29 - const: csid_lite1
30 - const: csiphy0
31 - const: csiphy1
32 - const: csiphy2
33 - const: csiphy4
34 - const: csitpg0
35 - const: csitpg1
36 - const: csitpg2
37 - const: vfe0
38 - const: vfe1
39 - const: vfe_lite0
40 - const: vfe_lite1
I think I personally haven't understood what was meant by "devices of a
class" but its clearer now.
Appreciate the explanation.
---
bod
next prev parent reply other threads:[~2025-06-26 10:48 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-13 9:33 [PATCH v5 0/4] CAMSS support for MSM8939 Vincent Knecht via B4 Relay
2025-06-13 9:33 ` [PATCH v5 1/4] media: qcom: camss: vfe: Add VBIF setting support Vincent Knecht via B4 Relay
2025-06-13 9:33 ` [PATCH v5 2/4] media: qcom: camss: Add support for MSM8939 Vincent Knecht via B4 Relay
2025-06-26 10:56 ` Vladimir Zapolskiy
2025-06-13 9:33 ` [PATCH v5 3/4] media: dt-bindings: Add qcom,msm8939-camss Vincent Knecht via B4 Relay
2025-06-13 11:42 ` Bryan O'Donoghue
2025-06-13 16:38 ` Vladimir Zapolskiy
2025-06-26 10:00 ` Krzysztof Kozlowski
2025-06-26 10:19 ` Bryan O'Donoghue
2025-06-26 10:28 ` Krzysztof Kozlowski
2025-06-26 10:48 ` Bryan O'Donoghue [this message]
2025-06-26 11:17 ` Vladimir Zapolskiy
2025-06-26 11:41 ` Bryan O'Donoghue
2025-06-26 10:02 ` Krzysztof Kozlowski
2025-06-26 11:17 ` Bryan O'Donoghue
2025-06-13 9:33 ` [PATCH v5 4/4] arm64: dts: qcom: msm8939: Add camss and cci Vincent Knecht via B4 Relay
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=d1b0b5c1-a031-4429-bb4b-ad8bc914c971@linaro.org \
--to=bryan.odonoghue@linaro.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=git@apitzsch.eu \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=phone-devel@vger.kernel.org \
--cc=rfoss@kernel.org \
--cc=robh@kernel.org \
--cc=todor.too@gmail.com \
--cc=vincent.knecht@mailoo.org \
--cc=vladimir.zapolskiy@linaro.org \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/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;
as well as URLs for NNTP newsgroup(s).