From patchwork Mon Jun 17 09:36:44 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: 13700421 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 54202194148; Mon, 17 Jun 2024 09:38:24 +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=1718617104; cv=none; b=l//0QPAyqwrnVdVM9wqMPDU5/w41k1rcnIbeFzbOtz7jaufC/Jbci9CqCV6cP4B97Mniz0XpMIuBDs8euSLA+1lPUdG8yRlBY9i7pzvxZoPoo3sCAq789XzhZJGaE2bGWRNRfKGJoUCFW8sE5ulHcLmzFbJqHfAMlR05IdyXANo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718617104; c=relaxed/simple; bh=890W8DPr35N6/m48gE2Wn2MHyqWMitXLF0Yh04CJFj8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MZ87u5NNFX2F0RTLHvTSlLr7k11HuoIC1Cx2//wd7pGsWAJCMe0EM+N54tr+dvyqabC/j/uc9tw5X9DGU4+g/PxvuJWn6+gk/WfKU6avRpHvjecra6boXOn7elCEGKQxs+fDIBTnJIoJkcL4TCkYPI/svpex9rs2ut6tkWT5R64= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TkGLxNbE; 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="TkGLxNbE" Received: by smtp.kernel.org (Postfix) with ESMTPS id 09379C4AF49; Mon, 17 Jun 2024 09:38:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718617104; bh=890W8DPr35N6/m48gE2Wn2MHyqWMitXLF0Yh04CJFj8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=TkGLxNbERN6FJ8EUmM59vBcqSyh00uHwpRkm0ofn7ICO6cfFHUM7bynsrzyPxjaGU ZcL2cOlBFFXqPowutVZba/tO15TTtOO27cXcdsF8oINCMJDxEOGL5EW3WtYcl89DXH XWUE9ny0EvJG/P1ypXbDUMVceVrAAjhI0Ya9rXmkcc0tKH5E1GmBcvFoLpf135lgT3 6WehxdjTNMsbmQQ5bQFKyN2sFKPoBJBMo2ddHf+18xEvw1ns0hXp/0PgsBJCARkcBo d7RNZwmAMxZPX7S4IAqmYZ0/vKYArEUWuBmWGcEg9p1PPRRVKbuvkgmSzUIxFuyak0 QrCsK78EYQuWQ== 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 00BE1C27C77; Mon, 17 Jun 2024 09:38:24 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Mon, 17 Jun 2024 12:36:44 +0300 Subject: [PATCH v10 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: <20240617-ep93xx-v10-10-662e640ed811@maquefel.me> References: <20240617-ep93xx-v10-0-662e640ed811@maquefel.me> In-Reply-To: <20240617-ep93xx-v10-0-662e640ed811@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=1718617100; l=1622; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=ms3IjWYaELf8kHC/xQEvZjvjU7YonAObO6Tdf+8gNec=; b=PFwh6oZEQCgt48/QKZefr6m6Tbbl7PKyIp8ekVWxvIWVsYTumWKfUymmEYBrGUK2OYzbft80tPYc nvv404muCj0vF42ZOwnD3rF3Yu6AFJqmTMU6EwebDJt8+3FRZcBj 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 Jun 17 09:36:45 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: 13700420 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 54EAB19414D; Mon, 17 Jun 2024 09:38:24 +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=1718617104; cv=none; b=sund6mgC7IjLsvk2T3f5NdTrn0iMW4xiOA+goH6Q8e7YckV1ugIFZDwwuoPOLrRjZOdn4kWZ+THgdNlGseMaiFIwQkrI4fQDna/HwHOjUWmShONqFWIAc8ujOX5IAEHQpR8N4aSCx1hsy3suA1WYo//eCEQX06zttwcHOgTh7B8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718617104; c=relaxed/simple; bh=p7ruUPyc+63NALcCZNunH+Nk2cdQEW4DXh1uDsweETM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cLo05KSF/+VgFlXzAIHXfRZK6TceEOUIU9oimKjRRqs2GKEuV7tLsp3gtH93veJI01LcFRmHpo4fsiuVLuW23XlhhSAgj35pX29UhOFQYEqHmug/VeHRGbxf4lwEeHbdrVdzN/75fYMH4VgFM+p9F7jYc92D20NHtf8PPgLqLWA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=utEagLnh; 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="utEagLnh" Received: by smtp.kernel.org (Postfix) with ESMTPS id 163FCC4DDED; Mon, 17 Jun 2024 09:38:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718617104; bh=p7ruUPyc+63NALcCZNunH+Nk2cdQEW4DXh1uDsweETM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=utEagLnhpVsWzw9VNxpwAr0N+OOgtNfHItlbuX+14NHjUp1GmGmZjLyNnOz6mDiLJ z0ZO9i23uUpl9bXv49V3pikzh+nBtpV+pfPV7D53vus2WJHu9xCP19Bv9eGRrfWT5l K1K03otoBjOI8MbJVhnBqBylCzISP8zlLON3cS7rw9p4ghvCKvhlq6xCvnHf3KWyfQ JlcrFNm3oAcD3v6v7iLmXfJpUaL7aceBkwhOMEzdTaShpRfUhl2Hq9euNvgp43Jh1v f+j0KwcFlT3205I3/vH2+PW/LRWSRK7L+WT91U7w+ZX/sSAawWUHyCk+tiRJPxMxPC KGR/eSCqEH89A== 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 0CA56C2BA1A; Mon, 17 Jun 2024 09:38:24 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Mon, 17 Jun 2024 12:36:45 +0300 Subject: [PATCH v10 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: <20240617-ep93xx-v10-11-662e640ed811@maquefel.me> References: <20240617-ep93xx-v10-0-662e640ed811@maquefel.me> In-Reply-To: <20240617-ep93xx-v10-0-662e640ed811@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=1718617100; l=1193; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=JD3ei7UZOSn3iRCJWHAn8GIoBZ2EOdmGr+0MVn+KIfc=; b=Vaw4wj7lMtb0jzbo3hYqqEpAd2n0326Zni8xChuaWgDQ9SBn3tEbObM54vsCOULydTaX48pWXepu wUtsqy/ADC0Mpj8Hyh6rudvI8+WbdXhOpurFDAIJ1B0VdDSm4LjQ 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 Jun 17 09:36:58 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: 13700422 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 BED72194AF2; Mon, 17 Jun 2024 09:38:25 +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=1718617105; cv=none; b=G7ngNXJPRhkn+KwfaM8GIa9LEf/l51wMbDAMO2F+Tf73JC6ZkJMTb6uXQnhBsxVOiIKfilzZ4VJGedGoZtQIvopZg7fYq0nbELyCR497vHVh6lSQtXA4eWLP8uIUev3vn+yTUq1mW79fQXkj0YJbRkwryaIXJGQCoUF+bS7nLoU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718617105; c=relaxed/simple; bh=yDo8y/bWB2Ix5i8ziLWZf8GkSgIQIq80Sv6eejpr5RA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RtjRTmG4y3V4d7vXXNfVEFzHrq7U3Mo5G5WGPoXrRe2C/u3gHfGJx76BaQYrt70SW3VX5laCiylk5tyIxntr9qCxR1w1RZonWMnozRsWPeTDR19nryI8v1DbF9jpAeGJBsjA4qrhbbsb03P9MNUl5/bG3vytbawxMOtzBdKSbdM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HysT5erE; 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="HysT5erE" Received: by smtp.kernel.org (Postfix) with ESMTPS id F223EC4DE1D; Mon, 17 Jun 2024 09:38:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718617105; bh=yDo8y/bWB2Ix5i8ziLWZf8GkSgIQIq80Sv6eejpr5RA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=HysT5erE864Oq+++t2Q5fvlWD4VfDgq0rhdYqIzLngal4GbfEeNPCryxh9bcXP9j7 VS5gcpKz0DOm/Qr8Gw020q9iIFr5S9n8Fpnriti7n1YLhmDWNnL3IjtImCTgbTq2Za Q2VbwoG4TDGUUVSQB7p6mb0kkXJpzERLAE7z29Dxe+22Joem1+ceXeNN6VljPBTvR7 elidqu+x6dYP7LA9qa2ZOtd7XpkZYnydVcEv32ZGxx26R9A1IzLHI4XQgBqjx5K9wB YOZNwEKHn1k813zkdAdpDOBMyq+9ITqimly+CsnqoUeH2I9sRt2FeaR1i0ZEC5WyQE sefouQVw9mkOQ== 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 E79F8C27C7B; Mon, 17 Jun 2024 09:38:24 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Mon, 17 Jun 2024 12:36:58 +0300 Subject: [PATCH v10 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: <20240617-ep93xx-v10-24-662e640ed811@maquefel.me> References: <20240617-ep93xx-v10-0-662e640ed811@maquefel.me> In-Reply-To: <20240617-ep93xx-v10-0-662e640ed811@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=1718617100; l=1140; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=Ne4hKUjSrewY0X5/1itI3t80vycBGPqa1pd1cn0B3+Y=; b=B1l8LPZOYaZ9D1VqIftKHYDn4yLYTtUh/k3qIT4kBloB0pijUXdOck3V05+K9IvsTlyBol1rROpH oEadCJyTDuyyWqf1QNGdLeTr8IQi1c9D4XJwcwShqo1SD6NJfvCK 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, }, };