Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4419012rdb; Fri, 15 Sep 2023 01:14:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGgIAjvpszTKu669JAGjs7JAr13ao1mUjrgCJOZpvXN3XBb0F12somWk9lcBfDGmhMe8Qki X-Received: by 2002:a05:6870:82a8:b0:1bf:9f6:b810 with SMTP id q40-20020a05687082a800b001bf09f6b810mr1126171oae.36.1694765697646; Fri, 15 Sep 2023 01:14:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694765697; cv=none; d=google.com; s=arc-20160816; b=Xr1e7F4ebejsOJaDLBndmvVoHZLOIwNHk8KjYV+aH8UlOQDScjMopeNwq0Dm8fyX2R tLCeIyGMUhXXnTgG7MaRB6KK3CuC83XVi656HHpeQrjTPlpwlkGs+Y9sI6v1YXeWvPYp iuTMm3kL6LJ57hm1tl8V8nYYpgjvHcADVf3x0BfP3VV0WL6pd/k4fnyXZCubxZPPhMUK ftZZTE/9CuUtl/u4XC+OLYDt4EMm18G/xsK0ORrODDibZmTv8pd12R3MCvdwB7D3wGsm azPzTgqyH8hxmzZfR1Y3rXtpmfw368/Fu3BIKRPimd711dEqCiSeUDmLhtA9B3npUn2d 8YOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=dtQTirnR/u/RQAetKsfO1HqIAO9Df1r1ajzUIs6WaV4=; fh=moN/v0WT6V9qpvUV6mvBWuMxV8VDcgKYwVPv3VtkiII=; b=uIYRHwU+z7vj+bWl6klnnMZ5FzftaTW+Fga7bfxsV3+jV592iicAY809L3FmzvtqZM 11yNRmRc3CEnhbTwVPnrB7orXvGjiB+P8S1ZdI9a7IPgH1XPcShJuW/Is5AqkE4KIQk0 cBaBz1ozDXPR4/udVPFdtmzpdiQ6oMfTj+m9BzN19T0R5BrCI7DFuKZ3d6pRebggUg61 eC5CaNgW/B/P1Q3Q06nA/7Pp0pnvx4KmFdESINVOYZwO1HjRo7QfZsuqG6FR/hCeDWnH 2ttxsJ34W+VbwanUTE6Qr7Q8i5SZwli1u0f7Wbrffkf26Rx3ZtpUZ64ZuHEPOlgbw/O1 phHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c2No9AfI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id m29-20020a637d5d000000b005526bd0c526si2865709pgn.641.2023.09.15.01.14.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 01:14:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c2No9AfI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 2A62E83B5AEF; Fri, 15 Sep 2023 01:14:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233272AbjIOINm (ORCPT + 99 others); Fri, 15 Sep 2023 04:13:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233057AbjIOIMz (ORCPT ); Fri, 15 Sep 2023 04:12:55 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 138AE273D; Fri, 15 Sep 2023 01:12:15 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPS id 05C2CC433AD; Fri, 15 Sep 2023 08:12:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694765530; bh=2FlZxT36v/1ieYNcUOP1tahj4MphcrKIHIrXfgTf/0w=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=c2No9AfIa35QdjWINW6pN4vVqdAFvrob5WP7vI3K75NbW2UqU6b2VGdCE4+9mckUW DWwNlRcs4nX/mmvAR/5Qep6S283uVmR1Zz7hF66VvgTeyJPDdgqHhdPKaXIDg/QxYv R+O5kRMjfEAzKpNOBxktLlLWcuhjNfjRr6jw3GbHqALV+lle5suVHt6SSp6JLpSm4h wlQNzlFRyZKw7NVR2yDEaimukeHDzDEnvMR2cwvRV+WrG/BRAEGA2xov/2T2aDdJm8 EI/JC9ds5JNy+SS8OJLcVLhdTZ32KvoV7p08chcsbROKftI5z3gfMtm0+LzV1oydSV jRFElr/QgBamw== 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 E89FBEE6440; Fri, 15 Sep 2023 08:12:09 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Fri, 15 Sep 2023 11:11:14 +0300 Subject: [PATCH v4 32/42] wdt: ts72xx: add DT support for ts72xx MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230915-ep93xx-v4-32-a1d779dcec10@maquefel.me> References: <20230915-ep93xx-v4-0-a1d779dcec10@maquefel.me> In-Reply-To: <20230915-ep93xx-v4-0-a1d779dcec10@maquefel.me> To: Wim Van Sebroeck , Guenter Roeck Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Alexander Sverdlin X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694765525; l=1074; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=1cDnaXlPAOaH5+xZTr72hWT8WSmANHDSimXewQ3o+7Y=; =?utf-8?q?b=3Dt3+2AzAAZxhU?= =?utf-8?q?5+woPJSF2uzyQ5liTE5S3JM23AoaINebWztdTD4lt5Z2NPAtr/RG+0URGVV1/TxW?= FMePSxjYAXZFLTgsc7kR4/EbdJyWD8SIS9ldgoCxg2Aw6QXJw0be 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: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 15 Sep 2023 01:14:06 -0700 (PDT) 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 @@ */ #include +#include #include #include #include @@ -160,10 +161,17 @@ static int ts72xx_wdt_probe(struct platform_device *pdev) return 0; } +static const struct of_device_id ts72xx_wdt_of_ids[] = { + { .compatible = "technologic,ts7200-wdt" }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, ts72xx_wdt_of_ids); + static struct platform_driver ts72xx_wdt_driver = { .probe = ts72xx_wdt_probe, .driver = { .name = "ts72xx-wdt", + .of_match_table = ts72xx_wdt_of_ids, }, }; -- 2.39.2