From patchwork Tue Mar 26 09:18:37 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: 783559 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 DC1175D8E1; Tue, 26 Mar 2024 09:20:41 +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=1711444842; cv=none; b=oSyf9Xf9qQyo+/HXABs8/zZpzIAfRu585v2UVND8GciAHUJ3YvAhQGeWgt9A7/fhMZpJpbqeEbjajPUehcJkK/sDsXQEcJno7B1hVDBoQjLej6fDcNRVp+NKOs3DzEZkuP/t0j/ZA6Tj7Gn2iH95b5yUXmNcrE6oI/ofLheAodM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711444842; c=relaxed/simple; bh=7ExsGWYEQIIInuR7uJ4VrJxxLfA/5YuhSMVK8oL9Zmk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=V9THY5JE0OD4J9xMxl4kN5x60HbjXNuTUk48p5YTlkxMqbYhcvwHsJjoYuFk2g7+7lN4DNpS0tM7YQZsN2+BZPfDp82J3TKlLhub/csfyRQ8GYIhKFEnvZxncJAMmaC1a5CpwHdhCN4E3+dTg0V5Xg2zk1j4qDEGEGIC6kXMl54= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CT4PAQH6; 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="CT4PAQH6" Received: by smtp.kernel.org (Postfix) with ESMTPS id 5E49DC3278F; Tue, 26 Mar 2024 09:20:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711444841; bh=7ExsGWYEQIIInuR7uJ4VrJxxLfA/5YuhSMVK8oL9Zmk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=CT4PAQH6iPD0iA/LkXb8H2nlhtEKmdaoaeaZrEsB7949PRhcFuecNaI9whKRd5TXO E3prgRMvBxWtF5X/P0DIopNrTKfIztiFXkpc0GubdCKWbMyZHEVjvV3TZ1Hk9pFdjp F/Dek/rSYgzL80hcmFfW2UMuu1rQiJJE4OBcWaHXog6jV9+gz34q160P31YWYF2Sg7 vj+LzHaYx9wMiJ1gOAulVyiq1srAQaWrJpkosq7mC/KSl+DYOzUZGxj5idTKP9Y4bT +dpI/Hh6PSpJuNtxueRA4s0Uf/3ofT4FfyXuKf3EzeiLa9f+WKCUu/IeAmocvsSVGz 1Rux7I9ljFuuw== 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 567B7C6FD1F; Tue, 26 Mar 2024 09:20:41 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Tue, 26 Mar 2024 12:18:37 +0300 Subject: [PATCH v9 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: <20240326-ep93xx-v9-10-156e2ae5dfc8@maquefel.me> References: <20240326-ep93xx-v9-0-156e2ae5dfc8@maquefel.me> In-Reply-To: <20240326-ep93xx-v9-0-156e2ae5dfc8@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, Arnd Bergmann , Krzysztof Kozlowski X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711444837; l=1622; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=oi1524pxijJgURrfk58fykAJeXaA1N46ukZR7iTBG5Q=; b=FpHUmegdhxnoV91FGq5qRysw2a3NDcqHZ+2Lith/TKm2MvPHozojQhycrNcAuCp/Ao2Tkj6nAbfQ EDnrg5TkAxRG7DB80wHcTLGYBaCphz6ixJTDSXr5ycnRWX4eS2Cu 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. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Nikita Shubin --- .../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 Tue Mar 26 09:18:38 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: 783066 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 464656BB54; Tue, 26 Mar 2024 09:20:42 +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=1711444842; cv=none; b=BICFAsVR9O8NWtNMAdIlKVheok6WVkTBb1L6bFX4l+d69tT7Vvx17UvKm8CsfOe3P3CdBa5XMZD7m7b4oSucv1ZQ2Yj55N0DaxOyFEBc1r26msP35j9DOphCV2hi9Elu9J0z4BZiYzXepjcK2FyBYoLIi5eZ74FKOvfDdBcnk+4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711444842; c=relaxed/simple; bh=r5b5AEVCSYZ5mC7ion+JuijTW0hSH+qXbQTw9BAVvjI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CBxTDWqjIH5FE0JTu9xbIe+Hkzur0vAmM/VrtIJicM73WIbmSPUIFMz2sG64/dQYFji1vE73uOP9oUDcvBd0w+DsUGuyqNWpwBlKUmCzPFc5G8JpNMVmCyqn643igHpWcGvSQy7/4eipwcEIkE6XpVOr5XCehdnKNDt1Lbxn+hQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H+cV0bhO; 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="H+cV0bhO" Received: by smtp.kernel.org (Postfix) with ESMTPS id 71CF7C4163D; Tue, 26 Mar 2024 09:20:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711444841; bh=r5b5AEVCSYZ5mC7ion+JuijTW0hSH+qXbQTw9BAVvjI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=H+cV0bhO1b78dNhLZZ6+BRQM/RdokfYY4O+TosvnlIl4+AVLjOUsZ39z3pDKOFM3n lo7q4UdtSPcZhQh7l1V7W0bjja3cP2nEuia5WPWzJJ7K/nsQECoowb41iUBYDL63pO vo/ner6zUFyqu6HwtcTeVQl0ijMOn+GYxoYzoLbSgcQhDZIdm9LX9vLTxTrvfIlFIk GErtWdQ3HtZQ2pXwdwN5omcE5vtWY9ogfgxAu+xFMRJ+XSsL7Q066n++vvWWp68EWD tOVRH4bsHQeQuxI10mckfI+MAd/Qij6V2GM82SwbjpMXRi26/5c4WTI3GvxX9lFUKi RNei6WHTn9IpA== 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 653AACD11DB; Tue, 26 Mar 2024 09:20:41 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Tue, 26 Mar 2024 12:18:38 +0300 Subject: [PATCH v9 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: <20240326-ep93xx-v9-11-156e2ae5dfc8@maquefel.me> References: <20240326-ep93xx-v9-0-156e2ae5dfc8@maquefel.me> In-Reply-To: <20240326-ep93xx-v9-0-156e2ae5dfc8@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=1711444837; l=1193; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=vpQ5XpDs4mC6MjpYUOCLjEKX9upQoF4eyWW0iqon84s=; b=WiA3j0VOqWEGDLTJanhltM9grkAF+h9zwI+4LbsNWI8Aznt6IUReIjyeQzj2CRL2/0CxZNXU5hTK IBDXIqgABKsrZrcwcq6D2uH6MiCBbjv+XApjMS2Dmm21pQ8b1XkW 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. 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, }; From patchwork Tue Mar 26 09:18:51 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: 783558 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 033746FE10; Tue, 26 Mar 2024 09:20:42 +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=1711444843; cv=none; b=VBeLlWdZsPkWtP/hYW6SNEu7lNYou9G15pMD+FQnBHq2zL0AY1403jtCrRTmiplQHIozl3otsvr4PkZRABnZT0thEaZS0m7gwRLPQv/eZ922dWFk78HX0wrlh+Yq1RXZvtOpRzS42c2BM/5X337tvZL0lGsCHwT+aq3jeG8Wg9E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711444843; c=relaxed/simple; bh=axzOW/bLfk48A9ZCiMw4d+If5yhSQO0oy0KThVKKlAA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=otxs/jybF7Za6fdNk5o6V3eN9pWPUQrN74BMz0qa6FcJ2oTj1ikMmiaAoTqnSwNa1sVT2JNnu8jhFFJ8skRWJIVxUpDP+VEvryzAUgrdFSEG251CKvPwaRwGDeAhqy0aUqBtyIJqbXBG8MA5fDTAjUa5L9Y5ePR3Wz0VC4Tc0pE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MUoZf/qr; 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="MUoZf/qr" Received: by smtp.kernel.org (Postfix) with ESMTPS id 48904C41631; Tue, 26 Mar 2024 09:20:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711444842; bh=axzOW/bLfk48A9ZCiMw4d+If5yhSQO0oy0KThVKKlAA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=MUoZf/qr+jc7eamIHqe7kJLS3+dJVX0yVsTvnz/5fgrvoT2AMwA5Gqo3k2InR6wH6 hhwtAzzdX8rjafgiEFDaPCLoKSMzGnzQdHtenengp+v1HqtyRmUz9+Cnk6MjnGCVhq 7k+yRO/B2ZEUN+Iy7VqwNsmI3Lszng03becekAxnFeDSlztyhFvwAsvDCOGIr3A7dt DMF4oQ4da6bX642vUjWmGehX6IgnTJt0bwPb6XXUCOIwgd6kRItfULdnsfE6EITcxD 7rPVI2BLiJ57S4sWfO3iR2rdft+LfHRjaTtCBI0HbLHSDm26dA5rSGbrr83Xe6ZPOA 0lzZQei2nDXPw== 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 34EE8CD1283; Tue, 26 Mar 2024 09:20:42 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Tue, 26 Mar 2024 12:18:51 +0300 Subject: [PATCH v9 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: <20240326-ep93xx-v9-24-156e2ae5dfc8@maquefel.me> References: <20240326-ep93xx-v9-0-156e2ae5dfc8@maquefel.me> In-Reply-To: <20240326-ep93xx-v9-0-156e2ae5dfc8@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=1711444837; l=1140; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=1rWEe31MzZtFeQGF9K/nSefILZAuLYwUQNOfnETpfJQ=; b=oOMjVqh/NS4VkbHF7TTCTYPOJcHgxzligt8EPVtOwGz/oY8zeE3CgIxbO/wrBGmUI40A927Uu1HM zbO4pAKtBfDt9MmxtFnrbP/ft8xB0d+9RB6OSyw9dwofVr8rpr1N 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. 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, }, };