From patchwork Wed Jan 31 07:07:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 19709 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1716826dyb; Tue, 30 Jan 2024 23:08:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVAR83fx9LbBl0Os4FOocGEOBNgMIpBJh5SNXQW6de3uxChWEEkbV1CPtSlPnK6AXkAOa8 X-Received: by 2002:a17:903:2302:b0:1d7:8543:3c43 with SMTP id d2-20020a170903230200b001d785433c43mr997119plh.42.1706684892664; Tue, 30 Jan 2024 23:08:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706684892; cv=pass; d=google.com; s=arc-20160816; b=DAqdABphQEJDI43MacfApBUyXJuofiL5VKmGqHouRJe0j9WEtTe614das8tQKZbLHR XwdTe3vQe8aWGu5PrmQ3YdYiVp20nriTl3bgrSVCUAzsDEH192aY4mGjha9G5S9kn6ZG b6rDxL0Dg7xdMGiERIqiYaJBZPMyzaFLHFf7Fv7L2TkRGN7s/zTDJON4MzpXwJPkhiez RXGOVY8/4erDj6eFKvGzfe+zPJObq6vmdf5vFhawgEwti11WS8IJGOQFIUTLXcX+I8JR oYVHvFYcy72lp45XHIgdYAD+YqDfIrC2XqsHuYf7HZB598uT8s+30Sdv1iSXq0p90cAP 8Yug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=dOSkO6Y4FYd8fxupP96Kte1aY7D/V2g1zrYc1jxvyPQ=; fh=TGtE8YwdJPq54Cdq4Db8GOmudyT4QCHWShJkd91QntE=; b=S9GfET45IHbLCvkCy/VxJaAShbk508pCUqdtfznIopyWr5Lypp061yPFPxVgyerapP l5eEJwAGe3h0zU6exF60L6pSrW8iN5OWNhGELbzYSkoowud1lDJKG+EsNC1CIhpx7XOB f0fvDm5C72Kh/NKNAcByn2vU7CPK/QXjHb71zPuJ9STSA8fq6TPnax946P1A3eZnpEJM A4DRGALlDoS9eU1svoe8Ir6VUWhsDesZuF2t+5Cgjf43FBZyLgF3OxmR2+pHFDXASFqf SRI+URZdADfNnUdBJ9/CJbMFlL6lHiTtw1JE9DSDKq6zL87wFC+mBpp/JPX4PxicQ2E0 HUFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aR8uiQIa; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-45855-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45855-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCUgQNhnOrXdGZnTWnlHVZ5LzoDhBCnwx/RjWMc0aQL3YF9+WiTU9lWG4Fx3JXa1BU0qzHBx3FtyV01rJ/kHA+dKfi1/2w== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t6-20020a170902e84600b001d91b6110c4si1902409plg.487.2024.01.30.23.08.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 23:08:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45855-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aR8uiQIa; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-45855-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45855-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 8A341B239BC for ; Wed, 31 Jan 2024 07:08:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8B434E1D6; Wed, 31 Jan 2024 07:07:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="aR8uiQIa" Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF4003E46D for ; Wed, 31 Jan 2024 07:07:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706684873; cv=none; b=o3eTUR2PiBY6kF3mVmnBccGou8tbgH/Y05/D8RFAmumZ36weNMqKQWmTN0j4XsnMQnLFGJukLXLLDf8WiV8d1evnAm3o71JEBV+ni4GezdhXr2k4bUDSb77sq2B5/kXYDsOLrb6/m/6kh4S0HPI31Q9NufnDmLGuaHUHzzYgo7s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706684873; c=relaxed/simple; bh=8oILixSlZ5urTs1vGCrQlsyLD+Svdi6zXRxdXJ11eVo=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=EecfQXFvKI8bitD3eC2iXmy4AtW4TJqRUKXxc3uxADsNpyA/6disTVIPgKNXwkfUlXwAAzXwOqV2wzWceihE9qF1J+faK/1qJgI8h4krzuA7t5pn7nhpra+tO6HuvJ96B6ihUsVfs2FDoaLnvH9mU/eueCsujv9flr2OnGfBW+0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=aR8uiQIa; arc=none smtp.client-ip=209.85.215.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-5d835c7956bso2814876a12.2 for ; Tue, 30 Jan 2024 23:07:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706684870; x=1707289670; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=dOSkO6Y4FYd8fxupP96Kte1aY7D/V2g1zrYc1jxvyPQ=; b=aR8uiQIanIUMGZJPN5Sv1LcknTsmogTFKFsBH0RxXhFlPMLfMEu2PTuKwuc66hAAdd y0WFp+kwoZkRTzZrEBN5u4tLNugTB3lxDxM93SsqGahJ/NjYJgh64z3ULGCPRbrus8LD zONGvlwTM4O7jcltoiZ7mg0gw9XG/7VrAk4fgShW3b2zv2tqo/qaTkrc5kNh+RjivHin dX2Y27qzDnOjo+GZ3jhYsaJxkV2TzIzzaQBy0LYGPmulSjrgZbwsTmFKzBCzEdlhZZrK frdNu/gxKS65ra3QN42XUk+b1rQaPIzdMti0QJW8GVtVxLz7vgdv1Atu1byYN7hlIYgl yIZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706684870; x=1707289670; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dOSkO6Y4FYd8fxupP96Kte1aY7D/V2g1zrYc1jxvyPQ=; b=Vw1HvIqkLcFU2Lal/X5tCgwYNZ9LPUevjXI8oTLigYsnOKXXpEd+nfi5Ha1Je0Q/HI /iBCqyNejODoB2JaSchPK4ySlNlhRGlDmDHZqE0teSr5KFBB5ulj6LwqCOt6cirVn5RQ 1HRvWimYq6aHjNNVs+dOqo5753+oO2fRcBQVZyfNtWdOazdArsmTLJgsEJiTSEV1ifC0 TjqNOkZxGhP7dvVqhBKAbP2xRZglbeOZ5FSyvzJH1SrW9zvmHjs4hXdmWakiviJVl6lQ MdDoWCsH1i2/lung1tY8neUcmpG7NE071ltn+Fr5exLW6Q4/r0GPdGPyNvTsBP2lXKRG R8sw== X-Gm-Message-State: AOJu0YxaChnBVwCxv5the6KakQ0J4zgppsqe0zea6jGlBwUVDg0M1PAV EANMsuAFse9Oo21dIUYkHmwRWTsLWqhaU6l0cGJo6btv9arRlV6iHsrPBx/NUw== X-Received: by 2002:a05:6a20:9e91:b0:19c:a7c0:acd8 with SMTP id mq17-20020a056a209e9100b0019ca7c0acd8mr719947pzb.0.1706684870039; Tue, 30 Jan 2024 23:07:50 -0800 (PST) Received: from [127.0.1.1] ([103.28.246.26]) by smtp.gmail.com with ESMTPSA id lp17-20020a056a003d5100b006ddd182bf1csm9087956pfb.46.2024.01.30.23.07.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 23:07:49 -0800 (PST) From: Manivannan Sadhasivam Subject: [PATCH v3 00/17] Fix Qcom UFS PHY clocks Date: Wed, 31 Jan 2024 12:37:23 +0530 Message-Id: <20240131-ufs-phy-clock-v3-0-58a49d2f4605@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAKvxuWUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyjHUUlJIzE vPSU3UzU4B8JSMDIxMDQ2ND3dK0Yt2CjErd5Jz85Gxdc0tjyyRLI1OLJONkJaCegqLUtMwKsHn RsbW1AADUe1pfAAAA To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, quic_cang@quicinc.com, Manivannan Sadhasivam , Conor Dooley , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=3384; i=manivannan.sadhasivam@linaro.org; h=from:subject:message-id; bh=8oILixSlZ5urTs1vGCrQlsyLD+Svdi6zXRxdXJ11eVo=; b=owEBbQGS/pANAwAKAVWfEeb+kc71AcsmYgBlufG2op3Brs8QxQHR4Lma+anPdMoGprBMDMvoU 04otxHtgv+JATMEAAEKAB0WIQRnpUMqgUjL2KRYJ5dVnxHm/pHO9QUCZbnxtgAKCRBVnxHm/pHO 9WobB/9NZYXT3tglVcat/alW1W2NsBvVeeQMIiTQSkS56WqIl4UHrc0WDixCWSWuq90DVYkkzQj DQR93pb3ofsHf4bPUZZv5CGNDYGZCKpMh/5OM+tGYjOElbgJKujYEIJjw50vJRw+7ZDXPKEV4be sFNBIU2jj44uXi7+XSbMAvTUX9Ho3lZ2OT4jV4lQMe0cHuUiZbidlw/QOQdhHrtO9tCuZtUlCov ZrxHspD4SpPtxp9deLDoG0fBe/cl8tIAIu2EYe0rxn6Mkg4HrbpK/dFVIHH3SB8XnuOGqrZuAyg MjZsL5Jw2TXxRS+wnDHx6CxtVTT7I95xGozCN6KUdmV+7jlP X-Developer-Key: i=manivannan.sadhasivam@linaro.org; a=openpgp; fpr=C668AEC3C3188E4C611465E7488550E901166008 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789588817596692573 X-GMAIL-MSGID: 1789588817596692573 Hi, This series fixes the clocks supplied to QMP PHY IPs in the Qcom SoCs. All of the Qcom SoCs except MSM8996 require 3 clocks for QMP UFS: * ref - 19.2MHz reference clock from RPM/RPMh * ref_aux - Auxiliary reference clock from GCC * qref - QREF clock from GCC or TCSR (TCSR since SM8550) MSM8996 only requires 'ref' and 'qref' clocks. Hence, this series fixes the binding, DT and GCC driver to reflect the actual clock topology. Note that the clock topology is not based on any downstream dts sources (even they are not accurate). But rather based on information from Qcom internal documentation and brain dump from Can Guo. Testing ======= Tested on Qualcomm RB5 development board based on SM8250 SoC. I don't expect this series to break other SoCs too. - Mani Changes in v3: * Added a patch for SM8650 * Collected review tags * Rebased on top of next/20231123 Changes in v2: * Reworded the commit message of patch 1 to justify ABI breakage * Collected review tags Signed-off-by: Manivannan Sadhasivam --- Manivannan Sadhasivam (17): dt-bindings: phy: qmp-ufs: Fix PHY clocks phy: qcom-qmp-ufs: Switch to devm_clk_bulk_get_all() API dt-bindings: clock: qcom: Add missing UFS QREF clocks clk: qcom: gcc-sc8180x: Add missing UFS QREF clocks arm64: dts: qcom: msm8996: Fix UFS PHY clocks arm64: dts: qcom: msm8998: Fix UFS PHY clocks arm64: dts: qcom: sdm845: Fix UFS PHY clocks arm64: dts: qcom: sm6115: Fix UFS PHY clocks arm64: dts: qcom: sm6125: Fix UFS PHY clocks arm64: dts: qcom: sm6350: Fix UFS PHY clocks arm64: dts: qcom: sm8150: Fix UFS PHY clocks arm64: dts: qcom: sm8250: Fix UFS PHY clocks arm64: dts: qcom: sc8180x: Fix UFS PHY clocks arm64: dts: qcom: sc8280xp: Fix UFS PHY clocks arm64: dts: qcom: sm8350: Fix UFS PHY clocks arm64: dts: qcom: sm8550: Fix UFS PHY clocks arm64: dts: qcom: sm8650: Fix UFS PHY clocks .../bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml | 48 ++++++++--------- arch/arm64/boot/dts/qcom/msm8996.dtsi | 4 +- arch/arm64/boot/dts/qcom/msm8998.dtsi | 12 ++--- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 6 ++- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 18 ++++--- arch/arm64/boot/dts/qcom/sdm845.dtsi | 8 +-- arch/arm64/boot/dts/qcom/sm6115.dtsi | 8 ++- arch/arm64/boot/dts/qcom/sm6125.dtsi | 8 +-- arch/arm64/boot/dts/qcom/sm6350.dtsi | 8 +-- arch/arm64/boot/dts/qcom/sm8150.dtsi | 8 +-- arch/arm64/boot/dts/qcom/sm8250.dtsi | 8 +-- arch/arm64/boot/dts/qcom/sm8350.dtsi | 8 +-- arch/arm64/boot/dts/qcom/sm8550.dtsi | 9 ++-- arch/arm64/boot/dts/qcom/sm8650.dtsi | 8 +-- drivers/clk/qcom/gcc-sc8180x.c | 28 ++++++++++ drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 63 +++------------------- include/dt-bindings/clock/qcom,gcc-sc8180x.h | 2 + 17 files changed, 129 insertions(+), 125 deletions(-) --- base-commit: 06f658aadff0e483ee4f807b0b46c9e5cba62bfa change-id: 20240131-ufs-phy-clock-7939b9258b3c Best regards,