From patchwork Mon Apr 24 12:34:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin X-Patchwork-Id: 86961 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2637932vqo; Mon, 24 Apr 2023 03:23:50 -0700 (PDT) X-Google-Smtp-Source: AKy350YY4fPbxWWrnL6IEt+8fImD8UvltHhQLnCzLNnDAdv40tbX5F532zkxcIFe5X/taFukvNSs X-Received: by 2002:a05:6a21:9997:b0:f4:24e6:1065 with SMTP id ve23-20020a056a21999700b000f424e61065mr5003321pzb.39.1682331830393; Mon, 24 Apr 2023 03:23:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682331830; cv=none; d=google.com; s=arc-20160816; b=UUQj0r6rMrMsMjxRVsAJscIlZtpX8uWNr2QG0EJgYXJsYAKBRtJt5B11f7OalHB6sy KvNHZ0+EoZ0tslJ6KLwHm06GTvE2DQVZizP2vuD2khWPr0TqvXLzQss97KWt7awz+Xwu 7+U5+xE+D55DGD5LuO333wi2EIERfe9Hxsz6TzINRHqS8xaIHbYZ4woxKTvuxjMvL3/N bo6iesJCR7m+SMPOIyHR/YtbjyY/AwJENhrhAlWW4yNrNzbxPGLvqUmQ8y98rDBOBN90 TSrGZ3eLRmGh/qz+kISkYc0gDaqLIARsFIrAcXhGaGZeDTA4TcQ8MNHQpmTyK+zETvkZ oUgQ== 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=K1BrJFARres8quvGFHRVDGGD0XFqhKg6JqfWlOl6IWw=; b=GvEplysBCaij4GVJn54GEb1ucqkL77hnaQk6S4kRdu4OuIS66m2H+zR7WaNi/GvQsC OfIJSVcW0nvz9p4NNYgyDoSNYu4AoyF+LiB6iu0ELnOW+V9p5tOUFZmGUHYgD6OjZE9o shyu0ZHqsYKebVNOh8+0yzrUYF1D6vvXY1sxWYxrTKg5fvo+x5NxBoruJXKQFmb2+btI FaG+e8qSTHE71GgYuCxC6Ff2bqg8M9SdaEHSU4Xe9c15XvLkswHXYQnT7zUQNFxqkLMT 67wrrOopkM5io4R2eo+tfnCYLRCVxcAqC87zP6gt1ysTTRp21zfv2AoeymUrb+ZaKl7a y0lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@maquefel.me header.s=mail header.b=ZgzB4Ywj; 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 bk13-20020a056a02028d00b00524d4b572e9si8403443pgb.370.2023.04.24.03.23.37; Mon, 24 Apr 2023 03:23:50 -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=ZgzB4Ywj; 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 S231707AbjDXKVd (ORCPT + 99 others); Mon, 24 Apr 2023 06:21:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231675AbjDXKUr (ORCPT ); Mon, 24 Apr 2023 06:20:47 -0400 Received: from forward501c.mail.yandex.net (forward501c.mail.yandex.net [IPv6:2a02:6b8:c03:500:1:45:d181:d501]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCA1A3A90 for ; Mon, 24 Apr 2023 03:20:45 -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 forward501c.mail.yandex.net (Yandex) with ESMTP id 8404E5EE57; Mon, 24 Apr 2023 12:35:42 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id JZBb1pbWwKo0-z9Flm1CE; Mon, 24 Apr 2023 12:35:42 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1682328942; bh=K1BrJFARres8quvGFHRVDGGD0XFqhKg6JqfWlOl6IWw=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=ZgzB4YwjgAjrXUb5wN89rYvQobvH0KISWKTeScRVSVTn29bGMW+oBR8/DNYxTVYCY DNnGeToeHxUtNeLITjsni9W4ljpNVZ65qJQZybU/QY/v0tdnGXVJcIJvysB6xWV/Z8 yf9K1JDB4dwhtTJPEoT8ecqwsKjMjIZNZ0z6Wzh4= 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 , Alessandro Zummo , Alexandre Belloni , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/43] rtc: ep93xx: add DT support for Cirrus EP93xx Date: Mon, 24 Apr 2023 15:34:24 +0300 Message-Id: <20230424123522.18302-9-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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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?1764052781736482634?= X-GMAIL-MSGID: =?utf-8?q?1764052781736482634?= - 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/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..8bda20a4940a 100644 --- a/drivers/rtc/rtc-ep93xx.c +++ b/drivers/rtc/rtc-ep93xx.c @@ -8,6 +8,7 @@ #include #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" }, + {}, +}; +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, };