From patchwork Fri Nov 5 15:42:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12604929 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 145F4C433EF for ; Fri, 5 Nov 2021 15:43:58 +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 D8F2A61108 for ; Fri, 5 Nov 2021 15:43:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D8F2A61108 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=3ISNNmVH9dprAcLIIpAa1hWrM+RO82Y6Sg1rWqyw5/o=; b=iFW3Clhu6ZumD2 8CDn8fzQZkPp2lDuu+do11dxq/F/ihbvdP8go7B6RHelykjpQ37lYXIm43+KWY92RGgj2FLc8jt1P pJ+c3IHjIhqTfjPcHipDHagIf+mwb185RtoeuarqqS/gqadek9UjT/W50lOHWup3w8M1+Wicftzhc QO9Bx3ceOi/4ME1fjs1/IEVC3MDkZoooavgDELDE78yCmG5aW/6z1miRi328Br/C9TZOfay1MWk8a 1db7+Uz83w247mZ0/HEKIUMNHzbeIBXNsTa8LmMBusfGda3k4LqwhEpk1gUiioPxZBhrtX8KfRgLZ 9+2QqdhEHCT9VBOMvYVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mj1MO-00BlGr-BJ; Fri, 05 Nov 2021 15:42:32 +0000 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mj1M7-00Bl9i-30 for linux-arm-kernel@lists.infradead.org; Fri, 05 Nov 2021 15:42:16 +0000 Received: by mail-pg1-x530.google.com with SMTP id q126so4757811pgq.13 for ; Fri, 05 Nov 2021 08:42:14 -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=YfMuUPgTSkKVtweKxnjhP3J/8y+ffSmINL7aJBkm/mo=; b=XtFqEVpPbBJIB6AmRp/CbODV5dWdZ4PiKwRyIsa7vfbexAmy2Z9UdlHnj2Pk4YWr/k 2Z6pF7hnSGoRHKlTuRDU4TysE6/5xV7bE9QbiMFPTlpeu9n+zza7t9WcbSsXSn8O/WWS PLJ4ofUTyWnw76zD+tgqhV9I37utGeTIcfUDnStstdZfesdERQAmSReCjVSkKPRCzbjG wdNyYi5HdRUKPi1bLmAzfUTqQlAPY0ejNSFF/3oKbDBgQNjPmlvQl6NEo46hf6IWGWyY Chp1ZdT7Wh2tMEAx/hGlJW+sgCr73IFQXJMaitWpjee1aCyP7N45UY7wx2bYfsZKDAkR e5jg== 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=YfMuUPgTSkKVtweKxnjhP3J/8y+ffSmINL7aJBkm/mo=; b=vULz1BVvjGU3rTPtHJ7Lqdsn+/TNkOXtErSM0pD9873KlulKvOuWvdF/guIAn2qtQ7 iSdveGeAQM0qv5n4RQVwjwsxA0WJaXp6jZbcackMdH6xlfBJvDCo5svl38Mz+0+HREHZ jBFEvy9CWeu2tHa2hOHzXlwS1DzHE7ZZvlU3/nh/4fNyGjv8Em2h+oz4p3twGJF84/uG eScJgVxFyXIsBRGItblBv43/wxJnNSXZk6ecOI3rKfEBtSZqU/GKy8+dTrqf8dall5SR /LDB47TpeSA/1HBz5d3+WH/U+7MMTmsYjzaMcdgQQKDcouOt1AKPFihf762gHUYqxRs/ 4o4w== X-Gm-Message-State: AOAM533FdaIykWMjGlhKKk2Xs/BQcifXmyaxZluJaQsoKnFhVNoJMpW1 sgDS1uvp8oWNHU1YtvRK4IM= X-Google-Smtp-Source: ABdhPJx2ewCOIj3UhxMUM5+yHqTrnC7jS3uV9/CW6F16yORyZQ5okBpauuqIef7JfJlri9rbmnawpA== X-Received: by 2002:a63:9042:: with SMTP id a63mr32101221pge.345.1636126934223; Fri, 05 Nov 2021 08:42:14 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id b8sm7547097pfi.103.2021.11.05.08.42.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Nov 2021 08:42:13 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Wim Van Sebroeck , Guenter Roeck , Rob Herring , Thomas Bogendoerfer , Florian Fainelli , 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 v4 1/7] dt-bindings: watchdog: convert Broadcom's WDT to the json-schema Date: Fri, 5 Nov 2021 08:42:02 -0700 Message-Id: <20211105154208.614260-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211105154208.614260-1-f.fainelli@gmail.com> References: <20211105154208.614260-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-20211105_084215_176295_83C0DE7E X-CRM114-Status: GOOD ( 16.88 ) 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 Reviewed-by: Rob Herring --- .../bindings/watchdog/brcm,bcm7038-wdt.txt | 19 --------- .../bindings/watchdog/brcm,bcm7038-wdt.yaml | 40 +++++++++++++++++++ 2 files changed, 40 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..53a3245a6193 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/brcm,bcm7038-wdt.yaml @@ -0,0 +1,40 @@ +# 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: + - Florian Fainelli + - Justin Chen + - Rafał Miłecki + +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>; + };