Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp202360rdb; Thu, 18 Jan 2024 00:29:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtN+4lUq1DhywL4DiHKoVX+7j3PADy27eIx50Qt+/d2/eUXxGzDuyIpnVbFkFkInf+k1qf X-Received: by 2002:a0c:dd02:0:b0:681:937f:6e67 with SMTP id u2-20020a0cdd02000000b00681937f6e67mr331101qvk.71.1705566593628; Thu, 18 Jan 2024 00:29:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705566593; cv=pass; d=google.com; s=arc-20160816; b=R/U4TB001dPNAr0xP1X8zfOhI4YIsc4zWcw+VLikU9FXD36PvRtmnRUJpJA3OjENWy cAQEu92yepdr2l9VYzkgx3Mxn9zlM5Um3lSbTX7Z4GIq3dDE2GZZbukx09SPI97C/VzQ oJKmB9BUlfNGigbY00lLXzBL+HAvkWwoLa1MSVLWaIIKmeb9p6mnTp8gqeuJXA1cPjGm QGlvv0smyztlweA8l5DaZXVqgpSNSNPfzr5YblXRmXP4kY4tcmGeJ907lO4hf0IXiZj5 jAsGPM4bEMljqYDf3DfJ3B/E6FTbHOpy829BcIqhTUt1TKAjK8P4gE7XsAdNKXHb2UxP ZdLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=imiKzNFFqcykEkADVAiNmEEFD2YTbLyCRTNKNTFI/x4=; fh=DBGRqGFPXQQkoLty/KDm1/gSJqHLt7Pr6uKZsmvx2Fg=; b=SAY4Tci5bYssggxeiuGws54Pgt/JNb7j5d3SqiSb39GzQTZ2bhCIk04VT2bqcgDtEe MdT3iBxXvZK3f0ywiQr4pY8zVQIZ/SgYwX9KlkSVJm8O8wNV1MFRPydHQpyH2dpH6DN6 A2i58GGWQ2n05jxu9vuPEhZPgZzJEIj4wqTr9QjB9OYPWbA1cZbHFzBfS1TLhgLd2fC9 y1KVASeMORQAhnFJqx3iNH2v+9j1ZmPptP59I5JL0zn6rswB7DVkm0Is8dGa8XsTTBay KJAFhRla+/tGqqrRKc5AdSfIcdnIwis1q0XSg5lLBLLoIOmVdjQgpzPPql80zuByH19L P2Ug== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IMUFabhc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-29874-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29874-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id k18-20020a0cf292000000b0068197305b13si138552qvl.302.2024.01.18.00.29.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 00:29:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29874-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IMUFabhc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-29874-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29874-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 622921C23F2D for ; Thu, 18 Jan 2024 08:29:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B7BC2DF63; Thu, 18 Jan 2024 08:23:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IMUFabhc" 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 0785B1F610; Thu, 18 Jan 2024 08:23:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705566180; cv=none; b=gLd56l7LhY7Bf+1TH+4V7977DOmaSy1xuVS5t0fBlKb791pHLZlg1iCiNPXuylOp4+2E95g5E84oNMG49FFJAE+hlqnRGuMomy9U0cpF9R4l6cRSG6s3YyYKcgNzWjf4hJBPrWkT6okRYOD1xCa4dY9aD69DiK9YaSYGMXPzDV8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705566180; c=relaxed/simple; bh=axzOW/bLfk48A9ZCiMw4d+If5yhSQO0oy0KThVKKlAA=; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Endpoint-Received:X-Original-From:Reply-To; b=EUBxTFR2YXU9SBZPri9s3oaz3TOuWaZBaodDCFPSJgoK6oSB9FXzf5xq3hLaKRfaTNJ5czw+AQlqJZTSEeT+Dac1CgcpMBzSw4TAlUh3MeBdg7Z6oDN8Q2rVfnwukcNckA7xyIk8JB0I8L8GNICM/GtL5vy5OmsOycaITLBcJRo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IMUFabhc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id DB68BC4AF6F; Thu, 18 Jan 2024 08:22:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705566179; bh=axzOW/bLfk48A9ZCiMw4d+If5yhSQO0oy0KThVKKlAA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=IMUFabhcaF9kTdZCkkoQxd0wEEcKpz4gGOHSeo9fv8eWUqAaf9gVuCnubAmDvVcyk ARUaiuDPVL/JQYTlBbEgFskUWvReXVFTaxZSCOPwPnCTQU5kk7b9+lhS0DPJ3gxObd xrMpD6eim6gx1kYSEcu8dcp2iN23tk7ZRf8UvldnoYG+Or894xmU8xXPOnXIRdV93I o8F8fpFuJGoam2fMRSqmDBmJEPE+9+f094ua0UyWYi2/oXdLLVOiCLmVLn0PHPaBcK 1zczJXtMr+N0leFxWHEyKg6lYPEbZhOnMRvAfJ0v7aA+KFRyPb+Dyr54XruUb4UqwX 46FJOI/YNyr/A== 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 CCC18C47DD6; Thu, 18 Jan 2024 08:22:59 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Thu, 18 Jan 2024 11:21:08 +0300 Subject: [PATCH v7 25/39] wdt: ts72xx: add DT support for ts72xx Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240118-ep93xx-v7-25-d953846ae771@maquefel.me> References: <20240118-ep93xx-v7-0-d953846ae771@maquefel.me> In-Reply-To: <20240118-ep93xx-v7-0-d953846ae771@maquefel.me> To: Wim Van Sebroeck , Guenter Roeck Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Andy Shevchenko X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1705566176; l=1140; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=1rWEe31MzZtFeQGF9K/nSefILZAuLYwUQNOfnETpfJQ=; =?utf-8?q?b=3D9Xpk5KuNgIps?= =?utf-8?q?Dd4rKPSMsKfKNPCjZK0ETNzmurGMDoVGObVMmlHsnFchMcYaOa7wFGUloM6rgxdn?= yGmp4GguDLck5fHmjU9czA+y5hL0aBv7/GkeEdHl4PkLWPWGGVqZ 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. Reviewed-by: Guenter Roeck Reviewed-by: Andy Shevchenko 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