From patchwork Tue Dec 12 08:20:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin via B4 Relay X-Patchwork-Id: 753903 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86F1319BA3 for ; Tue, 12 Dec 2023 08:22:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hEiAIqLe" Received: by smtp.kernel.org (Postfix) with ESMTPS id 2C2ECC4163D; Tue, 12 Dec 2023 08:22:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702369325; bh=qrQdSRYnIt0dvVsr5w3gpaU+qxRo3oybmeMtAq01eqc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=hEiAIqLe1e1QbDpAle811YL8mhOH9MyenBWPc6U6s20hLz7cZQuP3FlgUUAs3v8JI d29Ed+geMCNYbQWHRz3XgNNEAYAFHn+oknV+qk8VlE9hLwHJ7/mF6V+29z3rQlsHzx DaI1uliAp1GiueWJsh5xM9q2rjqxJMWfBQjtYBaYrEt4P4VzMZhCSYkwvpKX0J87jq Uqf97jcx5r1DQ9PbSKDYOBqw/OpOz9nE/2J8He246KFI4431+OPWcWLe+NKT7vMvdu BguwHsXF+2lxqpU+MhlTTo5DzWIJlJCZLwVisMALKq8cNDgWPexSMuF+OeKhGnqgZT UWycFTrHk7/Vg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1BD3AC4167B; Tue, 12 Dec 2023 08:22:05 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Tue, 12 Dec 2023 11:20:29 +0300 Subject: [PATCH v6 12/40] watchdog: ep93xx: add DT support for Cirrus EP93xx Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20231212-ep93xx-v6-12-c307b8ac9aa8@maquefel.me> References: <20231212-ep93xx-v6-0-c307b8ac9aa8@maquefel.me> In-Reply-To: <20231212-ep93xx-v6-0-c307b8ac9aa8@maquefel.me> To: Wim Van Sebroeck , Guenter Roeck Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1702369322; l=1127; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=yDvFgKkbYlXFeJISIbxBJBumhjJt07IbMFASDCbxstc=; =?utf-8?q?b=3DQ0wAA2U+Gywk?= =?utf-8?q?gx889/3aYwp5uoyzuJWMfMc1DMxXm6J+9f4hVTHXpJB1aVug4SJP1aZuhTdSLvW6?= G6v4Z9zQCFXvQWZBIhyboqsyp1qBgSFxECkp51hVrhM3h1Xl4gvW X-Developer-Key: i=nikita.shubin@maquefel.me; a=ed25519; pk=vqf5YIUJ7BJv3EJFaNNxWZgGuMgDH6rwufTLflwU9ac= X-Endpoint-Received: by B4 Relay for nikita.shubin@maquefel.me/20230718 with auth_id=65 X-Original-From: Nikita Shubin Reply-To: From: Nikita Shubin Add OF ID match table. Tested-by: Alexander Sverdlin Reviewed-by: Guenter Roeck Signed-off-by: Nikita Shubin Reviewed-by: Andy Shevchenko --- drivers/watchdog/ep93xx_wdt.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/watchdog/ep93xx_wdt.c b/drivers/watchdog/ep93xx_wdt.c index 59dfd7f6bf0b..af89b7bb8f66 100644 --- a/drivers/watchdog/ep93xx_wdt.c +++ b/drivers/watchdog/ep93xx_wdt.c @@ -19,6 +19,7 @@ */ #include +#include #include #include #include @@ -127,9 +128,16 @@ static int ep93xx_wdt_probe(struct platform_device *pdev) return 0; } +static const struct of_device_id ep93xx_wdt_of_ids[] = { + { .compatible = "cirrus,ep9301-wdt" }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, ep93xx_wdt_of_ids); + static struct platform_driver ep93xx_wdt_driver = { .driver = { .name = "ep93xx-wdt", + .of_match_table = ep93xx_wdt_of_ids, }, .probe = ep93xx_wdt_probe, };