From patchwork Thu Sep 2 22:57:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 506711 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BBB9C4332F for ; Thu, 2 Sep 2021 22:58:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 621F7610FC for ; Thu, 2 Sep 2021 22:58:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347924AbhIBW7G (ORCPT ); Thu, 2 Sep 2021 18:59:06 -0400 Received: from wnew1-smtp.messagingengine.com ([64.147.123.26]:42679 "EHLO wnew1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232013AbhIBW67 (ORCPT ); Thu, 2 Sep 2021 18:58:59 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id 59A9E2B0005A; Thu, 2 Sep 2021 18:57:59 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 02 Sep 2021 18:58:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=f5sIot3dUI0Gj qOCyRSsRyAJAba/SV49jrPM4q6Rp/E=; b=ik4mXYAj3UoCnnP1OIK7z9tpeGLUA fj3wZcwWw97vPZG+AIkasSFVsv8f+QVYQTPxGhU+WHbXihDfmt6KI4sv8DyXbVF8 SV37AZir1skX/6ZNFZ/Mk8OqlMM98m+RWuAeeMUT8I81IBP6Ouqc5FRe5r0ybuIW fjUCVcd83kEtVMEE+Vj37s4YVSarkwnMrbhh42yFwKnWT8pH0bGGVyT+BBGbAhoS wPMKw/+b0r4a2ujNcvZJyMmlYbSdulBSbZBG/PlLuAe2xgTZDEgyvh0e+WkSDpL4 vYD8zXkHv70EG9odVkIr03xfydUH1RQrm+FhkZL4HdHuWrKojbFXLrx3A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=f5sIot3dUI0GjqOCyRSsRyAJAba/SV49jrPM4q6Rp/E=; b=lBbkYHfq FzpKdhoERU1kt4e9K0Rwm9l1TFIt71311koRG4CHNV1DIRtYyKoNmnMGttcaHBvd TLNA7E+MB9EkmiQDcGMs3R2h5i/OeKoIPwPD+TWENQhmJtOOneSW41amjZK38gJ6 Bh/Z+sJkALT+o9rPfXYS9YA9VsZRgzhB6uy6+LzIluvVh5LD+al6wHEH/pQ7BO8Y 05R75EOZGVRtpadAjCRwzJiTud5o378WtpHnUkmA/0j/xTTbwyZvkE+L4a6DClec dE7ddZrbqrPNWM3+NPZ46My2xyxv0cUUzb971Smfid4p+7+fU5l59oy6MOwVG8a1 5QBjLjI5M471mw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddviedgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpeduhfejfedvhffgfeehtefghfeiiefgfeehgfdvvdevfeegjeehjedv gfejheeuieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Sep 2021 18:57:58 -0400 (EDT) From: Samuel Holland To: Wim Van Sebroeck , Guenter Roeck , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec Cc: Icenowy Zheng , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Samuel Holland Subject: [PATCH v3 2/3] dt-bindings: watchdog: sunxi: Add compatibles for D1 Date: Thu, 2 Sep 2021 17:57:49 -0500 Message-Id: <20210902225750.29313-3-samuel@sholland.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210902225750.29313-1-samuel@sholland.org> References: <20210902225750.29313-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org D1 keeps the same register layout and clock sources as the R329, but it adds a key field which must be set to update the watchdog's "CFG" and "MODE" registers. Therefore it is not backward-compatible. Similarly to the R329, the D1 has three watchdog instances, and only one of them has the "soft reset" registers. So that instance needs an extra compatible string. Signed-off-by: Samuel Holland Acked-by: Guenter Roeck --- Changes v2 to v3: - Add additional allwinner,sun20i-d1-wdt-reset compatible Changes v1 to v2: - None .../bindings/watchdog/allwinner,sun4i-a10-wdt.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/watchdog/allwinner,sun4i-a10-wdt.yaml b/Documentation/devicetree/bindings/watchdog/allwinner,sun4i-a10-wdt.yaml index 877f47759814..44cad9427ae6 100644 --- a/Documentation/devicetree/bindings/watchdog/allwinner,sun4i-a10-wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/allwinner,sun4i-a10-wdt.yaml @@ -30,6 +30,10 @@ properties: - items: - const: allwinner,suniv-f1c100s-wdt - const: allwinner,sun4i-a10-wdt + - const: allwinner,sun20i-d1-wdt + - items: + - const: allwinner,sun20i-d1-wdt-reset + - const: allwinner,sun20i-d1-wdt reg: maxItems: 1 @@ -62,6 +66,8 @@ if: compatible: contains: enum: + - allwinner,sun20i-d1-wdt + - allwinner,sun20i-d1-wdt-reset - allwinner,sun50i-r329-wdt - allwinner,sun50i-r329-wdt-reset