Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2249460lqb; Mon, 27 May 2024 12:59:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX1LmS46tS+3GkcGRv39vRu/uEY4Qj/EngVjG7ejw7YispBPHhkiIIYClXlQXfkHJ9zJeADJQPPE5soDGWb5ZUdiLaZZldy+kXJi69XmQ== X-Google-Smtp-Source: AGHT+IGEWdxjXUSDcygMj1eje1cT+4xuGCL73W4Y+tB2lGv5H1S9cz4fJgNzu8nc3R7EfPM+P/mM X-Received: by 2002:a50:cd1d:0:b0:579:cd46:cbf3 with SMTP id 4fb4d7f45d1cf-579cd46cd7emr3127156a12.30.1716839961161; Mon, 27 May 2024 12:59:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716839961; cv=pass; d=google.com; s=arc-20160816; b=x7tsxRwBlD4sFf2PSnDIeqnSlVD5Tc0JylXs4+EZCrO8uxodeBx2EdKjO74Wg4SHwa dBrMmsiq1Yyc6p8PiBwyJ83UVND30ZEAVqniFeV3iMuSWJZIVcvZlm+FTlajwlURoiqM 4Na4twSaTvhpRrzpDK5DTQRaesEtiXTfzcnXJuAhynUQZzBUksHNllVY7Z1W2BDvOYvC Vm3JogLdrsjI1x99DGNiN517sPheUszh81qD5Nodszb6K275riIV/Zyn1kKM2M9kB5ov ZCYoGdwLnXr/vjxsufuSelRiEwQAHx6jJsprT1VgtZ8mrTHWNYCwDdp7xCD5eKeyeQ94 zaQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=7aZbVHWf8PRPM9u8We9otI6H/hby/EBBNdp17XPutA0=; fh=H1rFKMITiiTYFr5KCjrLnS9iFXwjpbA+vPbTU5x0Xm8=; b=mPig9cprDVGEc6V0dvdkobvVDn+LgbjFw/n9+LtG9actl39tJW20oTlIKS2Gm5glLc 7F8BKAQHGYE9k38sKNjP5VDe9dSah2dCD++z0yHVTxcxy+x9SY74Nt0j40deZ8MZT0TW hUe5loneZa9bKE5p8haYMwyLfbEivhCqCRfcVJUPRsnGDGhGhJVcs4gNXdHnPSNnol7n cak4hPaNJ3RvbnlbhtYvblNIeTqylO6Aw9KWew6QVAe3dWQk1izWRs3Z0QlBBArJXPRs qAHZ3wfWRhCCNFyq6mhQtMa0sEzdncvTYB9Pu/Je4zPKhMNuNz+6OzsmoscUDh86fU35 xreQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=USf5Xh2X; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-191378-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191378-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5785245f73esi4301041a12.311.2024.05.27.12.59.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 12:59:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191378-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=USf5Xh2X; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-191378-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191378-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 878291F21FC1 for ; Mon, 27 May 2024 19:59:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89F3B2556F; Mon, 27 May 2024 19:59:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="USf5Xh2X" Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50C98161336; Mon, 27 May 2024 19:59:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716839943; cv=none; b=e3X4hWUJKvyc0fgWZcbX1W8NwuepHmieiAoK+UtI7BpfMHWVNcNwBQzZdbWY6Kf4WLtIbFaNZj/3wgirPeWalq6+mxNiZYnzNACd6ChhpytSBmCVl+1m0i51RImz4mAc/4YXGm8evyHGBJ93XB88QkSxUrkXZwTNi85wifYS5ys= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716839943; c=relaxed/simple; bh=7HwlJsTk7wTCHlcGXASmOSkMO2SL/hHsk/04XDmFPUs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UTiONIIttninCRJxR/0Qf4FbrtSJCsWCyLTW4W8RNZi+OKT3lQaRun/f4SK5At9daJNy+CXIJUV8IqdPxcHPKL3xSJpUofvem3tDI0gleCyGIs67JYl1dmo3pZuDXqvaO7v6X+VTTvg3BscJ5fNpmHDJIT+Vi5OJJWLd+YQDWUA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=USf5Xh2X; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1f44b5b9de6so1075725ad.3; Mon, 27 May 2024 12:59:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716839942; x=1717444742; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7aZbVHWf8PRPM9u8We9otI6H/hby/EBBNdp17XPutA0=; b=USf5Xh2X9HOs7GftdY9No9RwUnyBY1YGDhlcudTAxxNFAvoyICGFlTyqdHuYINzXzD kxYQ+t3IZezEFccakPmZ77hajVz0NYFjiSJpAAlvu/lLrWaj0QwbKWTBHpCQymyf+G9t Ww3pZHOzThpBAfBgP7yjOJqifmRc1lps+xhj0nmjdIa6MZ2OWwkzZe35L9UmaE/ct8VW 179xQE2ehS54XecoBee/jK+wXIQVzGlI87I0rwz6BaNCqjtG1zEGCMB/XoC/JKU29bSE 2eU5dH+QM5kgCIsVb6dH605K+L4OMAOy/cxpERGCydClIon87/CNUWEd42OaR47RHXU3 kTwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716839942; x=1717444742; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7aZbVHWf8PRPM9u8We9otI6H/hby/EBBNdp17XPutA0=; b=N4BKbibrcq51tSatdOdcq+TCHl+nTZmTokboYe3Bnx4rkwgUAAry5IMkwdpg4x9qtl TC/D5y79vVtYLWLjqEyIfggs/HqtBZ+Xkx3cY0hWh4g8jxDDykHkZpDUB2R8aqv/wrGO 7zGzjQnSn9j35ocR2uF8vzmOqDl18idnZUok6S6HPg2MxghoHZzmFN43/J3gkIja/AZp ENniJCasiKzj7SRRgb2M4Rs86lVYzI3pmb2jVCdrv5wfVWESuMVGgIqy6xAvm5y3iDCk 8FyoZtxKJdO9WBeAhPqiN3PUBGcJSNKs1PSE7a2sygnQCz0V11gvoaIO3ofqLo/qmsY3 Ujrg== X-Forwarded-Encrypted: i=1; AJvYcCXZCufx/uchB13l2rX2Mjw+ElnHV/J24aZxL44+IDUarEzwakkdkrdpqBHJaAXZ3Nn8HUBseMUvwSGGaqGUXZPfi+sHK+kjyuLxPbC0wsiQMyf6Posapnin+vBLMJ9l+ko4uYuB3Ip9uw== X-Gm-Message-State: AOJu0YwVgFyMLsbBcmXwtmtCBe6whbOxia1m/5syvNHDFKl76tcKq6ym glK/4hsrKb30vpR+ggZSr3AHwWxWSpCcKrN/+DHsJC3fGwTlztnjuNQz5+ta X-Received: by 2002:a17:903:41cd:b0:1f4:a45b:8429 with SMTP id d9443c01a7336-1f4a45b8a85mr30853005ad.27.1716839941631; Mon, 27 May 2024 12:59:01 -0700 (PDT) Received: from shresth-aspirea71576g.abesec.ac.in ([117.55.241.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f47596cae0sm42664875ad.237.2024.05.27.12.58.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 12:59:01 -0700 (PDT) From: Shresth Prasad To: wim@linux-watchdog.org, linux@roeck-us.net, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, javier.carrasco.cruz@gmail.com, Shresth Prasad , Shresth Prasad Subject: [PATCH v2] dt-bindings: watchdog: img,pdc-wdt: Convert to dtschema Date: Tue, 28 May 2024 01:28:12 +0530 Message-ID: <20240527195811.7897-2-shresthprasad7@gmail.com> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert txt bindings of ImgTec's PDC watchdog timer to dtschema to allow for validation. Signed-off-by: Shresth Prasad --- Changes in v2: - Remove blank space - Add item list with description for clocks - Drop description for interrupts - Drop properties assigned-clocks and assigned-clock-rates --- .../bindings/watchdog/img,pdc-wdt.yaml | 55 +++++++++++++++++++ .../bindings/watchdog/imgpdc-wdt.txt | 19 ------- 2 files changed, 55 insertions(+), 19 deletions(-) create mode 100644 Documentation/devicetree/bindings/watchdog/img,pdc-wdt.yaml delete mode 100644 Documentation/devicetree/bindings/watchdog/imgpdc-wdt.txt diff --git a/Documentation/devicetree/bindings/watchdog/img,pdc-wdt.yaml b/Documentation/devicetree/bindings/watchdog/img,pdc-wdt.yaml new file mode 100644 index 000000000000..a88a27354505 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/img,pdc-wdt.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/img,pdc-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ImgTec PowerDown Controller (PDC) Watchdog Timer (WDT) + +maintainers: + - Shresth Prasad + +allOf: + - $ref: watchdog.yaml# + +properties: + compatible: + enum: + - img,pdc-wdt + + reg: + maxItems: 1 + + clocks: + items: + - description: watchdog counter clock + - description: register interface clock + + clock-names: + items: + - const: wdt + - const: sys + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + + watchdog@18102100 { + compatible = "img,pdc-wdt"; + reg = <0x18102100 0x100>; + clocks = <&pdc_wdt_clk>, <&sys_clk>; + clock-names = "wdt", "sys"; + interrupts = <0 52 IRQ_TYPE_LEVEL_HIGH>; + }; diff --git a/Documentation/devicetree/bindings/watchdog/imgpdc-wdt.txt b/Documentation/devicetree/bindings/watchdog/imgpdc-wdt.txt deleted file mode 100644 index b2fa11fd43de..000000000000 --- a/Documentation/devicetree/bindings/watchdog/imgpdc-wdt.txt +++ /dev/null @@ -1,19 +0,0 @@ -*ImgTec PowerDown Controller (PDC) Watchdog Timer (WDT) - -Required properties: -- compatible : Should be "img,pdc-wdt" -- reg : Should contain WDT registers location and length -- clocks: Must contain an entry for each entry in clock-names. -- clock-names: Should contain "wdt" and "sys"; the watchdog counter - clock and register interface clock respectively. -- interrupts : Should contain WDT interrupt - -Examples: - -watchdog@18102100 { - compatible = "img,pdc-wdt"; - reg = <0x18102100 0x100>; - clocks = <&pdc_wdt_clk>, <&sys_clk>; - clock-names = "wdt", "sys"; - interrupts = <0 52 IRQ_TYPE_LEVEL_HIGH>; -}; -- 2.45.1