From patchwork Fri Nov 12 22:14:21 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: 12692444 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 03907C433F5 for ; Fri, 12 Nov 2021 22:16:16 +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 C3BD160ED4 for ; Fri, 12 Nov 2021 22:16:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C3BD160ED4 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=cVZPe4+6ZK9nBmTCi4ns7oAp6myRJnM3iIfT3KBH85c=; b=f7d+PFI0HJgW5M lGApFwyhDIs2riv/LqnjFIsneQwUKKosiBCU10zYSHsy71xzzav/yXtqnDf8/YPMIGPjNLdYT+FyZ Ot7m0Us/W9qoPyjHPvrrVlvuzjN6WPvFz+dw9GHIwUmKoRI40zG6HbnGKTmmmcxPthIBjzQp3WAR7 C8Pgo28XeuaugK4D+ZzSaivhLV2t9zR7eEHwmaPpi4WR0KyfbWAVzRq0OAsh/0xWJxkOcfPoVjp+k roR27OmU3g9wmCfD60EFp1rkLlqyzTHXKvvDhge20qc9yaDJEG7n3WjAjbLKTbFzYcLMchbsko0lt sO9X9bSJmsbU1MZHL/LQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlep3-00BhT2-SM; Fri, 12 Nov 2021 22:15:02 +0000 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mleop-00BhRf-Uk for linux-arm-kernel@lists.infradead.org; Fri, 12 Nov 2021 22:14:49 +0000 Received: by mail-lj1-x22d.google.com with SMTP id e9so21173553ljl.5 for ; Fri, 12 Nov 2021 14:14:44 -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=xmTEhzdHehFTh2rOC5A4/85h3lppQ/OuyTKeK2Y6gpg=; b=NAtWk8j0VLJ95v6LcZaZ4NVQdq1DZusI07UgDJzg5khMwRypGFoyGXphBFvUdsP2Ym JiTSA2/3WdmcQnDJsHm4E3RqldsVgAU2AJiKMXQmX1GRQH68TO3iwK0F4vf5CtzV/OCI K0wKiHuiMr028pOUlwwzLbXqNOzRLPUkdshIdq+SkdWEvq8XGt9vnjXNay/Kas+P58wy ESRthfIm8P0jH+rCteQVZDpk+JjdFsu8MBg0L52nmVndjCR+IJeLKV2KLnlfMK9acQFg XPgWZsVA2xnro40Jn43niiqxfkgM0+ALZbebrIk+imrVL3QjtM0XFW7ep0NdyJj7ODlA Q6eA== 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=xmTEhzdHehFTh2rOC5A4/85h3lppQ/OuyTKeK2Y6gpg=; b=Pr4aQaICzHW+dYhiPJwXOpPZdZUBTHmpBI80kvD7KrJuwZhdcK1k/VgvdGPy/UOM/L SqLGFYi3z2idZfkr0R8EVjBiu41XFJxOYd0VO9ZxuCO8SxD1qJpBljP3y5pDwwAqjLtV B0iL6LhbyHwbAs+85luYNz0VZjB3nOq6TrREo1XmZREKZwCT5cLdChlGIIQMoE/w94+J FqLFmLEAngxNPSPGZYHnadzJ34V0aNXBfILvG5p5WZ0mG88CylIkgAvaALa3CXy9Q0x5 WqRoSjJ36vAsYId/1Ea75vlbG0VGsJ1qz19IlfaC4mC8VNJccxeLY454vZ2vle0cCM7m PGdQ== X-Gm-Message-State: AOAM532QEsbkn0Akjl+YNsAQ2JgE0MMmNNWPuWSX20XdP5pLdD+G5wFi XATuiPex4ldTR7oG1th1X+E= X-Google-Smtp-Source: ABdhPJx03w631kSQzSJha6yE2qu0BPqpA3mOCava/15g/CCSqqu/TIdGoN5xO4/QxNawim0U9+ZVEw== X-Received: by 2002:a05:651c:a11:: with SMTP id k17mr18213730ljq.243.1636755281856; Fri, 12 Nov 2021 14:14:41 -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 e5sm680536lfs.51.2021.11.12.14.14.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Nov 2021 14:14:41 -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?= Subject: [PATCH V3 1/2] dt-bindings: watchdog: convert Broadcom's WDT to the json-schema Date: Fri, 12 Nov 2021 23:14:21 +0100 Message-Id: <20211112221422.13735-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-20211112_141448_023169_FDB51EBC X-CRM114-Status: GOOD ( 17.08 ) 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 --- V2: Use valid $id --- .../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>; + };