Message ID | 20221223094801.181315-1-xingyu.wu@starfivetech.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp234420wrn; Fri, 23 Dec 2022 01:59:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXs9I6rK8yzwB1GP97Hc3VoQjTMMPCnPDLYmeYSAsAUgxutlGi/yamTglaAa5tDmzAKS4Y2i X-Received: by 2002:a17:90a:6c22:b0:225:c2b4:56fb with SMTP id x31-20020a17090a6c2200b00225c2b456fbmr2217337pjj.3.1671789560115; Fri, 23 Dec 2022 01:59:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671789560; cv=none; d=google.com; s=arc-20160816; b=z0C4ojl0EbrzH9kLFBLPM2oYg8eO9jzPafryyqzO1Cy+TZm6ru4mkaxN3uXlvAnPZV 3zlHTIaqq8iaGdw0c7+hiLjivIe6NVGlPJZg3m362nuLwEZ2ptaL8wYMKGikWjN9Dzvx L0oWkKxZgh0pP9RLqGJWVROe98+2doAS5/3Tis7GHNhln8N6+augosZQDPGVO9A/dio0 qzKcyjF7ZKQIb5EaZUdOCBLLQOjJcIXV77XDULchlkBheYl3Xg97ThsyFJmf5m+/CMv8 q5e98jaPgLepjN9Yq3xBfWr031s2OibHxoyiDe5Dfn58lPedCdpLQ8OY48/0vSoK9Gbk D0ng== 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 :message-id:date:subject:cc:to:from; bh=vHttd2QN2kYt8iQfoEmWlT+Sxi/9TnOTcUMPHrzc2ZI=; b=d2T+e4CeyKS8IZua5mk558uxjK7s0o1gTgLd+/KPdO0oV7NbA+4X7UXTL6kNe/5NEQ Gx3DI+eBd2c2bygg1TN1pMfU1SaylVePv78w4wX89Dvc1eOZhOE1xWGSK5uknPDPTkl+ UIetioVlQ+uKPSCtc6NvfpLk27AjFfW/maNL7JASvucboQe+B25XjEAOx0vqz4pQetWi vjIGrQeN6iDz3SN84Qal0DQpdBMjKyf0zPznqROU1VtYL7Duy9zZIOvdRM4+aBpQJlXH HyzLxDIlVj4eNqnEm58NiTbN4ZdEaK0qiCRJejecwuA2DJg1aAQpfe025Ny7VcRbhdt2 jujA== 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 pj10-20020a17090b4f4a00b00205b268cd58si7198093pjb.181.2022.12.23.01.59.07; Fri, 23 Dec 2022 01:59:19 -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 S230150AbiLWJy4 convert rfc822-to-8bit (ORCPT <rfc822;pacteraone@gmail.com> + 99 others); Fri, 23 Dec 2022 04:54:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235758AbiLWJyP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 23 Dec 2022 04:54:15 -0500 Received: from ex01.ufhost.com (unknown [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 891C637F83; Fri, 23 Dec 2022 01:48:19 -0800 (PST) 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 12DD724E212; Fri, 23 Dec 2022 17:48:03 +0800 (CST) Received: from EXMBX161.cuchost.com (172.16.6.71) by EXMBX165.cuchost.com (172.16.6.75) 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 <xingyu.wu@starfivetech.com> To: <linux-riscv@lists.infradead.org>, <devicetree@vger.kernel.org>, "Daniel Lezcano" <daniel.lezcano@linaro.org>, Thomas Gleixner <tglx@linutronix.de>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> CC: Rob Herring <robh+dt@kernel.org>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Philipp Zabel <p.zabel@pengutronix.de>, Xingyu Wu <xingyu.wu@starfivetech.com>, Samin Guo <samin.guo@starfivetech.com>, <linux-kernel@vger.kernel.org> Subject: [PATCH v1 0/3] Add timer driver for StarFive JH7110 RISC-V SoC Date: Fri, 23 Dec 2022 17:47:58 +0800 Message-ID: <20221223094801.181315-1-xingyu.wu@starfivetech.com> X-Mailer: git-send-email 2.25.1 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752998409940613191?= X-GMAIL-MSGID: =?utf-8?q?1752998409940613191?= |
Series |
Add timer driver for StarFive JH7110 RISC-V SoC
|
|
Message
Xingyu Wu
Dec. 23, 2022, 9:47 a.m. UTC
This patch serises are to add timer driver for the StarFive JH7110 RISC-V SoC. The first patch adds documentation to describe device tree bindings. The subsequent patch adds timer driver and support JH7110 SoC. The last patch adds device node about timer to JH7110 dts. This timer has eight free-running 32 bit counters and uses four in StarFive JH7110 SoC. They support single-run mode and continuous-run mode. The last patch should be applied after the patchset [1]: [1] https://lore.kernel.org/all/20221118011714.70877-1-hal.feng@starfivetech.com/ Xingyu Wu (3): dt-bindings: timer: Add timer for StarFive JH7110 SoC clocksource: Add StarFive timer driver riscv: dts: jh7110: starfive: Add timer node .../timer/starfive,jh7110-timers.yaml | 105 ++++ MAINTAINERS | 7 + arch/riscv/boot/dts/starfive/jh7110.dtsi | 22 + drivers/clocksource/Kconfig | 12 + drivers/clocksource/Makefile | 1 + drivers/clocksource/timer-starfive.c | 465 ++++++++++++++++++ drivers/clocksource/timer-starfive.h | 104 ++++ 7 files changed, 716 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/starfive,jh7110-timers.yaml create mode 100644 drivers/clocksource/timer-starfive.c create mode 100644 drivers/clocksource/timer-starfive.h base-commit: 094226ad94f471a9f19e8f8e7140a09c2625abaa prerequisite-patch-id: 6b1b43a55b9773bec61ab6c1bbaa54dccbac0837 prerequisite-patch-id: 09c98554df52d17ba5fd604125f8cdd62cbe80d1 prerequisite-patch-id: 29fe0b0c19b6f0cd31114ee9fe17fe9732047f33 prerequisite-patch-id: c59d9908de90e09ba2b9a81aadbf9fb9f00c8f04 prerequisite-patch-id: 94ac03d518993921bcfc9cc9f58d7da0c3528b51 prerequisite-patch-id: 694f7400375f5b85581fc1821e427334507826f2 prerequisite-patch-id: 699d49c4439dadb4b7cf900857f027d050cd6093 prerequisite-patch-id: 40d773f5a19912f731ee5fd4739ed2e3c2157b07 prerequisite-patch-id: 2bc3fd6df5dda116efe882045863d6c88aa81b3a prerequisite-patch-id: 735e62255c75801bdc4c0b4107850bce821ff7f5 prerequisite-patch-id: b2a923b922e661fa6085185f33c1f1e733db9110 prerequisite-patch-id: b2bbc28354075432f059344eba5a127a653475cf prerequisite-patch-id: 70eab7b7eee728afcd90e40f6743d1356f6d81ab prerequisite-patch-id: 6276b2a23818c65ff2ad3d65b562615690cffee9 prerequisite-patch-id: d834ece14ffb525b8c3e661e78736692f33fca9b prerequisite-patch-id: 4c17a3ce4dae9b788795d915bf775630f5c43c53 prerequisite-patch-id: dabb913fd478e97593e45c23fee4be9fd807f851 prerequisite-patch-id: 22fa141f7f0f80a5d619e9f3f4cf161ad06f108e prerequisite-patch-id: f306819c257ea73aff8e06b17b5731053cdddfc8 prerequisite-patch-id: 536114f0732646095ef5302a165672b3290d4c75 prerequisite-patch-id: 258ea5f9b8bf41b6981345dcc81795f25865d38f prerequisite-patch-id: 8b6f2c9660c0ac0ee4e73e4c21aca8e6b75e81b9 prerequisite-patch-id: e09e995700a814a763aa304ad3881a7222acf556 prerequisite-patch-id: 05803238293fcc90c8e83018a1103c41133a816c prerequisite-patch-id: d074c7ffa2917a9f754d5801e3f67bc980f9de4c prerequisite-patch-id: ef23fdf3466b3c713b3826e8545c8dd2bc6cc9d7 prerequisite-patch-id: d5da3475c6a3588e11a1678feb565bdd459b548e