From patchwork Mon Sep 27 21:58:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marijn Suijten X-Patchwork-Id: 12520853 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 D8A39C4332F for ; Mon, 27 Sep 2021 21:58:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BE372611C0 for ; Mon, 27 Sep 2021 21:58:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237528AbhI0WAM (ORCPT ); Mon, 27 Sep 2021 18:00:12 -0400 Received: from relay01.th.seeweb.it ([5.144.164.162]:46475 "EHLO relay01.th.seeweb.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237537AbhI0WAL (ORCPT ); Mon, 27 Sep 2021 18:00:11 -0400 Received: from Marijn-Arch-PC.localdomain (94-209-165-62.cable.dynamic.v4.ziggo.nl [94.209.165.62]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 285CF1F88D; Mon, 27 Sep 2021 23:58:30 +0200 (CEST) From: Marijn Suijten To: phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Pavel Dubrova , Marijn Suijten , Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Taniya Das , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/2] Global Clock Controller driver for MSM8976/56 Date: Mon, 27 Sep 2021 23:58:26 +0200 Message-Id: <20210927215828.52357-1-marijn.suijten@somainline.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This is the Global Clock Controller (GCC) driver for MSM8956, MSM8976 and APQ variants and it has been tested on two Sony phones featuring the Qualcomm MSM8956 SoC. In addition to GCC this driver is also responsible for providing MDSS and GFX3D clocks which reside in the same register space. SoMainline is dedicated to getting their long-awaited msm8976 support, including the Xperia X, X Compact and if feasible also the Xperia Touch projector (APQ8056) slowly but steadily upstreamed. Changes since v3: - Set the enable_mask of gcc_apss_ahb_clk and gcc_apss_axi_clk to BIT 14 and 13 respectively instead of overlapping gcc_crypto_ahb_clk's BIT 0. Changes since v2: - Rebased on v5.14; - Various minor cleanups (lowercase hex, const where appropriate, removal of unused enum constants); - Fixed XOR confusion in probe; - All remnants of global clock name dependencies are removed, all inter-driver dependencies must be fully specified in DT; - Added proper dt-bindings yaml validation, listing the required clocks; - Moved dt-bindings header to the dt-bindings patch. Changes since v1: - Rebased onto linux-next 20191015 - Fixed platform driver name (qcom,gcc-8976 => gcc-msm8976) - Splitted changes to dt-bindings to a separate commit AngeloGioacchino Del Regno (1): clk: qcom: Add MSM8976/56 Global Clock Controller (GCC) driver Marijn Suijten (1): dt-bindings: clk: qcom: Document MSM8976 Global Clock Controller .../bindings/clock/qcom,gcc-msm8976.yaml | 90 + drivers/clk/qcom/Kconfig | 8 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/gcc-msm8976.c | 4154 +++++++++++++++++ include/dt-bindings/clock/qcom,gcc-msm8976.h | 240 + 5 files changed, 4493 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,gcc-msm8976.yaml create mode 100644 drivers/clk/qcom/gcc-msm8976.c create mode 100644 include/dt-bindings/clock/qcom,gcc-msm8976.h --- 2.33.0