From patchwork Mon Nov 15 05:53:54 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: 12692519 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 EF8ECC433EF for ; Mon, 15 Nov 2021 05:56:08 +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 9D79861AAA for ; Mon, 15 Nov 2021 05:56:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9D79861AAA 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=pijG/+PUK/LvycsWi9E6HsejWwJqlchLfzJzL7UMsA4=; b=PoGFYr5l9JHtZt YGvryzatPX+v3zuyrXUm6wE+6g0corgXgAIJywH/dprCLUsNTmavn9GHI+CjsYbNBsAlZxv77VTv3 ks7YGsoRuSTEbR+vAqklBfn4cJVCYVepIy7JILFv3vPQF1MrlfQV122hctxw39Kn+tR/eG6UBiDQo YvBTeefq32L5y1nodqIQx0/Y28YuFu/YjgsJmuQsySSrkkECqDw3WlcbSVWJyEftKN5qoyTZ0MXkq 8i9Yx1dSAghCHPeSphaY17Z+MkGZ+2ZbisJDk6llsfydcw2zvCU0yIEFP5BNtekhtQO98/zWIpim/ B1I2LnmTQ2SFRnX8DlzQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmUwp-00EQKG-M8; Mon, 15 Nov 2021 05:54:31 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmUwd-00EQIr-Qr for linux-arm-kernel@lists.infradead.org; Mon, 15 Nov 2021 05:54:21 +0000 Received: by mail-lf1-x12e.google.com with SMTP id bu18so40632507lfb.0 for ; Sun, 14 Nov 2021 21:54:17 -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=0ITzm3kF2CTjx8s3ujmiTGO0Uq6IhLwpCFtlE2jGWfg=; b=aoOj9BmpH4wlK0zab+wtjijrWVmtQ4xi1jOJjv6ytq5zQIwDHB6j4PWiuHdABmMAcG jKkeKBOVQcpGKbpNuZkWc0NUiLq4eKXBe+zVpph/2LNCibt51n6StqGRS7WUuntduyYJ edgGphqzQ770deGyxl7M4vH+dtoHbw2SD6hPQWt1kVNbrbJMf5nwA65epAfG+VwRElK6 4pQzNoJGasQgeJcKcfS+KRIr7YrDzlnxXYSRnLI+SAWz1Wh8SBtpasyn2FaGBK2Z6qsW GvjJh42UCIDnyYIcZ1NkeQhHV0R8KVR6som0znoFT35XVMs85XQUl0VjgwxigTxI/V9c 0BVQ== 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=0ITzm3kF2CTjx8s3ujmiTGO0Uq6IhLwpCFtlE2jGWfg=; b=dIg5ZOmhfWhSAhMlllj445JnHgVqaOzaxZvltxwqKdOltD468VrP+TfF+l+GGY8jIJ V6r/I1Kw6ziq802x4PsOFgn7F1ev+idSk2Wg9FewgOaUG4Eiito4kqK7aUa4zz+zusEl 31JYjh5HFKkZWhNci3knLI/itGDHseM5h1dLywhrvkV6V/1/mineNY6J+OwfagBKh7Rt mw/8VEHHfuMrwChoWn1LniwD8sYIAnqWWVjaenMiLVewnt1ln56A7jPZWLlbeMjHMGRS lfMREQUBHWPWw4T5G7TXLI1a83gBMA0pClhdoSn4KV9uLY91gxovHTKbZRaHRzSc2+YM swwQ== X-Gm-Message-State: AOAM530UCYd4v7nCJLKnM4Oo2P6r7tu7UV/4qZT7seTXmns8LfEzEVRz 4+J8snt4+mGfxBh3pV5mMv0= X-Google-Smtp-Source: ABdhPJxaH7HFu5Imhc8iMFDJJWTHVcWL9DV95cUFtBv5nGIoWSJEtBa9ewhxIb4K6hGUEIFHuLRjxw== X-Received: by 2002:ac2:4e11:: with SMTP id e17mr32541121lfr.126.1636955655599; Sun, 14 Nov 2021 21:54:15 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Nov 2021 21:54:15 -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 V4 RESEND 2/2] dt-bindings: mfd: add Broadcom's Timer-Watchdog block Date: Mon, 15 Nov 2021 06:53:54 +0100 Message-Id: <20211115055354.6089-2-zajec5@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211115055354.6089-1-zajec5@gmail.com> References: <20211115055354.6089-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211114_215419_908189_974F878B X-CRM114-Status: GOOD ( 15.62 ) 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 Reviewed-by: Rob Herring --- V2: Update $id, description, compatible, example & commit message V3: Drop "brcm,twd" from compatible list per Rob's review RESEND: Patchwork lost 1/2, marc.info lost 2/2 --- .../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>; + }; + };