From patchwork Mon Apr 24 12:34:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin X-Patchwork-Id: 86975 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2642121vqo; Mon, 24 Apr 2023 03:32:42 -0700 (PDT) X-Google-Smtp-Source: AKy350bh+5LRbbSf2Wumbd+GiYIzUAiQbe37oS+2S0nxaPI1wyGnT4DmlmBVDD3c2hVZ2D5RSglt X-Received: by 2002:a17:90b:1103:b0:23f:1165:b49f with SMTP id gi3-20020a17090b110300b0023f1165b49fmr12248508pjb.38.1682332362013; Mon, 24 Apr 2023 03:32:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682332361; cv=none; d=google.com; s=arc-20160816; b=maFGdrr7gcPv09bXfgEfnhiVC2o9dABKwJmSwnn0cYzPfO1u87SDsHHzH3I2OvqaL/ 6xrMaG+JQQQiIGDoGKVFHv+AKLdAmG6CYNt9MOTuOVChpWA0cp7ytaaRdX2+GcuCFu1h ww4TQ6nHm2+m6p7wB97v96qC7FjIfcTuwKsQPdlBPItCdRoNkX0bgk9u4REHCC0XBZTz N1z4fmqSMcUv5w0PGo1CFTH9gc7hKrGvAo0+bI7fwV2qGc/d464NyCMdtbow2rnObx8t wCEAcKbAsH3hoJyB/czPhEJVcArc+iWUnROGyZE3tQDiVJDL4L0VBCEN4F75Wl5ZIXK/ nTiQ== 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=Ykq/wbEgP3PIeiGBN7Mik/1VdEeec2rPLqi1x7QHMOk=; b=bCOJTiHO3VOGAjJN1xV0IYAhvhDYv/fjp7LFttzbToPxjJ0qnL7DhQobZkNeK+Rp9c hmcc9RsNF5MaJaqrOOuHcoNqyR74EIgcTgJle7RDfwXGkXtDUbjSTtIy2eSWibrS/ySA l02dFrHNKrDVovzas+UIxuRpD+vdZH9ejK1xk5aso6JQMtB8kM7OHrDco1VIiL7/RIWo 2DlhXRxRwW09g8QSiae/0nL3oJ/MLBwfAOTP7wu5MXIHswYYJr8fwwDK7TA5UxPHT6E3 OJfAmyE03Fx7zuhQov3yWgapNwvAelV4nuBcYywIY+s3a/mlNvOVb/erhn4eWDZUbfwy +iQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@maquefel.me header.s=mail header.b=X0ySFbm2; 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 j17-20020a17090a7e9100b0024bcddfd241si400526pjl.156.2023.04.24.03.32.27; Mon, 24 Apr 2023 03:32:41 -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=X0ySFbm2; 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 S231710AbjDXKVo (ORCPT + 99 others); Mon, 24 Apr 2023 06:21:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231415AbjDXKU6 (ORCPT ); Mon, 24 Apr 2023 06:20:58 -0400 Received: from forward502b.mail.yandex.net (forward502b.mail.yandex.net [178.154.239.146]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BBD519B3; Mon, 24 Apr 2023 03:20:46 -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 EE11B5ED42; Mon, 24 Apr 2023 12:35:43 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id JZBb1pbWwKo0-AZ7pI60e; Mon, 24 Apr 2023 12:35:43 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1682328943; bh=Ykq/wbEgP3PIeiGBN7Mik/1VdEeec2rPLqi1x7QHMOk=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=X0ySFbm28PrBbp8i8IjzZMwqHRpl49jkfcAEIRgxnS+737rkjp2GoRoeqEDegkfKb lrqNd+8jzB6vzQ/Qo3r7giKJ8ZtUln/AH6KzpnI27dcqEY4NVuPMgj3bs4e79nBGDt ikwiuzdY7+dh942zHzbIw6qHgA0jmeK9vTgusp9M= Authentication-Results: mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin Cc: Arnd Bergmann , Linus Walleij , Alexander Sverdlin , Wim Van Sebroeck , Guenter Roeck , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/43] watchdog: ep93xx: add DT support for Cirrus EP93xx Date: Mon, 24 Apr 2023 15:34:26 +0300 Message-Id: <20230424123522.18302-11-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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764053338719390871?= X-GMAIL-MSGID: =?utf-8?q?1764053338719390871?= - Find register range from the device tree. Signed-off-by: Nikita Shubin --- Notes: Arnd Bergmann: - wildcards ep93xx to something meaningful, i.e. ep9301 - drop wrappers drivers/watchdog/ep93xx_wdt.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/watchdog/ep93xx_wdt.c b/drivers/watchdog/ep93xx_wdt.c index 38e26f160b9a..0f9b1b3b4307 100644 --- a/drivers/watchdog/ep93xx_wdt.c +++ b/drivers/watchdog/ep93xx_wdt.c @@ -21,6 +21,7 @@ * daemon dies. */ +#include #include #include #include @@ -130,9 +131,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" }, + {}, +}; +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, };