From patchwork Thu Oct 10 15:42:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13830461 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8796DCF11FE for ; Thu, 10 Oct 2024 15:43:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0469310E0B5; Thu, 10 Oct 2024 15:43:41 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="cTSCv4h5"; dkim-atps=neutral Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010066.outbound.protection.outlook.com [52.101.69.66]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0D46D10E0B5 for ; Thu, 10 Oct 2024 15:43:40 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wmn3eKQBdDHdhvQrnYdqWujkyg0CPVv/28JrC/BgdjKlKAlh7NLOVykYhLsaP08r26vCxHH23HIAcDKgGTWFGFeMsn2iPZjEjA/IhSvqVwGLZC0HM6CS9bTS61fc038SvMYF5yAUwzf9X/PoKEZkME+W1lE3KN2iFrNEX67zlX+hdBryTjOEgwDthxv1e3Q5klfd/UAz1d3p2uBKnRhkNgq+mQEClIr+KE/hu0uW+8CPL46eG8RsErSxHUDhh3/LKdmJqbHFDqu74KOM6wzAKkNc+Cfz5Fy54asvr9pyJxPiTnZCByOEd/99ELT0D42SXR9OG924WcS8H363mwi8JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=iP0VBvZWlThDWEJW7MVOfXrUwg9EzkapLRwaqgJ2VI4=; b=hQrnimJPQg2KfwmgxmLEblBT8wp3SmwmCOkeH+5ly3FoSWzJ24IVeaRemhxB80zjSxW7HiNgeUYeOh/Jd+ZxAvM1dsOS3jCfuaODvFFRNAYvOeIRAoqi/uomRRLEWoNUyE0xi8dORrlmF/UTce/t1WnbLM3TivRklilKiQmdUJAtPr637INelGew7UHQf/Z2Qjn3IHaSotxCaub+gRg3iXKsGqZFV9ZtAJNTEpyiRGmEYCKjHwMK1Y1ild6091avLGzQEQsRNU0gvfDVXyiVVkfLQ3UKsNOxqIEua6AeJFD11cAC0hCHbv17ips+tud+tjEUsqi0tv6USv3xB0ZykA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iP0VBvZWlThDWEJW7MVOfXrUwg9EzkapLRwaqgJ2VI4=; b=cTSCv4h57J0w+fA+rcDW8rR9Uv0boh9v2cV9hJnpGk49o4+R50IM+DBtJe85mNmJaJYm/iGhUdikw4LzhPRJ4/fUX8EBW44qRbpbjzBnFc+HCjJ5WrPvQC3T9yb8CmmxpW1n4lUZD2uR1hbPS324kjKKc/iOmh/ZtNe0o8U+WP8G2irTB1tnUbDprKHkTv927lLe7Q2chobj0S4Y2w5V+0XZdYdRzd1Cca12YSD1ra4gdjfOk8PMHIVXW7nlBiYjw/ydhYQ7Vai7MD/VQpasfMT3icNHPUf6pXHwwuh+uKs/7gDcYJuAXB7xrjwWU18xf5FY+0yreVsYihTJdz3/xA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DU2PR04MB8984.eurprd04.prod.outlook.com (2603:10a6:10:2e3::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.18; Thu, 10 Oct 2024 15:43:37 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8048.013; Thu, 10 Oct 2024 15:43:37 +0000 From: Frank Li Date: Thu, 10 Oct 2024 11:42:41 -0400 Subject: [PATCH v2 4/5] dt-bindings: watchdog: convert zii,rave-sp-wdt.txt to yaml format Message-Id: <20241010-zii_yaml-v2-4-0ab730607422@nxp.com> References: <20241010-zii_yaml-v2-0-0ab730607422@nxp.com> In-Reply-To: <20241010-zii_yaml-v2-0-0ab730607422@nxp.com> To: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Daniel Thompson , Jingoo Han , Pavel Machek , Srinivas Kandagatla , Wim Van Sebroeck , Guenter Roeck Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, linux-watchdog@vger.kernel.org, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1728574994; l=3314; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=YTMkOF4Kh/3dRghFGNF1mfy0yW9xeMU2lmhKnFlPqW0=; b=XHFl3NL0xxCtKxYLv5Qd4+14hjtP9eeSmYfn91gmoifmLN/uVrVaSyldjg39ck7yd77pojhUU 6fcO+UIE8DaD2TsPGKaK0qZGmWZfXlr3cCI44d4b9HdVzoIQetqo0Ag X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ2PR07CA0022.namprd07.prod.outlook.com (2603:10b6:a03:505::24) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DU2PR04MB8984:EE_ X-MS-Office365-Filtering-Correlation-Id: 3bb8f580-7d2b-4ab8-8903-08dce9424e5a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|7416014|376014|52116014|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?GdWcsTmrfo4sf+KGJuj+NBwZ63QiOX5?= =?utf-8?q?9yQC5/4BdmNqg+rzcBt9Erc8iBpUOAIWGUhambXE4FikHb0N+ZDwLv5m53XZpy3Ma?= =?utf-8?q?ACs1lcKa24In88ymMxbSN3FmxIeKTBkFBnvSYr/pl76M23C4DKbZt8526FZy6heDm?= =?utf-8?q?4zmQGIMypbjU8LT+pYTPPTjYvEr03mrkrVJcdWplSunGqZNigtqs6DSAIZXiWLpa5?= =?utf-8?q?iKXqEuriXZa2n8kFMgO+SlXvBfaAtisvnmDcdS4ft+0f/dj5qe4t8jN91JYGgVdVN?= =?utf-8?q?9u/Jb/IIoo5L/LFtf0od7K/T4WHdlBd83djCtTKLAe359rOPSsnOQH6vp6OPPGu/v?= =?utf-8?q?WeMEhgRgESR7V/uPiM9Y1/4k/1pZEJrmAsW9clrW7ILZSJgdxUhARcg98H+RJ7Buk?= =?utf-8?q?Gs8OLKAexdKOHlJtYONq9kdPoKcTS96AGnSIlXwsurenq4i30clhJ/j9GtfwJLYMy?= =?utf-8?q?Dm083zRH6vc4H8X2bmeMaFFdcHoh8ehrtyGBsJGGnfDEqo7Z8rm5HXrWTDkrdc/S+?= =?utf-8?q?e/2bmiQEL686BYexAgYaAop9d4krLRLmDhy0xo2XxXZOPcqMQfLeR7RWwGI/tXXpv?= =?utf-8?q?E65ncnd2INycQwoLYShf5mgX7hsulWmaKpabixnbkSbqh3UTIdOvbx2kpIZY1G3/U?= =?utf-8?q?X2d5ozudzrWob+kOhkk0BhwFCRCqVkwRLQMgE/dTMmu7orxUgys49ckCTjzTfYjYc?= =?utf-8?q?uCVeoayeLk1K+b3Aw0FZMo09CInP5A4bB0RTjKWSIuBkzbVSic6QXtTQZpWD1gVRR?= =?utf-8?q?D0LhuDkg96eRw71blJdMrytpK7leFM2v7w7N9BlAbXd0Yx3OFTwLCxQN5HeEySsdl?= =?utf-8?q?UKufDiGUDk3SxED1xN6yzgnt9Q4l4DNkiTvAPHP3A8indBe3vOH4+43eoklBeuziq?= =?utf-8?q?DRTG5vuKRp4CSW5uQNCuPk/2CBeetL9jT10VfP0AbNSFS0lY7lU/zuvfy1ytlo4PZ?= =?utf-8?q?AenywpkXLznQRwtBOhG1+qIbXNw54I/fXFfpCxgqTpxyhEIOFyEefE+Xbjwj9BLf9?= =?utf-8?q?DnYXjLEUOnGZuKb3rd/Sjp2/rsOJxWvRZ1104SQB2lGcg+Pa0AT6xO3B9sHDjTFns?= =?utf-8?q?8uXZaTix9jhCan5S9TvHifWnVBvS0H/lBWBc6NE7jqNynETdu1gXRFebxW96KwUl6?= =?utf-8?q?LPe+i0NaoJZWePZfBzdLqvnyhqXn9WflxkL/aIaggEEUqhD+ktr+XzxUFZR4lFwL5?= =?utf-8?q?iFX/+mpGoj6HawvwAJhoMacqlbvMJEgYn2Pq6kdi6FZfnP3El2cF7bdD0=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB9642.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(7416014)(376014)(52116014)(1800799024)(921020)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?u0ZMfrlO35VWPTiSxVzWSo23YFWr?= =?utf-8?q?WmMsMNRpheZFlSaQec+brFWBBmce9IIc0G/h91gBZZgmLdXoHFbvAIQe4lxMmJo2T?= =?utf-8?q?/E6ceS0tQbTTY11ul23waUJIbaVug3xxupb0nXK8tl6vZrEQLlffQTRJuKtU6vwLj?= =?utf-8?q?+RXLpBfGZJ72QW1ncxPBRiLUem4wPLTxTwZRZyXpH8bArCnRruJF/oBG33ayVKxHd?= =?utf-8?q?hvA62TLiKENRq32hWbWGAEqnKDVY6re+LuBi0d0i/ccoUmukBPTZhBMIegyQJoPrf?= =?utf-8?q?u2B+8tUj67lhTOb1MG+obc6de+dNVWLWUhDWvRiEd9NSxyymzeC5B5bwoA4DlvcHU?= =?utf-8?q?K7FZSDwoMpukbbR7N0RUc7JeeGv3EKedttCIZgfLxbnmEF2vISuKobf7WmdRjXcqc?= =?utf-8?q?KXUVW7nPmwboavDho16DVz6jdk/80qQPm5iWWSeB9PXC2/lMYRdgmWO7ZVyi51FBD?= =?utf-8?q?nobyiX/Df9PhqK76dzOIXA23XoEXclZyA+6kJW5vAdbvPzUtZe0XhAYIQApP3oDBa?= =?utf-8?q?zl4XC/rV1m2dvh0ad14A/5YxKhEoCnFMlpEnUefuS/4jzDMU901vrrSHbyLjqZl9D?= =?utf-8?q?klyJFgNGovTq2tZZbigTJcuGP/XDHVgy0k8Q1HVU44IkrHWz9e8Fa6qubr8MixwZ9?= =?utf-8?q?T/Ivefu1VcpRjAq1sFmBPR/kmGrQzohdu5Vg5Ck4NTIONTmnJF57W8l3qZ9w5k+B6?= =?utf-8?q?Ej+d8a+BnJn5VLUlev19uYlUTPN7bXr7ordiNgUuSLNnisECZsCqQ0fIykLWGw1us?= =?utf-8?q?ag8SyCHKsQnOLN8IYUE3PI5QTNedczp1SyR0jBN2KYDaW7ph7dQIpE8bzmWP7RMf/?= =?utf-8?q?N5HeaQD5JhQAuRrFVzwpF1gmlrTzQL+7O6n5O9sWkG7muEGcLbC/b5h0OesPqXNJ+?= =?utf-8?q?TvpFH0+jK09Y+WcPeEA+HAdgN896deR6er566EcQgLlWI24/oZhXgxkcRZ+CRRjdK?= =?utf-8?q?tJeInxNkP/w12RapAKHe+GvX5iWKBHVgcu2nW0TlMhHVWkZNNxH9KdmOm5a04zhHe?= =?utf-8?q?zIs+9jI/A6cLS2kTSNFUvWBCiQyL2tgN9JlaHw5lliqBEXH+faBrn7No+onu4jkZc?= =?utf-8?q?jhPnZPm+3qAp8FCKPJXsTDf7ihjYBvOBaKHmQ/YmkQDSWPmP4wkUbvbb9yI//0YII?= =?utf-8?q?xXBSX22kTVs1u/kFCTCSALGSZ5i5tg2O/0RE+byMmfrd/qnZPnQInn7q6mwho2iPo?= =?utf-8?q?MT/gMkpiuCKJByl4RGAx7T+YOnXAiLa77h4KSkWfRY4uwtyzTqNks2Uf9+qStE+Tc?= =?utf-8?q?XzkSxRRncji5LhHFI1sHdhpkWwdNG+1n3J+t/D/K+6AGBt/VB7Up9Wa/Kp8Xhett4?= =?utf-8?q?EcLEFffMYMFXWdkYMwmUW+PSyJJ+Td7Cw1rjr1kNe7qDqjdjFpj0r8wvwVOYPkArK?= =?utf-8?q?Rzer0Z/QAG5Hoc9T/AL2eFM1mz76Bp/+nevUZ3fBJ/shhpXTR0/4hN45JVn4TpETn?= =?utf-8?q?bwuXgmrbrzuQcvhpEfb2rN+r1iwR8Zpmp46/scCbiqEp1P68mg4HmbF4=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3bb8f580-7d2b-4ab8-8903-08dce9424e5a X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2024 15:43:37.2363 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: m9dg9yCcEuLFGRGJKzA7GTLcnrE0ZCy/IQP+4hca74lMaIWnjrXhSTdprPvW0Z4dxx4pn8+vBx0SnqexL2uIIQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8984 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Convert device binding doc zii,rave-sp-wdt.txt to yaml format. Additional changes: - Ref to watchdog.yaml. - Remove mfd node in example. - Remove eeprom part in example. Signed-off-by: Frank Li Reviewed-by: Rob Herring (Arm) --- .../bindings/watchdog/zii,rave-sp-wdt.txt | 39 ------------------ .../bindings/watchdog/zii,rave-sp-wdt.yaml | 47 ++++++++++++++++++++++ 2 files changed, 47 insertions(+), 39 deletions(-) diff --git a/Documentation/devicetree/bindings/watchdog/zii,rave-sp-wdt.txt b/Documentation/devicetree/bindings/watchdog/zii,rave-sp-wdt.txt deleted file mode 100644 index 3de96186e92e6..0000000000000 --- a/Documentation/devicetree/bindings/watchdog/zii,rave-sp-wdt.txt +++ /dev/null @@ -1,39 +0,0 @@ -Zodiac Inflight Innovations RAVE Supervisory Processor Watchdog Bindings - -RAVE SP watchdog device is a "MFD cell" device corresponding to -watchdog functionality of RAVE Supervisory Processor. It is expected -that its Device Tree node is specified as a child of the node -corresponding to the parent RAVE SP device (as documented in -Documentation/devicetree/bindings/mfd/zii,rave-sp.txt) - -Required properties: - -- compatible: Depending on wire protocol implemented by RAVE SP - firmware, should be one of: - - "zii,rave-sp-watchdog" - - "zii,rave-sp-watchdog-legacy" - -Optional properties: - -- wdt-timeout: Two byte nvmem cell specified as per - Documentation/devicetree/bindings/nvmem/nvmem.txt - -Example: - - rave-sp { - compatible = "zii,rave-sp-rdu1"; - current-speed = <38400>; - - eeprom { - wdt_timeout: wdt-timeout@8E { - reg = <0x8E 2>; - }; - }; - - watchdog { - compatible = "zii,rave-sp-watchdog"; - nvmem-cells = <&wdt_timeout>; - nvmem-cell-names = "wdt-timeout"; - }; - } - diff --git a/Documentation/devicetree/bindings/watchdog/zii,rave-sp-wdt.yaml b/Documentation/devicetree/bindings/watchdog/zii,rave-sp-wdt.yaml new file mode 100644 index 0000000000000..de0d56725dd40 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/zii,rave-sp-wdt.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/zii,rave-sp-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Zodiac Inflight Innovations RAVE Supervisory Processor Watchdog + +maintainers: + - Frank Li + +description: + RAVE SP watchdog device is a "MFD cell" device corresponding to + watchdog functionality of RAVE Supervisory Processor. It is expected + that its Device Tree node is specified as a child of the node + corresponding to the parent RAVE SP device (as documented in + Documentation/devicetree/bindings/mfd/zii,rave-sp.yaml) + +properties: + compatible: + enum: + - zii,rave-sp-watchdog + - zii,rave-sp-watchdog-legacy + + nvmem-cell-names: + items: + - const: wdt_timeout + + nvmem-cells: + maxItems: 1 + +required: + - compatible + +allOf: + - $ref: watchdog.yaml# + +unevaluatedProperties: false + +examples: + - | + watchdog { + compatible = "zii,rave-sp-watchdog"; + nvmem-cells = <&wdt_timeout>; + nvmem-cell-names = "wdt_timeout"; + }; +