From patchwork Fri Nov 12 22:14:22 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: 12692443 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 E1903C433F5 for ; Fri, 12 Nov 2021 22:16:07 +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 A3CC360F39 for ; Fri, 12 Nov 2021 22:16:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A3CC360F39 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=o5/IJ+JP157q5O2YBV26PB8Pv6uN+EpQoFE3139PYlw=; b=e2i6oAollP3pWf qfqzAJB0C9BNEpsoXDPYs0ut19NGnfVX/sSnLvLrG+j3Bf7uOmpGp9wEwUy4bMqfoV6SC6l2OfiKm otrwDuwIk4fIzcU+LEstkoMSJc+XFScRNnIaHpHrqqaMBUmsfH0A6ASRyHvgG0rpcCQ+LS5sk5QMP FdtSdnMv2Hqb4h0rOVsd9+eplTXOjBG273IfceYvV1oYnH56WxbmMvCfI8WNl0Yli78Tvn7BqgI3H GjAkBBpnslskwEd2jIQB7+CJOhQGYa5UmJIhL7mt7MRr451A5nKDGOlrOpyKDpm9Qdg+cLiB8ZmhJ ygS9zFpKNz1MGX8cVhzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mleot-00BhSV-St; Fri, 12 Nov 2021 22:14:52 +0000 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mleoq-00BhRh-0v for linux-arm-kernel@lists.infradead.org; Fri, 12 Nov 2021 22:14:49 +0000 Received: by mail-lf1-x135.google.com with SMTP id br15so21942666lfb.9 for ; Fri, 12 Nov 2021 14:14:46 -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=o/mkbhEb1uyZt1SZztusHTiZond5GP2dgg4hEXLzLtI=; b=dCWQYRllb6gdk1ThFJ4g6Pr03S285DhLr5wk28zaa2IVPzZGXDw3lplPIOaOigr9oE BjK5zT8eHdmuJe7uG+MO+Rrz58CVdNd4UxeBGr+VtM3meBFlpzDtreARadzShNUwc0im YGOLnDH6p68NMyGI4Mfol5AnJ+3czmYb50bXMYmu+G88rBEVcI63NHU2c4yqk7Myih4e l7oNoI4TiVEp9b+4v5r7trXxbO3KtKrjASSgk5liGGF6j+kOQeKiqgNBt6xjwxTUyv58 0EqlP+mDqUP5/8W95uiHAUb14GEsFd7EAqhaUgL6B4C8ADt9fNZK5usAdREiEVPiAZZ4 ikEA== 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=o/mkbhEb1uyZt1SZztusHTiZond5GP2dgg4hEXLzLtI=; b=fKJfDsqUNiFc+hU4OlBaQKOAT/W3i5+teMy8mSj29vondPpJHs4H15qpotgpQKr1nA dDoCFvl9ZyaU6pW5QXRO5rVhk0WY5wH9QbalbYyQmYukbvsbZGYZ9Y5Ssn5IdIw5vjB3 RV5luIlgHKfskzCA2mlaOjsQCyTQK0OEDC6KzHDmXD8AB/VYbjIEmby2AVb5DmOefTZI wAehKkcgtM5HWdP61ofWKLitJ0GKKtHmJo+adAS6OK2PJEJ0rdypZtbQT72Z2roHgSx2 6NBfnD5zIGysx+oh/e3Y3RDMn3lOBAVLIXDHaSKia49+BmwK9WYgS1c6w9XmuJMv8uVZ jqFg== X-Gm-Message-State: AOAM530Y3MujeZnDaN1d+sf9OLuUNBmwrkwNZeRQkL3x1OOghUKUZa5Y Ju3FVfG0eMMhcel55uPds0A= X-Google-Smtp-Source: ABdhPJxZBvlSizuoKaqTg8sINaXFYmgWU3RIwUzKXby0ANx4EbiBczHk0Py1Qamb0HDMvmeeMJrreA== X-Received: by 2002:a05:6512:1296:: with SMTP id u22mr16761074lfs.296.1636755284086; Fri, 12 Nov 2021 14:14:44 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Nov 2021 14:14:43 -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 2/2] dt-bindings: mfd: add Broadcom's Timer-Watchdog block Date: Fri, 12 Nov 2021 23:14:22 +0100 Message-Id: <20211112221422.13735-2-zajec5@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211112221422.13735-1-zajec5@gmail.com> References: <20211112221422.13735-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211112_141448_094149_88257741 X-CRM114-Status: GOOD ( 15.29 ) 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 It's a block implementing few time related functions depending on a (SoC specific) variant. At this point there is ready binding for a watchdog only. Work on remaining subblocks (e.g. "reg" based reboot) is in progress. Signed-off-by: Rafał Miłecki --- V2: Update $id, description, compatible, example & commit message V3: Drop "brcm,twd" from compatible list per Rob's review --- .../devicetree/bindings/mfd/brcm,twd.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/brcm,twd.yaml diff --git a/Documentation/devicetree/bindings/mfd/brcm,twd.yaml b/Documentation/devicetree/bindings/mfd/brcm,twd.yaml new file mode 100644 index 000000000000..634526f790b8 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/brcm,twd.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/brcm,twd.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom's Timer-Watchdog (aka TWD) + +maintainers: + - Rafał Miłecki + +description: | + Broadcom has a Timer-Watchdog block used in multiple SoCs (e.g., BCM4908, + BCM63xx, BCM7038). There are few variants available (they differ slightly in + registers layout). This block consists of: timers, watchdog and optionally a + software reset handler. + +properties: + compatible: + items: + - enum: + - brcm,bcm4908-twd + - brcm,bcm7038-twd + - const: simple-mfd + - const: syscon + + reg: + maxItems: 1 + + ranges: true + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + +patternProperties: + '^watchdog@[a-f0-9]+$': + $ref: /schemas/watchdog/brcm,bcm7038-wdt.yaml + +additionalProperties: false + +required: + - reg + +examples: + - | + timer-mfd@ff800400 { + compatible = "brcm,bcm4908-twd", "simple-mfd", "syscon"; + reg = <0xff800400 0x4c>; + ranges = <0x00000000 0xff800400 0x4c>; + + #address-cells = <1>; + #size-cells = <1>; + + watchdog@28 { + compatible = "brcm,bcm7038-wdt"; + reg = <0x28 0x8>; + }; + };