Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5394610rwr; Mon, 24 Apr 2023 03:37:39 -0700 (PDT) X-Google-Smtp-Source: AKy350aH4EK0JW8A/c26A9yLQqgxYv41HAX8jI/J/qF9bMVSLMkSiNucaVT0Hpk31wZmJ2M+8Pc1 X-Received: by 2002:a17:902:ecc6:b0:19c:be57:9c82 with SMTP id a6-20020a170902ecc600b0019cbe579c82mr16738033plh.65.1682332658670; Mon, 24 Apr 2023 03:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682332658; cv=none; d=google.com; s=arc-20160816; b=MtxdfbfK+vTG9cNqyscBzV2jFgmv8BG9lyalAV/iOB9pusH9UatXltW5+3eOuEwc4D IbzDmAARqjHXoekBdCY7Gl5Cym/RDmUyyraCia70YQSBG8KskwPMzGtNaprtf2ro/4Id MXKEEG3iKQvkE3GeXtNlKZDNLpPowPgf3Ta3sXMM/oeRwaV/pCTHfZo0Jv5UaKrHt5h6 LhgU17i01nx1II2+KASGs4MLfvIJLhIENHyeGqz/oEkcT5KxOXNn0EDncEcDYpfMGvgm /X+wmimWbi6d4dFhLkCze0Y2iTBhJEPLvNOdqCJ/Z6I29/qQAmKAfRDWdG9sPnKZihyl Vm/g== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t9-20020a170902e84900b001a804319df8si12188247plg.391.2023.04.24.03.37.26; Mon, 24 Apr 2023 03:37:38 -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 S231440AbjDXKfP (ORCPT + 99 others); Mon, 24 Apr 2023 06:35:15 -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 ); 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 Cc: Arnd Bergmann , Linus Walleij , Alexander Sverdlin , Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , 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: X-Mailing-List: linux-kernel@vger.kernel.org - find register range from the device tree - provide clock access via of Signed-off-by: Nikita Shubin --- 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 +#include #include #include #include @@ -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, }; -- 2.39.2