Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2119861rda; Tue, 24 Oct 2023 12:59:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGBECzBCZxVMYxQotRtD1ewq9/lPVvbftOeyeabDBtMso2x0gbtkwXSHN0OYGvrgFrI+q70 X-Received: by 2002:a05:6358:3b8d:b0:168:eeab:390d with SMTP id j13-20020a0563583b8d00b00168eeab390dmr4309505rwe.22.1698177567150; Tue, 24 Oct 2023 12:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698177567; cv=none; d=google.com; s=arc-20160816; b=ahRCUlhKvwjPS43ERWlwAV4maI0Rct9g1PFcCIEyRyyPjd1uKVXsjel8EVnbAiNYzg CvofXU52vFPkHsjPq7/LRvr/f6fC5lPQjUjzWM6mDO8mDOkvkG5SIWAg1xRceEPvXrz2 vkg0TjtoB191u+nyCoZgal2QMNo5TE/bm2ibRzZzm3yXlFl7Cw6fg8cGCiui+LsAHw+E Ob1/smqs2IJDZBSi5o7NpwsI+8F4bcnacR6C/hJdYsZKg9/Z1/KFDkqF6WqGhd3xuLuv gbqXcE7HybxQ2uFxxS6xZ8eX6I2N0cWN6VAoq5cGqSdQ6EbdRGAqcCLF7ar4nnTo5yVh trRw== 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=xvLnuPOLZ0Qaew46Cu9xpus2DnZ8DmYwfr9u352DlgY=; fh=semVf3tB4wLlSTi7MtKrzV1NYdz40H707sh9OHpZld0=; b=MgCJDWt1UYzAR7s+zVRMxXCgqkMVpihDBoPhmAbUSjSrHknqTxR1Yzk+pyaPaW7g8c dXY2159JYL5UZyIWLi4u1c2OjfUCrlsilsp9oD0L3Pi12ziATX1OBgo4YjNKko/iB0Uy OOEJfjCwq8nbNNyltrEpCELit5ddhAHx+xwrizZt3/bPtZHNduqAW9SGv/Fs/V8bks4n /87ebrqF1BZI8STy9SGOmEXekz4IPno+YhghIkX9X6ITXN29nYRIlVv22Ej0eb+3R11T jnYka4f3c72Oh9wsvV90t5YXwWdkUlO7yGuisAM38jFmHYnChz1+z203aZuqv6VQNbP1 7kCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LgXRroQq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id bw38-20020a056a0204a600b005b7dd1e13e7si9364437pgb.556.2023.10.24.12.59.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 12:59:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LgXRroQq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id B4A428026453; Tue, 24 Oct 2023 12:59:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344218AbjJXT7R (ORCPT + 99 others); Tue, 24 Oct 2023 15:59:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343931AbjJXT7Q (ORCPT ); Tue, 24 Oct 2023 15:59:16 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AC48186; Tue, 24 Oct 2023 12:59:11 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-9be7e3fa1daso727971366b.3; Tue, 24 Oct 2023 12:59:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698177549; x=1698782349; 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=xvLnuPOLZ0Qaew46Cu9xpus2DnZ8DmYwfr9u352DlgY=; b=LgXRroQqBLbFPJaz8aH6LhotDjPL9nVb4mnXdAsWxBwUXpU9Jh4WTqecdSY6L0ojxr SwAay+SjV9ahI92c5lD3ZeCJoGYPPsiQrhDjJjLpGZOMolyJbPJoYf/QJsnMB/ZEPDJJ tSt/cO18RbBvMDWBszGcez8QQ7mGfjmkrf4DRavKpMESOf/720t07ZziGrEshYsuYd65 v67qPGbFTbz4GUjaPNAw1nut7GYm0HmXhhleOjPi1wINjgTN2yCK/VkdYBU+VIBUeINj 8ZKrELe4fY7SJ6S2ufYo98xLp6FENBMJHe1+nRCTKcf9ASQkfXhm0JTMzCmGUPS4ILez Tj1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698177549; x=1698782349; 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=xvLnuPOLZ0Qaew46Cu9xpus2DnZ8DmYwfr9u352DlgY=; b=A4wGe05Whipfpt9zeOmQOX49S+wFHDJOv11rd8xdoJjPO0M4zLerwLyHeXI7l+clAq FGdMcQTdn79Yfz+w4KCGSSPCufI4BawVO7NstH7eNskske9Z/rUhHlyon7pZlwEZ1R7Z 7S+fMriaWFPMG+Avit8iGDDNbQpqyopBsNARbd0KAKC0NVQz4iwe/XlthWG7/onYUXn+ 2R0m3td6VAcat+znnnffS3hjG3TAa3yY1Shmmg5VekNn/oye5WU3TMmSGx9OZRJByL+x udVexCCrox5bGQD//dXaUrqulGnrlqbkFz2/E92329k+X2wvmf4rVEyowR/IzXhupNQ+ DSMw== X-Gm-Message-State: AOJu0Yz2pGxDeIzeQve2zfsFfBI2n4+8CZP5j2AoboG+KhZslED7Gqzu SzXQQHifOwWQSKZWq4A6sR8= X-Received: by 2002:a17:907:9727:b0:9bf:5696:9153 with SMTP id jg39-20020a170907972700b009bf56969153mr10845240ejc.57.1698177548753; Tue, 24 Oct 2023 12:59:08 -0700 (PDT) Received: from localhost.localdomain ([2a02:8109:8c00:3664:918a:dd67:bc8:9f17]) by smtp.gmail.com with ESMTPSA id e27-20020a170906749b00b0097404f4a124sm8756295ejl.2.2023.10.24.12.59.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 12:59:08 -0700 (PDT) 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, m-karicheri2@ti.com, ivan.khoronzhuk@ti.com Cc: Nik Bune , linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] dt-bindings: watchdog: davinci-wdt: convert txt to yaml Date: Tue, 24 Oct 2023 21:58:39 +0200 Message-Id: <20231024195839.49607-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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 24 Oct 2023 12:59:24 -0700 (PDT) Convert txt file to yaml. Add maintainers list, based on the git history. Mark clock as required property, by reviewer's suggestion. Signed-off-by: Nik Bune --- Changes in v2 (according to review comments): - Added clocks to the list of required properties. - Updated clocks property to have only maxItems without $ref and description. - Removed timeout-sec explicit definition, as it is defined in watchdog.yaml. - Updated maintainers list from the git history. v1 patch: https://lore.kernel.org/all/20231021171323.113208-1-n2h9z4@gmail.com/ .../bindings/watchdog/davinci-wdt.txt | 24 ---------- .../bindings/watchdog/ti,davinci-wdt.yaml | 47 +++++++++++++++++++ 2 files changed, 47 insertions(+), 24 deletions(-) delete mode 100644 Documentation/devicetree/bindings/watchdog/davinci-wdt.txt create mode 100644 Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml diff --git a/Documentation/devicetree/bindings/watchdog/davinci-wdt.txt b/Documentation/devicetree/bindings/watchdog/davinci-wdt.txt deleted file mode 100644 index aa10b8ec36e2..000000000000 --- a/Documentation/devicetree/bindings/watchdog/davinci-wdt.txt +++ /dev/null @@ -1,24 +0,0 @@ -Texas Instruments DaVinci/Keystone Watchdog Timer (WDT) Controller - -Required properties: -- compatible : Should be "ti,davinci-wdt", "ti,keystone-wdt" -- reg : Should contain WDT registers location and length - -Optional properties: -- timeout-sec : Contains the watchdog timeout in seconds -- clocks : the clock feeding the watchdog timer. - Needed if platform uses clocks. - See clock-bindings.txt - -Documentation: -Davinci DM646x - https://www.ti.com/lit/ug/spruer5b/spruer5b.pdf -Keystone - https://www.ti.com/lit/ug/sprugv5a/sprugv5a.pdf - -Examples: - -wdt: wdt@2320000 { - compatible = "ti,davinci-wdt"; - reg = <0x02320000 0x80>; - timeout-sec = <30>; - clocks = <&clkwdtimer0>; -}; diff --git a/Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml b/Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml new file mode 100644 index 000000000000..4747be98b7d9 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/ti,davinci-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/ti,davinci-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments DaVinci/Keystone Watchdog Timer (WDT) Controller + +description: | + Documentation: + Davinci DM646x - https://www.ti.com/lit/ug/spruer5b/spruer5b.pdf + Keystone - https://www.ti.com/lit/ug/sprugv5a/sprugv5a + +maintainers: + - Murali Karicheri + - Ivan Khoronzhuk + +allOf: + - $ref: watchdog.yaml# + +properties: + compatible: + enum: + - ti,davinci-wdt + - ti,keystone-wdt + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - clocks + +unevaluatedProperties: false + +examples: + - | + watchdog@2320000 { + compatible = "ti,davinci-wdt"; + reg = <0x02320000 0x80>; + timeout-sec = <30>; + clocks = <&clkwdtimer0>; + }; -- 2.34.1