From: Chen Wang <unicorn_wang@outlook.com>
To: Yixun Lan <dlan@gentoo.org>, Chen Wang <unicornxw@gmail.com>
Cc: ukleinek@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, 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: Mon, 9 Sep 2024 08:29:15 +0800 [thread overview]
Message-ID: <MA0P287MB28227F2A65ADCC493499B7CEFE992@MA0P287MB2822.INDP287.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <20240906024435-GYA153340@gentoo>
On 2024/9/6 10:44, Yixun Lan wrote:
> 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
Ack and thanks.
>> + 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
I add this comment just want to reminder. Ok, anyway, it can be removed
to make doc clear.
>> + const: 2
>> +
>> +required:
>> + - compatible
>> + - reg
>> + - clocks
>> + - clock-names
> also "#pwm-cells"?
I think it has been required in pwm.yaml, so no need to required it
again here.
>> +
>> +additionalProperties: false
>> +
>> +examples:
>> + - |
>> + pwm@7f006000 {
>> + compatible = "sophgo,sg2042-pwm";
>> + reg = <0x7f006000 0x1000>;
>> + #pwm-cells = <2>;
>> + clocks = <&clock 67>;
>> + clock-names = "apb";
>> + };
>> --
>> 2.34.1
>>
next prev parent reply other threads:[~2024-09-09 0:29 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
2024-09-06 10:46 ` Krzysztof Kozlowski
2024-09-09 0:29 ` Chen Wang [this message]
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=MA0P287MB28227F2A65ADCC493499B7CEFE992@MA0P287MB2822.INDP287.PROD.OUTLOOK.COM \
--to=unicorn_wang@outlook.com \
--cc=chao.wei@sophgo.com \
--cc=chunzhi.lin@sophgo.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlan@gentoo.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=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
all inboxes | Powered by JetHome®