From patchwork Sat Nov 13 11:46:45 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: 12692489 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 5B4F0C433F5 for ; Sat, 13 Nov 2021 11:48:23 +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 1E4B760C51 for ; Sat, 13 Nov 2021 11:48:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1E4B760C51 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=R30HMik+vK1y37 3cNTVa5jx999ovL2pUIwARzdZZ0wmx4iUuOVFgiaxYaeoLW1KnNBZDw+SYInRtnBZZrwddqjtxA9w oxAn64kAobAj40g4UVyKgs1fS/0dkb9FqmrwcYNJDw3jtiF0ZNNZdlpfTbPA9p6hkr+5Bx/KvCLoL ITXd7XU/+puAe2B3XhhPuDTm033/SpZi6A4R3dQLR2nAiPW74hfMa6UeSzCKtjdwuLHeTzIhm+SbC OZ3ZNq2mEZ/nkmWD8ZFxokISdMDWf1LL7GLKg1ZsYtFQyCjBz8MxZ/JwszcsfL1TZj16uLe1a5dQg VHO26lojig+M6VPmt+/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlrV6-00CYFR-0b; Sat, 13 Nov 2021 11:47:16 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlrUs-00CYDe-Mr for linux-arm-kernel@lists.infradead.org; Sat, 13 Nov 2021 11:47:04 +0000 Received: by mail-lf1-x12a.google.com with SMTP id m27so4783901lfj.12 for ; Sat, 13 Nov 2021 03:47:02 -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=EACvDY4D3mB3Si/gjQbY9KAzfrF6MJRZ6GtiTj+KRnyp/6+e0xthGIk3P3om983TNA fXBSLGyaug8icy7/kmW6XQ+rRwDzt8XQx1+bEsQh3MmaVtiwtLoE/l70aRll/s1MDWHO W4bTLf+HSrnU84QQ5Tg3NbVz8TnZOotzX5Ffe61jgLhmRPrzDtBkDTe36o2bRMK8/LAn zKmRSvzBR6zlB66IbN3bArUP0otUerHr4zrxg3Ok7hACpRoGppdxuL/6mRNs0ltdTL78 fZTTcNiccsVXdBlvaOSvKfG1BctCZtrbGaWU2KhO6RfKUV3aTK6aSrseLEZIHTl9Sg0G a3vA== 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=f0AzMVhGu99k4dHgnf2sZ7ty4hSMWrwLH+uVHU9ozW4ZfY+H/6Gc5ISzB64WyG48mx yWwEmcXwlPBVbbb6vdR8qe3af063OtAE0/3+GOm2ooGdijGrsYhPTII3p5zUmWfOxSdE wSiPnb5utznGZILhbrE+yD4uxsWTo+TW9PvIHBaZGGvONorzQugYA42Ju8weEbYIPzeY YmxUuxvuT0qL2+FpXHcQnVTKaCrUf9okIk7Z4Qfe9L4oYLPcq+6bIkjZqdw1mI2Bd9YK dAQ2MWT6/Kavf/Rt1HEc61XyjXZBb3olp2blmGEL5sposFsiy7jfSo7dwA61sXLyrvdE StQg== X-Gm-Message-State: AOAM533+tyHEx2PV+J9uB4oa1n9J/+TaDSuVQeYch6JGBxr+elfYvC3h +S3xKSxQePEawasajNerVgQ= X-Google-Smtp-Source: ABdhPJzLh+TG6zpNdV+lzp/25s3Gzt2l7hc5dGJPc6FCRfTQpKWWS7eBbbS4Hu+rwIGzUuE+Smt9Jw== X-Received: by 2002:a05:6512:3f86:: with SMTP id x6mr20906852lfa.389.1636804020908; Sat, 13 Nov 2021 03:47:00 -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 m8sm941676lfg.140.2021.11.13.03.47.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Nov 2021 03:47:00 -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 2/2] dt-bindings: mfd: add Broadcom's Timer-Watchdog block Date: Sat, 13 Nov 2021 12:46:45 +0100 Message-Id: <20211113114645.27360-2-zajec5@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211113114645.27360-1-zajec5@gmail.com> References: <20211113114645.27360-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211113_034702_774694_15AD998B X-CRM114-Status: GOOD ( 14.85 ) 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>; + }; + };