From patchwork Thu Jun 1 05:45:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin X-Patchwork-Id: 687993 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6256AC7EE2F for ; Thu, 1 Jun 2023 05:47:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231638AbjFAFrm (ORCPT ); Thu, 1 Jun 2023 01:47:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231634AbjFAFq6 (ORCPT ); Thu, 1 Jun 2023 01:46:58 -0400 Received: from forward100a.mail.yandex.net (forward100a.mail.yandex.net [178.154.239.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92B3A10DD; Wed, 31 May 2023 22:46:27 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:5e51:0:640:23ee:0]) by forward100a.mail.yandex.net (Yandex) with ESMTP id B2EE546CDA; Thu, 1 Jun 2023 08:46:23 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id pjGDMhnDduQ0-zieECyhD; Thu, 01 Jun 2023 08:46:23 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1685598383; bh=A2FiCkys0aL7RsfnhMzn1bmYZGGoisuSld30oU2VX3Y=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=EGnOrp8PGQbb0MIsNhPKsLwLUhMbmVl3+0qqeLSb8CnN70PT7cedgH9vXG3cUAy5S ywUAmMZmEPQRyKd/YdocZXnzEhbhpxWbex5FH1v66MQRNg5Gt43OgJhnios1RHqtDU EgOEazSLyLprVQ4MLtjcEKXoR34rnUWr85ExNwTk= Authentication-Results: mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin To: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Bartosz Golaszewski Cc: Nikita Shubin , Michael Peters , Kris Bahnsen , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 34/43] gpio: ep93xx: add DT support for gpio-ep93xx Date: Thu, 1 Jun 2023 08:45:39 +0300 Message-Id: <20230601054549.10843-16-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 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Add match table. Signed-off-by: Nikita Shubin Reviewed-by: Linus Walleij Reviewed-by: Andy Shevchenko --- Notes: v0 -> v1: - dropped coma in id table drivers/gpio/gpio-ep93xx.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpio/gpio-ep93xx.c b/drivers/gpio/gpio-ep93xx.c index ca508c7c4f2f..5e328e4411cc 100644 --- a/drivers/gpio/gpio-ep93xx.c +++ b/drivers/gpio/gpio-ep93xx.c @@ -363,9 +363,15 @@ static int ep93xx_gpio_probe(struct platform_device *pdev) return devm_gpiochip_add_data(&pdev->dev, gc, egc); } +static const struct of_device_id ep93xx_gpio_match[] = { + { .compatible = "cirrus,ep9301-gpio" }, + { /* sentinel */ } +}; + static struct platform_driver ep93xx_gpio_driver = { .driver = { .name = "gpio-ep93xx", + .of_match_table = ep93xx_gpio_match, }, .probe = ep93xx_gpio_probe, };