From patchwork Fri Sep 15 08:10:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin via B4 Relay X-Patchwork-Id: 140200 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp884711vqi; Fri, 15 Sep 2023 01:14:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEHYO7FjUDnz+rKZcuju+D9nZ8qM6EphgQ9WNemPXr9nDDGxMeEQB8tqfZ/BhSkRsX1c40u X-Received: by 2002:a17:903:48f:b0:1c3:76c4:7246 with SMTP id jj15-20020a170903048f00b001c376c47246mr857175plb.9.1694765696981; Fri, 15 Sep 2023 01:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694765696; cv=none; d=google.com; s=arc-20160816; b=M7/MHT+kuajbw5n0CkxT7afxedHSs6tiGjG0j+Kwlj94TJQRLXJGDi690EzEwNfDHR NfbktP2cRsIPUCJaf062wtXfUbyVqyAB4TFCoYY2rQ3vQr6sT2L3WLIh625UjAUjHdN4 rf0Ictz8n4aZTC+tP9kAizaxZOEyd+UCuLLtvyJuqt1lkESB2gF6IqV0Vmje4feH+Ri+ MPKYbJaUIIc3EZIkQb1MYhlMjDtzb6Jo2ZT5ZSSFmK3FMZGKq8Db7dxKToEeZ+G7UHpX iHjZWYehVRPUBXxpdX/km8m9Ucg7crGsAKZ/xCsCMOtEFlL7b5CdQnFHNsd9/VkjQR8R blCQ== 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=IUCk3ZqhjQbF9ArqtEM1Anepex7lBFPnvCG3hvX3qao=; fh=6rooXGI0BlO9AdLwZa7N1JGdDUUgagttJ3w+fUr4JfM=; b=ldB/1L7MpO99cYYpuw2oYMNRkcWfbxYcDAG4XcZaK1Insyflh2ssANvuV3cmYoq/zH 8jXV2LjEmAL7SFxKt6Xi4ac/WYXr4/bmdMTeLHnLk11Q7cTlu/JOXyd8TefPZffvV8XI CH5BiPuHUHZ6fJQJdVqiVok8gazsmcuNY1b4cCTmLpdVW71geSne7fIErZxqEIN8oNBR mD1/CtZubWAIhQ/co936fBeW2UcbtdV4OL8DPy1bf6x99WbiTDZPr8UWy8dt15yuBud/ SUQYVl/K657bJdejITZ6wa1h7Jah5JdOcCC21CodFAOlsD4cmpitf1VtmW2WR+a5JMzo lJvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iykzSGPc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id ij6-20020a170902ab4600b001bee6def27dsi3007078plb.235.2023.09.15.01.14.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 01:14:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iykzSGPc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 5D99983ACE7B; Fri, 15 Sep 2023 01:13:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233035AbjIOIMs (ORCPT + 32 others); Fri, 15 Sep 2023 04:12:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232906AbjIOIMS (ORCPT ); Fri, 15 Sep 2023 04:12:18 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E512271C; Fri, 15 Sep 2023 01:12:11 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPS id ED4C5C116A6; Fri, 15 Sep 2023 08:12:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694765529; bh=PIAVRsubooNT/IoJh/5r833VlR5IHIMSLPb5V8bEVII=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=iykzSGPcCWpaTtiatlxtCM/u/jzYPiSMh4tsav5dtjgrLpgCOeZKjV/BR1oTdwnH/ 2WAGKZDY9VH4vzT9jEQPjQtLxjx7ZSGYinXl6NJOqVm2bMhCUdG+Ss4XlvTA3FGnFu axgrRfCWEl41K0egBrLkghwqC44JvuBXsVEl3l7xVYqRY7sTSh0xrvar6FO10j0adw yNbZeMYIUKBJVCeQo+3i/SviQEw+iS4muyyb7Ig4dJrex1IYGbTMpELQAi4iMXs/8G /91pv7osbK18GIEY0aJr93gZcER0NxiRho8+gZp4tm57K/OsgIUoBww341L374HS5b MMFebCl7wHdcA== 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 DAC7BEE6436; Fri, 15 Sep 2023 08:12:08 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Fri, 15 Sep 2023 11:10:56 +0300 Subject: [PATCH v4 14/42] rtc: ep93xx: add DT support for Cirrus EP93xx MIME-Version: 1.0 Message-Id: <20230915-ep93xx-v4-14-a1d779dcec10@maquefel.me> References: <20230915-ep93xx-v4-0-a1d779dcec10@maquefel.me> In-Reply-To: <20230915-ep93xx-v4-0-a1d779dcec10@maquefel.me> To: Alessandro Zummo , Alexandre Belloni Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Alexander Sverdlin , Andy Shevchenko X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694765525; l=1082; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=p80xCnz+NiYVYSqsKWTadEzof+wILB6tYu5g6z/UQHM=; =?utf-8?q?b=3D5o3Yk09uQHB6?= =?utf-8?q?rSVNBOSYUARYgtDmO/npd1JvYZ7zPPxiZeant3v1EDCH+4HoeQBCbNXAMgS6Hz8Q?= F4LqkKUrCYmh9RfkZt88PHzOK9mvSjOZO6yKlztjR0F/7RI9tUUM 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 Reply-To: 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 15 Sep 2023 01:13:58 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777090635100983996 X-GMAIL-MSGID: 1777090635100983996 From: Nikita Shubin Add OF ID match table. Reviewed-by: Andy Shevchenko Signed-off-by: Nikita Shubin --- 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, };