From patchwork Wed Nov 3 23:13:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12601961 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 DEDA2C433EF for ; Wed, 3 Nov 2021 23:27:45 +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 AEBBB61106 for ; Wed, 3 Nov 2021 23:27:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org AEBBB61106 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=ES2odgK1OmNqU2c33Qj/QH8T+0ORb8DL//BjB7KHDwM=; b=Kzx9qFfAMYg+LU gvnc7eNUwSjYXYVV5uIztBoAUDwEV/Encb0So5UfR8ZvSoOri3UxRKbs1c+7gZeqaPWLQiU/rItN/ PSMmQxrn7AsmKtZVjisIE32PjpVaif5aq/R/m8AjX/7f9HzLxxNG78bmn5aV/opz2lrdaVz4dqM7q /Uijticc/KdUh2JblZRHoO831lbjMAlx3DfM8QBmYFgGrSztGUeFteFZTdMp1uv4jnDk0cmd7njSF GGij/TGgpaKAkRPiq55VeRv4Df5RiVfgnBrwXZPcZVVo4ci+RKSHvh/1lxytE2B7YPVQxiZbszq3E Sf7XOyIR5kqLiHWF+kvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1miPdh-0070Wf-Gk; Wed, 03 Nov 2021 23:25:54 +0000 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1miPSU-006wX9-9M for linux-arm-kernel@lists.infradead.org; Wed, 03 Nov 2021 23:14:20 +0000 Received: by mail-pf1-x436.google.com with SMTP id y4so3956601pfa.5 for ; Wed, 03 Nov 2021 16:14:17 -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=GQbUuqqzIBcZH9+H5Tk/WXcUevcK7q2Ku4w0/2122MA=; b=WNxfcHo9IrfclXZJWB8HuQKEacDw8R3U/OUFe9YeL7OMSfnktTI4GfH+tRxOqahNkF he4sAyF4hFG2H0vOY8M6tdyG+JII4tGFrD27/34xjhEu2fO6vzRSlOaULTETXkcb3hp6 Uv3ypo9gQknmSpr8y2DAVXI1642AHJ+CNlL9ObiyuLCZBIO7+TtiX7UD/fuN9pwwQruU owBftbXWFUsAwM9RooOWLFDXUjGMxQKURSUHuRClSk6o7E9WHj5rRKCBOKR3FE65Kohs 2ZW1HgcG4GaSZV/bBMwZ7pxolmNHWxuRIRqo7+4jwgbdTIO3w4AOh8BmJSIXye8kHG96 vUyg== 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=GQbUuqqzIBcZH9+H5Tk/WXcUevcK7q2Ku4w0/2122MA=; b=GTiWksW0QcAGdtAtRwH0gacSmYUlRg0FE2uSdyZjbjrhzA+6Ui0Fuitsn/d4m+9OuC nrBgIXzM4rpWwhi1gi/Enh7Vmy1qKdw6mNataq7uJ/wPZTDvwVXJofAoataWSVIvr2F3 EFSpOnFlUQYYF6FTLO1Bniv4AeJVzhdHXRaOavxHjRpA1H/n8eIFDWEguNWr9c9hbB5j 84OjfI5GQNAKHCSgtKkFYC24ShUZotNV04/RtgFy4Gk1wfPIIXXOFBJzJTQAga1eiNl+ CTGrV9xS5TnTaQSEXLuw53Z8bymM99J7dBF23Tg8sYjMN/VED1BrNI1EsyYcB7vQEz3L sDpQ== X-Gm-Message-State: AOAM531afB6W/QlJlF4Pa36xF0R/nikomkfOUrcaxAOx1nyLV9MFctfC SF3Qj7klCFs2ZsGEpX80n4s= X-Google-Smtp-Source: ABdhPJzTCocXCAk/Kwart0ynFiG4172jybWWbdGW9UsWlCC12/9zh4r+ojE8S1CVBTA8czewgVks4w== X-Received: by 2002:a05:6a00:1995:b0:47c:1f59:a27a with SMTP id d21-20020a056a00199500b0047c1f59a27amr48155914pfl.36.1635981257334; Wed, 03 Nov 2021 16:14:17 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id p7sm2613549pgn.52.2021.11.03.16.14.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 16:14:16 -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 v3 1/7] dt-bindings: watchdog: convert Broadcom's WDT to the json-schema Date: Wed, 3 Nov 2021 16:13:21 -0700 Message-Id: <20211103231327.385186-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211103231327.385186-1-f.fainelli@gmail.com> References: <20211103231327.385186-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-20211103_161418_420931_72F5CE1D X-CRM114-Status: GOOD ( 17.14 ) 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 --- .../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..69e5a1ef6a1f --- /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,bcm63xx-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>; + };