Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4491289rdb; Tue, 12 Dec 2023 00:24:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IFIyA3ruAxlexFvKnxsgRPK6Moim5ILN9AtDlfmK8JnLJW75RULLn9JW+H2hjJHFeTNbejQ X-Received: by 2002:a05:6808:6541:b0:3ba:e7c:7b90 with SMTP id fn1-20020a056808654100b003ba0e7c7b90mr3045995oib.63.1702369452650; Tue, 12 Dec 2023 00:24:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702369452; cv=none; d=google.com; s=arc-20160816; b=ewr53I/JAzaIGQXeR+CaF7q44tZDxxo0r1fMaTduz6AI19HWa3akrgtAfMMsl8czhE O+hErkyCKxTLq2947Dq9cmlF0jeiW08ShCnlsuaxG0A5g6eYZhdbBm7Vb043gDmAOEwd 43DelT6n0kyAMQUHtMpDB/bJ9aF9bM5eyFiZQxAKbSZHjIpHdb+4CwgOL+Mjo3k/JOLU /dnh/YiqUj50O07MYIZHu/u+OTVCC4aHND5h24gVZYMf3ovqEGRuHtN3BzqvD0QucVeV CMVneRMW00YzdULAbJSlj0AMySUAhN9KFsp48XihgFYgfeNuwZl2ijOZiqypFI4E/D0t fwrA== 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=diqP6iE18b85mXneXZs9fIQ4E9/gNzIZCF1lQQ6U7fM=; fh=NkIZ12jQgdNjj1UTKgYl0XJuzZPpgqvZdQK/vNmoSkk=; b=v7TuVtR6HHo8fpb024EsTyuxpt/O6p2MGyyMt0LCF6joy8Rhp1YxvcsTu8c7LicY58 AHgPVNuPrk1f4JwAasc6tlnbPVY6khvrlN3vr6uJKmP8tWgOLvgh0QVPgZPNYVDlynWQ qx80LFLBhUreFpNBY+GRcFhscfho4vXwG5bRIl/xdOEBEbMHWzCg6Ss9hzVFpn+lUlYZ FUFZm8yySkI+6SYDN6XGNW92StSceinQ8vDOwvekJRn7FUGlnKLv25WVlFRhl1FGnnCG dtMleinnTqQWHbBZhBNt6SAEOKghSt5mOb1teQ+5SuMy1u2CvLYnmlBFtMH+D+i8IuQx 4WtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UMPBvyQJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id m2-20020a656a02000000b005b942de1e92si7601132pgu.443.2023.12.12.00.24.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 00:24:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UMPBvyQJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id EFA9780AC5A8; Tue, 12 Dec 2023 00:24:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346191AbjLLIXs (ORCPT + 99 others); Tue, 12 Dec 2023 03:23:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346062AbjLLIWD (ORCPT ); Tue, 12 Dec 2023 03:22:03 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DAC8F5 for ; Tue, 12 Dec 2023 00:22:09 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPS id D8611C2BCFE; 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=cItpiaed6CHjtfWMX5r54YQgAsVa3z6RG4hF/yvQPYs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=UMPBvyQJMLhyJ8VHFt2ODzBzOUeWN3LbLMJQ5PYgP7IndVopraetGRXGBuvwJCtOd AzguAXyxh24HOc0uZcPmuSYRATDF+6xHUkkn/VQ2B2YKOrC8M2Ufc4gCsretPrROoU aYFAXNXKfgUnifT7rFMfdWxfhHFddS3r/j4Fmppo2YojT3II6mbOK/oW088kgJuUo1 lXczGdCecwoxNsX+9l1DXaQATtSRLHGUb/LIk2yi+JCeRQNTpitclk7FJEpElajHr9 1QpSs8SzgUWtjx0LxZ74iBQzvQNE+WVwQLNefHA8evM+i202HsI1x9UcJKu8fB8wY/ Pde8Dfn1bD9wg== 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 C83B8C4167D; Tue, 12 Dec 2023 08:22:05 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Tue, 12 Dec 2023 11:20:43 +0300 Subject: [PATCH v6 26/40] wdt: ts72xx: add DT support for ts72xx MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231212-ep93xx-v6-26-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=1074; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=qivA2YWGEli1TcieCOkZGWqUUq9ysPIVFCcdW9sMfp0=; =?utf-8?q?b=3DjR55+J56hZUC?= =?utf-8?q?HKMvY9Ahz66ui8eybOOk1MHTfYP17Klr7SImmZh8dlTG49XjO0eEc2gI5Hw6X5qJ?= xUkVnzi8DrouzAO5Pw/VmvBGblqaT+QPHuCQS9ytpXc4q8Zgnio9 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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 12 Dec 2023 00:24:11 -0800 (PST) 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.41.0