From patchwork Tue Jun 27 05:53:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xingyu Wu X-Patchwork-Id: 113233 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7975053vqr; Mon, 26 Jun 2023 23:03:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4G5OixD391PixLcL/rulRSYF0jfdUrReyEyEfhua5pvZn8EdGAGz4Nyz9BvjVfOlvAz73/ X-Received: by 2002:a05:6359:215:b0:133:595:1c with SMTP id ej21-20020a056359021500b001330595001cmr2473827rwb.31.1687845807474; Mon, 26 Jun 2023 23:03:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687845807; cv=none; d=google.com; s=arc-20160816; b=PRlDqpdeqDG/8khrVxgVze/yg8sYj7QarsouRijxfvWVmJY2qFg0beH/FCrxVp5tf7 PoOwhE34WoeYOd4vhkLGT7XoJxCoqk5gPrWWXujmjFsKmZglsctq8ShtK5xPUeyMrYMk YrkbeqRjjRRwc/GMNL3mF9BqUOtcBR+bE/06RSANY/vOGR1jMfH8HQF0on0vqHezW5Ng pMz6Se2cHXOOcJe+oyZDPcZ7Z43C1FWsI4phUDrn4eZrWgSpv0S67BIYhutw4hUiqSz+ /NiLR/eueX3gqmaaFvqse8EQUaJRBSGPnRT0o/UdTRjwWZ9/DXCBf1Uamf4nPUn/rh0P +Kxg== 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=uxUz3IWrD54GRhoGE8l7tcisl9lVnKip7DaPfo1PtDw=; fh=Bi90+vHPGJvEeZC5E60tXc4xZML9zWIS5c+0tWGW748=; b=s/9PfyC+NAV5alRm+0bDLqBJYv51H3KEPHmUOMob3igL7mYP4BX4GCNkz1OCTKRu5k Ksyq4eJohPbqrbTijzT1+kD9HjCK/9V+8GvnCzODXOHz1MdkRVz06Ja1MBnSo73PTq8k +CjvdcoSYnhMapivf/f76X3BKFoetQ2MBXPX+Myiw7rrmMG/QDmzmtnJj5ANiiukHMaE fm0TpDwP0j1/hjXy+RPYTpDhSp0Rf3CDSu2AZBYeoJ9b5p/DNLFwMvShiM+ROR2b+AHE UP53ezrkmGnhmhDNgpGoBjVtVYKSQDxjTN4YV+YRTAjkHvbjQ7DjUHT5BCeF/lbv7haD /O1Q== 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 j30-20020a63231e000000b005429248576asi6793516pgj.128.2023.06.26.23.03.14; Mon, 26 Jun 2023 23:03:27 -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 S229970AbjF0Fx2 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 27 Jun 2023 01:53:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjF0FxY (ORCPT ); Tue, 27 Jun 2023 01:53:24 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34F7019A4; Mon, 26 Jun 2023 22:53:22 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 930FF24DBC0; Tue, 27 Jun 2023 13:53:15 +0800 (CST) Received: from EXMBX061.cuchost.com (172.16.6.61) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 27 Jun 2023 13:53:15 +0800 Received: from localhost.localdomain (183.27.97.206) by EXMBX061.cuchost.com (172.16.6.61) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 27 Jun 2023 13:53:14 +0800 From: Xingyu Wu To: , , "Daniel Lezcano" , Thomas Gleixner , Krzysztof Kozlowski CC: Rob Herring , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Xingyu Wu , Samin Guo , , Conor Dooley Subject: [PATCH v3 1/3] dt-bindings: timer: Add timer for StarFive JH7110 SoC Date: Tue, 27 Jun 2023 13:53:11 +0800 Message-ID: <20230627055313.252519-2-xingyu.wu@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230627055313.252519-1-xingyu.wu@starfivetech.com> References: <20230627055313.252519-1-xingyu.wu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [183.27.97.206] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX061.cuchost.com (172.16.6.61) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,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?1769834605155468082?= X-GMAIL-MSGID: =?utf-8?q?1769834605155468082?= Add bindings for the timer on the JH7110 RISC-V SoC by StarFive Technology Ltd. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Xingyu Wu --- .../bindings/timer/starfive,jh7110-timer.yaml | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/starfive,jh7110-timer.yaml diff --git a/Documentation/devicetree/bindings/timer/starfive,jh7110-timer.yaml b/Documentation/devicetree/bindings/timer/starfive,jh7110-timer.yaml new file mode 100644 index 000000000000..9a2dac11eb06 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/starfive,jh7110-timer.yaml @@ -0,0 +1,96 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/starfive,jh7110-timer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH7110 Timer + +maintainers: + - Xingyu Wu + - Samin Guo + +description: + This timer has four free-running 32 bit counters in StarFive JH7110 SoC. + And each channel(counter) triggers an interrupt when timeout. They support + one-shot mode and continuous-run mode. + +properties: + compatible: + const: starfive,jh7110-timer + + reg: + maxItems: 1 + + interrupts: + items: + - description: channel 0 + - description: channel 1 + - description: channel 2 + - description: channel 3 + + clocks: + items: + - description: timer APB + - description: channel 0 + - description: channel 1 + - description: channel 2 + - description: channel 3 + + clock-names: + items: + - const: apb + - const: ch0 + - const: ch1 + - const: ch2 + - const: ch3 + + resets: + items: + - description: timer APB + - description: channel 0 + - description: channel 1 + - description: channel 2 + - description: channel 3 + + reset-names: + items: + - const: apb + - const: ch0 + - const: ch1 + - const: ch2 + - const: ch3 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + - reset-names + +additionalProperties: false + +examples: + - | + timer@13050000 { + compatible = "starfive,jh7110-timer"; + reg = <0x13050000 0x10000>; + interrupts = <69>, <70>, <71> ,<72>; + clocks = <&clk 124>, + <&clk 125>, + <&clk 126>, + <&clk 127>, + <&clk 128>; + clock-names = "apb", "ch0", "ch1", + "ch2", "ch3"; + resets = <&rst 117>, + <&rst 118>, + <&rst 119>, + <&rst 120>, + <&rst 121>; + reset-names = "apb", "ch0", "ch1", + "ch2", "ch3"; + }; +