From patchwork Wed Oct 26 03:57:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 11058 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp42933wru; Tue, 25 Oct 2022 21:03:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7lwUbVgpFrjhMxidDKC3w/jkTBD+0WmP/duMgHjLg58hc/FbnzqI4aVxI+YLCTGVzFY+mG X-Received: by 2002:a05:6a00:9a4:b0:56c:39c4:9ff0 with SMTP id u36-20020a056a0009a400b0056c39c49ff0mr4309059pfg.9.1666756996137; Tue, 25 Oct 2022 21:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666756996; cv=none; d=google.com; s=arc-20160816; b=tRMBi17pjC2wvN8+Vh3K7zrq3OKRnEGzLcN60NgYp96EocQfksBAmRW2L4lAz4+49y 5ykm92DUILhslRBCm/wLhZaaoiUfc659jiRMC7nawVb6ssbYIpy4oa5kubBWee3UQG6S W9lj6bv2bV6kUlvOqokQxelrCmhKVCzTp893zTY6FvzES65iEsesfMd7Uo2mU3c9I2T5 +hVrp5v0UOUU166eDMWcLMaR2KfqSdjqdgA1lLkKlcA7wkaowq+MyHA1HU3zLiHH0AO9 PYqaaza3ncSDwnkYR9LqdJk4M0rA/DtmwST675ISiMhsQzQ1E5LB8lj6z0bVRvch+h9P SAfw== 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:to:from; bh=ZHPjZVq+aCV9dlRb6eYD26UgzEKAgMbGvBi/4i17Zj0=; b=XwYuUOoR37KvfCw3qrGFGvmkpGknPrGQNpvJlhUCPxgYye12V1cvhanli4O1imtDNx 5mhwhfYjZQxlxsneDleWj6C2FgCj7y9yFX+qX2ZUSxeAh918rIZMva3qwtzs+udxJk9Q dwBXnu5zpVIDFkdcW/e5gBnkUi7EOUm1BAXGdslAZwStMUuehwKhI9hBJ7TyuEu9FwOm NHOYlbf4SHVs7CuBpflPGtPpGt8lvsc/OcALgu9QR6/QY5XaKTxjjophAOo2Tdy5qSWN N75wBt3iYiJ533BT0jjug7KDltFWDrGY1b8IxSdWyFC4nz4RS79sOr/OJSz5A78tn0zs 38zw== 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 u24-20020a656718000000b0046ade103855si5174173pgf.312.2022.10.25.21.03.02; Tue, 25 Oct 2022 21:03:16 -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 S232781AbiJZD6S (ORCPT + 99 others); Tue, 25 Oct 2022 23:58:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232727AbiJZD6G (ORCPT ); Tue, 25 Oct 2022 23:58:06 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F03BABE2F1; Tue, 25 Oct 2022 20:58:02 -0700 (PDT) Received: from loongson.cn (unknown [10.180.13.64]) by gateway (Coremail) with SMTP id _____8Dx_7dJsFhjnocCAA--.8034S3; Wed, 26 Oct 2022 11:58:01 +0800 (CST) Received: from localhost.localdomain (unknown [10.180.13.64]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxXuBCsFhjESQFAA--.19175S3; Wed, 26 Oct 2022 11:58:00 +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 Subject: [PATCH v4 2/2] dt-bindings: hpet: add loongson2 hpet Date: Wed, 26 Oct 2022 11:57:52 +0800 Message-Id: <20221026035752.32681-2-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221026035752.32681-1-zhuyinbo@loongson.cn> References: <20221026035752.32681-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8CxXuBCsFhjESQFAA--.19175S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7uF15Xw15uFy5Ar4DKr1rJFb_yoW8Kw13pa n7CF1rJr40gF13Z39xtFy0k3WrZ34kAFy7WF17A3W7KF98X3WrX3W2ka4DZa13CFW8Way7 ZFWSkr4UKayUur7anT9S1TB71UUUUjDqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bfkFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUXVWUAwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJw A2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr1j6F4UJwAaw2AFwI0_JF0_Jw1le2I262IYc4CY 6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrV C2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_WrylYx0Ex4A2jsIE14v26r4j6F4UMcvjeVCFs4IE 7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY1x0262kKe7AKxVWUAVWUtwCF04k20xvY0x 0EwIxGrwCF04k20xvE74AGY7Cv6cx26rWl4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1l4IxYO2xF xVAFwI0_JF0_Jw1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWw C2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Gr0_ Xr1lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJV WUCwCI42IY6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIY CTnIWIevJa73UjIFyTuYvjxUc9mRUUUUU X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,URIBL_BLOCKED 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?1747721384129114270?= X-GMAIL-MSGID: =?utf-8?q?1747721384129114270?= Add the loongson2 High Precision Event Timer (HPET) binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu Reviewed-by: Krzysztof Kozlowski --- 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". .../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..9682d86e3339 --- /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: Loongson2 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 db29c1dc2d89..8cc541ce89b8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11919,6 +11919,7 @@ LOONGSON2 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)