Message ID | 20221103131202.12481-2-zhuyinbo@loongson.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp522311wru; Thu, 3 Nov 2022 06:13:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM671NBa912Ab3UIFYbYeqG1t9MGNoRDVJ+Se+FwjDoqBZSX3Vb7cM56MJeisCyEVwPqGJ8l X-Received: by 2002:a05:6402:3213:b0:461:dec8:336d with SMTP id g19-20020a056402321300b00461dec8336dmr31526238eda.221.1667481206440; Thu, 03 Nov 2022 06:13:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667481206; cv=none; d=google.com; s=arc-20160816; b=xFAI58Wt/uYzSTM4ErofpYlTy/fcP5yvRds+q/JQLivZK7krxqHs0YZOz34d9l2+Xi Wqp/o2EoBKRd5YnsPnYZgN5KjEsm8OC/Ufsnds2FTmuoggzyBXkKrNj4qLoIb6UleWON 0SMKkwhwBG5ecj+YsGnubR3jYgcqOp1qoq8oPFvW3RC7XzPFWMlVQRG3bS/IIIrnb7Nt bv21ZgCWltCQoMbhllNh6WDX2U+WdIX628Z/CpEDEuYQSPBD1a3GyThJOGD6qcEiz50u 3N99JTpX7zUnK+SEeGFmwBr0WsFjOkEZV9IXSKWmoKmcxjfkyXpHskZiC4w0bqEXojr4 PALg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=WQBtJ7Lu7JSGRMlKdItiendCgUsgAJvcQUMQf1GnJqo=; b=T+I7h5JXkDajO7eBzcoSdQthsTeb7jvahUm1YtI44nGfxQp+vQMqZkxOkkiB8VPCR4 kmI5d/kgRkE1ISkc4wiUR38HbKbpRunKKelEDZTJhU6KoJhgaAB5s41Ii/VgS/2KA6d2 Px9tGJlnjtjmNkdKxOaAgaqrMCmq4lHii3yFSJyQ9urIjt7+cLNYF1akZNZDTW19ySgX pdtPhyvPGxbdnUpn+EeE5/gX9Hqddb6r/v97bgPvyhhfoSpoJG2FFc52Qo/rRYMoKjL8 F+kW0sZ9ifLX1xe6VkptKFNpfUVK9rirZxunft5wsk5Gx5EylT9VBS9bLVNPWoBkFG1u 8anQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u1-20020a50eac1000000b004613ae68ca0si1126785edp.442.2022.11.03.06.13.01; Thu, 03 Nov 2022 06:13:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231205AbiKCNMd (ORCPT <rfc822;yves.mi.zy@gmail.com> + 99 others); Thu, 3 Nov 2022 09:12:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbiKCNM1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 3 Nov 2022 09:12:27 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 668FD6269; Thu, 3 Nov 2022 06:12:26 -0700 (PDT) Received: from loongson.cn (unknown [10.180.13.64]) by gateway (Coremail) with SMTP id _____8Axjrc5vmNj1zwEAA--.9714S3; Thu, 03 Nov 2022 21:12:25 +0800 (CST) Received: from localhost.localdomain (unknown [10.180.13.64]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxZ1ctvmNjswcMAA--.16743S3; Thu, 03 Nov 2022 21:12:23 +0800 (CST) From: Yinbo Zhu <zhuyinbo@loongson.cn> To: 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, Yinbo Zhu <zhuyinbo@loongson.cn> Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Subject: [PATCH v10 2/2] dt-bindings: hpet: add loongson-2 hpet Date: Thu, 3 Nov 2022 21:12:02 +0800 Message-Id: <20221103131202.12481-2-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221103131202.12481-1-zhuyinbo@loongson.cn> References: <20221103131202.12481-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8CxZ1ctvmNjswcMAA--.16743S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoWxXF47tF4fWFWxJr1UAw1DKFg_yoW5KFy7pF s7CF93Jr47tF13u39xKFyI93Z5Zas5AF9rWr17tw1UAF98X3W5XF1xKa4DZ3y3GrWxWay7 XFySkw18Ka1j9r7anT9S1TB71UUUUjDqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bSxFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUXVWUAwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r4j6ryUM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Cr1j6rxdM2 8EF7xvwVC2z280aVCY1x0267AKxVWxJr0_GcWln4kS14v26r126r1DM2AIxVAIcxkEcVAq 07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F40Ex7 xfMcIj6xIIjxv20xvE14v26r1q6rW5McIj6I8E87Iv67AKxVW8Jr0_Cr1UMcvjeVCFs4IE 7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY1x0262kKe7AKxVWUtVW8ZwCF04k20xvY0x 0EwIxGrwCF04k20xvE74AGY7Cv6cx26rWl4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1l4IxYO2xF xVAFwI0_JF0_Jw1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWw C2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Gr0_ Xr1lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJV WUCwCI42IY6I8E87Iv67AKxVW8Jr0_Cr1UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr1j6F4U JbIYCTnIWIevJa73UjIFyTuYvjxU7w0eDUUUU X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748480773873837057?= X-GMAIL-MSGID: =?utf-8?q?1748480773873837057?= |
Series |
[v10,1/2] clocksource: loongson2_hpet: add hpet driver support
|
|
Commit Message
Yinbo Zhu
Nov. 3, 2022, 1:12 p.m. UTC
Add the Loongson-2 High Precision Event Timer (HPET) binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- Change in v10: 1. NO change, but other patch in this series of patches set has changes. 2. This patch need rely on clock patch, which patchwork link was "https://patchwork.kernel.org/project/linux-clk/list/?series=691497". Change in v9: 1. This patch need rely on clock patch, which patchwork link was "https://patchwork.kernel.org/project/linux-clk/list/?series=691497". 2. NO change, but other patch in this series of patches set has changes. Change in v8: 1. This patch need rely on clock patch, which patchwork link was "https://patchwork.kernel.org/project/linux-clk/list/?series=691497". 2. Add all history change log information. Change in v7: 1. NO change, but other patch in this series of patches set has changes. Change in v6: 1. NO change, but other patch in this series of patches set has changes. Change in v5: 1. Replace string loongson2/Loongson2 with Loongson-2/loongson-2. 2. Add the patch review information. Change in v4: 1. Fixup the clock-names that replace apb-clk with apb. 2. This patch need rely on clock patch, which patchwork link was "https://patchwork.kernel.org/project/linux-clk/list/?series=688892". Change in v3: 1. Update dts that base on common clock framework. Change in v2: 1. Drop the "hpet0" label. 2. Modify the hpet node name to timer. .../bindings/timer/loongson,ls2k-hpet.yaml | 50 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/loongson,ls2k-hpet.yaml
Comments
Hi maintainer, please help me merge it to upstream. In addition, this patch need rely on "https://patchwork.kernel.org/project/linux-clk/list/?series=691497" Thanks, Yinbo. 在 2022/11/3 下午9:12, Yinbo Zhu 写道: > Add the Loongson-2 High Precision Event Timer (HPET) binding > with DT schema format using json-schema. > > Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > Change in v10: > 1. NO change, but other patch in this series of patches set > has changes. > 2. This patch need rely on clock patch, which patchwork > link was "https://patchwork.kernel.org/project/linux-clk/list/?series=691497". > Change in v9: > 1. This patch need rely on clock patch, which patchwork > link was "https://patchwork.kernel.org/project/linux-clk/list/?series=691497". > 2. NO change, but other patch in this series of patches set > has changes. > Change in v8: > 1. This patch need rely on clock patch, which patchwork > link was "https://patchwork.kernel.org/project/linux-clk/list/?series=691497". > 2. Add all history change log information. > Change in v7: > 1. NO change, but other patch in this series of patches set > has changes. > Change in v6: > 1. NO change, but other patch in this series of patches set > has changes. > Change in v5: > 1. Replace string loongson2/Loongson2 with Loongson-2/loongson-2. > 2. Add the patch review information. > Change in v4: > 1. Fixup the clock-names that replace apb-clk with apb. > 2. This patch need rely on clock patch, which patchwork > link was "https://patchwork.kernel.org/project/linux-clk/list/?series=688892". > Change in v3: > 1. Update dts that base on common clock framework. > Change in v2: > 1. Drop the "hpet0" label. > 2. Modify the hpet node name to timer. > > .../bindings/timer/loongson,ls2k-hpet.yaml | 50 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 51 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..30685c8fbead > --- /dev/null > +++ b/Documentation/devicetree/bindings/timer/loongson,ls2k-hpet.yaml > @@ -0,0 +1,50 @@ > +# 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: Loongson-2 High Precision Event Timer (HPET) > + > +maintainers: > + - Yinbo Zhu <zhuyinbo@loongson.cn> > + > +properties: > + compatible: > + const: loongson,ls2k-hpet > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: SoC apb clock > + > + clock-names: > + items: > + - const: apb > + > + interrupts: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - interrupts > + > +additionalProperties: false > + > +examples: > + - | > + #include <dt-bindings/clock/loongson,ls2k-clk.h> > + #include <dt-bindings/interrupt-controller/irq.h> > + timer@1fe24000 { > + compatible = "loongson,ls2k-hpet"; > + reg = <0x1fe24000 0x15f>; > + clocks = <&clk LOONGSON2_APB_CLK>; > + clock-names = "apb"; > + interrupt-parent = <&liointc0>; > + interrupts = <21 IRQ_TYPE_LEVEL_LOW>; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index 52519695a458..939af260fe0f 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -12030,6 +12030,7 @@ LOONGSON-2 SOC SERIES HPET DRIVER > M: Yinbo Zhu <zhuyinbo@loongson.cn> > L: linux-kernel@vger.kernel.org > S: Maintained > +F: Documentation/devicetree/bindings/timer/loongson,ls2k-hpet.yaml > F: drivers/clocksource/loongson2_hpet.c > > LSILOGIC MPT FUSION DRIVERS (FC/SAS/SPI) >
Any updates? 在 2022/11/9 下午5:50, Yinbo Zhu 写道: > Hi maintainer, > > please help me merge it to upstream. > > In addition, this patch need rely on > "https://patchwork.kernel.org/project/linux-clk/list/?series=691497" > > Thanks, > Yinbo. > > 在 2022/11/3 下午9:12, Yinbo Zhu 写道: >> Add the Loongson-2 High Precision Event Timer (HPET) binding >> with DT schema format using json-schema. >> >> Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> >> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >> --- >> Change in v10: >> 1. NO change, but other patch in this series of patches set >> has changes. >> 2. This patch need rely on clock patch, which patchwork >> link was >> "https://patchwork.kernel.org/project/linux-clk/list/?series=691497". >> Change in v9: >> 1. This patch need rely on clock patch, which patchwork >> link was >> "https://patchwork.kernel.org/project/linux-clk/list/?series=691497". >> 2. NO change, but other patch in this series of patches set >> has changes. >> Change in v8: >> 1. This patch need rely on clock patch, which patchwork >> link was >> "https://patchwork.kernel.org/project/linux-clk/list/?series=691497". >> 2. Add all history change log information. >> Change in v7: >> 1. NO change, but other patch in this series of patches set >> has changes. >> Change in v6: >> 1. NO change, but other patch in this series of patches set >> has changes. >> Change in v5: >> 1. Replace string loongson2/Loongson2 with Loongson-2/loongson-2. >> 2. Add the patch review information. >> Change in v4: >> 1. Fixup the clock-names that replace apb-clk with apb. >> 2. This patch need rely on clock patch, which patchwork >> link was >> "https://patchwork.kernel.org/project/linux-clk/list/?series=688892". >> Change in v3: >> 1. Update dts that base on common clock framework. >> Change in v2: >> 1. Drop the "hpet0" label. >> 2. Modify the hpet node name to timer. >> >> .../bindings/timer/loongson,ls2k-hpet.yaml | 50 +++++++++++++++++++ >> MAINTAINERS | 1 + >> 2 files changed, 51 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..30685c8fbead >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/timer/loongson,ls2k-hpet.yaml >> @@ -0,0 +1,50 @@ >> +# 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: Loongson-2 High Precision Event Timer (HPET) >> + >> +maintainers: >> + - Yinbo Zhu <zhuyinbo@loongson.cn> >> + >> +properties: >> + compatible: >> + const: loongson,ls2k-hpet >> + >> + reg: >> + maxItems: 1 >> + >> + clocks: >> + items: >> + - description: SoC apb clock >> + >> + clock-names: >> + items: >> + - const: apb >> + >> + interrupts: >> + maxItems: 1 >> + >> +required: >> + - compatible >> + - reg >> + - clocks >> + - clock-names >> + - interrupts >> + >> +additionalProperties: false >> + >> +examples: >> + - | >> + #include <dt-bindings/clock/loongson,ls2k-clk.h> >> + #include <dt-bindings/interrupt-controller/irq.h> >> + timer@1fe24000 { >> + compatible = "loongson,ls2k-hpet"; >> + reg = <0x1fe24000 0x15f>; >> + clocks = <&clk LOONGSON2_APB_CLK>; >> + clock-names = "apb"; >> + interrupt-parent = <&liointc0>; >> + interrupts = <21 IRQ_TYPE_LEVEL_LOW>; >> + }; >> diff --git a/MAINTAINERS b/MAINTAINERS >> index 52519695a458..939af260fe0f 100644 >> --- a/MAINTAINERS >> +++ b/MAINTAINERS >> @@ -12030,6 +12030,7 @@ LOONGSON-2 SOC SERIES HPET DRIVER >> M: Yinbo Zhu <zhuyinbo@loongson.cn> >> L: linux-kernel@vger.kernel.org >> S: Maintained >> +F: Documentation/devicetree/bindings/timer/loongson,ls2k-hpet.yaml >> F: drivers/clocksource/loongson2_hpet.c >> LSILOGIC MPT FUSION DRIVERS (FC/SAS/SPI) >>
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..30685c8fbead --- /dev/null +++ b/Documentation/devicetree/bindings/timer/loongson,ls2k-hpet.yaml @@ -0,0 +1,50 @@ +# 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: Loongson-2 High Precision Event Timer (HPET) + +maintainers: + - Yinbo Zhu <zhuyinbo@loongson.cn> + +properties: + compatible: + const: loongson,ls2k-hpet + + reg: + maxItems: 1 + + clocks: + items: + - description: SoC apb clock + + clock-names: + items: + - const: apb + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/loongson,ls2k-clk.h> + #include <dt-bindings/interrupt-controller/irq.h> + timer@1fe24000 { + compatible = "loongson,ls2k-hpet"; + reg = <0x1fe24000 0x15f>; + clocks = <&clk LOONGSON2_APB_CLK>; + clock-names = "apb"; + interrupt-parent = <&liointc0>; + interrupts = <21 IRQ_TYPE_LEVEL_LOW>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 52519695a458..939af260fe0f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12030,6 +12030,7 @@ LOONGSON-2 SOC SERIES HPET DRIVER M: Yinbo Zhu <zhuyinbo@loongson.cn> L: linux-kernel@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/timer/loongson,ls2k-hpet.yaml F: drivers/clocksource/loongson2_hpet.c LSILOGIC MPT FUSION DRIVERS (FC/SAS/SPI)