From: Neil Armstrong <neil.armstrong@linaro.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Bjorn Andersson <andersson@kernel.org>,
Satya Priya <quic_c_skakit@quicinc.com>,
Andy Gross <agross@kernel.org>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Rob Herring <robh+dt@kernel.org>,
Konrad Dybcio <konrad.dybcio@somainline.org>,
Lee Jones <lee@kernel.org>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Alessandro Zummo <a.zummo@towertech.it>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-input@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-rtc@vger.kernel.org
Subject: Re: [PATCH v2 06/11] dt-bindings: input: qcom,pm8921-pwrkey: convert to dt-schema
Date: Tue, 4 Oct 2022 11:41:00 +0200 [thread overview]
Message-ID: <e21f49b7-4a44-c016-0e52-3ab018978f31@linaro.org> (raw)
In-Reply-To: <91630a1c-c4bf-357f-20f3-8176bd91bdf6@linaro.org>
Hi,
On 04/10/2022 10:59, Krzysztof Kozlowski wrote:
> On 04/10/2022 10:08, Neil Armstrong wrote:
>> Convert input/qcom,pm8xxx-pwrkey.txt to YAML, and take in account that
>> the PM8921 pwrkey compatible is used as fallback for the PM8018 pwrkey.
>>
>> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
>>
>
> You miss diffstat... but I guess it's result of b4?
Yep, I'll update with last release to get it back.
>
>> diff --git a/Documentation/devicetree/bindings/input/qcom,pm8921-pwrkey.yaml b/Documentation/devicetree/bindings/input/qcom,pm8921-pwrkey.yaml
>> new file mode 100644
>> index 000000000000..ae38c4ef4932
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/input/qcom,pm8921-pwrkey.yaml
>> @@ -0,0 +1,77 @@
>> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/input/qcom,pm8921-pwrkey.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: Qualcomm PM8921 PMIC Power Key
>> +
>> +maintainers:
>> + - Andy Gross <agross@kernel.org>
>> + - Bjorn Andersson <andersson@kernel.org>
>
> Keep only Bjorn. Andy did not review much for some time.
Ack
>
>> +
>> +allOf:
>> + - $ref: input.yaml#
>> +
>> +properties:
>> + compatible:
>> + oneOf:
>> + - enum:
>> + - qcom,pm8921-pwrkey
>> + - qcom,pm8058-pwrkey
>> + - items:
>> + - enum:
>> + - qcom,pm8018-pwrkey
>> + - const: qcom,pm8921-pwrkey
>> +
>> + reg:
>> + maxItems: 1
>> +
>> + interrupts:
>> + maxItems: 2
>> + description: |
>> + The first interrupt specifies the key release interrupt
>> + and the second interrupt specifies the key press interrupt.
>
> In such case better to drop maxItems and description and write it:
>
> items:
> - description: key release interrupt
> - description: key press interrupt
>
> (maybe even the "interrupt" word could be skipped...)
Ack, will do that without the interrupt word
>
>> +
>> + debounce:
>> + description: |
>> + Time in microseconds that key must be pressed or
>> + released for state change interrupt to trigger.
>> + $ref: /schemas/types.yaml#/definitions/uint32
>> +
>> + pull-up:
>> + description: |
>> + Presence of this property indicates that the KPDPWR_N
>> + pin should be configured for pull up.
>> + $ref: /schemas/types.yaml#/definitions/flag
>> +
>> +required:
>> + - compatible
>> + - reg
>> + - interrupts
>> +
>> +unevaluatedProperties: false
>> +
>> +examples:
>> + - |
>> + #include <dt-bindings/interrupt-controller/irq.h>
>> + ssbi {
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>
> Messed indentation.
>> +
>> + pmic@0 {
>> + reg = <0x0>;
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> +
>> + pwrkey@1c {
>> + compatible = "qcom,pm8921-pwrkey";
>
> Messed up indentation. For entire DTS example keep 2 or 4 spaces.
>
>> + reg = <0x1c>;
>> + interrupt-parent = <&pmicint>;
>> + interrupts = <50 1>, <51 1>;
>
> Use defines for interrupt flags.
>
>> + debounce = <15625>;
>> + pull-up;
>> + };
>> + };
>> + };
Will fix the example,
>
> Best regards,
> Krzysztof
>
Thanks,
Neil
next prev parent reply other threads:[~2022-10-04 9:44 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-04 8:08 [PATCH v2 00/11] arm: qcom: mdm9615: first round of bindings and DT fixes Neil Armstrong
2022-10-04 8:08 ` [PATCH v2 01/11] dt-bindings: arm: qcom: move swir,mangoh-green-wp8548 board documentation to qcom.yaml Neil Armstrong
2022-10-04 8:51 ` Krzysztof Kozlowski
2022-10-04 8:08 ` [PATCH v2 02/11] arm: dts: qcom: mdm9615*: add SPDX-License-Identifier Neil Armstrong
2022-10-04 8:52 ` Krzysztof Kozlowski
2022-10-04 8:08 ` [PATCH v2 03/11] arm: dts: qcom: mdm9615: add missing reg in cpu@0 node Neil Armstrong
2022-10-04 8:53 ` Krzysztof Kozlowski
2022-10-04 8:08 ` [PATCH v2 04/11] arm: dts: qcom: mdm9615: remove invalid spi-max-frequency gsbi3_spi node Neil Armstrong
2022-10-04 8:08 ` [PATCH v2 05/11] dt-bindings: mfd: qcom-pm8xxx: document qcom,pm8921 as fallback of qcom,pm8018 Neil Armstrong
2022-10-04 8:55 ` Krzysztof Kozlowski
2022-10-04 9:38 ` Neil Armstrong
2022-10-04 10:03 ` Krzysztof Kozlowski
2022-10-04 8:08 ` [PATCH v2 06/11] dt-bindings: input: qcom,pm8921-pwrkey: convert to dt-schema Neil Armstrong
2022-10-04 8:59 ` Krzysztof Kozlowski
2022-10-04 9:41 ` Neil Armstrong [this message]
2022-10-04 8:08 ` [PATCH v2 07/11] dt-bindings: rtc: qcom-pm8xxx: document qcom,pm8921-rtc as fallback of qcom,pm8018-rtc Neil Armstrong
2022-10-04 9:00 ` Krzysztof Kozlowski
2022-10-04 8:08 ` [PATCH v2 08/11] mfd: qcom-pm8xxx: drop unused PM8018 compatible Neil Armstrong
2022-10-04 9:02 ` Krzysztof Kozlowski
2022-10-04 9:42 ` Neil Armstrong
2022-10-04 8:08 ` [PATCH v2 09/11] rtc: pm8xxx: drop unused pm8018 compatible Neil Armstrong
2022-10-04 9:02 ` Krzysztof Kozlowski
2022-10-04 8:08 ` [PATCH v2 10/11] arm: dts: qcom: mdm9615: remove invalid interrupt-names from pl18x mmc nodes Neil Armstrong
2022-10-04 8:08 ` [PATCH v2 11/11] arm: dts: qcom: mdm9615: remove useless amba subnode Neil Armstrong
2022-10-04 9:03 ` 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=e21f49b7-4a44-c016-0e52-3ab018978f31@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=a.zummo@towertech.it \
--cc=agross@kernel.org \
--cc=alexandre.belloni@bootlin.com \
--cc=andersson@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=konrad.dybcio@somainline.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=lee@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=quic_c_skakit@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®