From patchwork Tue Sep 3 21:39:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13789331 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 7AED7CD3440 for ; Tue, 3 Sep 2024 21:41:22 +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:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=FxZwK/+in1zWGVe+BhCIW9P39OCNmwZUeCTRsHuxe20=; b=MnOzu1yDtASzaI okj/rIhd99mCnJR3x8WxfpQH8E1XwXx5C1hH5/2fb6dy5JXkYPa6jJ3nuYD1EnisBB/D6wkzrNcgP HJQEd0wTK2Qm7WihyNqLVR3ARe4N2JoCqMzmMbC6daCFgL8fOcw1h6h4ktaQ0JZlWzq4L3xrwYObi KuS+QG8UbFc4gwJTU+5pKeXlsOLvcXeHU9ve7urfAJV+gQEaPqcjzLRiwjl0NNhAKaE5l8YfkSq9U VKwl1ophSxsN1/gd/IfBFEGbc5lp+v2YatA7GJMmHwXtzsph5yI9IK2+EiHK7idbBci6ecDLEJHlq zkjAIQB6Wn77OXhSsbkg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slbGy-000000021h6-0vfR; Tue, 03 Sep 2024 21:41:12 +0000 Received: from nyc.source.kernel.org ([2604:1380:45d1:ec00::3]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1slbG1-000000021QK-0XYn for linux-arm-kernel@lists.infradead.org; Tue, 03 Sep 2024 21:40:14 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 340A1A43F9A; Tue, 3 Sep 2024 21:40:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF450C4CEC4; Tue, 3 Sep 2024 21:40:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725399611; bh=0BN/FwFINfIweSPyRYGiqivvH0muTynHLak6B4C/5vY=; h=From:Subject:Date:To:Cc:From; b=ESs5x3Y+uBF44b6ZplOMnParNQDBx/5lmmKFOZwu/OtYdh8dings8z0KJ0v1Xs7Sp XvLPRYireoUIkLoGMyAzlNgdbsvxtlJnfzJy0XPqUj9oKJGwJsbIvSJmPQ1JpYBMx3 RK9uAFfhOySAdSTB5JrGkIW066O14ij8t3JYmVPb9exWWLSUDbYlNVMIOG2kMSKqsx yXN28zGQqoB8Of972to8kPtIxv1epDEz4geiO86toOy2LmjAwY5+yZG/xy47C7dLYd UKaG46trOQ7WPaQXCtRWcXRJw3VuY6P3E96v29nx4VvaFmJvbEqXBuW0Ajjzdz8JVS h0fN/lyv5SkLg== From: Lorenzo Bianconi Subject: [PATCH v2 0/7] clk: en7523: Update register mapping for EN7581 Date: Tue, 03 Sep 2024 23:39:44 +0200 Message-Id: <20240903-clk-en7581-syscon-v2-0-86fbe2fc15c3@kernel.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIACCC12YC/22OQQ6CMBBFr0K6dsy00FpZeQ/DAstUG0mLLRKN4 e4WWLhx+SaZ99+HJYqOEquLD4s0ueSCzyB2BTO31l8JXJeZCRQValGC6e9A/iA1h/ROJnjgiEZ Rq9BIZPlviGTda3Wem40jPZ5ZPW7HnzkPLd4DSrAhggLO4TJYaMvqSNag7qyuJ8EWzc2lMcT3W jrx1bNFlfxP1MQBQRqhdCkrjkqf7hQ99fsQr6yZ5/kLr3v/L/oAAAA= To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Felix Fietkau , Philipp Zabel Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, upstream@airoha.com, angelogioacchino.delregno@collabora.com, linux-arm-kernel@lists.infradead.org, lorenzo.bianconi83@gmail.com, ansuelsmth@gmail.com, Lorenzo Bianconi X-Mailer: b4 0.14.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240903_144013_272283_ED62181C X-CRM114-Status: UNSURE ( 9.19 ) 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 Map all clock-controller memory region in a single block for EN7581 SoC. Introduce chip_scu regmap pointer since EN7581 SoC will access chip-scu memory area through a syscon node. REG_PCIE*_MEM and REG_PCIE*_MEM_MASK registers (PBUS_CSR) are not part of the scu block on the EN7581 SoC and they are used to select the PCIE ports on the PBUS, so configure them via in the PCIE host driver. This series does not introduce any backward incompatibility since the dts for EN7581 SoC is not upstream yet. --- Changes in v2: - fix smatch warnings in en7581_register_clocks() - fix dt-bindings for EN7581 clock - move REG_PCIE*_MEM and REG_PCIE*_MEM_MASK register configuration in the PCIE host driver - Link to v1: https://lore.kernel.org/r/20240831-clk-en7581-syscon-v1-0-5c2683541068@kernel.org --- Lorenzo Bianconi (7): dt-bindings: clock: airoha: Update reg mapping for EN7581 SoC. clk: en7523: remove REG_PCIE*_{MEM,MEM_MASK} configuration clk: en7523: move clock_register in hw_init callback clk: en7523: introduce chip_scu regmap clk: en7523: fix estimation of fixed rate for EN7581 clk: en7523: move en7581_reset_register() in en7581_clk_hw_init() clk: en7523: map io region in a single block .../bindings/clock/airoha,en7523-scu.yaml | 23 +- drivers/clk/clk-en7523.c | 309 ++++++++++++++------- 2 files changed, 217 insertions(+), 115 deletions(-) --- base-commit: f0e992956eb617c8f16119944bfe101dea074147 change-id: 20240823-clk-en7581-syscon-100c6ea60c50 prerequisite-change-id: 20240705-for-6-11-bpf-a349efc08df8:v2 Best regards,