From nobody Wed Dec 17 23:29:24 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 020DCC61D9B for ; Wed, 22 Nov 2023 09:02:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343736AbjKVJCg (ORCPT ); Wed, 22 Nov 2023 04:02:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343531AbjKVJBX (ORCPT ); Wed, 22 Nov 2023 04:01:23 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1124CD47 for ; Wed, 22 Nov 2023 01:01:19 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPS id AED2FC197C4; Wed, 22 Nov 2023 09:01:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700643675; bh=cItpiaed6CHjtfWMX5r54YQgAsVa3z6RG4hF/yvQPYs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=THroMtK38o2Pq++76M5lvYnwMJF6zQ8hJx7ISJhqensJclD6XnCXXIPdyKJRDEBxY M4FpbprkqKOO/pFUvseEdsTzzEMSsLRSMXvevpKrE26fn+DGmMIEbTF8uapvTNAn9U Z7EmyOwXf+IaZxtLz8wWa7WZ69SyL2Gu10lXhheCd5JVEuIQi3LRFFFRmiWS6xP+0t Dw020Pwhaq981891TdFcNV8YeMRpepXdwaO3GjTFmll/laKSYuOMICNDDCDEdshcNW wVa6aoDJyzWlsQMTGPwOTXAuDaCaHsHozkf4bZ1q1uz5jlJzsz3Ip4M1/Vs/j6BLei tuK95H9mFTvRA== 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 9EBE2C61D9D; Wed, 22 Nov 2023 09:01:15 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Wed, 22 Nov 2023 12:00:03 +0300 Subject: [PATCH v5 25/39] wdt: ts72xx: add DT support for ts72xx MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20231122-ep93xx-v5-25-d59a76d5df29@maquefel.me> References: <20231122-ep93xx-v5-0-d59a76d5df29@maquefel.me> In-Reply-To: <20231122-ep93xx-v5-0-d59a76d5df29@maquefel.me> To: Wim Van Sebroeck , Guenter Roeck Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Sverdlin X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1700643671; l=1074; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=qivA2YWGEli1TcieCOkZGWqUUq9ysPIVFCcdW9sMfp0=; =?utf-8?q?b=3D7OTM/2GZkepl?= =?utf-8?q?9WeRH/RC8ziBc75YHYmmlWVQm16tTWKDVmDZcPhnYpEdaTB6hdU7f8RTPzSrmQMm?= nQ1zQV/oAgUfpD6w2Y0WQl0wXVnoUlR+XCmnajmWCDDvGigzJqa1 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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nikita Shubin Add OF ID match table. Reviewed-by: Guenter Roeck Signed-off-by: Nikita Shubin --- drivers/watchdog/ts72xx_wdt.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/watchdog/ts72xx_wdt.c b/drivers/watchdog/ts72xx_wdt.c index 3d57670befe1..ac709dc31a65 100644 --- a/drivers/watchdog/ts72xx_wdt.c +++ b/drivers/watchdog/ts72xx_wdt.c @@ -12,6 +12,7 @@ */ =20 #include +#include #include #include #include @@ -160,10 +161,17 @@ static int ts72xx_wdt_probe(struct platform_device *p= dev) return 0; } =20 +static const struct of_device_id ts72xx_wdt_of_ids[] =3D { + { .compatible =3D "technologic,ts7200-wdt" }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, ts72xx_wdt_of_ids); + static struct platform_driver ts72xx_wdt_driver =3D { .probe =3D ts72xx_wdt_probe, .driver =3D { .name =3D "ts72xx-wdt", + .of_match_table =3D ts72xx_wdt_of_ids, }, }; =20 --=20 2.41.0