From: Sebastian Raase <basti@sraa.de>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Sebastian Raase <linux@sraa.de>,
marijn.suijten@somainline.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>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] arm64: dts: qcom: sdm630-nile: add pinctrl for camera key
Date: Fri, 15 Mar 2024 00:23:38 +0100 [thread overview]
Message-ID: <20240315002338.3fe1dcfc@probook> (raw)
In-Reply-To: <fc7bda50-279e-4afb-8c31-4fcda0e8b2ed@linaro.org>
Hi Krzysztof,
On Thu, 14 Mar 2024 21:37:30 +0100
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote:
> On 14/03/2024 21:00, Sebastian Raase wrote:
> > Add pinctrl configuration for gpio-keys. Without this,
> > camera button half-presses are not detected.
> >
> > Tested on discovery and pioneer.
> >
> > Fixes: e781633b6067 ("arm64: dts: qcom: Add support for Sony Xperia XA2/Plus/Ultra (Nile platform)")
> > Signed-off-by: Sebastian Raase <linux@sraa.de>
> > ---
> > arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi | 9 +++++++++
> > 1 file changed, 9 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi
> > index 87d0293c728d..5eedca6f288f 100644
> > --- a/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi
> > +++ b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi
> > @@ -90,6 +90,8 @@ cam_vana_rear_vreg: cam-vana-rear-regulator {
> >
> > gpio-keys {
> > compatible = "gpio-keys";
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&gpio_keys_default>;
>
> A nit: Please reverse the order: pinctrl-0 then names
All existing pinctrl definitions use pinctrl-names first, so I followed the existing file. Is this still okay?
> >
> > key-camera-focus {
> > label = "Camera Focus";
> > @@ -635,6 +637,13 @@ ts_lcd_id_active: ts-lcd-id-active-state {
> > bias-disable;
> > };
> >
> > + gpio_keys_default: gpio-keys-default {
>
> Looks missing suffix (state) and test, so:
>
> 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 did add the suffix and ran the test, and the warning is gone now. Sent an updated patch.
> Best regards,
> Krzysztof
Best Regards,
Sebastian
next prev parent reply other threads:[~2024-03-14 23:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-14 20:00 [PATCH] arm64: dts: qcom: sdm630-nile: add pinctrl for camera key Sebastian Raase
2024-03-14 20:37 ` Krzysztof Kozlowski
2024-03-14 23:23 ` Sebastian Raase [this message]
2024-03-15 8:33 ` Krzysztof Kozlowski
2024-03-14 23:20 ` [PATCH v2] " Sebastian Raase
2024-03-14 23:49 ` Konrad Dybcio
2024-03-15 8:32 ` Krzysztof Kozlowski
2024-03-15 9:04 ` Sebastian Raase
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=20240315002338.3fe1dcfc@probook \
--to=basti@sraa.de \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@sraa.de \
--cc=marijn.suijten@somainline.org \
--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;
as well as URLs for NNTP newsgroup(s).