Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5076335pxb; Thu, 14 Oct 2021 18:45:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyazAXcUYXpVeY6wgk337ZrafI996le2yvCNAbTMpQETntUQxfj08tXen0JVe8k+Xr+DAg0 X-Received: by 2002:a05:6402:254e:: with SMTP id l14mr13418728edb.199.1634262314458; Thu, 14 Oct 2021 18:45:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634262314; cv=none; d=google.com; s=arc-20160816; b=PznhDjMONLLYjpAli51yQUhPBuZv9ZdPm6V62SnjD1vk3t62h6sAMzXR+k+0rXoBut HWYXzwFZgMdVvHRywMgefPsYJOcCws9/zOeyk+eN8mZUF6/pmzG6TialmLcjZVATTIjH Pny6GgIztUCSNKCY0PN7c3xeCoSlWCy53vjrEHlitOdq2aAIn8ybZAnG7cIUiCkVyZw9 pd50UvENec7Vsb94idNO2Eaa29lw1rKB0/eSdlFCA4AUSGQZTBhfjCq6ZDOUuwoax9tL 9NKjKu5fUdyKaYdiGkLzVnLJLkfN61VJxOz9+hYCMNmimnQXNRQGR5TPGe/vBy/0YrDg tzMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=R/A1A0PEacctbWxfoyinE4EXZjh0hs5rayBemyeKvhs=; b=vIesPADjemqau3tpaE/X98p8yXxUanp1UmNME8FPw15fl8LIYFW9JxIDGs+rtYJb2R cHWv9sqCFTIdquysppPm1NpywqOYDfrPFFDbLEGXEYsh7PEAvv8VtSn43ejCWdz5607l zDtozmJklPTqelFxOpnCFdofQYBjgfO1V52uyd3cLTS5EeMDC6/kUAQ2pulzbmGJZwv7 2AT7v7sVSKFQ+aWxaml4XmJN9PI2yRFyZhh+kAmRfSUfdjlxjAoBCd+yx3RRGQpmLZZa GidjtQocX8mGyiQbI/3saBhTrCi19k93AO0yOhPE5LPGB+NBmn5YOQiMET+Rx6FwK+iM i99Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Ccj60KB5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt7si6443645ejc.11.2021.10.14.18.44.49; Thu, 14 Oct 2021 18:45:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Ccj60KB5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233746AbhJNTz6 (ORCPT + 99 others); Thu, 14 Oct 2021 15:55:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233018AbhJNTz5 (ORCPT ); Thu, 14 Oct 2021 15:55:57 -0400 Received: from mail-pf1-x44a.google.com (mail-pf1-x44a.google.com [IPv6:2607:f8b0:4864:20::44a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC9D4C061570 for ; Thu, 14 Oct 2021 12:53:52 -0700 (PDT) Received: by mail-pf1-x44a.google.com with SMTP id q10-20020a056a00084a00b0044c729ea8f2so4028717pfk.3 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=efetkTP9gebBMoq/REfNpFTDYUBA58e5a0O4mAcWRHRSdkGNz56URiex5S9xngGVd5 MbJDo9XO7bbfeFhC+KkiU8CUVT3hyetYhoboloR5NNT2aZ4PXYLfPKxdCingfnGouoGM ymJa/iICtCDd0EL8BCa23N8zSwQrfrOA+ch0iH1+prRSgpprSiEdUvsv/aXYms5QSzyt gh5+5ewKrMguB4kEmgalsQjhnqNVQy5c5fjVwQVZ6V/GATmDvg8+0ZVy/ctWmt3F2xfS PqQVyiV/GxCMR5EoOxPnAgTk6JWRt6ku92Od2AlW46sIcv6S3eUeI5MP4gVhqQdDDsIj h0BQ== X-Gm-Message-State: AOAM533VY/Ww2bFzyNCOmxlfclH8y7i2UE3kY6IZcdcYNfusr6wJyLzX OOZhdWE2nAvwT+wmMqRTPlUFTr43bfSFZL/QViE= 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-kernel@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