From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Sumit Garg <sumit.garg@linaro.org>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
andersson@kernel.org, konrad.dybcio@linaro.org,
robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
conor+dt@kernel.org, stephan@gerhold.net,
caleb.connolly@linaro.org, neil.armstrong@linaro.org,
laetitia.mariottini@se.com, pascal.eberhard@se.com,
abdou.saker@se.com, jimmy.lalande@se.com,
benjamin.missey@non.se.com, daniel.thompson@linaro.org,
linux-kernel@vger.kernel.org,
Jagdish Gediya <jagdish.gediya@linaro.org>
Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: apq8016: Add Schneider HMIBSC board DTS
Date: Thu, 14 Mar 2024 09:30:52 +0100 [thread overview]
Message-ID: <9dc0415c-4138-4867-861a-38b45b636182@linaro.org> (raw)
In-Reply-To: <CAFA6WYPh5BS_Fpi6ksAC7bwoFEyqjj1Y3EahyQxCG9Pp=KDw=Q@mail.gmail.com>
On 14/03/2024 09:19, Sumit Garg wrote:
>>> + compatible = "smsc,usb3503";
>>> + reset-gpios = <&pm8916_gpios 1 GPIO_ACTIVE_LOW>;
>>> + initial-mode = <1>;
>>> + };
>>> +
>>> + usb_id: usb-id {
>>> + compatible = "linux,extcon-usb-gpio";
>>> + id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>;
>>> + pinctrl-names = "default";
>>> + pinctrl-0 = <&usb_id_default>;
>>> + };
>>> +
>>> + hdmi-out {
>>> + compatible = "hdmi-connector";
>>> + type = "a";
>>> +
>>> + port {
>>> + hdmi_con: endpoint {
>>> + remote-endpoint = <&adv7533_out>;
>>> + };
>>> + };
>>> + };
>>> +
>>> + gpio-keys {
>>> + compatible = "gpio-keys";
>>> + autorepeat;
>>> +
>>> + pinctrl-names = "default";
>>> + pinctrl-0 = <&msm_key_volp_n_default>;
>>> +
>>> + button {
>>> + label = "Volume Up";
>>> + linux,code = <KEY_VOLUMEUP>;
>>> + gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
>>> + };
>>> + };
>>> +
>>> + leds {
>>> + pinctrl-names = "default";
>>> + pinctrl-0 = <&pm8916_mpps_leds>;
>>
>> First property is always compatible. Please apply DTS coding style rules.
>
> Ack.
>
>>
>>> +
>>> + compatible = "gpio-leds";
>>> + #address-cells = <1>;
>>> + #size-cells = <0>;
>>
>> That's not a bus.
>>
>> It does not look like you tested the DTS against bindings. Please run
>> `make dtbs_check W=1` (see
>> Documentation/devicetree/bindings/writing-schema.rst or
>> https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
>> for instructions).
>
> I assumed earlier that W=1 is sufficient for DT schema checks but it
W=1 as in make? No, it is not. It's flag changing the build process.
dtbs_check is separate target.
> looks like those are two different entities. However, I added these
> address and size cells properties only to get rid of warnings reported
> by W=1, see below:
>
> $ make qcom/apq8016-schneider-hmibsc.dtb W=1
> DTC arch/arm64/boot/dts/qcom/apq8016-schneider-hmibsc.dtb
> arch/arm64/boot/dts/qcom/apq8016-schneider-hmibsc.dts:96.9-103.5:
> Warning (unit_address_vs_reg): /leds/led@5: node has a unit name, but
> no reg or ranges property
> arch/arm64/boot/dts/qcom/apq8016-schneider-hmibsc.dts:105.9-112.5:
> Warning (unit_address_vs_reg): /leds/led@6: node has a unit name, but
> no reg or ranges property
Wait, so you saw the warnings and ignored them? These are legitimate
warnings, although they don't give you full answer.
> <snip>
>
> So it looks like W=1 is reporting false warnings and we should rather
Warnings were true.
> rely on dtbs_check only.
It's really independent. There is only one case where W=1 produces
warnings you could ignore (ports/port in graphs). At least I am not
aware of anything else.
Although Qualcomm does not use clean-check-maintainer-profile, but
already some archs do (RISC-V, Samsung). For these YOU MUST RUN
DTBS_CHECK and fix ALL new warnings. But even for Qualcomm, you are
expected to run dtbs_check. And why would you not run it? You can
automate checks and save reviewers time with automatic tools, but you
decide to skip it? Srsly, that's huge waste of reviewers time!
...
>>> +
>>> +&blsp_i2c4_default {
>>
>> None of your overrides look like have proper alphabetical order. Please
>> use alphabetical order.
>>
>
> Although these are already following the same order as
> apq8016-sbc.dts, would you like the two DTS files based on the same
> SoC to follow different orders?
I don't know about Konrad and Bjorn, but to me it does not matter that
some existing board has obvious style issues. What matters to me, that
new code does not have these obvious style issues.
You can wait for Konrad's point of view on that, if you want to be sure.
Best regards,
Krzysztof
next prev parent reply other threads:[~2024-03-14 8:30 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-13 12:30 [PATCH v2 0/3] arm64: dts: qcom: apq8016: Add Schneider HMIBSC board DTS Sumit Garg
2024-03-13 12:30 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add Schneider Electric Sumit Garg
2024-03-13 13:00 ` Krzysztof Kozlowski
2024-03-13 12:30 ` [PATCH v2 2/3] dt-bindings: arm: qcom: Add Schneider Electric HMIBSC board Sumit Garg
2024-03-13 13:00 ` Krzysztof Kozlowski
2024-03-13 12:30 ` [PATCH v2 3/3] arm64: dts: qcom: apq8016: Add Schneider HMIBSC board DTS Sumit Garg
2024-03-13 12:55 ` Caleb Connolly
2024-03-13 13:00 ` Krzysztof Kozlowski
2024-03-14 8:19 ` Sumit Garg
2024-03-14 8:30 ` Krzysztof Kozlowski [this message]
2024-03-14 9:17 ` Sumit Garg
2024-03-14 9:36 ` Sumit Garg
2024-03-14 10:06 ` Krzysztof Kozlowski
2024-03-14 10:26 ` Sumit Garg
2024-03-14 11:20 ` Krzysztof Kozlowski
2024-03-14 13:14 ` Dmitry Baryshkov
2024-03-14 10:05 ` Krzysztof Kozlowski
2024-03-13 13:04 ` Konrad Dybcio
2024-03-13 13:07 ` Krzysztof Kozlowski
2024-03-14 9:04 ` Sumit Garg
2024-03-14 9:18 ` Konrad Dybcio
2024-03-14 9:32 ` Sumit Garg
2024-03-14 10:07 ` Krzysztof Kozlowski
2024-03-14 10:43 ` Stephan Gerhold
2024-03-14 11:56 ` Sumit Garg
2024-03-14 13:24 ` Stephan Gerhold
2024-03-14 13:50 ` Sumit Garg
2024-03-14 15:20 ` Konrad Dybcio
2024-03-14 15:37 ` Caleb Connolly
2024-03-15 9:31 ` Sumit Garg
2024-03-15 12:53 ` Caleb Connolly
2024-03-15 14:31 ` Stephan Gerhold
2024-03-18 8:02 ` Sumit Garg
2024-03-13 12:57 ` [PATCH v2 0/3] " Krzysztof Kozlowski
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=9dc0415c-4138-4867-861a-38b45b636182@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=abdou.saker@se.com \
--cc=andersson@kernel.org \
--cc=benjamin.missey@non.se.com \
--cc=caleb.connolly@linaro.org \
--cc=conor+dt@kernel.org \
--cc=daniel.thompson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=jagdish.gediya@linaro.org \
--cc=jimmy.lalande@se.com \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=laetitia.mariottini@se.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=pascal.eberhard@se.com \
--cc=robh+dt@kernel.org \
--cc=stephan@gerhold.net \
--cc=sumit.garg@linaro.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