Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5381500rwr; Mon, 24 Apr 2023 03:22:32 -0700 (PDT) X-Google-Smtp-Source: AKy350bNMi9ojQ+eekknRQynP8dz/SU80O36UuT8tNCidbtYgoKpBQdxngAYcexZmyrlCY8TUzJa X-Received: by 2002:a05:6a21:6da0:b0:ed:1d7a:3339 with SMTP id wl32-20020a056a216da000b000ed1d7a3339mr17210708pzb.57.1682331752316; Mon, 24 Apr 2023 03:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682331752; cv=none; d=google.com; s=arc-20160816; b=n3yRmlROrd06K4yV0KQj48mOq6qZLkal93za9cAUCaL+yJ52apd41zUZvauDNETOph nv9Bhq3MpOI6/69awK3rijOKV0R+aHFtsiao201gRc9qYO5tLojxfXJsMeypB4Ht6yLz KfCHzFdseCSCftprOyMebefhXJMF/0jgXGotH6t58LO8b/yXnFPjjfIECr51ujmM/HuL 9cTa2JUZPXJKyrWpjYiKNCwGcS1aqzNG9mrxDSwyUQUpRfkq5CqWRgs6g2ofOcLZ8rVp 9CUSjzhHkZAyoq9tYv3GaRSs/C9UICuvx2PoNNoJ7p179ySmNvywFavzQ0DHP0iE1kW5 CyGQ== 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 Return-Path: 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.22.20; Mon, 24 Apr 2023 03:22:32 -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 S231549AbjDXKVd (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 Content-Transfer-Encoding: 8bit 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 - 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, }; -- 2.39.2