Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp245208rwd; Wed, 31 May 2023 22:46:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6jIUhAzCOHVo5bYneXDYhh+U3T9QeEY/lKsvDyxJK0L736ghSIjuRGoqTZX2z/yJIp++q2 X-Received: by 2002:a05:6a21:338e:b0:111:366:eea4 with SMTP id yy14-20020a056a21338e00b001110366eea4mr9836014pzb.57.1685598387415; Wed, 31 May 2023 22:46:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685598387; cv=none; d=google.com; s=arc-20160816; b=QNgoykNYR4eAyw1qI7MH8bazwz2pIpaSyjH/iL20xVTAosmDJABfJmQeoS1GvqXe7j lKF6WOd67Jd+Uxx46TlMxigfeDd9OERRoul7Kp/6CZVaA+duJaNn4AeLLssQ4w5F2LtJ lI38dqMjjQoKC8k6AC3yN7yfP+7Q3Q61wXZB5kpS8ERVa/n7yzOwaEiFySIoz8iw0sag /ichTuiyXwSLVaNOOohl2iTA8lyXK2DbwOeO0VFiXik8EZ7TyzwFOsI15UivN4CrcBKp gqK6v1yQLRyZHux6xpho2U1m0x2RYo8f44SB9Khal+13HDWniCxiVTV7a9UimOPewXSf zK6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pa0s8DF9XBcUEWFApK1eo0wMqQt2BEHLprgArRtVDrY=; b=aB55HpW3UnfVbAs5Ur+e3mFghpmiuiEE9yilX9ciJyHHTf3yBGS0o/GvT6ScaTtGWP tZQdVeEJO/Q17Oow/Oh/cjGaYqs4OZvAjtCgurQEE2CUsdkCHo1QNKxgaFB8ZiYgJU4U zph7x86+V4QqGpcKf19PUb3bd7OTKNdGfIzjefkYcza6n3OnSvWbbV/sVb9LSZR/HWaL Ty7G7Xym2Flnyf1XYaCrCbo2PWVJLexdtT7AIphrsDZGVkYUU++zQR0GiBBk4lPRyHIF VjDYyWVsyi+steOS8tBCVosSeFCVq6IEKSgE1q1XbSZNqeM/oO8NnxJArs9Z7j4Fn+zU aDAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b="EuVWSi/y"; 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 z9-20020aa79e49000000b0064d35b65bddsi4256090pfq.362.2023.05.31.22.46.13; Wed, 31 May 2023 22:46:27 -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=pass header.i=@maquefel.me header.s=mail header.b="EuVWSi/y"; 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 S231565AbjFAFil (ORCPT + 99 others); Thu, 1 Jun 2023 01:38:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231415AbjFAFiO (ORCPT ); Thu, 1 Jun 2023 01:38:14 -0400 Received: from forward101c.mail.yandex.net (forward101c.mail.yandex.net [178.154.239.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E98D1A8; Wed, 31 May 2023 22:37:19 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net [IPv6:2a02:6b8:c14:c83:0:640:84f9:0]) by forward101c.mail.yandex.net (Yandex) with ESMTP id F0B7C60054; Thu, 1 Jun 2023 08:37:15 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id OaGNfZvWv8c0-mNhNFJw4; Thu, 01 Jun 2023 08:37:15 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1685597835; bh=pa0s8DF9XBcUEWFApK1eo0wMqQt2BEHLprgArRtVDrY=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=EuVWSi/yCw+Wr7B+OOKRxOJT94Bgx2mcDaZ39fY/FzaR2wEPTVHvasy5wa58LCcBz 3PGyMCJLjGibPj+qXEtk7dQu8JZpNgHK0Gjfds4DiRadL9rDrCrlP1YJKl7vYhFJkA QseQH4E92kw6TIR9NXf+fYtx3JjdQP2G5XlQGL78= Authentication-Results: mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin To: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Cc: Nikita Shubin , Michael Peters , Kris Bahnsen , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 16/43] pwm: ep93xx: add DT support for Cirrus EP93xx Date: Thu, 1 Jun 2023 08:34:07 +0300 Message-Id: <20230601053546.9574-17-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.37.4 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 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: v0 -> v1: - fixed headers - fixed id table 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..361984ef4c0b 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" }, + { /* sentinel */} +}; +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.37.4