Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp344248rwj; Fri, 23 Dec 2022 02:09:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXtGoI38KnlUfNChjRkbM3dbDLGV84kwx7t63cdc/SO1vJBW9TWmuZpINZaXrpgd9ia1uGDA X-Received: by 2002:a17:90b:1110:b0:225:c6fa:97cb with SMTP id gi16-20020a17090b111000b00225c6fa97cbmr999443pjb.21.1671790173986; Fri, 23 Dec 2022 02:09:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671790173; cv=none; d=google.com; s=arc-20160816; b=vUvqc+6OeVwyaK/5IJ8P399SebyMvXheJ21z9bxw68YXyXJ8wmHWgpVDTdpDzKhTD/ /qZ8mTaePbqHyzWN7YSJo1uS6Xl5p18Gb6fBs68vK5d35ttf0Yp57vXSEyhlHAN1pez0 XlJscGrkO2pDRzghOZQr/U9DP6el5VFNrl0Vlw/ODHWVE49IsywU/NC8a7hZ7Zhqu3dU EidlnzeNYThpkKBfM6m54bdFW85zakEIk7KQKgoESiZkzwuIPYJ6Ctz9NK/y4sUSWuDr pKIVP3N1GZa7/3+BRAIGNkJLvp26ciBkkwg2Yd97b29PIzBPEV8tJ3aEgwzANx5QiNdC k8HQ== 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=EVUmOaIRGJcADOVtmnA7zL7veUSlDMPIN4I7GAu6FeQ=; b=d8NroAVqrDcKOHU3Ksu3tbf6nYSzrB69pvGn2yuon6VljGExX31sUDxrq14eeLNbMn 2s8gZcsQwgYnIZ5qA6TxPYPITCiCA8qFnKa5c/+ZDZblkDL90eLmouW6819SLUf261/4 o9g9WdGZMqOLL9y93HvqpVzbrMxT563dmTKktnc8ApoxTxs+ZWhHontQdpSAZO1g6wTl pkC9idw6XV/UloPxsOZS5WBRp37OEZwKW9oJ5fvg2vUk3b/ZrXN2l25JO1RqYJV1cexS PuMRBFio37IiY7n3as5ehdTAdqqfS9JuXpbS+SsmbIA0xunGzLb5A7JZWHI0SkXGBC00 4Vaw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j186-20020a638bc3000000b00478a31bc456si3370699pge.29.2022.12.23.02.09.25; Fri, 23 Dec 2022 02:09:33 -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 S230252AbiLWJyg convert rfc822-to-8bit (ORCPT + 67 others); Fri, 23 Dec 2022 04:54:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236235AbiLWJyG (ORCPT ); Fri, 23 Dec 2022 04:54:06 -0500 Received: from ex01.ufhost.com (unknown [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 892DC37F9F; Fri, 23 Dec 2022 01:48:19 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id BCEEE24E2A1; Fri, 23 Dec 2022 17:48:03 +0800 (CST) Received: from EXMBX161.cuchost.com (172.16.6.71) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 23 Dec 2022 17:48:03 +0800 Received: from localhost.localdomain (183.27.97.120) by EXMBX161.cuchost.com (172.16.6.71) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 23 Dec 2022 17:48:02 +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 , Subject: [PATCH v1 1/3] dt-bindings: timer: Add timer for StarFive JH7110 SoC Date: Fri, 23 Dec 2022 17:47:59 +0800 Message-ID: <20221223094801.181315-2-xingyu.wu@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221223094801.181315-1-xingyu.wu@starfivetech.com> References: <20221223094801.181315-1-xingyu.wu@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [183.27.97.120] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX161.cuchost.com (172.16.6.71) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_PASS autolearn=no 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 Add bindings for the timer on the JH7110 RISC-V SoC by StarFive Technology Ltd. Signed-off-by: Xingyu Wu --- .../timer/starfive,jh7110-timers.yaml | 105 ++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/starfive,jh7110-timers.yaml diff --git a/Documentation/devicetree/bindings/timer/starfive,jh7110-timers.yaml b/Documentation/devicetree/bindings/timer/starfive,jh7110-timers.yaml new file mode 100644 index 000000000000..fe58dc056313 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/starfive,jh7110-timers.yaml @@ -0,0 +1,105 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/starfive,jh7110-timers.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive Timers + +maintainers: + - Samin Guo + - Xingyu Wu + +properties: + compatible: + const: starfive,jh7110-timers + + reg: + maxItems: 1 + + interrupts: + items: + - description: timer channel 0 interrupt + - description: timer channel 1 interrupt + - description: timer channel 2 interrupt + - description: timer channel 3 interrupt + + interrupt-names: + items: + - const: timer0 + - const: timer1 + - const: timer2 + - const: timer3 + + clocks: + items: + - description: timer channel 0 clock + - description: timer channel 1 clock + - description: timer channel 2 clock + - description: timer channel 3 clock + - description: APB clock + + clock-names: + items: + - const: timer0 + - const: timer1 + - const: timer2 + - const: timer3 + - const: apb + + resets: + items: + - description: timer channel 0 reset + - description: timer channel 1 reset + - description: timer channel 2 reset + - description: timer channel 3 reset + - description: APB reset + + reset-names: + items: + - const: timer0 + - const: timer1 + - const: timer2 + - const: timer3 + - const: apb + + clock-frequency: + description: The frequency of the clock that drives the counter, in Hz. + +required: + - compatible + - reg + - interrupts + - interrupt-names + - clocks + - clock-names + - resets + - reset-names + - clock-frequency + +unevaluatedProperties: false + +examples: + - | + timer@13050000 { + compatible = "starfive,jh7110-timers"; + reg = <0x13050000 0x10000>; + interrupts = <69>, <70>, <71> ,<72>; + interrupt-names = "timer0", "timer1", "timer2", "timer3"; + clocks = <&clk 125>, + <&clk 126>, + <&clk 127>, + <&clk 128>, + <&clk 124>; + clock-names = "timer0", "timer1", + "timer2", "timer3", "apb"; + resets = <&rst 118>, + <&rst 119>, + <&rst 120>, + <&rst 121>, + <&rst 117>; + reset-names = "timer0", "timer1", + "timer2", "timer3", "apb"; + clock-frequency = <24000000>; + }; + -- 2.25.1