Message ID | 20250120-amlogic-clk-drop-clk-regmap-tables-v3-0-126244146947@baylibre.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org> 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 72557C02181 for <linux-amlogic@archiver.kernel.org>; Mon, 20 Jan 2025 17:16:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To: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=MFNXhehGlkDuT5i679DJn+TwUFgUGdA9WuKKxGjaof8=; b=fYd5KLL2mAi+tT RiyFJL1r+VoiyEHErYbZQLE/V4x3QW4b+WgTs1ZS03ITWIVeHWy9yV9uYgIty9DXibIhtHpIBVzxT mUlDA21J2cgr3oi3Te2dFKRZEuBZOvhPjMpmQEWE2DrFot+XE8VyYJ49vF3rkt6qCiCZ8FavILT4+ W81B2Ai4UxxVaPhLohyOk5df8+XoUzimWMV+4MJp9rwgs5KNlCVFMw9OrpAYhlhkrAuzBysFNA+ks dJmzEHK5PLDbarDeiUy0w/tws80XKCKYDKrrMHrlP6k6UpItwM1Bg/gR3UOmFf6rYUT3RhCNmw0QL eC5SLGI2WD6dYJB/AWqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tZvON-000000066EV-1Zhx; Mon, 20 Jan 2025 17:16:51 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tZvOJ-000000066Al-0hwc for linux-amlogic@lists.infradead.org; Mon, 20 Jan 2025 17:16:49 +0000 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-43626213fffso35711685e9.1 for <linux-amlogic@lists.infradead.org>; Mon, 20 Jan 2025 09:16:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1737393405; x=1737998205; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=mbB8qm0bkBEJ3fYSZMX1yugmevQ3Tpm+Yk5pP0ec+Jc=; b=Y5wa66SeCeRBhKHREJUdEvz9Jftt7mivxRfKTHuh3Jr203igrjhWTYTmhtH9G1rXBQ dpiNfUI0sfQTOmwrBHRM5ClKr/qQg80CLpdBfMO6Ewe7OGtzP4Eres3dfgjdvXRbMfGx 0HXJaedOdm7iC+aOuudfv+q3uI2sxwW5jk0tz/lk9cRDp9/AXNbdcaiPofdG53D/Smpo jos4tFN/Hok0oDlXdiHIGfVA11i+tmcndTEON7W66aW1C1qS5BIulyKoXjIbiToi06oE sGJlKjruorlQflshQCPMIbB3sBhErL+cRVP8q5LeRb51VBFtBegRi8GN7FXEQGDlP9dj 1Wqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737393405; x=1737998205; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mbB8qm0bkBEJ3fYSZMX1yugmevQ3Tpm+Yk5pP0ec+Jc=; b=u/AGPYTEgR1AMrpJvLfeSZ1boqMKpU2R9XyPfh63ot2OYtEWT85DrlKngH97TMF8Y4 fh6fE8/1vd4Ow7i1MwaB/2TxBlTvGifwvTPaNddvCdiBEFeKGcAhFnOjr7hdxZKjSFXF +lgsFgXNmD/1i4s2QILIdrnsph2PBMoXph2yL3g2WHsULILPjNooVagvybBYtdOhwUzw DGaa7pOvFU/8coLDa7x4ctyrBlpNc5dfoWxL8drPSVv454PJB0bUqs1yuRZUjlZP/D/v SsSfrRPSYrNBrPSA5NU1UvB/QgPAlxyIihmWfnXDyctjuXbe4kZbFSMFETkKZojEDJuP VLmA== X-Forwarded-Encrypted: i=1; AJvYcCVJZA+5JTMQjhLJPZw97mwF9xPF4zl65bz6F4HKMQjwy3oupclmZCCrG8pg6MvRGbvFXEgKQcrAo5be8LLG@lists.infradead.org X-Gm-Message-State: AOJu0Yzcns9unAbSfKtH1LAJKtchsAJruZ/7KYIMZFLPvDdwqlt+8IOv uQzQLOWk7sslhKq+LwEKjo2DKklSoP/QRRfV7b0TAAOHYvRczg9NEiOxzp3M0e0= X-Gm-Gg: ASbGncsbQ+VUB4/HlJ1yj5PuuA7icwWhynJCpUx01wOGRqV8o43robHMQkqC2KAbcsH 9fz/7ZDZb6oxlNIY0QlOXUm2cSxTwhnFRtHFRJoiuf0fw6LNnPixvqxy8UZWB9Q1eowfG8x+lm7 QPvCPublK+ZLPQBnO5yEX3R996Pmjb3rlLzxqK9l0rBWLLbD7mNhDk5daRQJEArUGqAHin3P0xr z/ylNYepPZcu4GdRAv31MtxUlGCQqXtyy0RSyUJveI8h0aDiWomA0A2s/GaLgYCB2EKRT4A6V4n BAWkhm1Y X-Google-Smtp-Source: AGHT+IG5o4k9tK/Vhm1L7A9XvrUAF/5ZROZXG66cuSFDp1cGjAPzlnO10DMoMkcNakTaJusKA0zDvw== X-Received: by 2002:a05:600c:8712:b0:436:1b0b:2633 with SMTP id 5b1f17b1804b1-438918d9008mr128996795e9.9.1737393404184; Mon, 20 Jan 2025 09:16:44 -0800 (PST) Received: from toaster.baylibre.com ([2a01:e0a:3c5:5fb1:66cc:1b13:f78a:5738]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-437c75298adsm208629865e9.30.2025.01.20.09.16.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jan 2025 09:16:43 -0800 (PST) From: Jerome Brunet <jbrunet@baylibre.com> Subject: [PATCH v3 0/4] clk: amlogic: drop clk_regmap tables Date: Mon, 20 Jan 2025 18:15:29 +0100 Message-Id: <20250120-amlogic-clk-drop-clk-regmap-tables-v3-0-126244146947@baylibre.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIALGEjmcC/5XNvQ7CIBSG4VtpmMUAlaJO3odx4OfQEmlpoCE2T e9d2sTFSbfznuH5FpQgOkjoWi0oQnbJhaFEfaiQ7uTQAnamNGKEnShjBMveh9ZprP0TmxjG/Yj Q9nLEk1QeEqZn4NpywWreoAKNEax77SP3R+nOpSnEed/MdPv+xWeKCb40xjRcaGWVuSk5e6ciH HXo0baQ2UflhFLxk8qKaqgVxSRC1PClruv6BmtMy0stAQAA X-Change-ID: 20241220-amlogic-clk-drop-clk-regmap-tables-18e5cf572356 To: Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Neil Armstrong <neil.armstrong@linaro.org>, Kevin Hilman <khilman@baylibre.com>, Martin Blumenstingl <martin.blumenstingl@googlemail.com> Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet <jbrunet@baylibre.com> X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3282; i=jbrunet@baylibre.com; h=from:subject:message-id; bh=k1IIV9DSBPIvFUEiqJP0rcFyaxltvdBOco23nV5sRPs=; b=owEBbQKS/ZANAwAKAeb8Dxw38tqFAcsmYgBnjoT21CjqOGkbh6UgB0iHVHF6VxRL1Eju3Abzw 36s8sm6zmSJAjMEAAEKAB0WIQT04VmuGPP1bV8btxvm/A8cN/LahQUCZ46E9gAKCRDm/A8cN/La hbhkD/4nQv0cuGLB9720y41tXquDMo13LTUI/XLrUPOll1ojBZRRsgY36hT0xbruXlGGSrokoDN G8pepnfvHtAG0VgSRngUhr24dnWPGaKV/CjHspTIyp5iOEqm6BGYn424RhCV/yHn+Ju89WZeTTg QxfPcxAQnp/BEaWSW4bOxLQLF+fgYEtQVWBs08wBc5rt+sAdbTcdI5WkeQW9je5EIho0iE+uw97 qwMTQJzzMu3/Xb5xRHRP89t0wC5IEUCE1uVXdADjQ23TBdTXQjL/LNyUE21TbMU5NAOOSsUS5Xt pm8vh6TfmZRnGhU2dchGSa/D7ZPJj9cnKPdp9kWzEghM55JUIIfusc7Ky1oH6NQC+xkQgQSq2GG tsbUDC4xvQxAwBXt0D4W98JWwhuq3k6ilLnaPcuXRETIvLwdaxOq1QXGSCcZn33x5S5WAkRRAf8 yor86t/nBkjLwtgNH25tPYbc5NE5c+MVyAth5Z+31mQR/I2M3q4nfd2adm22s8nkAVdAvOikIKx y6oFW4XoKiShi0IcUkzvqyJjpR7j8AC9ll+7xTxHXICi24pePfnRG8imcL9ptYrIlnQoi4xMv9t rRWQYgk1aml5UTmDQQz4lwVzC5hgdeJyHJm+aJhrd12gGkOO6csjUNgRFi3VrztlgCX+b9mKx56 s7ZuISeQXvOIxCg== X-Developer-Key: i=jbrunet@baylibre.com; a=openpgp; fpr=F29F26CF27BAE1A9719AE6BDC3C92AAF3E60AED9 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250120_091647_486968_AC136230 X-CRM114-Status: GOOD ( 11.63 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-amlogic.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-amlogic/> List-Post: <mailto:linux-amlogic@lists.infradead.org> List-Help: <mailto:linux-amlogic-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" <linux-amlogic-bounces@lists.infradead.org> Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org |
Series | clk: amlogic: drop clk_regmap tables | expand |
This patchset removes the need for clk_regmap tables in each clock controller driver. These were used to populate regmap with in the regmap based clocks. This saves memory and is the 1st step in a series of rework of Amlogic clocks, to clean-up, increase code re-use and ease future maintenance. Changes in v3: - Fix some typos - Link to v2: https://lore.kernel.org/r/20250117-amlogic-clk-drop-clk-regmap-tables-v2-0-d1f77cb0773e@baylibre.com Changes in v2: - Add clk_hw_get_of_node and kunit tests for the new helpers - Split patch adding the .init() and the dropping the table - Drop devres based solution and something temporary but simple while a more generic solution to hook controller init is discussed. - Link to v1: https://lore.kernel.org/r/20241220-amlogic-clk-drop-clk-regmap-tables-v1-0-96dd657cbfbd@baylibre.com Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> --- Jerome Brunet (4): clk: add a clk_hw helpers to get the clock device or device_node clk: amlogic: get regmap with clk_regmap_init clk: amlogic: drop clk_regmap tables clk: amlogic: s4: remove unused data drivers/clk/Makefile | 1 + drivers/clk/clk.c | 33 +++ drivers/clk/clk_test.c | 116 +++++++-- drivers/clk/kunit_clk_dummy_device.dtso | 10 + drivers/clk/meson/Kconfig | 1 + drivers/clk/meson/a1-peripherals.c | 163 +----------- drivers/clk/meson/a1-pll.c | 16 +- drivers/clk/meson/axg-aoclk.c | 22 -- drivers/clk/meson/axg-audio.c | 433 -------------------------------- drivers/clk/meson/axg.c | 131 ---------- drivers/clk/meson/c3-peripherals.c | 210 +--------------- drivers/clk/meson/c3-pll.c | 32 +-- drivers/clk/meson/clk-cpu-dyndiv.c | 1 + drivers/clk/meson/clk-dualdiv.c | 2 + drivers/clk/meson/clk-mpll.c | 6 + drivers/clk/meson/clk-phase.c | 11 + drivers/clk/meson/clk-pll.c | 7 + drivers/clk/meson/clk-regmap.c | 49 ++++ drivers/clk/meson/clk-regmap.h | 4 + drivers/clk/meson/g12a-aoclk.c | 34 --- drivers/clk/meson/g12a.c | 261 ------------------- drivers/clk/meson/gxbb-aoclk.c | 19 -- drivers/clk/meson/gxbb.c | 393 ----------------------------- drivers/clk/meson/meson-aoclk.c | 5 +- drivers/clk/meson/meson-aoclk.h | 2 - drivers/clk/meson/meson-eeclk.c | 4 - drivers/clk/meson/meson-eeclk.h | 2 - drivers/clk/meson/meson8-ddr.c | 9 - drivers/clk/meson/meson8b.c | 200 --------------- drivers/clk/meson/s4-peripherals.c | 341 ------------------------- drivers/clk/meson/s4-pll.c | 31 --- drivers/clk/meson/sclk-div.c | 5 + drivers/clk/meson/vclk.c | 2 + drivers/clk/meson/vid-pll-div.c | 1 + include/linux/clk-provider.h | 2 + 35 files changed, 239 insertions(+), 2320 deletions(-) --- base-commit: 1909d0d351ed98fdb9f5cbe377213ba0154bf2e0 change-id: 20241220-amlogic-clk-drop-clk-regmap-tables-18e5cf572356 Best regards,