From patchwork Wed Nov 23 14:20:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 2118 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b599:b0:88:f841:fdc9 with SMTP id df25csp2166889dyb; Wed, 23 Nov 2022 06:23:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf5WwkCkKfkC7tPYPh3RLSmcfZjHnZBBXQCFgG5FPpYgq3/BacXDvOWoV+80u+HwosTVJ138 X-Received: by 2002:a17:903:204b:b0:180:a0e6:f81b with SMTP id q11-20020a170903204b00b00180a0e6f81bmr9348362pla.78.1669213418502; Wed, 23 Nov 2022 06:23:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669213418; cv=none; d=google.com; s=arc-20160816; b=nmo+pZfO19zrS9yWWM3Z9TEk5VD43YGsaF+fxt2OxiS96lEoGT3zOFiz37tNtg/s6P gWymv2iZJsHjfCM2p4n+B4D1UZulD++W+MTTeFkHRqEwHZcpfr7zDYmDpLjHbHDX/54t Lct03rP+VsAq9BVDevcosHg88GgQjgWI5X0VigawvX9QSgUrIQ0FIcSpBb9FvONZyqev WBi1RE0V6/hK0wx1+AqhGGBk6yeKaJc/0jAe3ydQGWs88FB8kEHvZbwJmhcN53uMg68F Z2HnGgoCGIPxNVtAE+jtnm+0dSDpN7mNhkFR1X7drtWDNf7sTm3rwIMzixbV+h0JXlT7 URYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=EMoXuHIdbhjwJcHJBXXgxho78Ko/2YIp+fuaUAlW2rY=; b=y8of3qdJOkPMxgchl22fEBrW14r/pN5RMtXd+rpEN2jwRyF7wYr8SLb3eZ/ksjira7 CXR6aIvTAMUc9VbW6YTh22hRSE4S46feJVNyRbAHMDEL24hf4YN/ePggFlQ2nNanoAw+ Igq/tMc4kKa15kYP/DNOiJ6S5+E0OIJA6JSdVtlzEkrb+woDyrhiclq5H5t72dC3FETt +yhZow6ZvivgTRgRSxBXStRjy7f/JfDLO1/yqiBEwp8w49oYzhOENeCCWRfmF8Wl6iat mzqMOJCBu2eg65t5nx+LJbdCHcmRrcuU/Jo35d6c3i4gD65I/LPeUew/azTnX4V9FpjN y1IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UqeKHDjX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n30-20020a635c5e000000b0043c8ce98a7bsi16376715pgm.802.2022.11.23.06.23.22; Wed, 23 Nov 2022 06:23:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UqeKHDjX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237573AbiKWOUc (ORCPT + 99 others); Wed, 23 Nov 2022 09:20:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236579AbiKWOUa (ORCPT ); Wed, 23 Nov 2022 09:20:30 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19687654FB for ; Wed, 23 Nov 2022 06:20:22 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id n7so1994388wrr.13 for ; Wed, 23 Nov 2022 06:20:22 -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=EMoXuHIdbhjwJcHJBXXgxho78Ko/2YIp+fuaUAlW2rY=; b=UqeKHDjXeHPPYMhTlC9FYSoN/VLX8nN9SzpWL2c8bInJb/BM+st7kwbQPLjYgqeMf2 Ta/IK17zgDEC303ru/IWF1DrALGhUdKXwcbPk6/0PPkIrzcko7JH6vChe2yLwSh6Y9hV HfMq9k2Cv0GB5WzTD3+rBAxpLCfPfuUNOV6U0uDcEWWBmLe9/hP5TV7+jACNBVTRSk/A pWww9GWjGlwjVYS4VHueBqyjcNoYCwK0d4RUCD4kVvhh3X1gJ7Rm3vSxyItOQUcBaFO1 8leiLlGOXxQxOe+u548BsE31gKKGi/ZHbZnojcqp6ljxV0G6t2NnT5yYoU5Cti/0KMML xyLw== 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=EMoXuHIdbhjwJcHJBXXgxho78Ko/2YIp+fuaUAlW2rY=; b=FUBxKt/QPjkqwwB933tKxFes1omLvPJZ+1Gwt1V5hmJiVNxSdXU0X51c91UBL1M6Jz SjyeuDf6KOHCs4u+7M8HMoEKkE1xIt6QTrz1EVFasoLlTWyt/enPTePEqtkurQhnE07l Yiv1j+aA0nTWidEBxIdVCS63/64TrhiKZcDwlo0mmmFdP6X2LlfuK3g2mD4Webbvu/j4 iYR50tX1F3gEvRFljCSLl6kudYFTA4ZE6HV/K46MRVMVf2uQBuPJLFM38RXy4ortIdd5 m5yduV9iyuOIe1eFEyOuK+Z2CBhTxiIeywBg8EGf3I/VUwo3HjQaccJnYRqMdzxKb4WW x1kQ== X-Gm-Message-State: ANoB5pkDAUGRVuuaEkFYWSSZ9QbccUW5SrzCdSSLaIJFvGwKMISKE5A7 nRMRZF9XJwIpdGShSK1ADsfncw== X-Received: by 2002:adf:de0a:0:b0:241:cdf6:6a81 with SMTP id b10-20020adfde0a000000b00241cdf66a81mr7110202wrm.243.1669213220617; Wed, 23 Nov 2022 06:20:20 -0800 (PST) Received: from localhost.localdomain ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id g9-20020a05600c4ec900b003cfd58409desm2837438wmq.13.2022.11.23.06.20.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Nov 2022 06:20:20 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mike Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski Cc: Linux Kernel Mailing List , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH v2 0/9] clk: qcom: Add support for SM8550 Date: Wed, 23 Nov 2022 16:20:00 +0200 Message-Id: <20221123142009.594781-1-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750297129343342620?= X-GMAIL-MSGID: =?utf-8?q?1750297129343342620?= This patchset adds clock support for the Qualcomm SM8550 SoC, It adds support for the new type of PLL, the TCSR clock controller driver, support for configurable poll timeout, the RPMh clocks and the bindings. To: Andy Gross To: Bjorn Andersson To: Konrad Dybcio To: Michael Turquette To: Stephen Boyd To: Rob Herring To: Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org Cc: linux-clk@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Abel Vesa (9): dt-bindings: clock: Add SM8550 GCC clocks dt-bindings: clock: Add SM8550 TCSR CC clocks clk: qcom: gdsc: Add configurable poll timeout clk: qcom: Add LUCID_OLE PLL type for SM8550 clk: qcom: Add clock driver for SM8550 dt-bindings: clock: Add RPMHCC for SM8550 dt-bindings: clock: qcom,rpmh: Add CXO PAD clock IDs clk: qcom: rpmh: Add support for SM8550 rpmh clocks clk: qcom: Add TCSR clock driver for SM8550 .../bindings/clock/qcom,rpmhcc.yaml | 1 + .../bindings/clock/qcom,sm8550-gcc.yaml | 56 + .../bindings/clock/qcom,sm8550-tcsrcc.yaml | 39 + drivers/clk/qcom/Kconfig | 15 + drivers/clk/qcom/Makefile | 2 + drivers/clk/qcom/clk-alpha-pll.c | 16 + drivers/clk/qcom/clk-alpha-pll.h | 5 + drivers/clk/qcom/clk-rpmh.c | 110 +- drivers/clk/qcom/gcc-sm8550.c | 3396 +++++++++++++++++ drivers/clk/qcom/gdsc.c | 5 +- drivers/clk/qcom/gdsc.h | 1 + drivers/clk/qcom/tcsrcc-sm8550.c | 193 + include/dt-bindings/clock/qcom,rpmh.h | 2 + include/dt-bindings/clock/qcom,sm8550-gcc.h | 231 ++ .../dt-bindings/clock/qcom,sm8550-tcsrcc.h | 18 + 15 files changed, 4069 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/qcom,sm8550-gcc.yaml create mode 100644 Documentation/devicetree/bindings/clock/qcom,sm8550-tcsrcc.yaml create mode 100644 drivers/clk/qcom/gcc-sm8550.c create mode 100644 drivers/clk/qcom/tcsrcc-sm8550.c create mode 100644 include/dt-bindings/clock/qcom,sm8550-gcc.h create mode 100644 include/dt-bindings/clock/qcom,sm8550-tcsrcc.h