Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp781884lqt; Tue, 19 Mar 2024 03:53:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZdfYfpeS72yltNMs8VSQ4ICRhJ7Zl0pcWUd8FtY4HmADG9fyGG7FLjQb+WsRCmTPo668MSextYKREhe/tNk2riUVsLLUuA9zwmKQ1mQ== X-Google-Smtp-Source: AGHT+IHw2dh5ZQdDLrMX2bf6DSlKPimTURebasaPVhU2n8hLVV0DWaNtDBTb1WM3NIwMNY7yU+wh X-Received: by 2002:a17:90a:72cf:b0:29b:277d:2585 with SMTP id l15-20020a17090a72cf00b0029b277d2585mr10266924pjk.20.1710845582202; Tue, 19 Mar 2024 03:53:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710845582; cv=pass; d=google.com; s=arc-20160816; b=ESWRjHfCo2HKGODsU4YGqSGizqwWpZunHYM7sTManlzRc6kArWBoiULscm3IexB3DD VjxTR9pmTnE2tMXJKbGCm+wnEnCptovNd78ZqILCPUw56aoVohOiEGbBqwZpKkqD/cTK TvW0cRK1dEyFdoIiqNFqI0nRKFf0MyRDzhdZgiQ/c4i4TuxQu3bZBy8pCD1sLNq6Ps6u kCBHSkmVMG/XSI3tsc/lTaWMUsFvogMPQyQmMr5IrRzylTjR18QeGs+o0LcgT+RSpBhv gaeSbHbES5fxdMhShMtDW65DkPwa0kK8/nF/XebIQE1koYIK75HRqKKuM9vjRg40tCHi Lj4w== 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=642Lccs0wQRja43ANYD30tSnrLqpIkdAJmJ0WSY6RU8=; fh=NQBfdm2BwCt/fswjXb/CKHZTTBpOFPFn7aC5mEnKuXs=; b=lxGJSmIHrIahU13FJqhI6cYTaFWekT8sUspJ4+vtiz6bUSq0gcpfHyhKnmv90w2ApG rW7UzYPsq9ml9nthGjAtJUTdzjUJlht3oHm2uxftrA1H31Q6LKoWHpeZd/fkrdAxzs/r VocYzY/db/RLd6zOhe6vKLfs7+vFm0RjtJ1U7wkYRTap6pSKo+x96YWUVzVv1gdLHhJM Udxi8UXfInD/YLzVFUc3VT2FUnQ4800/ugwfLLFWevn2JsXLj2Cp8ubZRfiFaN3I9cKi 483zxUJRcLGepFU88ED4S99G7Z4u+tr+ICFyiMJMLMO5YK7YI4m0wlSsKubdgE2w/+1+ 8zDw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fFTduLpS; 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-107404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107404-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k69-20020a633d48000000b005e49edcec34si10053648pga.623.2024.03.19.03.53.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 03:53:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fFTduLpS; 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-107404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107404-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 34F46285524 for ; Tue, 19 Mar 2024 10:45:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F0D57EF0F; Tue, 19 Mar 2024 10:44:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="fFTduLpS" Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 4500056444 for ; Tue, 19 Mar 2024 10:44:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710845085; cv=none; b=alMr+xai6/n8vJGIXsOayIdQvEX5XxAVUapltvRu6af6e6Jg+98YlqdDKGdJwdrFyMSDGACxXdErUWWUUQLj275eBWuSAlQF+vxxw+cuzcvSYEV+lra4zZhZ15pQKVnuSo1lN9KL7dQR6X5nLJXvQk8wlleV7Uo/+3houGdmaao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710845085; c=relaxed/simple; bh=a/bwYUWIjwUmxTcm9I0DfFrljEfMli7VVrDpFj8e/Ug=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=VNyoGSkphtvNb7E3kfl0u//HDvzlZGSjotRRQxK/v+DheIPgMznJouBG7l945pO2kkLKRYF1mXP3fgMDZMPoxsHkWrKQozP22e8sEYq/j2B9rT8ypbLWhlhecyFDjY8K7De7NrLtKh6sZ46LaIXWVk0/i2lzjiohQxmbs/qMPHI= 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=fFTduLpS; arc=none smtp.client-ip=209.85.221.53 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-wr1-f53.google.com with SMTP id ffacd0b85a97d-33ec7e1d542so2934732f8f.1 for ; Tue, 19 Mar 2024 03:44:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710845080; x=1711449880; 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=642Lccs0wQRja43ANYD30tSnrLqpIkdAJmJ0WSY6RU8=; b=fFTduLpSYmP1lsD+mDYLqw3q4Tusf3WvFG2Hw1scYQ2x7hLHqgVRckHLaeI6m7WnWX EVyo+a/UCSlJHtPyfuVJ41+R3SL9GzRFYwFVYYdUXOsqxDv9ZfkVFFuggt91XuJrrhdt G7CUYufMyhmRzR5rqxdwvELnQKExl9JRw/rnxIeWKHFUgChPRVGe1C0TXOY6n3hRu3zq N3RjNn0SFVgqisWnnm6kYu4wlISOX7KjbuPRmBFN44b/8zqnwBh9fjihkaIg9PGu7Ivp Zo6cjyScrXLRAtDBBo1J3Ah4OopNbFORJSE3PWoGzVLheE9akJMfzom3U9594YLigI9Q 4EbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710845080; x=1711449880; 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=642Lccs0wQRja43ANYD30tSnrLqpIkdAJmJ0WSY6RU8=; b=DhuYa6t+qB0RvdK03cs4MGMXWdcXUlp+HybYDFNdsFftRJLiEV+IiFnw4OlCJ9B547 V+Moiroznh/3apihLUxVsGEmopxWMyIG1jPbskXPqpiISz9KcsfQIJPVwsT8Y0Egm6iR q4B5kjtgJ+rV9rvuxGqithPBt+YE4iREFp8oWRI9R/j4CBNbT4bWZkRVzsrJvSAqdmym G7UbkJQ3Gvfj1W9tCq5NreuUfl2uc/GkjCw0C9tCN95Zz7Qi3EIiTDQgSNDVBCYjR42Q ZsddlqBbp8TuqnpVH352HPgjdAh3mJiLH7CKtrESfE3EFAUvpLb6tLxV03r2wGKuw32p 8+IA== X-Forwarded-Encrypted: i=1; AJvYcCUn5vsu63MqNrYMlY1SdgaTK7/NJ/jNQa2pD+aPF2k74XqR90Ceqcnp+j+2iMyySfTDRyyDxWtAs0C/V9PGFRXHqwAb4CQUq3ZZBQeJ X-Gm-Message-State: AOJu0Yx2FPIG62v/xQ+lxrCHKWmZnJtuTjp2WBxgC4+CWAC2J+v7apuE 4XE8b6fYtG9eiiShM/LCuEkT2cSFXTPMB+sZCY6BhE4VxldPhd/ERjYERbx9ekA= X-Received: by 2002:adf:e68e:0:b0:341:8d8f:75c0 with SMTP id r14-20020adfe68e000000b003418d8f75c0mr677365wrm.49.1710845080477; Tue, 19 Mar 2024 03:44:40 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id a5-20020a5d4d45000000b0033e03a6b1ecsm12029459wru.18.2024.03.19.03.44.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 03:44:40 -0700 (PDT) From: Neil Armstrong Subject: [PATCH 0/7] arm64: qcom-sm8[456]50: properly describe the PCIe Gen4x2 PHY AUX clock Date: Tue, 19 Mar 2024 11:44:26 +0100 Message-Id: <20240319-topic-sm8x50-upstream-pcie-1-phy-aux-clk-v1-0-926d7a4ccd80@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAIps+WUC/x3NTQ6CMBBA4auQWTtJy694FeKitoNMFJh0wNQQ7 m7j8tu8d4BSZFK4FQdE+rDyumTYSwF+csuTkEM2lKasTWV73FZhjzpfU2NwF90iuRnFM6FFmb7 o9oT+/cL6UTW27TvThQA5J5FGTv/VcD/PH5284G16AAAA To: Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2238; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=a/bwYUWIjwUmxTcm9I0DfFrljEfMli7VVrDpFj8e/Ug=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBl+WyU+sT/DvItGJ+V7IXg4GhyLVyW35+3Ua+0z8XQ LBk3mXuJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZflslAAKCRB33NvayMhJ0VGQD/ wLV5QxEEuIyNN/JuyNE6NPWj9u9NEDef0G9Sjun98THGwaEHf5bm9VzYKTdo1Yz7+7ubyZq1xEtSXG bkY942FH2PYJQxRq7wQXPGrVwDcHdPr8cou3gR4/kW4Sqo8lmyTiteK0YctBkEwqmncBtC2vEuLun+ mdItkdNWbdqM+QGpVpfTvD5/SlMBgRjEGH6uSTGaxiU5liulUwyW9cRgemJJggypmIsgd0g21v/wQs w0lsnxVKN6CV65fTuPY/h218xN034t4PKBr3JqS2kSIrVJxkaZN9tRMvsyvUyzvJrAyRpjPtItZSTr NMQCEpAxmtIsi40q7a72QS5faJ1KVfX80dYHcI5pemarB6YL3ZFUv+TfChUWSpHEJFFCB/1pZNZ7O9 kyhTxAE8fDTfYoweTUXm+1q6e9UYMcaHbT2WoggVM80DQpFhSQ99l2xxTm5HQWiKLQccbNkMZUfvn5 3TKMzQt4WQVezdWifyG1ydUphu7M7zb55bUpxnflJ+fL9x63Mpc4lFuNJuzkl/5kmAbP0XjBsrA0P4 DyfQtGlAZccDUDWqGvVXM43l0yyuRBHlrBfVjMuhS9Vh5MgT6EDlIati2deDERlaExCq9SUO52OYrw iPdD+3uL+aTpZ9X7E9MzkpLnz2zijfZNjbJ9zIx0D1UQju00Qq71gN3WaDvg== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE The PCIe Gen4x2 PHY found in the SM8[456]50 SoCs have a second clock named "PHY_AUX_CLK" which is an input of the Global Clock Controller (GCC) which is muxed & gated then returned to the PHY as an input. Document the clock IDs to select the PIPE clock or the AUX clock, also enforce a second clock-output-names and a #clock-cells value of 1 for the PCIe Gen4x2 PHY found in the SM8[456]50 SoCs. The PHY driver needs a light refactoring to support a second clock, and finally the DT is changed to connect the PHY second clock to the corresponding GCC input then drop the dummy fixed rate clock. Signed-off-by: Neil Armstrong --- Neil Armstrong (7): dt-bindings: phy: qcom,sc8280xp-qmp-pcie-phy: document PHY AUX clock on SM8[456]50 SoCs phy: qcom: qmp-pcie: refactor clock register code phy: qcom: qmp-pcie: register second optional PHY AUX clock phy: qcom: qmp-pcie: register PHY AUX clock for SM8[456]50 4x2 PCIe PHY arm64: dts: qcom: sm8450: remove pcie-1-phy-aux-clk and add pcie1_phy pcie1_phy_aux_clk arm64: dts: qcom: sm8550: remove pcie-1-phy-aux-clk and add pcie1_phy pcie1_phy_aux_clk arm64: dts: qcom: sm8650: remove pcie-1-phy-aux-clk and add pcie1_phy pcie1_phy_aux_clk .../bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml | 27 +++++- arch/arm64/boot/dts/qcom/sm8450.dtsi | 8 +- arch/arm64/boot/dts/qcom/sm8550-hdk.dts | 4 - arch/arm64/boot/dts/qcom/sm8550-mtp.dts | 4 - arch/arm64/boot/dts/qcom/sm8550-qrd.dts | 8 -- arch/arm64/boot/dts/qcom/sm8550.dtsi | 13 +-- arch/arm64/boot/dts/qcom/sm8650-mtp.dts | 4 - arch/arm64/boot/dts/qcom/sm8650-qrd.dts | 4 - arch/arm64/boot/dts/qcom/sm8650.dtsi | 13 +-- drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 104 ++++++++++++++++++--- include/dt-bindings/phy/phy-qcom-qmp.h | 4 + 11 files changed, 129 insertions(+), 64 deletions(-) --- base-commit: 2e93f143ca010a5013528e1cfdc895f024fe8c21 change-id: 20240319-topic-sm8x50-upstream-pcie-1-phy-aux-clk-4b35169707dd Best regards, -- Neil Armstrong