From: Yinbo Zhu <zhuyinbo@loongson.cn>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Huacai Chen <chenhuacai@kernel.org>,
WANG Xuerui <kernel@xen0n.name>,
Jiaxun Yang <jiaxun.yang@flygoat.com>,
Jianmin Lv <lvjianmin@loongson.cn>, Yun Liu <liuyun@loongson.cn>,
Yang Li <yang.lee@linux.alibaba.com>,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
loongarch@lists.linux.dev, zhuyinbo@loongson.cn
Subject: Re: [PATCH v1 2/2] dt-bindings: hpet: add loongson2k hpet binding
Date: Sat, 8 Oct 2022 11:21:01 +0800 [thread overview]
Message-ID: <80af028d-d123-6894-189a-a26134ec89ee@loongson.cn> (raw)
In-Reply-To: <ba5873fa-83fc-2d16-b8c0-715ae8bf630a@linaro.org>
在 2022/9/30 下午5:58, Krzysztof Kozlowski 写道:
> On 30/09/2022 11:35, Yinbo Zhu wrote:
>> Add the loongson2k High Precision Event Timer (HPET) binding
>> with DT schema format using json-schema.
>>
>> Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn>
>> ---
>> .../bindings/timer/loongson,ls2k-hpet.yaml | 41 +++++++++++++++++++
>> MAINTAINERS | 1 +
>> 2 files changed, 42 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/timer/loongson,ls2k-hpet.yaml
>>
>> diff --git a/Documentation/devicetree/bindings/timer/loongson,ls2k-hpet.yaml b/Documentation/devicetree/bindings/timer/loongson,ls2k-hpet.yaml
>> new file mode 100644
>> index 000000000000..1a8785076228
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/timer/loongson,ls2k-hpet.yaml
>> @@ -0,0 +1,41 @@
>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/timer/loongson,ls2k-hpet.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: Loongson2k High Precision Event Timer (HPET)
>> +
>> +maintainers:
>> + - Yinbo Zhu <zhuyinbo@loongson.cn>
>> +
>> +properties:
>> + compatible:
>> + const: loongson,ls2k-hpet
>> +
>> + reg:
>> + maxItems: 1
>> +
>> + clock-frequency: true
>
> clock frequency of what? I assume it's too early to use common clock
> framework and just get the clock?
The clock-frequency is 125000000, It doesn't support use common clock
framework and just get the clock from dts, and I refer
"arm,armv7m-systick" to add the clock-frequency information:
clock-frequency: true
oneOf:
- required:
- clocks
- required:
- clock-frequency
>
>> +
>> + interrupts:
>> + maxItems: 1
>> +
>> +required:
>> + - compatible
>> + - reg
>> + - clock-frequency
>> + - interrupts
>> +
>> +additionalProperties: false
>> +
>> +examples:
>> + - |
>> + #include <dt-bindings/interrupt-controller/irq.h>
>> + hpet0: hpet@1fe24000 {
>
> Node name: timer
> https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
>
> You can drop the "hpet0" label.
okay, I got it.
>
>
> Best regards,
> Krzysztof
>
next prev parent reply other threads:[~2022-10-08 3:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-30 9:35 [PATCH v1 1/2] clocksource: loongson2_hpet: add hpet driver support Yinbo Zhu
2022-09-30 9:35 ` [PATCH v1 2/2] dt-bindings: hpet: add loongson2k hpet binding Yinbo Zhu
2022-09-30 9:58 ` Krzysztof Kozlowski
2022-10-08 3:21 ` Yinbo Zhu [this message]
2022-10-09 15:14 ` Krzysztof Kozlowski
2022-09-30 14:43 ` [PATCH v1 1/2] clocksource: loongson2_hpet: add hpet driver support WANG Xuerui
2022-10-08 2:59 ` Yinbo Zhu
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=80af028d-d123-6894-189a-a26134ec89ee@loongson.cn \
--to=zhuyinbo@loongson.cn \
--cc=chenhuacai@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=jiaxun.yang@flygoat.com \
--cc=kernel@xen0n.name \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liuyun@loongson.cn \
--cc=loongarch@lists.linux.dev \
--cc=lvjianmin@loongson.cn \
--cc=robh+dt@kernel.org \
--cc=tglx@linutronix.de \
--cc=yang.lee@linux.alibaba.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;
as well as URLs for NNTP newsgroup(s).