Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2297787rdf; Mon, 6 Nov 2023 09:54:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IEkfws3wfcD1BRWKpwj+aO02tdzHiNmcXLXxr+2F+grhbJMVkrLJf/KB+MJtae2bQILi7jW X-Received: by 2002:a17:902:e2d4:b0:1ca:8abd:6b52 with SMTP id l20-20020a170902e2d400b001ca8abd6b52mr19542285plc.69.1699293289419; Mon, 06 Nov 2023 09:54:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699293289; cv=none; d=google.com; s=arc-20160816; b=iXvmt9wKmsvWemaPGMDDkxBNB6oNXy4qBA2ksRP+azB/MwcwyruTP1bOcb9dRD2tVa iZb9yfGh1ZMNLVjpvm/0oyIl8t8Boz42HDTOO6O1m+bhsb3qWPp4NJuZgCiE3duAuaU+ CntmfU5Q+r9aGwVMB7SLeFSKDYHT0pUuOAaZ5gEQ7RUNLjQm8bJVWisThxDajOAgkrHr Gs5j3T9imjOjlnZ8AseDoE1IGdNkcrpAsD2/zDO++iBfQMuQGD9+HNjPEE01JqDi1Y6e 3jHBu9wuGfweBN8XbuY+75KHk+O1TAjjHoQlJQC2JWC7O2vZ9NJuV8fdavarErqCKTr4 BnRA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=IzKV7qWrlJmcquvKy+a5u08BQoeMEeArYOHGsnCX41Q=; fh=Wmcxhsw4HMgxjC6s7qpiEy4xDlg+iS21p5EW5CNX3TQ=; b=FCr2B2ZEnwEVwER5wsgNV242nMWAHso9oZO7ntzfYqzagHdyklUMv6ZmFHMfAwqNuc 12dXEZYvLL08BptuLrcXrO6blICo932adZbm8QamYoF5UPXhiXyAk54WBP5+xfFak7Dh y4P8r1mAdKLGg+Odts8qa9huvYc3UDUAygkndAZ0IheMAul5YXcMIgbZ6fbDlWLAaSiU zREhF26qfP0/eo3ajKgwhS357dfjnApfT9iffmxmqNV3EXSxyXa+fprz2NAB0yJqfTY3 5PLwWPN69/a+fLcm9saBFYX7+/NkE2NOUwd0W3ZWOWKpB3D7y+LFq2vfjwnA7hQYb1Ku iXnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GrvqLEQv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id u8-20020a17090341c800b001c3ea2bbebcsi9626695ple.322.2023.11.06.09.54.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 09:54:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GrvqLEQv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 355C68087FFC; Mon, 6 Nov 2023 09:54:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231983AbjKFRyh (ORCPT + 99 others); Mon, 6 Nov 2023 12:54:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231940AbjKFRyg (ORCPT ); Mon, 6 Nov 2023 12:54:36 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 598CD99; Mon, 6 Nov 2023 09:54:33 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-9d216597f64so719142766b.3; Mon, 06 Nov 2023 09:54:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699293272; x=1699898072; 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=IzKV7qWrlJmcquvKy+a5u08BQoeMEeArYOHGsnCX41Q=; b=GrvqLEQv1v2dUwM7sFYuMjXccaGR85URCxR+FytrEQTxDduref6KkzQsJfgNv5ElKO VPZSy8bpCR8WbU+x6rMGdK2IRqDO2B/JNz4PtFau6cq04GN62y08AMQeUx8dAT0wKWUA r6lRhJSjLvc2y7LWQkushvMSsCymw4/ZosZl8LraWGq3EbNVTI3HILnsH/Zx1B7wyanE 25c5ZeANAXK6VMrK/fCAVjzesWFwluLKdhrTbkfmBwfQJ6pPLB5DDExoFwW9gU0D4H2T 6Z5Q574sYVHSbSAZU8dFjMkVO+ODemc9ugjVeH4XIpz0uVpnA6ssZibI2cIf+rJf1aS4 HsGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699293272; x=1699898072; 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=IzKV7qWrlJmcquvKy+a5u08BQoeMEeArYOHGsnCX41Q=; b=W0m9YB7qEPBBydhlp6Iv4TSk1sukM1AGWIUo2TVD4wYrkrC0NfKn7PgTTCVeHUlpVK bDio14E38m91bjXG3BTkqDVkPYx0tsfRrQ69aqIdr4Hl/vwLCQn0ryia7Fom6Q7VQpSb FkuV6em/y1+AVHkEAS7+tf+1ArVl6tsPuzv2WotNzNihwcNVUPjtbFZdJ7Sh5Vz0XLxm JcEK73Vuw5Kr7sab56gEuWpEIFn64McmZvg9OCFyr+bPqOmUH1IigcO/1qQS8dmVktoa Xs1oloPyAfUQI/c5mfM5mCm1VQ9sHBVnTLjT02EA5zyuviiUMUJACjzOAn/M65q/uNS4 R9Lw== X-Gm-Message-State: AOJu0YxWIDPOBJrEMeVryMteJQOeMudBlS1e1Vfu4QHkEH/T2IcxuG5V 8seF9GjvaPzyUhgZN1ZPrbg= X-Received: by 2002:a17:907:2d1e:b0:9c0:1d65:68d9 with SMTP id gs30-20020a1709072d1e00b009c01d6568d9mr14416837ejc.7.1699293271544; Mon, 06 Nov 2023 09:54:31 -0800 (PST) Received: from localhost.localdomain ([2a02:8109:8c00:3664:6811:f78e:de5c:331]) by smtp.gmail.com with ESMTPSA id dx15-20020a170906a84f00b0098e34446464sm91217ejb.25.2023.11.06.09.54.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 09:54:31 -0800 (PST) From: Nik Bune To: wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, skhan@linuxfoundation.org, stigge@antcom.de Cc: Nik Bune , linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] dt-bindings: watchdog: nxp,pnx4008-wdt: convert txt to yaml Date: Mon, 6 Nov 2023 18:54:28 +0100 Message-Id: <20231106175428.162256-1-n2h9z4@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 06 Nov 2023 09:54:46 -0800 (PST) Convert txt file to yaml. Add maintainers from git blame. Signed-off-by: Nik Bune --- Changes in v2 (according to review comments): - Put allOf: after maintainers: block. - Put unevaluatedProperties: after required: block. - Updated example to use lower-case hex. v1 patch: https://lore.kernel.org/all/20231104182813.80055-1-n2h9z4@gmail.com/ .../bindings/watchdog/nxp,pnx4008-wdt.yaml | 34 +++++++++++++++++++ .../bindings/watchdog/pnx4008-wdt.txt | 17 ---------- 2 files changed, 34 insertions(+), 17 deletions(-) create mode 100644 Documentation/devicetree/bindings/watchdog/nxp,pnx4008-wdt.yaml delete mode 100644 Documentation/devicetree/bindings/watchdog/pnx4008-wdt.txt diff --git a/Documentation/devicetree/bindings/watchdog/nxp,pnx4008-wdt.yaml b/Documentation/devicetree/bindings/watchdog/nxp,pnx4008-wdt.yaml new file mode 100644 index 000000000000..35ef940cbabe --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/nxp,pnx4008-wdt.yaml @@ -0,0 +1,34 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/nxp,pnx4008-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP PNX watchdog timer + +maintainers: + - Roland Stigge + +allOf: + - $ref: watchdog.yaml# + +properties: + compatible: + const: nxp,pnx4008-wdt + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + watchdog@4003c000 { + compatible = "nxp,pnx4008-wdt"; + reg = <0x4003c000 0x1000>; + timeout-sec = <10>; + }; diff --git a/Documentation/devicetree/bindings/watchdog/pnx4008-wdt.txt b/Documentation/devicetree/bindings/watchdog/pnx4008-wdt.txt deleted file mode 100644 index 4b76bec62af9..000000000000 --- a/Documentation/devicetree/bindings/watchdog/pnx4008-wdt.txt +++ /dev/null @@ -1,17 +0,0 @@ -* NXP PNX watchdog timer - -Required properties: -- compatible: must be "nxp,pnx4008-wdt" -- reg: physical base address of the controller and length of memory mapped - region. - -Optional properties: -- timeout-sec: contains the watchdog timeout in seconds. - -Example: - - watchdog@4003c000 { - compatible = "nxp,pnx4008-wdt"; - reg = <0x4003C000 0x1000>; - timeout-sec = <10>; - }; -- 2.34.1