Message ID | 20230424123522.18302-32-nikita.shubin@maquefel.me |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2633657vqo; Mon, 24 Apr 2023 03:14:32 -0700 (PDT) X-Google-Smtp-Source: AKy350aFyOLRA3/DpPPohf1nZMNSyalrRESBbcQS3CX2Wk2zVGxajDshL5YZAcXeRNf7zA1a+8d+ X-Received: by 2002:a17:90b:3841:b0:247:e4c:d168 with SMTP id nl1-20020a17090b384100b002470e4cd168mr13260438pjb.10.1682331272153; Mon, 24 Apr 2023 03:14:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682331272; cv=none; d=google.com; s=arc-20160816; b=jxL/cS+//EwuDl5fVI7z+SrS2SPEZzR6ymO7D/eNNV5WL7u4SNnFgxhk2zkBNzYZAJ nSYvhT3kn+4hPaAwUTj3yaGHkcH0ieEbNGo/wEDmisEYtTbHwn7FrHO2vlYNjpSvTm0g e7EbksfQH4J5Zs8WVsIVL0FsZCpIDsiyZBl5nU1mj1MoWQ2TGUqLb7lo2OPxzfMa933j 8cGi02uZ0PZ951gi5hMk0KIndZ5M7Cwi6gJh8V2T6UvcmzxCIVMblFlkV7eoE1mtepdQ csLpQksxdIJReACs2W6XaUE3eF4QIT9KD/4GRimEzeqfxffYp+tCDuQ7VKug1molKzYf NJ4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=X2ZnF8z0MJVwVfnTxaJeQDmtpEYIwg62QlS6BVN0m0c=; b=m4ZZXuJGg5M8SoPlVvNtRUYRXsuu6aZWTmfOalEiqCYuiK3xm2sLTBD0ycJkKD4cY3 t4/3CUKbh+7XO6ZLkNnsyRtW1tXdvItJRrLHSGxwup9C1mH0sbDUd1hfSrIZL73XpSxX JbmGPAnNQYFgOntTH6v5KieDGEzRBryr5kacpuVqFGNapp0G01JHs+ep4mzVon2Bw82o 0ZxF+2XTsWbHt1hwdJgUbhF6TM/Xk+af3PUBNREAvqUNo9M7wccn3MJzb3OXHeQHXdVx sSoNVNxropWyYv78N8qMG7cr4IsI89dU7twE8N2vxQ0oqeo6yyaoN+KAEw4yc4yeJA39 vDMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@maquefel.me header.s=mail header.b=S6TlKmzS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a4-20020a17090a740400b00240ad93edfesi11142269pjg.5.2023.04.24.03.14.19; Mon, 24 Apr 2023 03:14:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@maquefel.me header.s=mail header.b=S6TlKmzS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231523AbjDXJ5b (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Mon, 24 Apr 2023 05:57:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231133AbjDXJ51 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 24 Apr 2023 05:57:27 -0400 Received: from forward502b.mail.yandex.net (forward502b.mail.yandex.net [IPv6:2a02:6b8:c02:900:1:45:d181:d502]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CDB3196; Mon, 24 Apr 2023 02:57:26 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:261e:0:640:2e3d:0]) by forward502b.mail.yandex.net (Yandex) with ESMTP id 920515EBE4; Mon, 24 Apr 2023 12:36:04 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id JZBb1pbWwKo0-Lb5xZorK; Mon, 24 Apr 2023 12:36:04 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1682328964; bh=X2ZnF8z0MJVwVfnTxaJeQDmtpEYIwg62QlS6BVN0m0c=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=S6TlKmzSb8mNgS6HtrmGROmKsWLrDtphmKY5TD7km/ETt/mRUm4XbxPgbMLqweMoQ YkJ4UglWWycr7ZEJZ0Hm/dm+WozxYlX4tlUpjgnaIram/ik3LWCZ+p5JqCzu0u2FPd 7G/UZPfpZVKs+61TIneJoVh7MWDYEvcH5Vjd1aJU= Authentication-Results: mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin <nikita.shubin@maquefel.me> Cc: Arnd Bergmann <arnd@kernel.org>, Linus Walleij <linusw@kernel.org>, Alexander Sverdlin <alexander.sverdlin@gmail.com>, Wim Van Sebroeck <wim@linux-watchdog.org>, Guenter Roeck <linux@roeck-us.net>, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 31/43] wdt: ts72xx: add DT support for ts72xx Date: Mon, 24 Apr 2023 15:34:47 +0300 Message-Id: <20230424123522.18302-32-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230424123522.18302-1-nikita.shubin@maquefel.me> References: <20230424123522.18302-1-nikita.shubin@maquefel.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764052195744608903?= X-GMAIL-MSGID: =?utf-8?q?1764052195744608903?= |
Series |
ep93xx device tree conversion
|
|
Commit Message
Nikita Shubin
April 24, 2023, 12:34 p.m. UTC
- get regs from device tree
Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
---
Notes:
Arnd Bergmann:
- wildcards ep93xx to something meaningful, i.e. ep9301
- drop wrappers
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 bf918f5fa131..72bbb4db983e 100644 --- a/drivers/watchdog/ts72xx_wdt.c +++ b/drivers/watchdog/ts72xx_wdt.c @@ -13,6 +13,7 @@ * warranty of any kind, whether express or implied. */ +#include <linux/of.h> #include <linux/platform_device.h> #include <linux/module.h> #include <linux/watchdog.h> @@ -162,10 +163,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" }, + {}, +}; +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, }, };