From: Rob Herring <robh@kernel.org>
To: Binbin Zhou <zhoubinbin@loongson.cn>
Cc: "Binbin Zhou" <zhoubb.aaron@gmail.com>,
"Huacai Chen" <chenhuacai@loongson.cn>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Huacai Chen" <chenhuacai@kernel.org>,
loongson-kernel@lists.loongnix.cn, linux-pwm@vger.kernel.org,
devicetree@vger.kernel.org, "Xuerui Wang" <kernel@xen0n.name>,
loongarch@lists.linux.dev
Subject: Re: [PATCH v1 1/5] dt-bindings: pwm: Add Loongson PWM controller
Date: Tue, 2 Apr 2024 12:40:51 -0500 [thread overview]
Message-ID: <20240402174051.GA324804-robh@kernel.org> (raw)
In-Reply-To: <edad2bb5b0045c633734c1499fb163c3c6776121.1711953223.git.zhoubinbin@loongson.cn>
On Tue, Apr 02, 2024 at 03:58:38PM +0800, Binbin Zhou wrote:
> Add Loongson PWM controller binding with DT schema format using
> json-schema.
>
> Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
> ---
> .../devicetree/bindings/pwm/pwm-loongson.yaml | 64 +++++++++++++++++++
Filename should match compatible.
> MAINTAINERS | 6 ++
> 2 files changed, 70 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/pwm/pwm-loongson.yaml
>
> diff --git a/Documentation/devicetree/bindings/pwm/pwm-loongson.yaml b/Documentation/devicetree/bindings/pwm/pwm-loongson.yaml
> new file mode 100644
> index 000000000000..d25904468353
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pwm/pwm-loongson.yaml
> @@ -0,0 +1,64 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/pwm/pwm-loongson.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Loongson PWM Controller
> +
> +maintainers:
> + - Binbin Zhou <zhoubinbin@loongson.cn>
> +
> +description:
> + It is the generic PWM framework driver for Loongson family.
That's describing the driver. Not really relevant to the binding.
> + Each PWM has one pulse width output signal and one pulse input
> + signal to be measured.
> + It can be found on Loongson-2K series cpus and Loongson LS7A bridge chips.
> +
> +allOf:
> + - $ref: pwm.yaml#
> +
> +properties:
> + compatible:
> + oneOf:
> + - const: loongson,ls7a-pwm
> + - items:
> + - enum:
> + - loongson,ls2k0500-pwm
> + - loongson,ls2k1000-pwm
> + - loongson,ls2k2000-pwm
> + - const: loongson,ls7a-pwm
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + clocks:
> + maxItems: 1
> +
> + '#pwm-cells':
> + const: 3
Please define what is in each cell. If there's only 2 signals, then the
first cell defines the output or input (what value for which one?).
Really, the PWM binding is only for outputs, so is a cell even needed? I
suppose we could use it for inputs too, but that's really "input
capture" type operation that timers often have. I'll defer to the PWM
maintainers...
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - clocks
> + - '#pwm-cells'
pwm.yaml makes this required already.
Rob
next prev parent reply other threads:[~2024-04-02 17:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-02 7:58 [PATCH v1 0/5] pwm: Introduce pwm driver for the Loongson family chips Binbin Zhou
2024-04-02 7:58 ` [PATCH v1 1/5] dt-bindings: pwm: Add Loongson PWM controller Binbin Zhou
2024-04-02 17:40 ` Rob Herring [this message]
2024-04-03 2:37 ` Binbin Zhou
2024-04-03 3:16 ` Binbin Zhou
2024-04-03 7:00 ` Krzysztof Kozlowski
2024-04-03 7:22 ` Binbin Zhou
2024-04-02 7:58 ` [PATCH v1 2/5] pwm: Add Loongson PWM controller support Binbin Zhou
2024-04-02 7:58 ` [PATCH v1 3/5] LoongArch: dts: Add PWM support to Loongson-2K0500 Binbin Zhou
2024-04-02 7:59 ` [PATCH v1 4/5] LoongArch: dts: Add PWM support to Loongson-2K1000 Binbin Zhou
2024-04-02 7:59 ` [PATCH v1 5/5] LoongArch: dts: Add PWM support to Loongson-2K2000 Binbin Zhou
2024-04-02 17:34 ` kernel test robot
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=20240402174051.GA324804-robh@kernel.org \
--to=robh@kernel.org \
--cc=chenhuacai@kernel.org \
--cc=chenhuacai@loongson.cn \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kernel@xen0n.name \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-pwm@vger.kernel.org \
--cc=loongarch@lists.linux.dev \
--cc=loongson-kernel@lists.loongnix.cn \
--cc=u.kleine-koenig@pengutronix.de \
--cc=zhoubb.aaron@gmail.com \
--cc=zhoubinbin@loongson.cn \
/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).