Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4418948rdb; Fri, 15 Sep 2023 01:14:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGqkOF7fACx5MfGZpsnzsy56DE3lqpwYoajeAntS67dyrdtQJX9CDM7J3TJyuvMPZc8qus X-Received: by 2002:a17:902:7202:b0:1bc:10cf:50d8 with SMTP id ba2-20020a170902720200b001bc10cf50d8mr868022plb.23.1694765688733; Fri, 15 Sep 2023 01:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694765688; cv=none; d=google.com; s=arc-20160816; b=0u0gyRnyJZN7u5rrvbyflRy2/Vd1TZsGzZEeYCaYoMmhlSXZKVxG2c7bkovgbsZm+N 1lt+G9G+Y/jiV/6/vl3i8MRVybhVKB0MSTfxbYh3BVzbF+2j6OafcP/MZjz2wwZjItd6 8SVJkaGtY7jN4BihLNiIJc3/2VoBuMpqkdgrpinOhdolcorEhbXcGj1DCkwn8Lma7fQH tIDyECwWbp6rvGeadO/EfAeUT3Eemr9+aKRElj09QJnU060Qi75ZzzKDv1vaFwDYgu+C DVoLEvMXWUJPNUP/dG7riv3Oms0TUielycKi20TuJMZ5S+hgz65Cux0hWE4Tl6AQd4VX 2Jtg== 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 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id c17-20020a170902d49100b001b89551a392si3248269plg.113.2023.09.15.01.14.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 01:14:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; 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 23.128.96.31 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 452E38374A4B; Fri, 15 Sep 2023 01:13:00 -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 S233034AbjIOIMr (ORCPT + 99 others); Fri, 15 Sep 2023 04:12:47 -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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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:00 -0700 (PDT) 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, }; -- 2.39.2