Message ID | 20231212-ep93xx-v6-12-c307b8ac9aa8@maquefel.me |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp7581914vqy; Tue, 12 Dec 2023 00:23:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IF9M5iLiRQewMfW5iXZ9feL1EfKTIX4rot5yUfrui19vJtDrP+RrwgWjedJsjkVJxYpX8ne X-Received: by 2002:a05:6a00:1ac6:b0:6ce:3260:c469 with SMTP id f6-20020a056a001ac600b006ce3260c469mr2762336pfv.35.1702369433909; Tue, 12 Dec 2023 00:23:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702369433; cv=none; d=google.com; s=arc-20160816; b=A0jaywzxyLYQ1cjyxHs+1V5R9wQ541axaydjSSadJBEmD/8/smeQVuOUlmaYAq7Qu3 EzQxrg+vL+ViV/tgcT/vTw8R9qTFNO0qPPfpmt6e0XaiZYyxV8KkR6Y8Ntf5GEI+MyKA j+CSnnRYFQaslBsNQD7TwwzACQGINcHdOlXQqmkgU11WGphMQd6HDjF+ve7uTuCzl9a3 I37f/HvtrQHDIR441IQnNqKcoNzXlZmtdl4NXxy3mVo6B+tb4SI9UjEHfUU2mz4PvjbI FzpvVuJVrO5k+/kZkSPOisCRC7Nx4BrcrjxCpk9kLOxtNDwpJFYchUD7awnkheaJ0WgM vIeg== 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=e4lIZ91bwEJjpX3z0vlnkAurcvLxnJBuf+OKKBI19ck=; fh=NkIZ12jQgdNjj1UTKgYl0XJuzZPpgqvZdQK/vNmoSkk=; b=CP/D18O66JpH8DXza0bz8pJ5Sg/GGsPOshuT8nY9IqTuJgl+cyu4ml7/88unE8d48c ApZx6W+O5nrEPbkNKlFF0Cmn88QxzYcLzz7RBhQuHbqNUbFye4LGTHJUoIP90cv3ER3I NXNmF1DeZdtX0HJDqvKjYfXzBh6TyAiYEDQDELT67fR17BCypRTYx7enJT2CrjpJpht3 4LBdG8Ud8jTkTMWElDhvFKV7h9Vuf3JJbcQKjb+ttn17Lm24d+6wPS85XvzGXZzaoyCp I/roYcHPsQjgNcohXfED7T46iQpfOIPKjQ0yoYM70B/mYzjVZL7rCnlhVHmvIquGpMmW L6dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hEiAIqLe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id h10-20020a63e14a000000b005be34495eedsi7214751pgk.118.2023.12.12.00.23.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 00:23:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hEiAIqLe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 066318055563; Tue, 12 Dec 2023 00:23:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346112AbjLLIW6 (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Tue, 12 Dec 2023 03:22:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346055AbjLLIWC (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 12 Dec 2023 03:22:02 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CC7CDB for <linux-kernel@vger.kernel.org>; Tue, 12 Dec 2023 00:22:07 -0800 (PST) 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 <devnull+nikita.shubin.maquefel.me@kernel.org> Date: Tue, 12 Dec 2023 11:20:29 +0300 Subject: [PATCH v6 12/40] watchdog: ep93xx: add DT support for Cirrus EP93xx MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 <wim@linux-watchdog.org>, Guenter Roeck <linux@roeck-us.net> Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann <arnd@arndb.de> 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 <nikita.shubin@maquefel.me> Reply-To: <nikita.shubin@maquefel.me> 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 12 Dec 2023 00:23:48 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785063731248316359 X-GMAIL-MSGID: 1785063731248316359 |
Series |
ep93xx device tree conversion
|
|
Commit Message
Nikita Shubin via B4 Relay
Dec. 12, 2023, 8:20 a.m. UTC
From: Nikita Shubin <nikita.shubin@maquefel.me> Add OF ID match table. Tested-by: Alexander Sverdlin <alexander.sverdlin@gmail.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me> --- drivers/watchdog/ep93xx_wdt.c | 8 ++++++++ 1 file changed, 8 insertions(+)
Comments
On Tue, Dec 12, 2023 at 11:20:29AM +0300, Nikita Shubin wrote: > Add OF ID match table. Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
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 <linux/platform_device.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/watchdog.h> #include <linux/io.h> @@ -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, };