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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC1C8C61DA7 for ; Thu, 26 Jan 2023 23:03:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233257AbjAZXDa (ORCPT ); Thu, 26 Jan 2023 18:03:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233206AbjAZXD2 (ORCPT ); Thu, 26 Jan 2023 18:03:28 -0500 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5C374ED07 for ; Thu, 26 Jan 2023 15:03:26 -0800 (PST) Received: by mail-io1-xd35.google.com with SMTP id j1so1197023iob.6 for ; Thu, 26 Jan 2023 15:03:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=lDvjx1OAw6eQs2/sFgtQAyk0Q6Guc7Gzx5Io8f3s9oI=; b=lHx/lO9HI6ftgZ/rw+Z06Dt3hSVRG+R/CtayYvvCendTbJHv2BcjDkc2efh4WYv4T8 ak5rcMF7F+iP90vUOc/umofoyKiErte6ngVbTSc8VmAXdbDlGwu5Lb4ataRpU8IkLcRn eRSeICbV3V+o1EStDHRUvc6JjUVG0zU6326FOTcjaDG0oXBaIFcU32RjiNUcgQfi7bfD x+FYNG5IdBr39hGAXKqogObuhvrPrCoLfTjJPRbqJuEkbdPuskY0hw5EkGu/N6/1mLXJ KbJhIzr6jNC5mr2iK4g8b8VX1dU5sRCmiVr+fRAV++Lvzy89QnWxbP/GQ2y5WGMllSf7 4I3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lDvjx1OAw6eQs2/sFgtQAyk0Q6Guc7Gzx5Io8f3s9oI=; b=Wg0LXsh2Zkh5P+Id/LngmH4uY59ggWrR8F54lslStAbzTuBdnW9mqwdf2Tv54dMzjA ga0wT+R1in1/jGMEUyFnoR2SR/PT99dg+nqzNCt6bh3GyyraXv6wUhA7q7n09R8UZl1P IBHX9HmCgro7uQS+B0PiYQPwz82R23svC9HdJeCn6WrPvtp44l5DVKo90p6gwFa/YLy8 67I0NqSiBBYComxfH6de56Xpd81vftR0D+fPSpKUmUGpcZMO21S97broPhP7wV9wpm6s 9ZzAWB1mD1AtvbqmuWBIXjuxZ3zRRte9QBI2XY6GKec8FLrIC/TZGNbZI/Pbq9XNAkph SuwQ== X-Gm-Message-State: AFqh2kq9vrlm171R7Rfm4Km9JIWvDUmmqCJVgm1OrJhEhRmgQdTm/fbo HjyHj1dvECY12EMk+vjkASlbfQ== X-Google-Smtp-Source: AMrXdXvzqmdWnM7zCcU7G7xkVdOfFqlEHNh6UDZ5VeNfnQFBuIboNwXtKkVcvGdKTwuYmS3pvlRXEg== X-Received: by 2002:a05:6602:1253:b0:6e3:19f:b3c3 with SMTP id o19-20020a056602125300b006e3019fb3c3mr27906330iou.0.1674774206203; Thu, 26 Jan 2023 15:03:26 -0800 (PST) Received: from eriador.lumag.spb.ru ([194.204.33.9]) by smtp.gmail.com with ESMTPSA id l4-20020a6bd104000000b006f8b7d869a0sm670924iob.1.2023.01.26.15.03.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 15:03:25 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das , Jassi Brar Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 0/7] clk: qcom: msm8996: add APCS clock driver Date: Fri, 27 Jan 2023 01:03:12 +0200 Message-Id: <20230126230319.3977109-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The sys_apcs_aux clock can be used by CPU and CBF clock drivers to drive those clocks from GPLL0 while doing initial setup. Add simple driver to setup and export this clock. Changes since v4: - Expand comments in the apcs-msm8996 driver describing the delay and the reason for setting up the sys_apcs_aux clock as a fixed rate rather than a fixed factor clock. Changes since v3: - Split the patch 3/6 into two: first one moves existing strings, second one adds new compatible strings to the conditionals. Changes since v2: - Added the conditional clause to schema forbidding usage of clocks and clock-names on platforms which do not pass additional clocks to the APCS device node (Krzysztof) - Added SDX55 compat string - Moved MSM8976 compat to the list of platforms using syscon. Changes since v1: - Removed the clk.h header inclusion (Stephen) - Changed the module license from GPL v2 to bare GPL. Dmitry Baryshkov (7): dt-bindings: mailbox: qcom: add SDX55 compatible dt-bindings: mailbox: qcom: enable syscon compatible for msm8976 dt-bindings: mailbox: qcom: correct the list of platforms using clocks dt-bindings: mailbox: qcom: add missing platforms to conditional clauses dt-bindings: mailbox: qcom: add #clock-cells to msm8996 example mailbox: qcom-apcs-ipc: enable APCS clock device for MSM8996 clk: qcom: add the driver for the MSM8996 APCS clocks .../mailbox/qcom,apcs-kpss-global.yaml | 37 ++++++-- drivers/clk/qcom/Makefile | 2 +- drivers/clk/qcom/apcs-msm8996.c | 88 +++++++++++++++++++ drivers/mailbox/qcom-apcs-ipc-mailbox.c | 2 +- 4 files changed, 118 insertions(+), 11 deletions(-) create mode 100644 drivers/clk/qcom/apcs-msm8996.c -- 2.39.0