From patchwork Mon Mar 20 13:54:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xingyu Wu X-Patchwork-Id: 72178 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1241308wrt; Mon, 20 Mar 2023 07:15:16 -0700 (PDT) X-Google-Smtp-Source: AK7set8sTwFfTgWnKU5E0DTr/xKA/QBQXSqz5jDdIeno/Wp6yqjntcmAFLZsWrWB2xfgB1gEEcLn X-Received: by 2002:a05:6a20:3aaf:b0:d9:9bc2:8904 with SMTP id d47-20020a056a203aaf00b000d99bc28904mr3651077pzh.56.1679321715995; Mon, 20 Mar 2023 07:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679321715; cv=none; d=google.com; s=arc-20160816; b=ofQ2rEs0SQ/u00XNXL1FD2W4TxRiPqJd9OkQFgdLZQM+5PPFCM0MxfAu+FkdfJ03J0 /zT9/YJReNGOeT3nLI5qZVVbGdHYqD4Mx299ZRsEprVOwleY26kiUoxM15p5DNFRRvqe nlZH/3Z3S+qtyMeHXLv8Qu/2EAbC//MFkXw9LPbWyXCFNbCps1eVU1O/RXdv0ELl8rQx Lr9U1kVtyee34IVRPoNuW2DgkP3SHkGdg8EykqrLs3N7k6DADtxh9FYrXiHVQlkeKwjO u5c2mIg8sfV7BdCPkJi+oEmKAZxZlC1aVdVR7KYTATOrjxJ+gIJXkT6u8+t1Ph3OJ6Wi AvXQ== 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=M2LoLYCkYmpUPKKVR/twBj722+OQQvyUqJvz44G+tpM=; b=z2H93JVgs4hZA93GT0pQYMGFOGUhiM8BW7OTTBZmOI2V8YKjK+k8wsJdoHGloXr9mb 8C5movw4pzSNXo3tyK9nPs6x5HGW9fdkeiwgAlvX65Nj6kbm24hAaIb3cHaYd8FLwNOX P6NTw//q0n6IGRogNMffUjjnCNZ6a0Yz6vv3Db3RS3khsTbhF5hTI+pj8P0iRJ/tFyMI Up+8otk2Ff4YjI+givjuGmvfZgOcW63504srDGsou0oRpkzLn6mR3IZPxNBVuk4K+9lt 4gK6r+fBM6e1Isn+6zg2zu52Q5kcGGQUniJEwQtxADUTligQsjuUnWKz34eRNcUX/uvM GpIg== 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 k1-20020aa788c1000000b005ee01126a92si11054396pff.120.2023.03.20.07.14.59; Mon, 20 Mar 2023 07:15:15 -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 S231569AbjCTNzZ convert rfc822-to-8bit (ORCPT + 99 others); Mon, 20 Mar 2023 09:55:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231775AbjCTNzA (ORCPT ); Mon, 20 Mar 2023 09:55:00 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D36312590; Mon, 20 Mar 2023 06:54:44 -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 7E2C024E1F4; Mon, 20 Mar 2023 21:54:37 +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; Mon, 20 Mar 2023 21:54:37 +0800 Received: from localhost.localdomain (183.27.97.64) by EXMBX061.cuchost.com (172.16.6.61) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 20 Mar 2023 21:54:36 +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 v2 3/3] riscv: dts: jh7110: starfive: Add timer node Date: Mon, 20 Mar 2023 21:54:33 +0800 Message-ID: <20230320135433.144832-4-xingyu.wu@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230320135433.144832-1-xingyu.wu@starfivetech.com> References: <20230320135433.144832-1-xingyu.wu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [183.27.97.64] 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 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?1760896447600394949?= X-GMAIL-MSGID: =?utf-8?q?1760896447600394949?= Add the timer node for the Starfive JH7110 SoC. Signed-off-by: Xingyu Wu --- arch/riscv/boot/dts/starfive/jh7110.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi index d484ecdf93f7..fbd0a510ca1b 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -478,6 +478,26 @@ sysgpio: pinctrl@13040000 { #gpio-cells = <2>; }; + timer@13050000 { + compatible = "starfive,jh7110-timer"; + reg = <0x0 0x13050000 0x0 0x10000>; + interrupts = <69>, <70>, <71> ,<72>; + clocks = <&syscrg JH7110_SYSCLK_TIMER_APB>, + <&syscrg JH7110_SYSCLK_TIMER0>, + <&syscrg JH7110_SYSCLK_TIMER1>, + <&syscrg JH7110_SYSCLK_TIMER2>, + <&syscrg JH7110_SYSCLK_TIMER3>; + clock-names = "apb", "ch0", "ch1", + "ch2", "ch3"; + resets = <&syscrg JH7110_SYSRST_TIMER_APB>, + <&syscrg JH7110_SYSRST_TIMER0>, + <&syscrg JH7110_SYSRST_TIMER1>, + <&syscrg JH7110_SYSRST_TIMER2>, + <&syscrg JH7110_SYSRST_TIMER3>; + reset-names = "apb", "ch0", "ch1", + "ch2", "ch3"; + }; + aoncrg: clock-controller@17000000 { compatible = "starfive,jh7110-aoncrg"; reg = <0x0 0x17000000 0x0 0x10000>;