From patchwork Mon Nov 15 05:53:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 12692520 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 5E09DC433F5 for ; Mon, 15 Nov 2021 05:56:10 +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 2811562F90 for ; Mon, 15 Nov 2021 05:56:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2811562F90 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: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:In-Reply-To:References: List-Owner; bh=j2bNleS1NA3guVkP/Nca6Apec5NOByoqErh5iW3pvQs=; b=VwmrmwihtL8Shm KzOuaOxacowxylhjVAq82r6sm9IDeiMOotcglQSV1Qef18KcFferC9wcp+A12phquMNIzJkpGCCX9 2o93E2FIezUYhZ7ztxP0oXPYPZ0B3Nnlt3ichHRtQ5nKJy3v9uxLof1ZQSfgr/6X2YgC1livNOCTs CQZi49S3lm9Ik8DS49WQfVOczpAL9onQlvYeiIgHVxhCvgwLcgH7P3VBFM8oxq2C4X+tRAHzKqfDp tP77kjg5DrTp7MccTS8D+GfroE1SWEgyOWn4AjzZQJtDCKKfQ79MAJAIOsakh/MKeaVvJutPsLaet uzfa9B0TSYdMbONcfRpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmUwe-00EQJG-5Q; Mon, 15 Nov 2021 05:54:20 +0000 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmUwa-00EQIp-Fx for linux-arm-kernel@lists.infradead.org; Mon, 15 Nov 2021 05:54:18 +0000 Received: by mail-lj1-x235.google.com with SMTP id k2so25515843lji.4 for ; Sun, 14 Nov 2021 21:54:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8qflnB7MYgfziBXsT+LtjTucbsoWLob914EY3p4OTsQ=; b=K+ISysR7l4RTt12UPbkyLNCunsqekRgtKdrbxcG72ND5Uqvd/bVx8YI+spx3ccPa3+ cnBCAk/Z0ZVY1XkesS5Fm3Jy6/Ey7n+XsXxYtqqCx3RkKf5XqETAcA3nTqvUGyPcdII8 07w6fXgUewxdWbBezCFEVk+o9Dv/H0GhXH2tAWORwu1Sg7m75OWs9N0udMT2+XDMgYQa 9S07cYCS0SXawTtmZXZFUkrPXzSdiFFayOycnuTNlMyV65oDHQghrN8G0RlUYq5NNaCH srPK7M8dSunw+8e5FzmE3B+rOf/PoRTXHMfxk5gO6sQLrRw/D/b+M91yZTuocf3ntSFl IjwA== 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:mime-version :content-transfer-encoding; bh=8qflnB7MYgfziBXsT+LtjTucbsoWLob914EY3p4OTsQ=; b=DSWJ3ApJLfaokzw2ckMOdaebboza7dj20+OnVyqhs1W3HV69kogY6fg/vBcDwsWDp4 yyVQt9mVAIj0Z963iYGRly4/8VtRP3OYagGnqxIKmiimoX2NyrJPge5alv5BXOQeiKXk DrDhshbFSvDy4g1HL6ew43UHb+qTjhUP7qnqjC7ROKAeD2bnfeV9F+X2gZ83F6byelrE gkHerNy2qc1BwSrDZeiqhsgc8sJ/zVuf4AOSA/31bRqDlpo8FY/cKdVC52pufP4L7UgW ePjfAwhO2ceBOR0gEIt0yO1UMw6gDP8UdE57fKVmpMSkvoErrpPrnuOgCaJFA4f+946n aNjA== X-Gm-Message-State: AOAM532+h1ovDwOqK7ETzggBiEm75IHxMeCPnIcVNRNIAWWSqKm1L6kk zXGSqA2mAAoH4fHTOFFmGA4= X-Google-Smtp-Source: ABdhPJyZaHVXNgDAuGbMz7OLoG2mleARlbDaV7o3MGSGjKAWPeHcioFgyl4hXtX9R5+er/99PjoKig== X-Received: by 2002:a2e:4952:: with SMTP id b18mr36117251ljd.352.1636955645266; Sun, 14 Nov 2021 21:54:05 -0800 (PST) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id i13sm1308668lfb.45.2021.11.14.21.54.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Nov 2021 21:54:04 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Lee Jones , Wim Van Sebroeck , Guenter Roeck , Rob Herring Cc: Florian Fainelli , Justin Chen , bcm-kernel-feedback-list@broadcom.com, linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, =?utf-8?b?UmFmYcWC?= =?utf-8?b?IE1pxYJlY2tp?= , Rob Herring Subject: [PATCH V4 RESEND 1/2] dt-bindings: watchdog: convert Broadcom's WDT to the json-schema Date: Mon, 15 Nov 2021 06:53:53 +0100 Message-Id: <20211115055354.6089-1-zajec5@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211114_215416_583712_0BB7254D X-CRM114-Status: GOOD ( 17.17 ) 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 Acked-by: Florian Fainelli Reviewed-by: Rob Herring --- V2: Use valid $id V4: Add "clocks" maxItems and include Rob's Reviewed-by RESEND: Patchwork lost 1/2, marc.info lost 2/2 --- .../bindings/watchdog/brcm,bcm7038-wdt.txt | 19 --------- .../bindings/watchdog/brcm,bcm7038-wdt.yaml | 41 +++++++++++++++++++ 2 files changed, 41 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..ed6210666ead --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/brcm,bcm7038-wdt.yaml @@ -0,0 +1,41 @@ +# 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: + maxItems: 1 + 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>; + };