From patchwork Mon Jul 15 08:38:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin via B4 Relay X-Patchwork-Id: 812739 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 84C611850B9; Mon, 15 Jul 2024 08:40:03 +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=1721032803; cv=none; b=C4V7dNM9GBdmYkEkbKUIcY8J0fsV2CQ2a7eC9TLTBUsrCM5Ew2GnoS6C1IGEhI+aNyso4sxPvxIXmdbbmdTb0ZjCJpBZaFbXeQqRi/9mv6TAEgAw6uZfFYyIm4ABWdebvsMK3eCncAoWxJn/8F5IC/57tSXRibcq63Ifp83yz8I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721032803; c=relaxed/simple; bh=890W8DPr35N6/m48gE2Wn2MHyqWMitXLF0Yh04CJFj8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=m3fk2UE60I5LuuIgPip8fFcW6dEfGq4amLDOakC4FFDFL792+js1aGzwf5raOFDbHSG6qW6sfyOtXn7W4AU/LL8bDPDkYCXJea2da3ayXOSEylkna9x1IwDIKRX/AV++aNQLGizY0ZacC8ce63nDFBXhZPUbCXgY0SyY57yW/PA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Uexf/esM; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Uexf/esM" Received: by smtp.kernel.org (Postfix) with ESMTPS id 4FF51C4AF63; Mon, 15 Jul 2024 08:40:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721032803; bh=890W8DPr35N6/m48gE2Wn2MHyqWMitXLF0Yh04CJFj8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Uexf/esMgGSJEpOeJe2vEetCx6x4eFh0R1xau0fPhaUckl+IFEOnNGy9q/i9rfCEk vOBqItNhCptwC6tXuPIHIyhq6Z0iBEClxVo+U74kRSsNTZsRJAHIaDLfSpmRHiRISq +vsIGXJbTc8koEZcP1g6X1fA5vUCIZLUU6X4lER8mjc49xjGJY7QYdM1CdRFtY1ZuQ UkCAPZFScHLlck7JFtJs7gCzkDvDAJ5ub1tkYu7I5eSTh54lZHb72r+UOBs/jHZfk8 JQ2PQhndGlz8biOG0qyDH0ZqUbygSpIgmeB72bL/Ar23oTnbZPg8gWSrM3IEfUff03 KlNTYbRsOwIlw== 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 469FFC3DA4D; Mon, 15 Jul 2024 08:40:03 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Mon, 15 Jul 2024 11:38:14 +0300 Subject: [PATCH v11 10/38] dt-bindings: watchdog: Add Cirrus EP93x Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240715-ep93xx-v11-10-4e924efda795@maquefel.me> References: <20240715-ep93xx-v11-0-4e924efda795@maquefel.me> In-Reply-To: <20240715-ep93xx-v11-0-4e924efda795@maquefel.me> To: Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nikita Shubin , Alexander Sverdlin Cc: linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1721032799; l=1622; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=ms3IjWYaELf8kHC/xQEvZjvjU7YonAObO6Tdf+8gNec=; b=rPf2GwjEnDK/qWoOo9zaMyW+ZhLhWJ1n4WTd4UaWksjHNhCeYmBwfVmXDbhn4tvIFGCrbEkY3HJh jKhUDq+0A2B4IBSS9YRRUDqK6VjxlJkSsgiFCsw9C+5I8me4or33 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: nikita.shubin@maquefel.me From: Nikita Shubin Add device tree bindings for the Cirrus Logic EP93xx watchdog block used in these SoCs. Signed-off-by: Nikita Shubin Reviewed-by: Krzysztof Kozlowski --- .../bindings/watchdog/cirrus,ep9301-wdt.yaml | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/Documentation/devicetree/bindings/watchdog/cirrus,ep9301-wdt.yaml b/Documentation/devicetree/bindings/watchdog/cirrus,ep9301-wdt.yaml new file mode 100644 index 000000000000..5dbe891c70c6 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/cirrus,ep9301-wdt.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/cirrus,ep9301-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cirrus Logic EP93xx Watchdog Timer + +maintainers: + - Nikita Shubin + - Alexander Sverdlin + +allOf: + - $ref: watchdog.yaml# + +properties: + compatible: + oneOf: + - const: cirrus,ep9301-wdt + - items: + - enum: + - cirrus,ep9302-wdt + - cirrus,ep9307-wdt + - cirrus,ep9312-wdt + - cirrus,ep9315-wdt + - const: cirrus,ep9301-wdt + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + watchdog@80940000 { + compatible = "cirrus,ep9301-wdt"; + reg = <0x80940000 0x08>; + }; From patchwork Mon Jul 15 08:38:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin via B4 Relay X-Patchwork-Id: 812964 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 D7F32185E4D; Mon, 15 Jul 2024 08:40:03 +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=1721032803; cv=none; b=Uc7i81dzfExrTVRTgOJhxoTbnoRLSmFZi+LDIQuw439Fq3MN2w99mLmmf9Vhwk/SWb0ILxjpbPY3qblgTyPYZsjY+5VcGkHqGXw8E/vuCDTZQlL0ugJFU5bVjk7E3JwVurDLjDP3c5iXXTtgAgDyEyz/8kcHZyDGdO5Y+5halmA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721032803; c=relaxed/simple; bh=p7ruUPyc+63NALcCZNunH+Nk2cdQEW4DXh1uDsweETM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eQs/dZ7AxemXVODwvdLzSaZxrNb5ecxW7NnerSWABvjxV5WX2oan26NAlblDKH76pq4WY9dIY8hzJwqd0Xf5EjV5AfJOmYU9ker3KB3DUMh2YExK9GhJ1ZxVYOq9wbfXW1e70RutBi+J6SzSIRcm+BdNkQgojT1Wzv0BzPt3+JI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YXDY8A4v; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YXDY8A4v" Received: by smtp.kernel.org (Postfix) with ESMTPS id 6A372C4AF5F; Mon, 15 Jul 2024 08:40:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721032803; bh=p7ruUPyc+63NALcCZNunH+Nk2cdQEW4DXh1uDsweETM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=YXDY8A4v8CWrlM/wcJ6U4xqxigEHKwEVvYXDAnnVirJxOmyg5YBr4otbXM2QKT45K 8lB99ii9WpYNdMS0c+AMqY21dyrZSh02Z/WwC3l9VQpM+p00QDx4rtWVQrE6NRyhRq hSewgejeHJJgbgkjAdOfKjVkw4sriWv3YRyFj2GBu5nNsKhBlVl8KI6hjEXwSnCXBk JwwLs8gPGI2vYwaBIihy+7so3EHoddraGo2NGqtxE35EUVgJ6A5BsYQ8/qQrpLQaSu qRhLWuAnTvhxqsmanGiwnYTHCq4U/jj4s+kW1rZJyN5UVt3xkA9afOFcXpwlbtUFzO P9EFthGZ2eMVw== 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 5E53CC2BD09; Mon, 15 Jul 2024 08:40:03 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Mon, 15 Jul 2024 11:38:15 +0300 Subject: [PATCH v11 11/38] watchdog: ep93xx: add DT support for Cirrus EP93xx Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240715-ep93xx-v11-11-4e924efda795@maquefel.me> References: <20240715-ep93xx-v11-0-4e924efda795@maquefel.me> In-Reply-To: <20240715-ep93xx-v11-0-4e924efda795@maquefel.me> To: Wim Van Sebroeck , Guenter Roeck Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1721032799; l=1193; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=JD3ei7UZOSn3iRCJWHAn8GIoBZ2EOdmGr+0MVn+KIfc=; b=D5JPJUXQh2OnL984T2HXAEWwZRYpQrJNWo7xm1De0vO5VIR/iBRhk2MVttfZCoyqbFteLyVjtSq8 YVJ8dcXCBh/RNbSyg5i2rvNrDfzxKJq8Wz9dba8HT8Sh0mZSh0gd 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: nikita.shubin@maquefel.me From: Nikita Shubin Add OF ID match table. Signed-off-by: Nikita Shubin Tested-by: Alexander Sverdlin Reviewed-by: Guenter Roeck Reviewed-by: Andy Shevchenko --- 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, }; From patchwork Mon Jul 15 08:38:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin via B4 Relay X-Patchwork-Id: 812738 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 D8C8418629F; Mon, 15 Jul 2024 08:40:04 +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=1721032804; cv=none; b=TLjW8RgMOABir1EXxjCSYsfrTZ8KREUcwkBaAGfji0u1meJuxC4nekEsRaKedNCpzybJCFm487OIkXCRZ8PXE0BBaHyuvc4XqrjStiyoIEXYZ0eZIWDw3uiPO0rDH2Y5xGQM1jPezQ3ZNBGvKzYJV9XNy19hYnjtbb0zRZR/D24= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721032804; c=relaxed/simple; bh=yDo8y/bWB2Ix5i8ziLWZf8GkSgIQIq80Sv6eejpr5RA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DyuuuzpMPVO+XuXtvJmP5QMgkYqcYptS0CT3O1tT4J/jv9HzHft2C+NK0uwmoulz6OEoKynXm18z8iRPlWrQ+LnYfFlKQhS5bqOna/1XmpaF2fhOrMDBSuwq8QnEvD7H/NWb4KXOBXy6MCrq20rxvt+OmLCzrp9vFYn2IhAe/E0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tB5QAZvo; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tB5QAZvo" Received: by smtp.kernel.org (Postfix) with ESMTPS id 53C46C4DDEE; Mon, 15 Jul 2024 08:40:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721032804; bh=yDo8y/bWB2Ix5i8ziLWZf8GkSgIQIq80Sv6eejpr5RA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=tB5QAZvoiZ4AYnnGTu2r1QkbUw55zPPdPOCM48H75qsDGefaAoShCuDWJyc6JlGRH bAig19sqs8rx/t1doURMCG/anEM4ttbBNlBpTpJzTKQ7ynoXHuZbmpjvkAuHhnk0BD dZ3dkA0hhztGZh9jz73YtX90ijeLByYH/ayUnhhl048GXw7HjHXjHP2zeafu3uo4tW AtlyJwlhSNvVkZV+lidc/e0ucCkRnMgBBTY0FJdddcYwtlnQXwGlN8C9TgRIaQ7npW 9lHAgVemgCUsJ80UD7lHiMpUogjQ8M28IClLuwL5Gg1tVr1eq+HRaNcyh6N14/LXid k6QXoz5OR+o2w== 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 4CF57C3DA50; Mon, 15 Jul 2024 08:40:04 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Mon, 15 Jul 2024 11:38:28 +0300 Subject: [PATCH v11 24/38] wdt: ts72xx: add DT support for ts72xx Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240715-ep93xx-v11-24-4e924efda795@maquefel.me> References: <20240715-ep93xx-v11-0-4e924efda795@maquefel.me> In-Reply-To: <20240715-ep93xx-v11-0-4e924efda795@maquefel.me> To: Wim Van Sebroeck , Guenter Roeck Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1721032799; l=1140; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=Ne4hKUjSrewY0X5/1itI3t80vycBGPqa1pd1cn0B3+Y=; b=UTzpWGzxrcKyl7rr2cgOM7fY44aDns2j5J/tKLNmLTocd49JJzdmGt+/xG/cCZQQFbujOW2qmXuN Y224tYiWD6NyPPN0SH2XK8NaKwr0GdFRGwo17UH/xdFEO5Y9BJG+ 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: nikita.shubin@maquefel.me From: Nikita Shubin Add OF ID match table. Signed-off-by: Nikita Shubin Reviewed-by: Guenter Roeck Reviewed-by: Andy Shevchenko --- 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, }, };