From: Purva Yeshi <purvayeshi550@gmail.com>
To: "Uwe Kleine-König" <ukleinek@kernel.org>
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
vz@mleia.com, piotr.wojtaszczyk@timesys.com,
linux-pwm@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] dt-bindings: pwm: Convert lpc32xx-pwm.txt to YAML
Date: Sat, 5 Apr 2025 01:12:56 +0530 [thread overview]
Message-ID: <299e033b-05d6-4d85-8d01-2d7d0167432f@gmail.com> (raw)
In-Reply-To: <76ovkshf4dr6egh72uiigsugdqsin6zwy3skksldhhh2goer6x@gsp3qkhqdtev>
On 03/04/25 16:11, Uwe Kleine-König wrote:
> Hello,
>
> On Wed, Mar 12, 2025 at 05:57:50PM +0530, Purva Yeshi wrote:
>> Convert the existing `lpc32xx-pwm.txt` bindings documentation into a
>> YAML schema (`nxp,lpc3220-pwm.yaml`).
>>
>> Set `"#pwm-cells"` to `const: 3` for expected PWM cell properties.
>>
>> Signed-off-by: Purva Yeshi <purvayeshi550@gmail.com>
>
> I suggest the following commit log:
>
> dt-bindings: pwm: Convert lpc32xx-pwm.txt to yaml format
>
> Convert the existing plain text binding documentation for
> nxp,lpc3220-pwm devices to a YAML schema.
>
> The value #pwm-cells wasn't specified before, set it to 3 to match the
> usual value for PWMs.
>
Hello,
Thank you for the suggestion. I'll update the commit log accordingly in
the next revision.
>> diff --git a/Documentation/devicetree/bindings/pwm/nxp,lpc3220-pwm.yaml b/Documentation/devicetree/bindings/pwm/nxp,lpc3220-pwm.yaml
>> new file mode 100644
>> index 000000000..432a5e9d4
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/pwm/nxp,lpc3220-pwm.yaml
>> @@ -0,0 +1,38 @@
>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/pwm/nxp,lpc3220-pwm.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: LPC32XX PWM controller
>> +
>> +maintainers:
>> + - Vladimir Zapolskiy <vz@mleia.com>
>> + - Piotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com>
>> +
>> +allOf:
>> + - $ref: pwm.yaml#
>> +
>> +properties:
>> + compatible:
>> + const: nxp,lpc3220-pwm
>> +
>> + reg:
>> + maxItems: 1
>> +
>> + "#pwm-cells":
>> + const: 3
>
> The PWMs defined in arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi also have a
> clocks property and in the driver it's not optional. Can you please add
> it (here, in the list of required properties and the commit log)?
Thank you for the review. I’ll add the clocks property, update the list
of required properties, and adjust the commit log accordingly in the
next revision.
>
>> +required:
>> + - compatible
>> + - reg
>> +
>> +unevaluatedProperties: false
>> +
>> +examples:
>> + - |
>> + pwm@4005c000 {
>> + compatible = "nxp,lpc3220-pwm";
>> + reg = <0x4005c000 0x4>;
>> + #pwm-cells = <3>;
>> + };
>
> Best regards
> Uwe
Best regards,
Purva Yeshi
prev parent reply other threads:[~2025-04-04 19:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-12 12:27 [PATCH v2] dt-bindings: pwm: Convert lpc32xx-pwm.txt to YAML Purva Yeshi
2025-03-12 17:59 ` Vladimir Zapolskiy
2025-03-12 22:56 ` Uwe Kleine-König
2025-03-13 3:37 ` Vladimir Zapolskiy
2025-03-13 7:22 ` Uwe Kleine-König
2025-03-13 11:04 ` Krzysztof Kozlowski
2025-03-13 14:25 ` Purva Yeshi
2025-04-01 17:32 ` Purva Yeshi
2025-04-02 6:33 ` Krzysztof Kozlowski
2025-04-04 19:38 ` Purva Yeshi
2025-04-03 10:41 ` Uwe Kleine-König
2025-04-04 19:42 ` Purva Yeshi [this message]
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=299e033b-05d6-4d85-8d01-2d7d0167432f@gmail.com \
--to=purvayeshi550@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=piotr.wojtaszczyk@timesys.com \
--cc=robh@kernel.org \
--cc=ukleinek@kernel.org \
--cc=vz@mleia.com \
/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