From patchwork Wed May 3 12:10:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bharat Bhushan X-Patchwork-Id: 679074 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 17D73C7EE23 for ; Wed, 3 May 2023 12:10:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229902AbjECMKs (ORCPT ); Wed, 3 May 2023 08:10:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229916AbjECMKq (ORCPT ); Wed, 3 May 2023 08:10:46 -0400 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13AF25B8E; Wed, 3 May 2023 05:10:44 -0700 (PDT) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 343A6lJ1025999; Wed, 3 May 2023 05:10:27 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0220; bh=2vZi8/+FKJsKcT0JofUxO1MegK0+ufo4MiiXJuidI8I=; b=iyKJ4xIWdWi6pPRHmt09HT68mkoNDmcVdOoYH10UU1WG3a6K6Gt7LScqwZ63EQfIyBcf 2cw2BI7qZEEh2CSasEI9s+9Y7z7V0priD+/mRLqfZ5Fm/X93WF79MW/nh8wO+flQ4fiK rm6HuuR3lVt+f4leWT9h1eZk0y3rl7U2N0duqxwYY4SWmetrgmzcYrM1X/9ZlFLYAnkn /iJy8rmVhUMtBHqjx0vncEUht1pnaA/285yavA1uiARRCJwflPlnd6bIItTcasX8cHg2 4zsJunacxk0b51b/IOHQRaTrqG8JMheobsEPldvOIfUXKgpT+Cz1KD/hjMGohl9x7N1z tQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3qbnjn0bmf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 03 May 2023 05:10:27 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 3 May 2023 05:10:25 -0700 Received: from bbhushan2.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Wed, 3 May 2023 05:10:23 -0700 From: Bharat Bhushan To: , , , , , CC: Bharat Bhushan Subject: [PATCH 1/2 v5] dt-bindings: watchdog: marvell GTI system watchdog driver Date: Wed, 3 May 2023 17:40:15 +0530 Message-ID: <20230503121016.6093-1-bbhushan2@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: 0DXz7SRAy0HMyjAw8b6rhsr6KDlo5q5M X-Proofpoint-GUID: 0DXz7SRAy0HMyjAw8b6rhsr6KDlo5q5M X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-03_08,2023-05-03_01,2023-02-09_01 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org Add binding documentation for the Marvell GTI system watchdog driver. Signed-off-by: Bharat Bhushan --- v5: - Added wdt-timer-index property - Get clock frequency from clocks/clock-name device tree property .../bindings/watchdog/marvell,gti-wdt.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/marvell,gti-wdt.yaml diff --git a/Documentation/devicetree/bindings/watchdog/marvell,gti-wdt.yaml b/Documentation/devicetree/bindings/watchdog/marvell,gti-wdt.yaml new file mode 100644 index 000000000000..e3315653f961 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/marvell,gti-wdt.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/marvell,gti-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell Global Timer (GTI) system watchdog + +allOf: + - $ref: watchdog.yaml# + +maintainers: + - Bharat Bhushan + +properties: + compatible: + const: marvell,gti-wdt + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + wdt-timer-index: + maxItems: 1 + description: + This contains the timer number out of total 64 timers supported + by GTI hardware block. + +required: + - compatible + - reg + - interrupts + - wdt-timer-index + +unevaluatedProperties: false + +examples: + - | + #include + soc { + #address-cells = <2>; + #size-cells = <2>; + + watchdog@802000040000 { + compatible = "marvell,gti-wdt"; + reg = <0x00008020 0x00040000 0x00000000 0x00020000>; + interrupts = <0 38 IRQ_TYPE_EDGE_RISING>; + wdt-timer-index = <63>; + }; + }; + +...