From patchwork Fri Nov 12 22:46:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12692458 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 62AE8C433EF for ; Fri, 12 Nov 2021 22:51:38 +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 2E1E261054 for ; Fri, 12 Nov 2021 22:51:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2E1E261054 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=mGUfYpeQ3LrUTBi0Q6IwsRE2Vi+umTvPzkvy2m+9nY8=; b=oQNkxhOArdShml 0h1wE6pnQpEBQKaXi0GKvZDn6LHidFIHpJ5igriJUMFsFefrOCcbv/l7fKflhLoCxYesuocDiEXK/ +5BS517QZ7ejnvOj77ZIPoOrmEw+etOkpntqiuX1uZrZg0kIT4ejrBhPVqexoTV9h/w39lAugiAlf 2vSyRoW/PdGJ7DwRn0v3lzkfkLsFqDdhgcCyXQg0ec8siHn9JpV60ZoTaKW87RyXLfXYBA1MJ/0F7 HoK7+D8nC4oIwXGoGOknRpZR3NMIjJYnr0CN8ZJaMo+RU7Kwh3tnRbCXkW872pro1D1TciWLv90Nd h5/PpuAu7lk3xtne3bDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlfMy-00BpA1-VJ; Fri, 12 Nov 2021 22:50:05 +0000 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlfJi-00Bo0Z-2H for linux-arm-kernel@lists.infradead.org; Fri, 12 Nov 2021 22:46:43 +0000 Received: by mail-pf1-x429.google.com with SMTP id c126so9730082pfb.0 for ; Fri, 12 Nov 2021 14:46:41 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=uh9Qlw6LxLHXooJsqQQ7CfQ5xCKmfK88jAvFllzkUvI=; b=mCcsii4K1rxmyzWbuQL4gEA71mR8vzZ+wcj+vP08Y7bs2GfwQvJXUh7mlZ8vHuUh8M eTWeltYU9rOV89TGAjaIzaGATy31MFYrtysAEIDCfNdlM/BGYhauyXCswCoyyZ+9nIJM TraghKoAjfGzFSqi0kp1j4V+6Sy6hJNoRUEfMmq1+PtEH9aIsOAdmfII4/IH4kyDm50Y f86FjTzLlJkfLFAT5r5XcTCz/AiPuoPPm9MNDDaHmai2MoHZExrroHoCjkC/H8tDYhBg 6L/OE+91cUsHk/2QqAULUv61FyEoYZyqblpcMqmxqtomudk1Cw6TaPcLyPwZaH6NKOqm J9mQ== 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=uh9Qlw6LxLHXooJsqQQ7CfQ5xCKmfK88jAvFllzkUvI=; b=baTAyK0jICjRyiAnYy1d10zq/ZrcCV7xynLS2gB097olzLdBrS2EkDOv4KUpQi9EGp O/rIvY8w9tOFEkjhcAj9idL/cIM+Dlb/buPJE/7IceFmW47TLixIiX3Bv3+cDOUP/mB0 9YVCy3J87OFJSlTqadRnT5VHZ7raB5ueXwQV9Q/4Aj76C6A0EPlbEbJe2LVsymWwYboi Mn4tsPQ8lbN1iCudTLkc3QfrPnZT9t/MR+7AZ8ADKxlJahXvIJDL5YuKxKHzmqLjnfx7 UlJ2laeBt2YUb8H2w8ohp8D/of5bOj63D6ZmE5WWtrOgNIn7cw0her7OqNhujTm8Waii avCw== X-Gm-Message-State: AOAM530tv1J03aetuj7hht/VR2kfQv48x2/rNbS7p46Rk2vDGfYj4+9e d7ff+TmX24sbwto9KzJt7BI= X-Google-Smtp-Source: ABdhPJzwkOp2KP+3vkm3FfojZvwIjm28DWaDuRGlqOldG5gxUB704AvfqQePJSgymKqvkfzdWpJDFg== X-Received: by 2002:a05:6a00:148c:b0:49f:e048:25dc with SMTP id v12-20020a056a00148c00b0049fe04825dcmr17289615pfu.12.1636757201077; Fri, 12 Nov 2021 14:46:41 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k14sm5647004pga.65.2021.11.12.14.46.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Nov 2021 14:46:40 -0800 (PST) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Rob Herring , 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 v5 1/7] dt-bindings: watchdog: convert Broadcom's WDT to the json-schema Date: Fri, 12 Nov 2021 14:46:30 -0800 Message-Id: <20211112224636.395101-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211112224636.395101-1-f.fainelli@gmail.com> References: <20211112224636.395101-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-20211112_144642_178746_EECE926D X-CRM114-Status: GOOD ( 16.44 ) 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. Reviewed-by: Rob Herring Signed-off-by: Rafał Miłecki --- .../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>; + };