Message ID | 20230424123522.18302-16-nikita.shubin@maquefel.me |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2650088vqo; Mon, 24 Apr 2023 03:52:25 -0700 (PDT) X-Google-Smtp-Source: AKy350bA00tFv4Ih3uJJ9znrB3Zbuw1H/kOumMYs2nfqbAGLvCHI8ic0fCTzk3/IK4E0v7vT38YK X-Received: by 2002:a05:6a00:1796:b0:634:7ba3:d140 with SMTP id s22-20020a056a00179600b006347ba3d140mr19115083pfg.15.1682333545217; Mon, 24 Apr 2023 03:52:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682333545; cv=none; d=google.com; s=arc-20160816; b=yL4iXY3DfeRc36wRlAt1EO2CcZ39VcV1DGjzPob7AaSSTaz6PJ4Qd7diXfKwo6690G ulFaORPHUpQo0MAegBecac8rLzMMlX/rV6Bm5vE3wGTybS23jZK+3Lxi7JcBKbpOE5D/ dH1ju+Jgg5vZzngdjdWBjcBnEcktWAF/kXJvhFn29AKUzzPOFGmUIx1VHV49BrYXhXhC UNcF72v//SEeqeEpFETnpkZHK4gXBJeIVBoXQV/WGKB4h4Xq6M8n3fRw9S5ibakwtgpW c3Yx5nDa5TQlxfMFS/ar7DYo/znTC10i8fFuelT8O5CAfazeahNvUAtQ4f8ksRZVdDRW ATog== 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=6d2blHF/x76bnokAwJSoDlOUxM10JA59gkfhlsWUqSs=; b=0wtC/1fn/2pBiCSKuxW51PfMNFmZDsZVot5Y4mlOK/Ja3IfJUDmNiXOam339EAtHvA C9JtIRlYexERk76QJvVbu72oinwLHfB6ZTmFMNIrS/gUUSU076Dg1e5uHohoDOQtVp46 Fil8b1F1iBjpEGcRXip5NojveCaHdx4pvKtdlDK5kmT1ICYEQGquRM/92E3Ofobd3R1T ZsTKUKHlekQK7+1Qvt3/qy2JPmFvWjxPwOXTLWHsH20QgvKgaCdXaM+ZjIMCWjaRfvWs E5h98OVtwU3jfNDXbhVI27kSCcN5iV4lAWaJ5M+xyXD9tkD6h6aEZkb7OE6wln69SLDB 7YKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@maquefel.me header.s=mail header.b=QO5XkgpZ; 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 f79-20020a623852000000b00636b6e10ed4si11021809pfa.85.2023.04.24.03.52.11; Mon, 24 Apr 2023 03:52:25 -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=QO5XkgpZ; 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 S231502AbjDXKfQ (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Mon, 24 Apr 2023 06:35:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231137AbjDXKeq (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 24 Apr 2023 06:34:46 -0400 Received: from forward502c.mail.yandex.net (forward502c.mail.yandex.net [178.154.239.210]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E444030ED; Mon, 24 Apr 2023 03:34:22 -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 forward502c.mail.yandex.net (Yandex) with ESMTP id 5EAB55EC51; Mon, 24 Apr 2023 12:35:49 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id JZBb1pbWwKo0-fYvcjqYV; Mon, 24 Apr 2023 12:35:49 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1682328949; bh=6d2blHF/x76bnokAwJSoDlOUxM10JA59gkfhlsWUqSs=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=QO5XkgpZe4LwVgbqbXrMJuvrU+UOZQKIOKlwQVfIMuLrFz5ccv946BWeH4LHWwtpz vjuzEIZtLxU6QCuSiK3bsSUytUOC3JCSjn4madh/bG5omlrbq6DGxktUP7At8XK/1a 78vxGxjI57F7+p18CDCeE3m4IeUaFbUMtuHmc3i0= Authentication-Results: mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin <nikita.shubin@maquefel.me> Cc: Arnd Bergmann <arnd@kernel.org>, Linus Walleij <linusw@kernel.org>, Alexander Sverdlin <alexander.sverdlin@gmail.com>, Thierry Reding <thierry.reding@gmail.com>, =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 15/43] pwm: ep93xx: add DT support for Cirrus EP93xx Date: Mon, 24 Apr 2023 15:34:31 +0300 Message-Id: <20230424123522.18302-16-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.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 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764054579402889022?= X-GMAIL-MSGID: =?utf-8?q?1764054579402889022?= |
Series |
ep93xx device tree conversion
|
|
Commit Message
Nikita Shubin
April 24, 2023, 12:34 p.m. UTC
- find register range from the device tree
- provide clock access via of
Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
---
Notes:
Arnd Bergmann:
- wildcards ep93xx to something meaningful, i.e. ep9301
- drop wrappers
drivers/pwm/pwm-ep93xx.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/pwm/pwm-ep93xx.c b/drivers/pwm/pwm-ep93xx.c index c45a75e65c86..8bfe6cfbb3db 100644 --- a/drivers/pwm/pwm-ep93xx.c +++ b/drivers/pwm/pwm-ep93xx.c @@ -17,6 +17,7 @@ */ #include <linux/module.h> +#include <linux/of.h> #include <linux/platform_device.h> #include <linux/slab.h> #include <linux/clk.h> @@ -190,9 +191,16 @@ static int ep93xx_pwm_probe(struct platform_device *pdev) return 0; } +static const struct of_device_id ep93xx_pwm_of_ids[] = { + { .compatible = "cirrus,ep9301-pwm" }, + {}, +}; +MODULE_DEVICE_TABLE(of, ep93xx_pwm_of_ids); + static struct platform_driver ep93xx_pwm_driver = { .driver = { .name = "ep93xx-pwm", + .of_match_table = ep93xx_pwm_of_ids, }, .probe = ep93xx_pwm_probe, };