From: Krzysztof Kozlowski <krzk@kernel.org>
To: Kyle Bonnici <kylebonnici@hotmail.com>
Cc: Herve Codina <herve.codina@bootlin.com>,
"devicetree-compiler@vger.kernel.org"
<devicetree-compiler@vger.kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: Re: Phandles
Date: Mon, 13 Apr 2026 11:16:08 +0200 [thread overview]
Message-ID: <c0983f3d-5025-4933-ac22-bfbc1adc6c31@kernel.org> (raw)
In-Reply-To: <74FB5D90-08F5-422E-9DB2-A00E74E25422@hotmail.com>
On 13/04/2026 10:40, Kyle Bonnici wrote:
>
>> Please wrap your email responses to mailing list style.
>
> Hope I got this part right in this email!
>
>> To repeat my question:
>> What does '1' stand for?
>
> ‘1' was just an random value to show the issue. Please note that
> this issue has more context. This can all be found tin the Zephyr issue
You cannot have random values. I quoted the DT spec.
> https://github.com/zephyrproject-rtos/zephyr/issues/107066
> And also on the discord link.
Well, we don't use discord but IRC... but that github issue also uses
"pwms = <1 &pwm0 1 20 PWM_POLARITY_NORMAL>;"
So again - what is "1"?
I am asking because if you use incorrect value as phandle value, then
DTC warning is obviously expected and nothing to fix here.
>
> To summarize, In zephyr the dts is pickled to a header file on
> compile. Zephyr build system uses the bindings to determine types.
> Any property with no type will not be pickled.
I know, but this is not what you asked, right?
You asked why phandle has to be the first entry in phandle-value type? I
responded that DT spec makes it.
Now to determine that DTC is correct or not correct, we need to
understand what "1" means in this context - is it a valid phandle value?
>
> `/zephyr,user` node is a convenience node that does not need a binding
> And types are inferred from values not property names.
>
> The reported issues:
> - Zephyr is inferring a type but the DTC compiler is inferring another
> type and reporting w waring about it in the build output
Are you reporting bug in Zephyr or DTC?
> - Zephyr does not infer types for properties with no bindings, hence
> If any of mention properties are used and node has no binding for
> that property name, zephyr will ignore this, but the DTC reports a
> warning that contradics Zephyr's implementation.
We discuss DTC here, yes? Whether it has or has not a bug? Please help
me to understand the topic. Why would we care about Zephyr's
implementation? It's Zephyr's problem and I am not a Zephyr developer. I
am not saying that it is not important, just saying that I am not the
audience to discuss it.
Best regards,
Krzysztof
next prev parent reply other threads:[~2026-04-13 9:16 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <BB363BC4-B813-4D03-8737-587DF7425908@hotmail.com>
[not found] ` <20260412145144.4737fde6@bootlin.com>
[not found] ` <D22046DB-95B3-431E-8E80-0BA806811D01@hotmail.com>
2026-04-12 15:40 ` Phandles Herve Codina
2026-04-12 16:37 ` Phandles Kyle Bonnici
2026-04-13 6:37 ` Phandles Krzysztof Kozlowski
2026-04-13 7:10 ` Phandles Kyle Bonnici
2026-04-13 7:55 ` Phandles Krzysztof Kozlowski
2026-04-13 8:40 ` Phandles Kyle Bonnici
2026-04-13 9:16 ` Krzysztof Kozlowski [this message]
2026-04-13 9:50 ` Phandles Kyle Bonnici
2026-04-13 9:57 ` Phandles Krzysztof Kozlowski
2026-04-13 20:25 ` Phandles Kyle Bonnici
2026-04-14 15:24 ` Phandles Rob Herring
2026-04-14 19:31 ` Phandles Kyle Bonnici
2026-04-13 6:33 ` Phandles Krzysztof Kozlowski
2026-04-13 10:30 ` Phandles Herve Codina
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=c0983f3d-5025-4933-ac22-bfbc1adc6c31@kernel.org \
--to=krzk@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree-compiler@vger.kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=herve.codina@bootlin.com \
--cc=krzk+dt@kernel.org \
--cc=kylebonnici@hotmail.com \
--cc=robh@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