From patchwork Mon Dec 19 09:42:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xingyu Wu X-Patchwork-Id: 34445 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp2291092wrn; Mon, 19 Dec 2022 01:45:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf63CyvrV9tYH3zBFHYQeRI9wmjvoaI5sJoo67BgUTKhywIF60F1x+muwiPu9f+ZpRIu2KwU X-Received: by 2002:aa7:c614:0:b0:46c:ab70:c009 with SMTP id h20-20020aa7c614000000b0046cab70c009mr34786221edq.27.1671443105324; Mon, 19 Dec 2022 01:45:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671443105; cv=none; d=google.com; s=arc-20160816; b=wzA+uuMLgCaqQ89H4X9f+U/8I44X7yIEIJJ1sDmiE+61f2yhaKJHKFLFuKzlSmd2vD +AI36HZQi3wqL9LVaOYpGStTGpCuochq6SBmwrZ8eecTulu6/e5Z4ApvZbMaMkhWEeOO eh3SdL1doHPwaL14kDdb6KLu7f38y3gYcbBzp4n2nAds16ssvvviamKnw7/qQe9vwC7S AvCv3xguTNYHZZ189R4nItYyKOFykt4gzxM86T0zVNF6GAruVQhH4sfMyjrsN77SIHrv IEfZTo8LXKKrAr2HkYe0XaU4ybEzIFuY6P/CQaeMWCoHoksdtAkeWZvy2hTwFQfteIkX 9ltQ== 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=8nKmeri3JTJiMY98NSqFbMbe3zW8p6vwIRXaZ+BuOOY=; b=tfH5nARjzVI9SaCKCiuoNGiylw6wy1S7UqXoD8iy96zG84VnIzcelXkoS/H1VOcnvz Qgr7hxX0s1xGYt53FehTwSrqdZvqIU5fuhRBNlNb2SpFCk+7IFzPw2jdn2F0NRHxcHLT kBGXNY9TLr2VRVEH/s+SDtRLoN8OtvqLnXBjPJ1YkcfsDQ4C+DX4wkAgnYs7eYmc30nS pUKop+mpIpHnH02J35SYCI1f8ek/sprH8uZ+cRJ4l+XonMZZ4ocK90+8Q20G6mpGDBoo ZW0CNjxh00BhKAc/5JNbLWp8HT63uDFF7BnzCxVcoBZzvRRTZDw74JMYuwvHLOFH0NX4 DKFA== 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 b11-20020a056402084b00b004739d471e12si9547007edz.280.2022.12.19.01.44.42; Mon, 19 Dec 2022 01:45:05 -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 S231470AbiLSJm5 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 19 Dec 2022 04:42:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230373AbiLSJmq (ORCPT ); Mon, 19 Dec 2022 04:42:46 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28AFA959C; Mon, 19 Dec 2022 01:42:43 -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 9324C24E137; Mon, 19 Dec 2022 17:42:40 +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; Mon, 19 Dec 2022 17:42:40 +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; Mon, 19 Dec 2022 17:42:39 +0800 From: Xingyu Wu To: , , , Wim Van Sebroeck , Guenter Roeck , Krzysztof Kozlowski CC: Rob Herring , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Xingyu Wu , Samin Guo , Subject: [PATCH v2 1/3] dt-bindings: watchdog: Add watchdog for StarFive JH7110 Date: Mon, 19 Dec 2022 17:42:31 +0800 Message-ID: <20221219094233.179153-2-xingyu.wu@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221219094233.179153-1-xingyu.wu@starfivetech.com> References: <20221219094233.179153-1-xingyu.wu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [183.27.97.120] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX161.cuchost.com (172.16.6.71) 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?1752635125797836729?= X-GMAIL-MSGID: =?utf-8?q?1752635125797836729?= Add bindings to describe the watchdog for the StarFive JH7110 SoC. Signed-off-by: Xingyu Wu --- .../watchdog/starfive,jh7110-wdt.yaml | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/starfive,jh7110-wdt.yaml diff --git a/Documentation/devicetree/bindings/watchdog/starfive,jh7110-wdt.yaml b/Documentation/devicetree/bindings/watchdog/starfive,jh7110-wdt.yaml new file mode 100644 index 000000000000..a7bfe0751928 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/starfive,jh7110-wdt.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/starfive,jh7110-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive Watchdog + +maintainers: + - Samin Guo + - Xingyu Wu + +properties: + compatible: + const: starfive,jh7110-wdt + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: APB clock + - description: Core clock + + clock-names: + items: + - const: apb + - const: core + + resets: + items: + - description: APB reset + - description: Core reset + + reset-names: + items: + - const: apb + - const: core + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - reset-names + +additionalProperties: false + +examples: + - | + watchdog@13070000 { + compatible = "starfive,jh7110-wdt"; + reg = <0x13070000 0x10000>; + clocks = <&clk 122>, + <&clk 123>; + clock-names = "apb", "core"; + resets = <&rst 109>, + <&rst 110>; + reset-names = "apb", "core"; + };