From patchwork Tue Nov 29 03:09:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 27057 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp103265wrr; Mon, 28 Nov 2022 19:26:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf7e01T+bmJ7wCDJRVKFhS+lRZmilTO3B+9N/BRbE2KhXkgd7akZ9PkuLXElqam4zTdehzx2 X-Received: by 2002:aa7:dbc7:0:b0:45f:b80f:1fe8 with SMTP id v7-20020aa7dbc7000000b0045fb80f1fe8mr48196192edt.118.1669692366917; Mon, 28 Nov 2022 19:26:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669692366; cv=none; d=google.com; s=arc-20160816; b=NvFsjg3AeMyKT8SkekJ2Pev9EbGBxUaue2tEIR9uwjZDYHEVFuM3eyo7L+4/9rGirU zyfnKYzBmLT6mOnvxHZoiVuVM2Z2hkAtIVZ7ZXU82KwWT5XlGijipawomSloZVnUZ2HQ /YoWt/LoJy6KF+AjpwGG/38X/ih37HYGxxwGMWLUzA5Q7BSzf0DCe91PDDKE8e0nfHuQ JgPVVTUVac2NLIKbc7tcvia7DdvNZWo05UhgSdQbfH1oSc+hKzC/jWRZb8owVU9zJ3ha ikOn4kkhOWe2l2kkPhWN6gaQ6vpG8PqqMqCNGAS7vDgH97vH8xAdVlqR5H6TZ1y9NasX MXBA== 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=4tifjT/+V8WFb0CimE1tUhTsug3UjGUTXlw8biFkQpU=; b=0uKzJxR22tnmNxnMtfJ5yxgizlrrnbxXhsd1THkh+nPK9cjcERI0OHlcEGUtjR1468 6AWqDhOp5teLOHCGvcqWwJi1cmbyHJxIiCogcVEyo19Qrk2PmPhOmPG9Wws0L1Kzr8aj oES67/G5EAGXyKcfRtK3NAvvl5R2I6drkTipLYV3cTM+gG0h/EkkwjwF2ABGcmaLsbWg CDzmypi9WVFVUwSR0rlWsdSlLnF3KJ4VXUxSe082JT1BzUlaDn2Pk7eHw8dCGYSlkt2O XBC/Yy3eMTM0Q3pufQBQpDCwCSz7t6+a8voZOaz6KCS80SxegirFTqFGtlTIwAmEQUIC K1hA== 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 es25-20020a056402381900b0046b850c39eesi428477edb.347.2022.11.28.19.25.43; Mon, 28 Nov 2022 19:26:06 -0800 (PST) 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 S235295AbiK2DJo (ORCPT + 99 others); Mon, 28 Nov 2022 22:09:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235408AbiK2DJh (ORCPT ); Mon, 28 Nov 2022 22:09:37 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F34802EF5F; Mon, 28 Nov 2022 19:09:35 -0800 (PST) Received: from loongson.cn (unknown [10.180.13.64]) by gateway (Coremail) with SMTP id _____8Bx1vDud4VjTOYBAA--.4454S3; Tue, 29 Nov 2022 11:09:34 +0800 (CST) Received: from localhost.localdomain (unknown [10.180.13.64]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxZ1fmd4VjE+QdAA--.57759S4; Tue, 29 Nov 2022 11:09:32 +0800 (CST) From: Yinbo Zhu To: Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Huacai Chen , WANG Xuerui , Jiaxun Yang , Jianmin Lv , Yun Liu , Yang Li , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, loongarch@lists.linux.dev, Yinbo Zhu Cc: Krzysztof Kozlowski Subject: [PATCH v11 3/3] dt-bindings: hpet: add loongson-2 hpet Date: Tue, 29 Nov 2022 11:09:25 +0800 Message-Id: <20221129030925.14074-3-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221129030925.14074-1-zhuyinbo@loongson.cn> References: <20221129030925.14074-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8CxZ1fmd4VjE+QdAA--.57759S4 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoWxXF47tF4fWFWxJF1xCrW5GFg_yoWrGF4fpF s7CF95Jr47tF1fu39xKFyI9Fn5Za4DAF9rWr17tw1UAryDX3W5XFn2ga4DurW3GrWxWay7 XFySkw18Ka1jvr7anT9S1TB71UUUUjDqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bS8Fc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUXVWUAwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr 1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4UJVWxJr1ln4kS14v26r126r1DM2AIxVAIcxkE cVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F4 0Ex7xfMcIj6xIIjxv20xvE14v26r1q6rW5McIj6I8E87Iv67AKxVW8JVWxJwAm72CE4IkC 6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lc7CjxVAaw2AFwI0_Jw0_GFyl42xK82IYc2 Ij64vIr41l42xK82IY6x8ErcxFaVAv8VWrMxC20s026xCaFVCjc4AY6r1j6r4UMxCIbckI 1I0E14v26r126r1DMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_Jr Wlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26ryj 6F1UMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr 0_JF4lIxAIcVC2z280aVAFwI0_Cr0_Gr1UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1U YxBIdaVFxhVjvjDU0xZFpf9x07jetC7UUUUU= 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750799343667818189?= X-GMAIL-MSGID: =?utf-8?q?1750799343667818189?= Add the Loongson-2 High Precision Event Timer (HPET) binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu Reviewed-by: Krzysztof Kozlowski --- Change in v11: 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 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 + +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 + #include + 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 5d5967f55c36..5b04e37a1bd2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12033,6 +12033,7 @@ LOONGSON-2 SOC SERIES HPET DRIVER M: Yinbo Zhu 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)