From patchwork Wed Jan 26 22:20:34 2022 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: 12725888 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 1CF4AC433F5 for ; Wed, 26 Jan 2022 22:22:01 +0000 (UTC) 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=L3X8vM8KIyiTPTK20zTKYS6mYKu5Vlmrt+7YTDQDsDk=; b=wFhj2UglanfP/P iWAlsMN7KUMCwRCkbbYRJRd5YZDvlO/m0sNO5r2dt6reNzAxZCkb8FWeiC8oErY/FqN9Nyk8PGQHy 6X6wJjKwRjjA+jxI5pkmLT+Ftn32Nzi3ou3fXkN3gXrvsYM9jTwRpphhhYY7sDPszRSODtpH1lTwY SeUGIg+P90xqS7Q3/+uDE1r3WwNO9H0GiT6LOPT6mgzYZZXFfIDwf4rY+k6kqnzZfIRhIHD4QSsBL IFnteJA9zGHXRikS7Du3qFYRmW9WRENBkQQqtINKyPXI9EURBpdvFcRkjDzfUxaKU1DMQ85ja5w9p Uxz+Ix+2mZ9QXIgJaYOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCqem-00DfbW-3p; Wed, 26 Jan 2022 22:20:48 +0000 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCqei-00Dfb1-D5 for linux-arm-kernel@lists.infradead.org; Wed, 26 Jan 2022 22:20:45 +0000 Received: by mail-lj1-x231.google.com with SMTP id j14so1596768lja.3 for ; Wed, 26 Jan 2022 14:20:44 -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=ViD0j19dHef/zxX98qfPF+km5BPG0kg59ySbOeuNW+U=; b=KGSd6IOK0bfDwRYKeFHEH4Z3IGs/2ZGUUYT2BzeclZobE4Tx8TLI8l84f7p4r6njKM T0NPADtZN/S0yUbfd2cpJcCgt8UTJAecVoLEy+A1f6yCUgbB5m5lJFgOycFR53doNsiz 4IADPCQ/Oz9BxhxvmQ9J6DpRunORI+DcWQ+ddABCT0TZQ6Shk6PPQtnddNAEcHkLh6Hz JVZpROVCASPeuIn35QHfSL/ub9Lzr2FIivBb4XphfMm3DlQ3NlaLaK/AecRCL5MfPe8n 5VbVfz7ytfWl2zkxiHWcc1Ay08nJWQmx0DgWpYGb6Yt1Y9Mo2OeHfe6FRtkSHs9lAay/ Lq7Q== 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=ViD0j19dHef/zxX98qfPF+km5BPG0kg59ySbOeuNW+U=; b=0neE2IODG6EodxXT+Jgmcyo3Y7wQLdmM5eFCJazLMT2phYaT5S+M+QxrjkpqQUBPie wHvJsnPt5X8/0cnpQzG/Fr0qh4hNrw4e0hOktgs1Fzo5WYLHELxWxstOgEKv+tFh9HKx MqzdjfZyDcLvuDJkJyRl1kw3AUx71HUAvgb1uIhoHPkJ4qnnqAH+TlyOvLDIM1lMqzEV soz1Q4ZHdgwkBkwXNHBfuJHFMknOjkjuLtF1cdBgBniPhG1rjmjgZT9INjmrSbND5G78 qFBcNtdB+R06beJ7Fb6pJcFI/lBx+yda/NUxHk9KiFQgppKVQs6efnzTVima//fpDhHG c1jQ== X-Gm-Message-State: AOAM533wH9kaVcRWlafGDfMbIYEyj5TpvpLTJI7LeVn44uEPcDbojSW/ 2RMWEacPYtlcImXlRnH62G4= X-Google-Smtp-Source: ABdhPJyg4kvoA6GP7aZiAZQFNBQJuCF03pPCjpStrURQGY9lXF/mmHU+jNdAl/UXUjKw0U7lIshcwA== X-Received: by 2002:a2e:9915:: with SMTP id v21mr807913lji.299.1643235642502; Wed, 26 Jan 2022 14:20:42 -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 k17sm1966499lfb.147.2022.01.26.14.20.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 14:20:42 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Wim Van Sebroeck , Guenter Roeck , Rob Herring , Florian Fainelli , Justin Chen Cc: linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH V2] dt-bindings: watchdog: brcm, bcm7038: add more compatible strings Date: Wed, 26 Jan 2022 23:20:34 +0100 Message-Id: <20220126222034.16889-1-zajec5@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220126132116.11070-1-zajec5@gmail.com> References: <20220126132116.11070-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220126_142044_495706_4E06EC2C X-CRM114-Status: GOOD ( 15.21 ) 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 hardware block is used on almost all BCM63xx family chipsets and BCM4908 which reuses a lot of BCM63xx parts. Add relevant compatible strings and also include a generic one. The only SoC with a different block I found is BCM6838 (thus not included in this change). It may be worth noting that BCM6338, BCM6345, BCM6348 and BCM63268 don't include "SoftRst" register but that can be handled by drivers based on precise compatible string. Signed-off-by: Rafał Miłecki --- V2: Sort enum entries & update brcm,twd.yaml --- .../devicetree/bindings/mfd/brcm,twd.yaml | 2 +- .../bindings/watchdog/brcm,bcm7038-wdt.yaml | 21 +++++++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/brcm,twd.yaml b/Documentation/devicetree/bindings/mfd/brcm,twd.yaml index 634526f790b8..3f5db1990aba 100644 --- a/Documentation/devicetree/bindings/mfd/brcm,twd.yaml +++ b/Documentation/devicetree/bindings/mfd/brcm,twd.yaml @@ -55,7 +55,7 @@ examples: #size-cells = <1>; watchdog@28 { - compatible = "brcm,bcm7038-wdt"; + compatible = "brcm,bcm4908-wdt", "brcm,bcm63xx-wdt"; reg = <0x28 0x8>; }; }; diff --git a/Documentation/devicetree/bindings/watchdog/brcm,bcm7038-wdt.yaml b/Documentation/devicetree/bindings/watchdog/brcm,bcm7038-wdt.yaml index a926809352b8..4d848442913c 100644 --- a/Documentation/devicetree/bindings/watchdog/brcm,bcm7038-wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/brcm,bcm7038-wdt.yaml @@ -16,9 +16,22 @@ maintainers: properties: compatible: - enum: - - brcm,bcm6345-wdt - - brcm,bcm7038-wdt + items: + - enum: + - brcm,bcm4908-wdt + - brcm,bcm6338-wdt + - brcm,bcm6345-wdt + - brcm,bcm6348-wdt + - brcm,bcm6848-wdt + - brcm,bcm6858-wdt + - brcm,bcm7038-wdt + - brcm,bcm60333-wdt + - brcm,bcm63138-wdt + - brcm,bcm63148-wdt + - brcm,bcm63268-wdt + - brcm,bcm63381-wdt + - brcm,bcm68360-wdt + - const: brcm,bcm63xx-wdt reg: maxItems: 1 @@ -37,7 +50,7 @@ required: examples: - | watchdog@f040a7e8 { - compatible = "brcm,bcm7038-wdt"; + compatible = "brcm,bcm7038-wdt", "brcm,bcm63xx-wdt"; reg = <0xf040a7e8 0x16>; clocks = <&upg_fixed>; };