From patchwork Thu Jun 1 05:34:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin X-Patchwork-Id: 101708 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp69621vqr; Wed, 31 May 2023 22:43:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Ccz8e/YVtOgoh5//kquaZbnH9Bbng1b7gh4ZZaWinz16aw+3qBSWra5leqiVk9GNXRU7X X-Received: by 2002:a05:6a20:8f02:b0:10c:6dbc:2806 with SMTP id b2-20020a056a208f0200b0010c6dbc2806mr10989291pzk.46.1685598182900; Wed, 31 May 2023 22:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685598182; cv=none; d=google.com; s=arc-20160816; b=Z4P0JVCJSsc9kueAxz9hnfQSu5SKtwPZN2sVO3FYdn3i+eoKJjJH9SnxdpmJLfObhk Z0Zo1e/SMg+wFRExkD/r8fuCzVPJ6TO3UkLLxHig8uodtBn6fmya6HeHNSA5S3ZWxpsR JR0isi/fam5580aPYhYwrHT5zYVP8Yi0ylVUQ6QvRgfXgY4Jszh3M3Pf2iPge3R53Dzw Hx2SD6A69qVEqNqGrOSuRCXrzdq+Vn58TufF+v+tyorlGrmAq3W3ZEBC6HFGDAzIBQV8 4CfyoMSZAvSMJl3b0jZcC16LLX/WqXWqnVohXA8wvAW9e4lgSzDuaftltpcodh5SOII0 d7FA== 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=R+Pz7YByYt2SATeGDLe/ccdxjieXmmvUqEMemvxyK3o=; b=IpdHHFfMAZv5oe25MofbVH7A+wmOpxrrEbU+Pu/jfhn//xUP+GRKIrL5GoOE/JxVGK XbLREjJWp9wOfpG66CodYnDOFuhP0a2pE6rdKGGIBdE2tX7jg+jGNIrzvsPnoBkw3chH ckRJaunX+ytkRnEQ2youAuItDCTarLRcbbnrTUAK5sD4jQJuroKXbTuebCJZJhHW11HS WS7vfxXkHwoboWR+jwRSoOA965web+y3G7kHqwdtJDHMO1mk3Pl1Tffow/Pb8ZNmkKGl BVkM9OICWpljBPG6kLo+il10JJFmn9wGUPnU87aSvz45B0V6dfWU0DzRgo2K5G5nVRFv T3ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=GE4qmciV; 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 y27-20020aa78f3b000000b0064f8b5f1d84si792138pfr.202.2023.05.31.22.42.50; Wed, 31 May 2023 22:43:02 -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=GE4qmciV; 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 S231419AbjFAFi3 (ORCPT + 99 others); Thu, 1 Jun 2023 01:38:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231373AbjFAFhs (ORCPT ); Thu, 1 Jun 2023 01:37:48 -0400 Received: from forward100b.mail.yandex.net (forward100b.mail.yandex.net [178.154.239.147]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 492C5134; Wed, 31 May 2023 22:37:10 -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 forward100b.mail.yandex.net (Yandex) with ESMTP id CAC3C600D4; Thu, 1 Jun 2023 08:37:08 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id OaGNfZvWv8c0-6hcLzyhA; Thu, 01 Jun 2023 08:37:08 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1685597828; bh=R+Pz7YByYt2SATeGDLe/ccdxjieXmmvUqEMemvxyK3o=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=GE4qmciVDxM7OEXSzFXGcIiE537k0frwF7ZjWFt55Hd1bYs/DGl/p7zSrwRQoqtWT MlRuagrWKA6v6096m9Rwnx1B2UCEMyAVAQeCVhtuWL1ddPtb3rBLww2tWW34yZ/t/K lMwcGIeqid4xvnxfCKa3NxUbmxKYBzfp1Frhn6O4= 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 , Alessandro Zummo , Alexandre Belloni Cc: Nikita Shubin , Michael Peters , Kris Bahnsen , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 11/43] rtc: ep93xx: add DT support for Cirrus EP93xx Date: Thu, 1 Jun 2023 08:34:02 +0300 Message-Id: <20230601053546.9574-12-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?1764052781736482634?= X-GMAIL-MSGID: =?utf-8?q?1767477800162834495?= - Find register range from the device tree. Signed-off-by: Nikita Shubin Reviewed-by: Andy Shevchenko --- Notes: v0 -> v1: - fixed headers drivers/rtc/rtc-ep93xx.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/rtc/rtc-ep93xx.c b/drivers/rtc/rtc-ep93xx.c index acae7f16808f..1fdd20d01560 100644 --- a/drivers/rtc/rtc-ep93xx.c +++ b/drivers/rtc/rtc-ep93xx.c @@ -7,6 +7,7 @@ */ #include +#include #include #include #include @@ -148,9 +149,16 @@ static int ep93xx_rtc_probe(struct platform_device *pdev) return devm_rtc_register_device(ep93xx_rtc->rtc); } +static const struct of_device_id ep93xx_rtc_of_ids[] = { + { .compatible = "cirrus,ep9301-rtc" }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, ep93xx_rtc_of_ids); + static struct platform_driver ep93xx_rtc_driver = { .driver = { .name = "ep93xx-rtc", + .of_match_table = ep93xx_rtc_of_ids, }, .probe = ep93xx_rtc_probe, };