From patchwork Fri Oct 21 01: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: 6467 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp414463wrr; Thu, 20 Oct 2022 18:19:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5yxr9Nifu2icVegEKxT6i11mkQl3rFPRjYHAtdJ2SX1wMH9L95nUfH7riH1B9dP1KfQQSp X-Received: by 2002:a17:907:97d4:b0:794:b627:676 with SMTP id js20-20020a17090797d400b00794b6270676mr7931655ejc.160.1666315156538; Thu, 20 Oct 2022 18:19:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666315156; cv=none; d=google.com; s=arc-20160816; b=LvyY/xzwcmDK0z4V7etyTO9QBe2hz5kcPfyuOYE9IQLXoKfPh4pkxV0ECwFJ7GeNOY CPnTlQknZ9iGoO8xJYiyKNf7ykATN/lGwuxAylxvXD9EpRpktS9xv6yi1WeI6N8CO3x6 tpfQL8JPwAB1NegtwzAB7KliOLHaTl91xEFkhCqbGf69OtNlVUuM3aQ7KqEWrUIR2lQw nqX42pdJAltNN5hcygjo7eKfCPyA8GE72g/I8PUPBiUUdW0Guh0V5yfloUQeeYv69gKN EtKXRYfWXPIUJTkN3zTkYAuZ3oK4uhYA1lnvpm36IzdsC8XHiOEkCVAOCPnlq8VwD/Wr vCUg== 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=AyBlUmfU8aVvkVrarf9mkgdxYiiIbQPD2xa+AoQCUow=; b=J58ZQphSBEu4tQOqU3H4TeZrIiiR4lVZySu81OcoivE9QAMrvQragJqdNUYgr5EjEi N1qZMnly4a3fExaOdvy9rVQZu4SOEX+Ort1cl+l7/vne/5WDiOsYozzR+bB45eiq3Uiu G3Ib264YIdvKU9Xmnvf+JryU9fheL7X0XTo72B/XCJP+USJCIOmLonxnNVJa+WH36CN1 lcm7prQiRanj23y3t6fft96ur7+2Jv9CqosipIMZmxfroYc4lu4z60bxjGZzVGngU9of fY8vj4XVj+Do52W8/M53H4MSynUwaiEIoY1nw/gwG05HWqwlKdfoomXBheSEEB9JbKzD 1kRQ== 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 cs11-20020a0564020c4b00b0045bce3fe831si17488879edb.522.2022.10.20.18.18.51; Thu, 20 Oct 2022 18:19: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 S229948AbiJUBJm (ORCPT + 99 others); Thu, 20 Oct 2022 21:09:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229740AbiJUBJk (ORCPT ); Thu, 20 Oct 2022 21:09:40 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DAF9D4BD34; Thu, 20 Oct 2022 18:09:34 -0700 (PDT) Received: from loongson.cn (unknown [10.180.13.64]) by gateway (Coremail) with SMTP id _____8AxzNhN8VFjUUUBAA--.5899S3; Fri, 21 Oct 2022 09:09:33 +0800 (CST) Received: from localhost.localdomain (unknown [10.180.13.64]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxLeBH8VFjU1MCAA--.9462S3; Fri, 21 Oct 2022 09: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 Subject: [PATCH v3 2/2] dt-bindings: hpet: add loongson2 hpet Date: Fri, 21 Oct 2022 09:09:25 +0800 Message-Id: <20221021010925.21604-2-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221021010925.21604-1-zhuyinbo@loongson.cn> References: <20221021010925.21604-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8DxLeBH8VFjU1MCAA--.9462S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7uF15Xw1xWFyxXrW8CF4fGrg_yoW8tFyfpF srCFyfJr40gF17Z395tFy8C3WrZ34kAFy7WF17J3WUKr9xX3WrZ3W7Ka4DZa13CrW8Xay7 ZFWSkr4UKayUZF7anT9S1TB71UUUUjDqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bf8Fc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUXVWUAwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Cr0_Gr1UM2 8EF7xvwVC2z280aVCY1x0267AKxVW8JVW8Jr1ln4kS14v26r126r1DM2AIxVAIcxkEcVAq 07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F40Ex7 xfMcIj6xIIjxv20xvE14v26r1q6rW5McIj6I8E87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Y z7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lc7CjxVAaw2AFwI0_JF0_Jw1l42xK82IYc2Ij64 vIr41l42xK82IY6x8ErcxFaVAv8VWrMxC20s026xCaFVCjc4AY6r1j6r4UMxCIbckI1I0E 14v26r126r1DMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4 CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r4j6ryU MIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF 4lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsG vfC2KfnxnUUI43ZEXa7IU8mQ6JUUUUU== 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?1747258081625077219?= X-GMAIL-MSGID: =?utf-8?q?1747258081625077219?= Add the loongson2 High Precision Event Timer (HPET) binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu --- Change in v3: 1. Update dts that base on common clock framework. .../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..01656048858a --- /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_clk + + 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_clk"; + 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)