From patchwork Thu Jun 27 11:04:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13714197 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C83F1C3064D for ; Thu, 27 Jun 2024 11:07:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=ghum+WRAROLUI1335lcuViQHN/XZjBmV1yzFz/XPPgc=; b=xYRreDAt6rjoppGHleESVtaZiV DURNN9IY+1WVSpHSxyJgS8PYn6c+mX63mBRYk2F5HNhhxu09ICLV3SVUH8MbA5DRRS/wRdjqQ8Xyg uP9H3kDPFhgAw4Vj+LV2iuNfLQghD7GASZY7yt12bibSqonkOwhDcRHfScy3r8ejQ/Akw8Ak6SMPs KkIk1Dsw0T5nkW7wq8mYq17fb1vH11m3SQAH4yoSKnSMquhINyjf2Qbz/P8heH7nAJmgCwJaWzjxd t5MKpvax/863HjSx/tGlpy00Juczo5tzJ8fBFXMavVW3mf0OwGgIc4U4EGY25o/T5ixoN9Ux8Uc/3 KWIWecYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMmy4-0000000A5RU-0Ujj; Thu, 27 Jun 2024 11:07:08 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMmw6-0000000A4xM-1mG2 for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2024 11:05:19 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 0C74361E15; Thu, 27 Jun 2024 11:04:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2BE68C2BBFC; Thu, 27 Jun 2024 11:04:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719486298; bh=8ZzDTsMOMidSBP3qxObEzRIVmzQAHImEyQbdHOCy2uc=; h=From:To:Cc:Subject:Date:From; b=L7yK+jpRDLdNv3MVlh1VRwYL4RusBLBp5pboX1jV1qD4oJ9yRMwb9JQw5ykdIbyBh 1m7YtVhNVuBV6fjVgto2zxKGHLqTwzjuTiSNmI66HW4npVoSUtamChibJ+yYN3TXKX yagXOPLjLiUWg1DqN/pTM+C9/rX2jQuXloWQcYfSlun/sHtanmWG+NZf1nkffXdZoT hFXr4rYl/HmURE+cVOLj1xkDVzxsX+Iy1Xp55Kgq96kFRcNGv7+o9JOPMb2F6phXjP qBfrRENLrZ2CcaC1sw+JDI9iD5lN2F/tsHLTznsBJRd8U8GHbGtdIaJ8dfU3AcMWbF eEqC7yCng4lKw== From: Lorenzo Bianconi To: linux-clk@vger.kernel.org Cc: p.zabel@pengutronix.de, mturquette@baylibre.com, sboyd@kernel.org, lorenzo.bianconi83@gmail.com, conor@kernel.org, linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, nbd@nbd.name, john@phrozen.org, dd@embedd.com, catalin.marinas@arm.com, will@kernel.org, upstream@airoha.com, angelogioacchino.delregno@collabora.com Subject: [PATCH v4 0/4] Add reset support to EN7581 clk driver Date: Thu, 27 Jun 2024 13:04:21 +0200 Message-ID: X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240627_040506_851936_6E8BB9DC X-CRM114-Status: UNSURE ( 8.76 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Introduce reset-controller support to the Airoha EN7581 clock module. Changes since v3: - cosmetics and minor changes Changes since v2: - move reset io registers in a dedicated mapping since upcoming pinctrl driver will need to map some registers in the adjacent region - drop patch 2/4 - remove pcie reset open drain configuration since it will be managed by upcoming pinctrl driver Changes since v1: - squash patch 1/5 and 2/5 - introduce reset line mapping in order to take into account possible holes in reset definitions - fix error path in en7523_clk_probe() Lorenzo Bianconi (4): dt-bindings: clock: airoha: Add reset support to EN7581 clock binding clk: en7523: Add reset-controller support for EN7581 SoC clk: en7523: Remove pcie prepare/unpreare callbacks for EN7581 SoC clk: en7523: Remove PCIe reset open drain configuration for EN7581 .../bindings/clock/airoha,en7523-scu.yaml | 25 +- drivers/clk/clk-en7523.c | 245 ++++++++++++++---- .../dt-bindings/reset/airoha,en7581-reset.h | 66 +++++ 3 files changed, 281 insertions(+), 55 deletions(-) create mode 100644 include/dt-bindings/reset/airoha,en7581-reset.h