From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C34EC433F5 for ; Thu, 14 Oct 2021 19:53:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0F81C610A0 for ; Thu, 14 Oct 2021 19:53:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233694AbhJNTz6 (ORCPT ); Thu, 14 Oct 2021 15:55:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233166AbhJNTz5 (ORCPT ); Thu, 14 Oct 2021 15:55:57 -0400 Received: from mail-pj1-x1049.google.com (mail-pj1-x1049.google.com [IPv6:2607:f8b0:4864:20::1049]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD2D1C061753 for ; Thu, 14 Oct 2021 12:53:52 -0700 (PDT) Received: by mail-pj1-x1049.google.com with SMTP id x61-20020a17090a6c4300b0019f789f61bdso5879772pjj.0 for ; Thu, 14 Oct 2021 12:53:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=R/A1A0PEacctbWxfoyinE4EXZjh0hs5rayBemyeKvhs=; b=Ccj60KB5+clN/g8yw8V0AvFPqpYtRevRPNAl88ECaouDXwhePm0EVHn3TvUZXBuikb NAKgCmTzauq5p0dQbKjSIBENAVJbSfMBQSV+lMb5tUj2fFi3+Aq2GeRXo9by7rMu/6f5 D7PpHFhD7x1sF4gdy/3JxjrmCmAM4yTrv29zz80JGrCedp6YfuqRmzzfqaSv/esEj9sr SLCJqftzhLudSp/QUTsOVfNuQ2FNHexSrmZ0TCNe8tG8xU7TaoiEKHZm0Jtr8DkueIT6 5shOlqnZ4vWy2erzNJHml8C/2dGDK29j9cxITM0usC7jpgFRtQGx0tChJVwri9MFfOxd /Ltg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=R/A1A0PEacctbWxfoyinE4EXZjh0hs5rayBemyeKvhs=; b=YLnPexCenvQ/SJOEOCAK6JnEoldKtNTswD5fXh8VWe+8kjyjJaXn0TUaszLxwWyCkJ 2XwuGRKHrhQazGnML+1SPgoSStIsAN9HSfIqgum2q16Qx5XtwDzBmlBPoyPwZ/zMpz0H SCPTqvdFHmSBp4qHfKDOkaXPCIEcno/RWIEJ5bOCTaIDRo27uuuNAwOmtmdMR2/ttpm5 aKQMkAgeeIBIPuIhBGG9TECLuNKzcVRM9KtJQiGrwA9oMe1Hde2QE63Xk6pYdX2FfleT grCh0mBGb3DukwC0DyYMS3GaSvo3Zwx2pYB6FPvEMHRMqKLgYAzfBEnolihyyIJrxCba tpeQ== X-Gm-Message-State: AOAM533Wb0jUsYKJSgfUF4RCeZZQgyrqfOC7UdPqSFBNF/AdxjNRGJz1 RLW0CoT8huF5hIauXzZU+6s3MZn7DfOpITSQSuc= X-Google-Smtp-Source: ABdhPJzJB0746aYvHaw0UyQpC8oiqKxrUMbT0zTR2WHYcybIVao09r4yq54iQiEOGomsy45bhkxA4UHH5Xjs/8E1XLU= X-Received: from willmcvicker.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:2dd0]) (user=willmcvicker job=sendgmr) by 2002:a17:902:b70d:b0:13d:f6c9:2066 with SMTP id d13-20020a170902b70d00b0013df6c92066mr6942092pls.2.1634241232300; Thu, 14 Oct 2021 12:53:52 -0700 (PDT) Date: Thu, 14 Oct 2021 19:53:44 +0000 Message-Id: <20211014195347.3635601-1-willmcvicker@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.33.0.1079.g6e70778dc9-goog Subject: [RFT PATCH v4 0/2] clk: samsung: add common support for CPU clocks From: Will McVicker To: Sylwester Nawrocki , Tomasz Figa , Chanwoo Choi , Michael Turquette , Stephen Boyd , Krzysztof Kozlowski Cc: kernel-team@android.com, Marek Szyprowski , Will McVicker , linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org These two patches were originally a part of the series [1]. They add support to the common samsung clock driver to parse and register the CPU clocks when provided. This allows for the samsung clock drivers to simply provide a `struct samsung_cpu_clock` to `struct samsung_cmu_info` and then call samsung_cmu_register_one(). With this new support, we can now get rid of the custom apollo and atlas CLK_OF_DECLARE init functions. Since I don't have the hardware to test these, I'm including the RFT tag to try and get help testing and verifying these. [1] https://lore.kernel.org/all/20210928235635.1348330-4-willmcvicker@google.com/ Will McVicker (2): [RFT] clk: samsung: add support for CPU clocks [RFT] clk: samsung: exynos5433: update apollo and atlas clock probing -- Changes in v4: - Updated 'struct samsung_cpu_clock' to reference the parent and alt_parent hw clocks via ID instead of name - Dropped __clk_lookup() in favor of ctx->clk_data.hw instead Changes in v3: - Same as v1-v2 - Tested-by: Marek Szyprowski drivers/clk/samsung/clk-cpu.c | 18 ++++ drivers/clk/samsung/clk-exynos5433.c | 120 +++++++++++---------------- drivers/clk/samsung/clk.c | 2 + drivers/clk/samsung/clk.h | 26 ++++++ 4 files changed, 94 insertions(+), 72 deletions(-) -- 2.33.0.1079.g6e70778dc9-goog