From patchwork Thu Oct 28 17:23:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12590645 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2EDE8C433F5 for ; Thu, 28 Oct 2021 17:25:14 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DA9B360C40 for ; Thu, 28 Oct 2021 17:25:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DA9B360C40 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=u8PKl5JavHAzMFVDALJWJA0Xshf64LRFTlmP2CSS6E0=; b=a4tNVZxKSXUJ8i AVeLtGLSX0fEmIXpQpl5lJMY0x7FjRWb8g/YI9qgP+aFkjd/3hI+7eO08qxTNEvWABpHcQoS5EtwG LfK3rLEdNXFi2T4Iczf0NshEnen/qIlVkIN2dZjOiICuq+Kj0uTLdIv7pjKf4R3xry3fpzGSUz76e sXDXufeQr3aIkI2B+2N136dv5pajk7fGU0E5wdjscuSvtQ3Nvc2r0M2+LLcqBFlx3u1SL+yk54LFv bSjhrDmnf9ywv3qhVO4XWxs/63Dh9fJXoeuwDh+YFFqEXl3cUlskvA0TzHb83YP9aAjY5V5ZuIovW uGw/PUz1vGADR5P2l/RQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mg97v-008iwN-9V; Thu, 28 Oct 2021 17:23:43 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mg97f-008ipE-B0 for linux-arm-kernel@lists.infradead.org; Thu, 28 Oct 2021 17:23:29 +0000 Received: by mail-pj1-x1032.google.com with SMTP id x1-20020a17090a530100b001a1efa4ebe6so5737157pjh.0 for ; Thu, 28 Oct 2021 10:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=x8MeLTK/d7GnlqXrAXWg0WParJO9OxcW6hqMxpYGMbg=; b=JYxIcBak34+NRDBt5juEYvl8MFYDTInq9yD7soilY3uwsY8bmuXTqFwfbY18uBQ7e7 /p0yoQJvQ9i6ND1LDVSDH/iqx3b7d9AeaEaj3QfiXAhJ2DLZQiThppq6BZq8Y9Gb+7i7 p7vuFdbgIKgOXRoy8HN1+XlXKJkG/3ND8S+QgROFC5h2rXxWKL2wMcmgZpOLmq6zSRgD ZE2qgElakFsSAOz3lVG+NCG5iwakBlWhKth5Qs80QQ+GkDEbHZItG7YRzHsJJgwWwAyj 6KLjo1KNqsybiOLvPKpXacKcGoLy+z6NX/jrAeGRYYKJVQlBFYmnPIukyxVxgW3yJH9M Lnrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=x8MeLTK/d7GnlqXrAXWg0WParJO9OxcW6hqMxpYGMbg=; b=eN09n6FCpvbrwcQ5qIFMS24Kc1icFEwI6sxcUrflBpfSUQQN30c5P806rywpPLzAwJ 5Iltnalie62UMDkscP4pioo5+PQBMZplCWn1xFg357q7NVwI8rjedRLydpWwb5CPy5Xz pI1rWa2l99t6szL1vBqgKf4YwS9LjRBmbRiy6WENUyX5/yAMQLqjmCxMmBHvBgpwOu1R Nbmt6mn725GzjWmstzgk26UGwMtyv0LMV25Qc8eQTXcLSc6EJtxQlYVcvqzlqVDaNzvm bYELa025ZtwMVkU2poVGhlaix+zDDWFtcRyoFPUKrCFLXwxbsGta35W59+YG6/KW/Jxn 9p6A== X-Gm-Message-State: AOAM532nYowE+g6SdNeptgmJCll+2UCVfhoUhemSvWjgCpLtltmmQ7W1 +tNRnmpzZdmBPeMgx8JpWt0= X-Google-Smtp-Source: ABdhPJyUqHQc1HMwqDJnlGFYUcR71rU8gP4ior0r7LOdKERIHcGUtj/gvNNMbnPHBwJ/EoJotkIoog== X-Received: by 2002:a17:90b:380a:: with SMTP id mq10mr14091490pjb.182.1635441806503; Thu, 28 Oct 2021 10:23:26 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id l20sm3222499pgo.67.2021.10.28.10.23.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 10:23:25 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: rafal@milecki.pl, Florian Fainelli , Wim Van Sebroeck , Guenter Roeck , Rob Herring , Thomas Bogendoerfer , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM BCM63XX ARM ARCHITECTURE), Justin Chen , linux-watchdog@vger.kernel.org (open list:WATCHDOG DEVICE DRIVERS), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-mips@vger.kernel.org (open list:MIPS), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM BCM63XX ARM ARCHITECTURE) Subject: [PATCH 1/7] dt-bindings: watchdog: convert Broadcom's WDT to the json-schema Date: Thu, 28 Oct 2021 10:23:16 -0700 Message-Id: <20211028172322.4021440-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211028172322.4021440-1-f.fainelli@gmail.com> References: <20211028172322.4021440-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211028_102327_407955_01E8DB96 X-CRM114-Status: GOOD ( 17.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki This helps validating DTS files. Signed-off-by: Rafał Miłecki Signed-off-by: Florian Fainelli --- .../bindings/watchdog/brcm,bcm7038-wdt.txt | 19 --------- .../bindings/watchdog/brcm,bcm7038-wdt.yaml | 39 +++++++++++++++++++ 2 files changed, 39 insertions(+), 19 deletions(-) delete mode 100644 Documentation/devicetree/bindings/watchdog/brcm,bcm7038-wdt.txt create mode 100644 Documentation/devicetree/bindings/watchdog/brcm,bcm7038-wdt.yaml diff --git a/Documentation/devicetree/bindings/watchdog/brcm,bcm7038-wdt.txt b/Documentation/devicetree/bindings/watchdog/brcm,bcm7038-wdt.txt deleted file mode 100644 index 84122270be8f..000000000000 --- a/Documentation/devicetree/bindings/watchdog/brcm,bcm7038-wdt.txt +++ /dev/null @@ -1,19 +0,0 @@ -BCM7038 Watchdog timer - -Required properties: - -- compatible : should be "brcm,bcm7038-wdt" -- reg : Specifies base physical address and size of the registers. - -Optional properties: - -- clocks: The clock running the watchdog. If no clock is found the - driver will default to 27000000 Hz. - -Example: - -watchdog@f040a7e8 { - compatible = "brcm,bcm7038-wdt"; - clocks = <&upg_fixed>; - reg = <0xf040a7e8 0x16>; -}; diff --git a/Documentation/devicetree/bindings/watchdog/brcm,bcm7038-wdt.yaml b/Documentation/devicetree/bindings/watchdog/brcm,bcm7038-wdt.yaml new file mode 100644 index 000000000000..bbf2e91f9db7 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/brcm,bcm7038-wdt.yaml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/brcm,bcm7038-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: BCM7038 watchdog timer + +allOf: + - $ref: "watchdog.yaml#" + +maintainers: + - Justin Chen + - Florian Fainelli + +properties: + compatible: + const: brcm,bcm7038-wdt + + reg: + maxItems: 1 + + clocks: + description: > + The clock running the watchdog. If no clock is found the driver will + default to 27000000 Hz. + +unevaluatedProperties: false + +required: + - reg + +examples: + - | + watchdog@f040a7e8 { + compatible = "brcm,bcm7038-wdt"; + reg = <0xf040a7e8 0x16>; + clocks = <&upg_fixed>; + };