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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 307CAC54EAA for ; Thu, 26 Jan 2023 23:03:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233230AbjAZXD3 (ORCPT ); Thu, 26 Jan 2023 18:03:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231480AbjAZXD2 (ORCPT ); Thu, 26 Jan 2023 18:03:28 -0500 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1C724DE03 for ; Thu, 26 Jan 2023 15:03:26 -0800 (PST) Received: by mail-io1-xd2d.google.com with SMTP id y69so1200057iof.3 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=EJ3HJfKLsZ8gYU8BeaTA7LKhq9fLWyUjRsI0+/EKl7jh2/IT8f90pO3X0xNDjOtNNF a25PugbK113D1zuKVMflWYQHHOt22Hjj0U1yQvDawDOA44+pR3Wmw5tBOx21xU6M0jaz j+0OWXuQWZqqdufQn3yGx9wYhUEjQm3k3ZpVuQKERngdkpRRDn9ooJ+viRu9jm8cStnP CvKDd7Jmzxs4A24VTUY7f1ZhhigpsFZkc/iKkpeCJweMk6IgRxwYV+CaBpFtKVCM91M6 QNVdTlXLaZtau9d+7/1QOmgUMlXGaZdPWZVmkyVQtDcV0v8nSPqgT79yD6DUYny2aYjf jj4Q== X-Gm-Message-State: AFqh2kqdG0gEuz1ztBPN3n84Ii4AvdfVFK8+9MYc8gdQR3Ts4mjjFYOP SIQRNeQz79MAgd02wMLfAhwiBg== 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-clk@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