Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1152033rbb; Sun, 25 Feb 2024 23:32:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXzqsHJ8l2YOJyVVu4B5LwJHivtMAsC3idvdhoi51aLh4zwUpoj8DOrvX2zBcwua5/xw0VvdTjpACD6UjpkQrY11jbGkC4vdWiqQGyvdQ== X-Google-Smtp-Source: AGHT+IHdYH8n+ZL/+26rklqKVq3Y1pW9YOXdkwpjQuhzLc1Y96+aKkTQNZbid4dLJjt7LFQBiyM6 X-Received: by 2002:a1f:eb81:0:b0:4c9:44a0:84e6 with SMTP id j123-20020a1feb81000000b004c944a084e6mr2552003vkh.6.1708932738437; Sun, 25 Feb 2024 23:32:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708932738; cv=pass; d=google.com; s=arc-20160816; b=AfjKR8pLyKr9WS/Dnv+UEfbSNiQcr6LqU+6LDF6XPYKWxH7s5985XHMzWjHpkDemDP S7hB8jSa6/Ny7MqDqynnuhQnohqApUA3F3qTm0+TF59eV5jFnY8zJB2ONpBZBxkjX3Jy jQivgx26I8wtXoxXLBTS+6sWqN0s81UKz2eHgbxplaU0y9Ez2ol9vaqXlHVm+of78q84 lQIf6xvgocNTQrhJlh42J8mi6NoVfiQ3/mxvla23s27bbqduNR6ihuDySE44XCPehUvX LHPKaMwEwiLENIiaf7ERzCaduWpomU1NZyfoi+IIiSc9NJY87NcZn/OZKUD0S2+loyjO 757w== 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=ccWy7rhjGkSVIm7DR5rrGoaTWyypbHzjChITyoIT+Mc=; fh=DBGRqGFPXQQkoLty/KDm1/gSJqHLt7Pr6uKZsmvx2Fg=; b=bkrA4mdK5lgHu3WTRV+dzJ6ISR0tYRR5QM7IKYrT5RQXLZPmEoAcdyOo1/Uck4w34L PaGL1KujUgvKbVByU08qN7Mzf15TuBz6INKpd9QW4H4dQNgHOKDO5gN176Pge0H708d+ 0zfQVxPUQ7FZsmVXvdATXALjbxqv1fd/QNwH5qRQEOj1cemnoqov62Jw2M0DhW2Mcnc7 dU4H+dtIlprTe0lGPL0tNIio2X8YQPmd6de1mcHnhEZ7QckmlzJqya7UOEMCNS2jUDTM TJf/ImXfw8uffgnwrKD3Jn65lneXe1RCP398rus9qeyD04r2D+9B2mgQ2taipLqaA/jJ gBcQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ApmiFZVy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80643-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80643-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a12-20020a056214062c00b0068fd9fa7b83si4547958qvx.25.2024.02.25.23.32.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 23:32:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80643-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ApmiFZVy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80643-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80643-linux.lists.archive=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 359471C20933 for ; Mon, 26 Feb 2024 07:32:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E0D2035884; Mon, 26 Feb 2024 07:31:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ApmiFZVy" 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 87C141C2B2; 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=UzAC4LU98NLVQI65YraP+LcJ9GBg/VehfPb2mZNu3xrKmvGvTq4ZGV123f5MQzpI9hv7OkBvbyymY3V1+gB8Jkxf2zX9OtNjGXN+G08lMzCOagS9fv1ofDSEo4CUyILaAEnvvh+PfUwdjiCh5/jPQlsYIAKagCPRrcDkRvKeQ18= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708932682; c=relaxed/simple; bh=r5b5AEVCSYZ5mC7ion+JuijTW0hSH+qXbQTw9BAVvjI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YWaZChbXZUEReU2h4an//ktbLcV5opdJ7XHik1+FouhXPzEy8jdwMm+XwrokI/LIbGe/yomL9FTmk6SCEMN+2nMoRfPuXyHSw9xstXSb9JPypEChJ6UNLApOlc1q5tF5/sP19vPgOCXStRXhjA6tV+z8obvHxqiOKktm03pOF1U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ApmiFZVy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 622DEC32786; 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=r5b5AEVCSYZ5mC7ion+JuijTW0hSH+qXbQTw9BAVvjI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=ApmiFZVy3BZ9aZoaf56S6nH3v4Pe+BYL0Al8hhKj9aOqHwUnhpvljRRyqfWMBo/Ed wz3kR1zw2UIC9jmsLPnsU8T9/kmy8+jWbuAbPR0fNZ8Of5Rrrid5REkKCSk6VWuJnK W3KuVZ1sjkw+HZf93W1iKXCnuZWtnl9QEVHksLCtgBjekmmeiPclYNy3IIifZiFok0 tZh8KJTZj5/HIhChWKIwIHzGn7Qkg4q2MWpIjTff5CIak+p+vFxF6NbOlcR7SVnFHt 1/cCd5RWc8LpAsd2o7BxHFg0bay1Hipgm4l1lKyMy5cD8h13/dLTMOOfhVo2OAVRKE d8tNePWVcfxRg== 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 4F7D4C54E4F; Mon, 26 Feb 2024 07:31:22 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Mon, 26 Feb 2024 10:30:07 +0300 Subject: [PATCH v8 11/38] watchdog: 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240226-ep93xx-v8-11-3136dca7238f@maquefel.me> References: <20240226-ep93xx-v8-0-3136dca7238f@maquefel.me> In-Reply-To: <20240226-ep93xx-v8-0-3136dca7238f@maquefel.me> To: Wim Van Sebroeck , Guenter Roeck Cc: linux-watchdog@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=1193; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=vpQ5XpDs4mC6MjpYUOCLjEKX9upQoF4eyWW0iqon84s=; =?utf-8?q?b=3DzudkFc4p/VJx?= =?utf-8?q?BJoDE4nLTeBY86C4/TnNPxGKL+YoRuxBurVlWTVmV1gswdu6Ahl5wTpbiSDaU0WS?= gDMIBb/6BHP0SiTkBGJkxa/7DticBXk9jzJH3dKkkaCHugO0EZDJ 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: From: Nikita Shubin Add OF ID match table. Tested-by: Alexander Sverdlin Reviewed-by: Guenter Roeck Reviewed-by: Andy Shevchenko Signed-off-by: Nikita Shubin --- drivers/watchdog/ep93xx_wdt.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/watchdog/ep93xx_wdt.c b/drivers/watchdog/ep93xx_wdt.c index 59dfd7f6bf0b..af89b7bb8f66 100644 --- a/drivers/watchdog/ep93xx_wdt.c +++ b/drivers/watchdog/ep93xx_wdt.c @@ -19,6 +19,7 @@ */ #include +#include #include #include #include @@ -127,9 +128,16 @@ static int ep93xx_wdt_probe(struct platform_device *pdev) return 0; } +static const struct of_device_id ep93xx_wdt_of_ids[] = { + { .compatible = "cirrus,ep9301-wdt" }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, ep93xx_wdt_of_ids); + static struct platform_driver ep93xx_wdt_driver = { .driver = { .name = "ep93xx-wdt", + .of_match_table = ep93xx_wdt_of_ids, }, .probe = ep93xx_wdt_probe, }; -- 2.41.0