From patchwork Mon Feb 26 07:30:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nikita Shubin via B4 Relay X-Patchwork-Id: 206289 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1919171dyb; Sun, 25 Feb 2024 23:35:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU2D/OipJ8ywZph3K7xMlc8hbJkSzkuDvMP71w/z42l3ukNqUSiFzsrktbyp/IKyeauC7g4UuQ3C5oVnckCIwzRtJfG2g== X-Google-Smtp-Source: AGHT+IGg9mtsMj1ycfNIL8FZo5MzPa6GUFG+dpDOyQdMXE5pV1q+C46KnLM1KGKehT0EyQqsEppB X-Received: by 2002:a05:6214:e65:b0:68f:8977:3bd1 with SMTP id jz5-20020a0562140e6500b0068f89773bd1mr8206958qvb.30.1708932952853; Sun, 25 Feb 2024 23:35:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708932952; cv=pass; d=google.com; s=arc-20160816; b=nx2mp47WFCervOw5u+nVosSkMDZXx7LvAaK02WH3RfbR8JUvggcqY8Xw6o/xcmIbpv FMhBWhtEeD9OEbEgAe0RUrOgS8RO2A9SQAMQhMNy/4DL36IFeRtOjEW02ul9ayq38E11 hLbU+trEzvDlkJo9lpgUybjTbhtw5yGeoI7gzWBtnVGCptG8cSp93ZmFJN/B8JMzSIdQ locFlfOhIFwX8uuHLyXJm+1PcWLTUw1eln0oNuM6uTl2sKGFEIht6Muu3WjkpAg9oyri 6ASzC8NNrWAedv34bY5HOUzd+dBBCgknygYNqIzAbUv7SpMWOiY5Wxye6ftq5ln8VRj9 UljQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=aP9rG+Eg3f8dusbfd+YAvRg7X3GdlOEut2K/yx6qMuA=; fh=OVsmVLdu7S/fb2+5399Qmxg9nZwIWkGSODNtT2hTKSc=; b=B9dMRSvbwutiP6Uircqcx9xXammPepndL1er/kENIKwnMyMsFXynIobfENzlkskTxZ XDDba90EWgB/Y3Vs8d6hy/NlnT/pnHbm9TkvF7HvruvpS3QBPdYeEN36rU04+8Atj/1G 89svbLcOszzP6r7ycloInPom0t3P2sTcWVfvopqmTZlfeTelUHXSiPLci5vr5QTi5RVV QCqxXtGLHc4CLQKMvicpiw2GBk5zwHYnx0+FOeKMpLm8LMuq4aRHkha+RmEqEZ/qoN8o 3gRcqIWQhUhi9/PyNDxY4VCrQPk3NkpX4zgKLxubIcq1ffhKrEG0nQ/dPTUVIFAdQRGw sWww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qbehGKZk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80647-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80647-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jq11-20020ad45fcb000000b0068f824fc1fdsi4659355qvb.37.2024.02.25.23.35.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 23:35:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80647-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qbehGKZk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80647-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80647-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4BD321C222F9 for ; Mon, 26 Feb 2024 07:35:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AAE234DA0F; Mon, 26 Feb 2024 07:31:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qbehGKZk" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A250F1C695; Mon, 26 Feb 2024 07:31:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708932682; cv=none; b=CJhvFQisDrMA5yovAhNtBjlFAmIyBNun++giCMZDsNssdtxWiLQUdlCORrpMJb39MxGw45DyUmlXCnILRou4oG8OK5VI7NkKoScjXSv+bQ2LqICPv0hvzq11y3q0jWB0wJjJvQlsSpvg9xs5HuNQsx+D84OHXRtPYKrb1O+sVT4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708932682; c=relaxed/simple; bh=LRvc91m097Qskz9yB8bGNzi/V/i9xkRrGP0qF9TsLpg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WRHIx4QkMoHeYIMHzQsvqv0BDaDHzMkA3Y8lzYLryq4gXSeRoj/o7T18hYtCeW0OJo9CeaYuasFpsQAFa5LX143BfzlGXZEOZ7cYwwCT/zrqjoY5QFNWOwpZyswodTBmVUuEGbNyeW9cYJBRwU5DBh44YjHwTrgiMAtyk6ERIgI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qbehGKZk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 845ACC3278B; Mon, 26 Feb 2024 07:31:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708932682; bh=LRvc91m097Qskz9yB8bGNzi/V/i9xkRrGP0qF9TsLpg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=qbehGKZkcdYZlIig3myIMEs64/+8egbWixOcf1ULzNqOIeMYZLPusAGMSXGf1flCD Ahj88XSd2ot+eoBni1qcHS1JATY5v7nIu15YgOi+jLDBkrpMXWmM0KOJjDI1fh51fU igiCFWpYJcSJg5GeqE/Biq0U2ijC2QncJHrsaa0vGTyVrk542Ro0ihTejek+qA2ZAs Iobm2kZZZhA/GK4PFMi9dXWrWx3WEXVpw6wy5BQIV1FaC/gtdbBVQHGnrew/gk3vKZ rk3uUjGWZFN3HGQ91SzOpBxHQZYm3bZQ9ToahnB3l+ToPhwl5jHyOfpk7by8GcNFlg R+RBmeGb1SZCQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 727EBC5478C; Mon, 26 Feb 2024 07:31:22 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Mon, 26 Feb 2024 10:30:09 +0300 Subject: [PATCH v8 13/38] pwm: ep93xx: add DT support for Cirrus EP93xx Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240226-ep93xx-v8-13-3136dca7238f@maquefel.me> References: <20240226-ep93xx-v8-0-3136dca7238f@maquefel.me> In-Reply-To: <20240226-ep93xx-v8-0-3136dca7238f@maquefel.me> To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= Cc: linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Andy Shevchenko X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708932678; l=1116; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=47BXUS7nKAN+L1sWT+XWD4yJWjkfGZ50keulY4vZgFE=; =?utf-8?q?b=3DwUT+RkbSqb4X?= =?utf-8?q?6fwujPOXgjloPkP7V030EQ6Jd2ghE0TgciBhw+l4boUmQR3Ln1sNJy0n8CLxkWkB?= fuLSn+OEADfFuSTFFZ+Ky1GnSI8AXLkGmEBRIFhvW3hDDSd4raXb X-Developer-Key: i=nikita.shubin@maquefel.me; a=ed25519; pk=vqf5YIUJ7BJv3EJFaNNxWZgGuMgDH6rwufTLflwU9ac= X-Endpoint-Received: by B4 Relay for nikita.shubin@maquefel.me/20230718 with auth_id=65 X-Original-From: Nikita Shubin Reply-To: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791946080124028305 X-GMAIL-MSGID: 1791946080124028305 From: Nikita Shubin Add OF ID match table. Reviewed-by: Uwe Kleine-König Reviewed-by: Andy Shevchenko Signed-off-by: Nikita Shubin --- 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 51e072572a87..7cf05d0b78fb 100644 --- a/drivers/pwm/pwm-ep93xx.c +++ b/drivers/pwm/pwm-ep93xx.c @@ -17,6 +17,7 @@ */ #include +#include #include #include #include @@ -189,9 +190,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, };