From patchwork Mon Feb 20 08:19:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xingyu Wu X-Patchwork-Id: 59303 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1190013wrn; Mon, 20 Feb 2023 00:21:43 -0800 (PST) X-Google-Smtp-Source: AK7set/HSQN4OFUor5p29teKurDNwtby15V89HHwdrj8YXEmt2QCFa8SLQuzGdXLg7lOQPnvxVM7 X-Received: by 2002:a05:6a21:7883:b0:c2:4766:2b59 with SMTP id bf3-20020a056a21788300b000c247662b59mr16186456pzc.21.1676881303120; Mon, 20 Feb 2023 00:21:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676881303; cv=none; d=google.com; s=arc-20160816; b=rxcPn7PtBSlWci5OmkZfZmxsWEzywoIk5+J32ZGzWWj5PsOfqBz0KhHNIAlCIEB+8W lSTvgwKIo2SflVgyR+PrjbYqVZDBVgv5cueOnkVLHM8xnRvfpshD+Y/kgmEswJ4cyVoG k69HF/8+CHTF4XKwS6FCJHH+LN++7Q2NrXXGJRvG5IiT9+nvE6sNFEdozkgL0LREniTC RCsKsA2SuNqOhWk8VyTYHR1OXFCw5gKc1BethlTaHQZedc9okJvL0kWmedi06WW9r+pI d23KmFsEJKAvRbK6C3i0jNv+h0gLkaqK7fXghYFL3A2Y8d5Z0rqoCqn7tNduHsqDu1Vr wtLQ== 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=2kMC6hWnqYzWGtfcSBFIqlIQBRO32LEkBKZ9wbL/tjQ=; b=0uXVSgDMk2JuxCi3cnV2XRSxo1OYp0nFhD54SGoWNYYdacQW15e1ifMi9sg8yNLJym GhL5eS5gE7khfvcrhAOwZO7gDa90x/88KbilXprXrUDNq6Dx+L/Q6uzx61542CvbIbFq lLA0+8nh6vJUYLaNt0apcUOe0TRjmYMKOAdk8Zn/VREV6Z7D9DvKbZ/GycG6LgGDDIJ6 p2Xq+6+F2sgbjQPqcyUpT8EqzN3Wc8l5BEOdrZVs8gH8/5vz70CyXVmliGQmkYE2yuGU kDuwntTlWzSULGexdZyRvfFI4oRjLMqFPD7jxuFC1iJJE0op72Fyk7MV8BQ3mICwCvVk hOOw== 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 82-20020a630255000000b004792abca1a3si14768848pgc.20.2023.02.20.00.21.30; Mon, 20 Feb 2023 00:21:43 -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 S230291AbjBTITH convert rfc822-to-8bit (ORCPT + 99 others); Mon, 20 Feb 2023 03:19:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229678AbjBTITG (ORCPT ); Mon, 20 Feb 2023 03:19:06 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFBA611EAC; Mon, 20 Feb 2023 00:19:03 -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 0F1DD24E2C2; Mon, 20 Feb 2023 16:19:01 +0800 (CST) Received: from EXMBX061.cuchost.com (172.16.6.61) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 20 Feb 2023 16:19:01 +0800 Received: from localhost.localdomain (183.27.98.67) by EXMBX061.cuchost.com (172.16.6.61) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 20 Feb 2023 16:19:00 +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 , , Conor Dooley Subject: [PATCH v3 1/2] dt-bindings: watchdog: Add watchdog for StarFive JH7110 Date: Mon, 20 Feb 2023 16:19:25 +0800 Message-ID: <20230220081926.267695-2-xingyu.wu@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230220081926.267695-1-xingyu.wu@starfivetech.com> References: <20230220081926.267695-1-xingyu.wu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [183.27.98.67] 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?1758337489599880652?= X-GMAIL-MSGID: =?utf-8?q?1758337489599880652?= Add bindings to describe the watchdog for the StarFive JH7110 SoC. Signed-off-by: Xingyu Wu Reviewed-by: Krzysztof Kozlowski --- .../watchdog/starfive,jh7110-wdt.yaml | 74 +++++++++++++++++++ 1 file changed, 74 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..05ba7069e29a --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/starfive,jh7110-wdt.yaml @@ -0,0 +1,74 @@ +# 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 + +description: + The watchdog is a 32 bit counter and has two timeout phases. + At the first phase, the signal of watchdog interrupt output(WDOGINT) + will rise when counter is 0. The counter will reload the timeout value. + And then, if counter decreases to 0 again and WDOGINT isn't cleared, + the watchdog will reset the system unless the watchdog reset is disabled. + +allOf: + - $ref: watchdog.yaml# + +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 + +unevaluatedProperties: 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"; + };