From patchwork Thu Jun 1 05:34:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nikita Shubin X-Patchwork-Id: 101718 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp71116vqr; Wed, 31 May 2023 22:47:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ47fjWhNkHA3UE7N2c7LeOYN+5Dy7a6LRyOjyNH84TLrHBdk/QZ5jW1TsFucjGdxdlUyZ57 X-Received: by 2002:a17:902:da8d:b0:1b1:a4e2:a2e6 with SMTP id j13-20020a170902da8d00b001b1a4e2a2e6mr103968plx.12.1685598431080; Wed, 31 May 2023 22:47:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685598431; cv=none; d=google.com; s=arc-20160816; b=HpigsKIY4W55HY1358JKm9v65RP2BCfUR7kp0Ch1W2+Fdd8nc50125sY7dO2t/9B2M ymefONiq3O6Y+eSyvl0lSdiDLmoHrTxqR9nkoIkXX/4bifgtLd7Jkt4nufOJd22Y5vhc 9orQK8m6Os0PtGxmnkkp9w9vIniqKeHNGNADL2Y22Gy2fK3paHsabhzbpOO16U6DzYqd 7f564q0otKuwuabAL83Zd4YQ5TXhgj1WlvnN+i9GrPmCqQ/quksUWUV5yLk2qpYGgdcf 8c+8o2oFalHdm3yTaV4DxOC9IxapBLI9DVVWkXvBq1LRhfDU1LZjUTYIiz5PE2A+/0p4 vEIQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k7-20020a170902c40700b001b176ba9f1asi1423174plk.551.2023.05.31.22.46.59; Wed, 31 May 2023 22:47:11 -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 S231584AbjFAFil (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_Kleine-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764054579402889022?= X-GMAIL-MSGID: =?utf-8?q?1767478060190594933?= - find register range from the device tree - provide clock access via of Signed-off-by: Nikita Shubin Acked-by: Uwe Kleine-König Reviewed-by: Andy Shevchenko --- 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, };