From patchwork Thu Jun 1 05:34:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin X-Patchwork-Id: 101717 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp71075vqr; Wed, 31 May 2023 22:47:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4iG9Npy90apVXHC5U1PvkKwwBBmSout39vVL5ePkC6/yGvpx2/8c3oJ5b8xZDLmzpngIfk X-Received: by 2002:a05:6871:6a83:b0:19a:5f5a:a32f with SMTP id zf3-20020a0568716a8300b0019a5f5aa32fmr5993046oab.1.1685598423597; Wed, 31 May 2023 22:47:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685598423; cv=none; d=google.com; s=arc-20160816; b=EnMwaZsf1BBTwInKzmFxkY/Jfok17gG6vKneg1uVEfrWihySIKf9Pk1LfUakQy3QoN 43N4DzFH1nOzfXLq7FwD3c12RAny8mPBWtEBxtMk1lmD4ceuvMgFkC3bBpvgZAekrmQM 8fSVPCY0t9nqmH2mfq5vie96X4RcLynqwb3lJ4r4aFO0cwDnJiwHYMSZZb+/SQrmkDts Q24fQcoVQJ+1Mp3Xic/0Sv1vVhxQPkNR+jPD7KySzAnpCoYBGTS6uL0khbBMeeSzvWn3 ZPJPBRUEHntxaXag6KqP6RHO5yv2OjlsjcS7MRWhlxletS1R7CABMDZfa5HNXtz7h8YL ShDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nCmh1471Kw/0ZT+tYC9QuJaR7Yngw3kQYxKNh7LKQTQ=; b=yaRaVmTOd4exTo0HFbBmmrIFfFjXB7YlqVvynLu+BoN/SWxLv4R3P4okCZ5uuoaJHZ L0MNuDYcb/d9Z7rz9UXKU00Tfm9UAwfSn94LitaFJV+nJfFaHt3b5gKI4kQNEKSUXvLp X+CuGQqPSoPogdrkOdgzpSPhWAt/BjAU3xjMET+myUvR+89mQ0qIoDnn04GvNm48KFCP DD4mrGg5FRccjE1l1H3sVLe5KIJinBEgZtMry6/tWE62UMosrKTQCtS3dgezNGnIUItV DLz1pBE6iIkfiEWFFQ/eRJpKMVrKXZXG27GYG+kD1fNbdQb7eQ0PH8GuuteTXtkPG28s kShA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b="Pr2sG/5c"; 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 v22-20020a636116000000b0053f25281d15si2236564pgb.537.2023.05.31.22.46.51; Wed, 31 May 2023 22:47:03 -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=pass header.i=@maquefel.me header.s=mail header.b="Pr2sG/5c"; 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 S231548AbjFAFii (ORCPT + 99 others); Thu, 1 Jun 2023 01:38:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231379AbjFAFiO (ORCPT ); Thu, 1 Jun 2023 01:38:14 -0400 Received: from forward101c.mail.yandex.net (forward101c.mail.yandex.net [178.154.239.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9F211A7; Wed, 31 May 2023 22:37:18 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net [IPv6:2a02:6b8:c14:c83:0:640:84f9:0]) by forward101c.mail.yandex.net (Yandex) with ESMTP id B0F66600D1; Thu, 1 Jun 2023 08:37:11 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id OaGNfZvWv8c0-ru09HF4J; Thu, 01 Jun 2023 08:37:11 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1685597831; bh=nCmh1471Kw/0ZT+tYC9QuJaR7Yngw3kQYxKNh7LKQTQ=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=Pr2sG/5cTKRaLxieVR5g5bdTsoLk6KGlrNpkQSWrHeqPvphrFzBHAH7LTeYb5nSKo rJvEIz/8x7rNVMCDuJ8qW4/QWsYVF/OFHEpLTt3wpLv17cRuP2dWIHfxBRoDbQVZnL Xgpul3zViS+czi+omJA7yt27bfrMiHZXW+GLecTM= Authentication-Results: mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin To: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Wim Van Sebroeck , Guenter Roeck Cc: Nikita Shubin , Michael Peters , Kris Bahnsen , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 13/43] watchdog: ep93xx: add DT support for Cirrus EP93xx Date: Thu, 1 Jun 2023 08:34:04 +0300 Message-Id: <20230601053546.9574-14-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.37.4 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 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?1767478052647009435?= - Find register range from the device tree. Signed-off-by: Nikita Shubin --- 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..088b88aad94f 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" }, + { /* 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, };