From: Yixun Lan <dlan@gentoo.org>
To: Chen Wang <unicornxw@gmail.com>
Cc: ukleinek@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, unicorn_wang@outlook.com,
inochiama@outlook.com, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org,
linux-riscv@lists.infradead.org, chao.wei@sophgo.com,
haijiao.liu@sophgo.com, xiaoguang.xing@sophgo.com,
chunzhi.lin@sophgo.com
Subject: Re: [PATCH 1/2] dt-bindings: pwm: sophgo: add bindings for sg2042
Date: Fri, 6 Sep 2024 02:44:35 +0000 [thread overview]
Message-ID: <20240906024435-GYA153340@gentoo> (raw)
In-Reply-To: <6e5fb37472b916cb9d9abfbe3bea702d8d0d9737.1725536870.git.unicorn_wang@outlook.com>
On 20:10 Thu 05 Sep , Chen Wang wrote:
> From: Chen Wang <unicorn_wang@outlook.com>
>
> Add binding document for sophgo,sg2042-pwm.
>
> Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
> ---
> .../bindings/pwm/sophgo,sg2042-pwm.yaml | 52 +++++++++++++++++++
> 1 file changed, 52 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/pwm/sophgo,sg2042-pwm.yaml
>
> diff --git a/Documentation/devicetree/bindings/pwm/sophgo,sg2042-pwm.yaml b/Documentation/devicetree/bindings/pwm/sophgo,sg2042-pwm.yaml
> new file mode 100644
> index 000000000000..10212694dd41
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pwm/sophgo,sg2042-pwm.yaml
> @@ -0,0 +1,52 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/pwm/sophgo,sg2042-pwm.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Sophgo SG2042 PWM controller
> +
> +maintainers:
> + - Chen Wang <unicorn_wang@outlook.com>
> +
> +description: |
you can drop | here
> + This controller contains 4 channels which can generate PWM waveforms.
> +
> +allOf:
> + - $ref: pwm.yaml#
> +
> +properties:
> + compatible:
> + const: sophgo,sg2042-pwm
> +
> + reg:
> + maxItems: 1
> +
> + clocks:
> + maxItems: 1
> +
> + clock-names:
> + items:
> + - const: apb
> +
> + "#pwm-cells":
..
> + # See pwm.yaml in this directory for a description of the cells format.
I think you can drop this comment, since no useful information added
also it's already refered to standard pwm.yaml
> + const: 2
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> + - clock-names
also "#pwm-cells"?
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + pwm@7f006000 {
> + compatible = "sophgo,sg2042-pwm";
> + reg = <0x7f006000 0x1000>;
> + #pwm-cells = <2>;
> + clocks = <&clock 67>;
> + clock-names = "apb";
> + };
> --
> 2.34.1
>
--
Yixun Lan (dlan)
Gentoo Linux Developer
GPG Key ID AABEFD55
next prev parent reply other threads:[~2024-09-06 2:44 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-05 12:10 [PATCH 0/2] pwm: Add pwm driver for Sophgo SG2042 Chen Wang
2024-09-05 12:10 ` [PATCH 1/2] dt-bindings: pwm: sophgo: add bindings for sg2042 Chen Wang
2024-09-06 2:44 ` Yixun Lan [this message]
2024-09-06 10:46 ` Krzysztof Kozlowski
2024-09-09 0:29 ` Chen Wang
2024-09-06 10:31 ` Krzysztof Kozlowski
2024-09-09 0:45 ` Chen Wang
2024-09-05 12:10 ` [PATCH 2/2] pwm: sophgo: add driver for Sophgo SG2042 PWM Chen Wang
2024-09-05 16:03 ` Uwe Kleine-König
2024-09-09 9:27 ` Chen Wang
2024-09-07 17:58 ` kernel test robot
2024-09-09 8:24 ` Chen Wang
2024-09-09 8:45 ` Geert Uytterhoeven
2024-09-09 9:08 ` Chen Wang
2024-09-09 11:45 ` Uwe Kleine-König
2024-09-09 23:08 ` Chen Wang
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=20240906024435-GYA153340@gentoo \
--to=dlan@gentoo.org \
--cc=chao.wei@sophgo.com \
--cc=chunzhi.lin@sophgo.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=haijiao.liu@sophgo.com \
--cc=inochiama@outlook.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=robh@kernel.org \
--cc=ukleinek@kernel.org \
--cc=unicorn_wang@outlook.com \
--cc=unicornxw@gmail.com \
--cc=xiaoguang.xing@sophgo.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