Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1153585rbb; Sun, 25 Feb 2024 23:36:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU6csZGzp7XRVwZxK0EfbWieysI37RvWflvSnCznEsxYN5gpuP0kt8O7b64kvEttmLfE9RGAkvyGHgwY26cQ704NAWQPi/Tdv3tokivqg== X-Google-Smtp-Source: AGHT+IFrOgJfFjDa7qQ5Z7/DzERqacHR1E4nF8Ey17Gy4ZpOg2CHOiOti6VkWX9E1ZAyhbx8L294 X-Received: by 2002:a17:906:360a:b0:a3e:ce27:15a2 with SMTP id q10-20020a170906360a00b00a3ece2715a2mr6454848ejb.28.1708933012078; Sun, 25 Feb 2024 23:36:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708933012; cv=pass; d=google.com; s=arc-20160816; b=Y+Wu0zhlS+/cdTCV3xBd5SDzH4ymJ3khdJT2J0rgqX/+8bQWCxFjrAgomh3usK/2op e8l6OyuNDMZov7eIt+y0MuuzqC1fAUhYMBStCdoQmaeRUDpWomiTVY6upPKGjwY8LDoz aMagmMZnZNueF1mQzvwWGJamgQOEZLWSKPhqz7IJ3X4mo2gWMqc+/BZwcrkMf5fZ1AgV FEmKZOglLk5WN6YQs2i5EP10be/A0tu0o/8cyQE+fU3gsIxi8d4bL+y36LLpuyDdRLoM /rINWyHU+UFNF44tDj55/I119ar8ZC7uRE5ugK0TQG7D0YD2/2pchxDm05GdG1cSj0aW htYQ== 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=imiKzNFFqcykEkADVAiNmEEFD2YTbLyCRTNKNTFI/x4=; fh=DBGRqGFPXQQkoLty/KDm1/gSJqHLt7Pr6uKZsmvx2Fg=; b=JD0MvoqcMgPOBQErtV3ab2q5JyGglPmX1wuHuz1slS1fdoiWvpAnGwS+5BzEAsUSj8 /FYqS+KPsPZPxEAPr4I/0M6eTuEJ3QdW/sfguLFoaKomt4fadvib5X1dHSd7EP5D7nrk FtHM6LLIL2q4uKQJWc+o9YjcqJQSrNMM5TnlmQ06gv6uWLdS1OkrDwDKuX05kBfFTHX0 vQZUAMaXq6D2oekLqNgKUGddo1pmaMFANGjASQRoz0imNYFdUTBvXXt/DDr0inzkQKn2 Saus27PAVzA53o2lAM5a1i9MhN2ByD63gx0/nXCr6uu2IomTo3rcDXOmuXCTerJCXtQu ZtdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oCbpG3vO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80657-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80657-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y19-20020a170906559300b00a3e4181550asi1820814ejp.180.2024.02.25.23.36.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 23:36:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80657-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oCbpG3vO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80657-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80657-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 am.mirrors.kernel.org (Postfix) with ESMTPS id AF0C41F21872 for ; Mon, 26 Feb 2024 07:36:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5F5B51C46; Mon, 26 Feb 2024 07:31:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oCbpG3vO" 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 669C51CD19; Mon, 26 Feb 2024 07:31:23 +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=1708932683; cv=none; b=NCtddm+/HK0Byw2zw/O4eTu2iEVwmJsKCq0jqCVusI0mh+WZfWJIy3k/vgd6IxSh0rzaHGyDG3zXtPkOq0tDNXcV+ppfkEveyu/D2GPAUzH0XObu0UEd/Nb92D63KeYXMmMVGLvAL3/F8hmmYe1YzzwhZpbYe1G0kMTt+HVFFuY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708932683; c=relaxed/simple; bh=axzOW/bLfk48A9ZCiMw4d+If5yhSQO0oy0KThVKKlAA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nwDrmlxFlZ14LKufnYaU2kyLClVcnLE+R081UK0PQ7v6/Ec0ylUpTwlKGFhblAHdlGU7NPQjXgxyHvA9e9ggkyArCFJcboWbq55n0XO/jiyTPZ4yZkCM5LDhtkdbTicHxZTxh6eG/rQYTcjdpDZccUmdMFzODJ+8AFMbfKWuO+M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oCbpG3vO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 40184C4166B; Mon, 26 Feb 2024 07:31:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708932683; bh=axzOW/bLfk48A9ZCiMw4d+If5yhSQO0oy0KThVKKlAA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=oCbpG3vO8se88wi/DwNL00jV9O/HJgUSK5nDIzHFhQRKPi3UojTUuihksSbjo8fR6 pZfVF20hIejkGqO53lPb+D2+T8GKlbif9dpJ9WLOwBieKBMPVgtX8mW3Lhe76GqusM F32sKCFfWI5zDMRiKiWRO6eVAt/dQvlT/uKrB9yAACM7zT5FxrH71Mf6kYn315wAIM A9xgSkudEqKVoE9l+imy5hizzudr3wy2ijVdSkklkGUD1N1vL2xRmWVzYCDGVt8Dhc nLzFOZuVMtEoCnw5QpkYmPCjxvXzVqR3ErHHKzmh7Jl0Hd8N01dvBUDIQIQmWfNW/a bhNoixLCvzcxg== 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 2DC1BC48BF6; Mon, 26 Feb 2024 07:31:23 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Mon, 26 Feb 2024 10:30:20 +0300 Subject: [PATCH v8 24/38] wdt: ts72xx: add DT support for ts72xx 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-24-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=1140; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=1rWEe31MzZtFeQGF9K/nSefILZAuLYwUQNOfnETpfJQ=; =?utf-8?q?b=3DNWQLpVoBpfL9?= =?utf-8?q?gQI+O05wzm22KdiT6nG5iWLCWRzc1cdbYQkJvnvBjJyNai7GZUmhpey0wbtUU4/W?= IoxCiTcKCIici6gpa4xotksu4nZLvZplZHl8DG5QTEAaifusGN/h 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. Reviewed-by: Guenter Roeck Reviewed-by: Andy Shevchenko Signed-off-by: Nikita Shubin --- drivers/watchdog/ts72xx_wdt.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/watchdog/ts72xx_wdt.c b/drivers/watchdog/ts72xx_wdt.c index 3d57670befe1..ac709dc31a65 100644 --- a/drivers/watchdog/ts72xx_wdt.c +++ b/drivers/watchdog/ts72xx_wdt.c @@ -12,6 +12,7 @@ */ #include +#include #include #include #include @@ -160,10 +161,17 @@ static int ts72xx_wdt_probe(struct platform_device *pdev) return 0; } +static const struct of_device_id ts72xx_wdt_of_ids[] = { + { .compatible = "technologic,ts7200-wdt" }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, ts72xx_wdt_of_ids); + static struct platform_driver ts72xx_wdt_driver = { .probe = ts72xx_wdt_probe, .driver = { .name = "ts72xx-wdt", + .of_match_table = ts72xx_wdt_of_ids, }, }; -- 2.41.0