From patchwork Fri Sep 17 03:04:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 12500903 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 631CFC433FE for ; Fri, 17 Sep 2021 03:04:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4572B611CA for ; Fri, 17 Sep 2021 03:04:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231556AbhIQDGO (ORCPT ); Thu, 16 Sep 2021 23:06:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243339AbhIQDGO (ORCPT ); Thu, 16 Sep 2021 23:06:14 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DACEC061756 for ; Thu, 16 Sep 2021 20:04:52 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id o8so5241820pll.1 for ; Thu, 16 Sep 2021 20:04:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=xfWLMEnzqQR6BIE1mrFkeIl5FyjRfgu7/fKn/trtwfw=; b=VbCmsAOiAPn/MfnVJTvWqSXqMPyS5YLX+2NNDlGtOSM+864NXmsBuBGRoUtfxlKpCl hZtw9GZiF2oXMLLL8Z1JrGU/hiMBjiNFDat2cvixKGNzHU+XWlna3gytdnT1isVWnAdZ mJGf9DUb6w+RMt2k5X4zLGqEz57baAW7WqNYnCO6ORi1wi3eZqMDyxpp+qNbzchojMN8 OUzf39rX8NNVrAdBEGEtS8ac6LTxx2UqJwOP0um6+GfBg4tj9KdY5JC5EPIEynQQ03Sv thtL1sfZ+bu8qlqVZ6i71WLbBiPv5lJipdaIBwnmIcR2M6qNRuKln+B2bVMP53YDw/39 thUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xfWLMEnzqQR6BIE1mrFkeIl5FyjRfgu7/fKn/trtwfw=; b=eVQDFJ+Ax4ajQhi5XinURV1Wmt3wBzUgCPsSzyZywMOMoyXK0n+9nK2C66Ta6Eh/dJ GdTuqJqnglVcri7gRcG1s2pxx2w9Z+tO3mri9j7V4FZSWvd39Ud/AcA3LOKh6szXU+uk iTMSzyU3h6jBPHdLMqK7Ebp20SvTxDGgApZf9U7xqVxAJYob6sAebezsLDCdGehp1yuj uYeNf09Nplkogd3r3glCJ4DB+AwTw0XlIJN0/MeeHxebm1o5wTTQTOJGuRI46yB7cT5z PJ3YtolEHVHGaXHGzd3a8iqIlIBNPNeG2MqBj/RP6M2To6b1VL6RKTcNC0IG6r7Rnfg2 A22w== X-Gm-Message-State: AOAM532oPV2imWRXsqo1243VWw4jPRVmyT8fAiYhgriup7XQzmA/tK1d DJHKdzdb/wdNAJcoXrPw9qtW2A== X-Google-Smtp-Source: ABdhPJwVZGAnX+2ysP6GEehgG9kVZxzPc74SiVh/9WTG2vVLMNsyjMPOSFfGOArdlV++viZcnGY50g== X-Received: by 2002:a17:90a:de0b:: with SMTP id m11mr18599261pjv.39.1631847891465; Thu, 16 Sep 2021 20:04:51 -0700 (PDT) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id q2sm9133930pjo.27.2021.09.16.20.04.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Sep 2021 20:04:50 -0700 (PDT) From: Shawn Guo To: Stephen Boyd Cc: Rob Herring , Bjorn Andersson , Loic Poulain , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo Subject: [PATCH v2 0/3] Add QCM2290 RPM clocks support Date: Fri, 17 Sep 2021 11:04:31 +0800 Message-Id: <20210917030434.19859-1-shawn.guo@linaro.org> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The series adds RPM clocks support for QCM2290. Changes for v2: - Use `rate` field of clk_smd_rpm to report branch clock rate, so that only .recalc_rate hook needs to be added into clk_smd_rpm_branch_ops. Shawn Guo (3): clk: qcom: smd-rpm: Add .recalc_rate hook for clk_smd_rpm_branch_ops dt-bindings: clk: qcom,rpmcc: Document QCM2290 compatible clk: qcom: smd-rpm: Add QCM2290 RPM clock support .../devicetree/bindings/clock/qcom,rpmcc.txt | 1 + drivers/clk/qcom/clk-smd-rpm.c | 135 +++++++++++++----- include/dt-bindings/clock/qcom,rpmcc.h | 6 + include/linux/soc/qcom/smd-rpm.h | 2 + 4 files changed, 111 insertions(+), 33 deletions(-)