From patchwork Mon Sep 9 08:10:35 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: 13796398 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 5005E1B1D45; Mon, 9 Sep 2024 08:12:16 +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=1725869536; cv=none; b=J1N/zHe8a+6C4doDIm/I28PSuyOX0RGSSK0+/OFLbeYEHGTZizWdJm4aGdFQjaRTBHz9RK5j2DGmNBkwljO/1arWM2ilsCOozhiaYkRhVXjEpG4wSlwTu2qoFsHMKdKshCvafvzwlUk5LWH3GvRoCr74qv3IjHbfa4TinzFqIpo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725869536; c=relaxed/simple; bh=890W8DPr35N6/m48gE2Wn2MHyqWMitXLF0Yh04CJFj8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RoUQ3suHFYjceJZZtwy8cNrgVYacB7BoAqp0VOZz+bRCR1/LMOfZ7lYQcxFhbDynd28bsBkFj1aLNEm3Nrp/TEjBgkKPrBcGedL3JZ5s4OKYUEaEhYwo79thAnr1AZQYVxH8VNPYcjIyXow2UJVPY2bovvUdmzGOzPHkhXz5iys= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dtdv4/+Z; 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="dtdv4/+Z" Received: by smtp.kernel.org (Postfix) with ESMTPS id D0F71C4CEDF; Mon, 9 Sep 2024 08:12:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725869535; bh=890W8DPr35N6/m48gE2Wn2MHyqWMitXLF0Yh04CJFj8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=dtdv4/+ZYuxfXlBo/zqLgLSnydjelSuTYmB3iCj3PVKzvRbZras3+293GK0qgNIqh 1zMud+gqN1UXBH7fHuhdFciN4owAGHmzzCoG3TZBisqpXuAFRKIoDpnTbjqoFgMPSo 9dFkuWMziSAW2C/i0LNsN9UKqVnKKHISi96bhl4rQcHwJuE3RMdhlOpR9EhQkQxGTM d3YZm/SGaHbVnB5tRTw1U4sj+Qy4Pu7/PryyCNxhew85pRSSkDZPcPOe8TBnx76Bx1 5AplmCCrurZRwYKbFKYueL97bMvZcgj1VbQdZz3DpMvqVuuDIvrqHm8P2CdwESVywF A6+N/y+MZph5Q== 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 CB4B4E6FE49; Mon, 9 Sep 2024 08:12:15 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Mon, 09 Sep 2024 11:10:35 +0300 Subject: [PATCH v12 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: <20240909-ep93xx-v12-10-e86ab2423d4b@maquefel.me> References: <20240909-ep93xx-v12-0-e86ab2423d4b@maquefel.me> In-Reply-To: <20240909-ep93xx-v12-0-e86ab2423d4b@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=1725869532; l=1622; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=ms3IjWYaELf8kHC/xQEvZjvjU7YonAObO6Tdf+8gNec=; b=dkko9fZ7b11MrfHd/ZRAC7LX0DHhLr2g544p0wCg6+p0FG1XXe/KjChhqErE1NUTgQWwxiV2Cqkm g72yhIwvBxgFG0iWh9m8G+qExpVVBw6gLEBg6lVL69CJuFSoeWV/ 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 Sep 9 08:10:36 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: 13796397 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 0E4881B14E1; Mon, 9 Sep 2024 08:12:16 +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=1725869536; cv=none; b=IgCJj6mTAftE6H5G9b7J4ckkllV6U1KW+fvycrZ+Vo+kzd/w91pMJowr/jFgJ8JureN0wWnyu+kk5IGqxAplhDu2mrbJOKFiDX6pqeGAOtnZU8eAQm92XwuZt/jFraFavKd75FCPfwCQvH5zv6wGxqYxpYsaxTKt71c2+3GWpXs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725869536; c=relaxed/simple; bh=p7ruUPyc+63NALcCZNunH+Nk2cdQEW4DXh1uDsweETM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Kbjkdjh5hlFtJfN7TOWta7n2iXshoQEYHLGtfgmXc8S6/dhAjbacUeElSQAwwZYWiXUD/r2rkf5t2ua+9GgJGKViCC24TN8zg/VvuF2ZaPdf2BCpLXpnPccW4v/a6h9ol22yQNHRYnhYkKqGzudAiqTrhktqKSQbRUUbHOibvaU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=I89bNYGM; 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="I89bNYGM" Received: by smtp.kernel.org (Postfix) with ESMTPS id E0755C4CEC8; Mon, 9 Sep 2024 08:12:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725869535; bh=p7ruUPyc+63NALcCZNunH+Nk2cdQEW4DXh1uDsweETM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=I89bNYGM8bVezteOeUadW2xIs91Aoy8aTtSJBhZh653I2wYd/WlJ+Ew2txVW09n8h fZpinR9bDM4HVzX9iwsnU44/9MJZbFaLK2ED9zxeib+ZfVaQPil6elDKktz8yiJWg/ K9R7U+nAS1JaiCNrtOPuYKeeOJpsZvFpBH1rNpJojWIZoLs62o2uDMbF/5K0MljK+D 9UcDxiBMCnYagiGezatO419kA9dnhcSkNL2qHKIR10ly3V9xxvGMloe+pq8p4LKKTy RxqbsrfanIG8CiybZ0p4ysc0hMhiveDpMiWq9ghuGHB5B6ifJ2U94P9Z9qX3c0MIQQ UVeMIs7lFgZAw== 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 DA43ACE7AB0; Mon, 9 Sep 2024 08:12:15 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Mon, 09 Sep 2024 11:10:36 +0300 Subject: [PATCH v12 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: <20240909-ep93xx-v12-11-e86ab2423d4b@maquefel.me> References: <20240909-ep93xx-v12-0-e86ab2423d4b@maquefel.me> In-Reply-To: <20240909-ep93xx-v12-0-e86ab2423d4b@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=1725869532; l=1193; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=JD3ei7UZOSn3iRCJWHAn8GIoBZ2EOdmGr+0MVn+KIfc=; b=VdHyekpSAgOidVHG/NnB6pcqR075E8KrwtpU358dFsITTIaDDUVLKjCTvMM6HrJwB/an34f/68mP VgsL4qRbA5bzAwup8erxLFRTUTaKZGrq0IuZ0K5Q5KyHhdgdkGtb 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 Sep 9 08:10:49 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: 13796399 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 CDF2B1B2533; Mon, 9 Sep 2024 08:12:16 +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=1725869536; cv=none; b=b5cYQmHlTrRZR5QC3KN1Zypj6QhbK190gu9aS8xTynrgHTJ+sTznUTkXqd7tb9GjX/BVOtWvF5jVozq9pZyAIaD6ND0S54YOl1wBo/HJ2IaFbMZ5xNHPDmO00gFDJIbaMerYL5ynHrRbRhQqIcSmWWWjqOvWKo0eQApmC94v4IM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725869536; c=relaxed/simple; bh=yDo8y/bWB2Ix5i8ziLWZf8GkSgIQIq80Sv6eejpr5RA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OtVpybT0aJxlzODRHLmOCuJUOyXrFKx3tsDoUzwXDBvv59rXRILkXywk3Xg8OZhHHrWKMn19tVPwlq0ZDBdjkBTjmMCuwBs5RBvU8s+cp0lhbn3cyFXQRcOTclvIS2wzHV2GuvNKsvm+Y5g3wRwPb36dH/PgbrgjRSzj3jHJ1go= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UOnyxAAR; 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="UOnyxAAR" Received: by smtp.kernel.org (Postfix) with ESMTPS id B0026C4DDFD; Mon, 9 Sep 2024 08:12:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725869536; bh=yDo8y/bWB2Ix5i8ziLWZf8GkSgIQIq80Sv6eejpr5RA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=UOnyxAARxcv4p9ZBTthPeKAbgQuLlRAGejhFuexSizN1toc+90yN1qNP54m1AwT6f UCFh0I7x4blc1uwGafx7fudb77j1+jrw3kIkK3/cuVK3smRfTYC1w9crfGqJy0bJig GR+2rTBKN9zgLyxr1FUsCgMBLZcodIL3IC79WThsRU9RIW6dpnaxY5vtkHbIhJ3Qy7 EiklAHJNlHeqiSi9ibTlO2yJXkXE+VXO+6P9zkgdb9Le/6Y18wdXH0vBUZzN++erOX 1nC1KMyXr1GAcTbxhyGaRH9j8Xqx5R7ossaUtaREwg8pQOR2he9Bl9a6S24v1imIc9 VGT6T1D94MZjA== 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 AAED8ECE57B; Mon, 9 Sep 2024 08:12:16 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Mon, 09 Sep 2024 11:10:49 +0300 Subject: [PATCH v12 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: <20240909-ep93xx-v12-24-e86ab2423d4b@maquefel.me> References: <20240909-ep93xx-v12-0-e86ab2423d4b@maquefel.me> In-Reply-To: <20240909-ep93xx-v12-0-e86ab2423d4b@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=1725869532; l=1140; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=Ne4hKUjSrewY0X5/1itI3t80vycBGPqa1pd1cn0B3+Y=; b=7p2nC5LQXwqhp7SWBek+VwMIcOLOkHWgNVWmAoY+astAup7espZkFVombcjojcI2iFbB2255dbyu RL8lYBUaAn9H2aKiE8VrLudtf+7ZOZkaHMzGB8dmArBJS9fWCtLd 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, }, };