From patchwork Thu Jun 13 12:47:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13696746 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 712CDC27C75 for ; Thu, 13 Jun 2024 12:47:59 +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=aKmYHJk6JXl6uI5Uy28S9adwh8UKiMT1K6ORp0+TGeA=; b=m66xQVaRm1YVxjR+oRQKplVI/4 uBCph/n6HzbOSyT9fHkiBl+1kZq0+hYbZACH5afhCMNCXKKIAqC2PHb+yZayzPCRAE2YGAP70UFjv MYVTJWce+EMsMKwMCl0Iuf9Tree6ye/LKsReAeZ93iGbUuRyL8Ow93iU33HxFH7gjqfz6UpzEzT/z r1ZXIkgnRWu84pq60yf7ZwXDCAJbTsLoIZHY7Av3K3t+9z2Dc1xXOE48zxDYaOXqyVlp2HDBg7+u8 /O2Scw3ZqhHV/BGoArKxwwat+aimkLWzJRUHy/wf8RfTxs/Klet/Jpb6g2EK8sbLJdojODE8F7dJ1 mSfLQnew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHjrl-0000000GZBQ-2hGB; Thu, 13 Jun 2024 12:47:45 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHjri-0000000GZ9v-3458 for linux-arm-kernel@lists.infradead.org; Thu, 13 Jun 2024 12:47:44 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 32334CE2633; Thu, 13 Jun 2024 12:47:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A89AC32786; Thu, 13 Jun 2024 12:47:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718282858; bh=owO0zqfTe7FA+mgDkZXnzHI2Aqx+GCJIs7Xwqq1g2gw=; h=From:To:Cc:Subject:Date:From; b=O+YKBy/wofpVaYLA546tFskGvS+zdL3CA/K0ZjZ59szyBUUMqYydQf0dVgey0gIMh HMK7JYSe8iJQ4V8Y1r6wf2ahuAX80z5UjfGXI+XyF4PFv9ISARGsRu7eueIpbzHVqP 19OuVAyXYVN+FBfAaCwVFH8Xbw5V2sfuop1ucLBHglxZLAgj8iSko8nCJOrvgwfEu1 hqRu38XZMFjwoQwfVGmyV8PtvCfK4FG0/1MArT4C087TSkMKpQj2Rd1jdKEC5TumAI VfhKmRnbmCovFL5jD/UX0ZSKO6zGS0hIBGkxNdGdmwi7f6lh1ab2jSFEA48QBt4omJ v3dLrg5qZx26g== 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 v3 0/4] Add reset support to EN7581 clk driver Date: Thu, 13 Jun 2024 14:47:02 +0200 Message-ID: X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240613_054742_994122_D70EB8A3 X-CRM114-Status: UNSURE ( 8.51 ) 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 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 | 253 ++++++++++++++---- .../dt-bindings/reset/airoha,en7581-reset.h | 66 +++++ 3 files changed, 291 insertions(+), 53 deletions(-) create mode 100644 include/dt-bindings/reset/airoha,en7581-reset.h