From patchwork Sat Oct 19 15:44:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 837062 Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (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 3D95517E00B for ; Sat, 19 Oct 2024 15:44:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729352700; cv=none; b=Zx+WNFAXS406NURuhW7wIeCsAbUjgYaYUbQpymg+nrIw2o0woYf0tYOFh3t0g98VP5RSSq0lYiPOzDeah9Qzjs8K/6i2Hx5i9nwlVhzBYBm8n8Z/Zaf6Lw9Js01XhOpdn0/XrX2DwK5JtU6GyQygXZUXc0cHqBiRrJ4rjgDkaP4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729352700; c=relaxed/simple; bh=Vwq8dyZKEj2ygSd1yqgy0fl5gmIjHUGwyRng0MKb4hQ=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=RcCmPO2nhcgguAPdNOrpfv1J9q//z9gCqDEju2zs5ooys67+MPUtjzTNX0r4/9/VxVDDIAe3AEMrIFAxyS6MNeQP1rJ6zv/8P7zkLtfAX+KPSaRgj5EM9EAdf4St3W6ybzFrFIWJ0KSXOmn1SAgV8l+FilETz7zuIBHUhVyU+sA= 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=ZbPQ8v+S; arc=none smtp.client-ip=209.85.208.169 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZbPQ8v+S" Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2fabb837ddbso44116051fa.1 for ; Sat, 19 Oct 2024 08:44:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729352696; x=1729957496; 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=2vR7kUbPUlHuQXy/cfDXaepxmyC5kLsf2VWQ+zQ+f7k=; b=ZbPQ8v+S/HctUYzlTO19pakw2Cc5cDZYv6pWd/edbFjV5Mkzw0opHkOKCn9srvfZX2 xpdqBI1MrpsRqZCXeLPesbjwivWM4XIN2ebBDBchf3DLI2Wrl1RbYof5A06+irGQZC6h CPfmReh/g0K6ZBb7GfjPApDpJ1lGQ8dV1eDbqL1xxiOX5Rx3PKrxd7jjKY83K2uRAPvy Fws19c97VUEWWa+PhwxfRWC7jb+V3qCNn4vvmNKy9dgd1OpBNb2PrnKc1s7Ss11z8yJO N8/RSBP6MfdlopFaI0fgFu22JsFXSrywH4glcYnG1rWbROSmmQkrpAWFyIZzcQptPjhv irtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729352696; x=1729957496; 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=2vR7kUbPUlHuQXy/cfDXaepxmyC5kLsf2VWQ+zQ+f7k=; b=JtiOwSQImPh8FfmoYlWnL833Rb9sPveNkKzoorX1eUdQz0IKi40v+BjmDSndq3Bn/H t0L7A/ZnZsM/qpS2LSlDcnRGt+8RHQS6Du9y79H/zfJ7LhHnArBEEPxbA9M9624EyytB gxbKtXpO0GcyyfvSf75oMRKZmPo/aorATRGZqpNM4JkM7Km+DaZ+fk6AgIV7lDjJBmYU Yydzxw0TdgBy8DUs/1v0Xnqt+e1iQM+JevcXLJNl/hbAA51QRzgUdq15PCU24D0Kj89o GCC1JBdP5GFKIUW9LgfzfYJ8HNH+QyJQfonCJzSVTPmIa7erAmokho8No20r8+gXOiDn JRhA== X-Gm-Message-State: AOJu0YykURTO0HF7NzPWVYMRe1nyC1ox8TNHIDPwcBcpUvyzkF2XP+3M s+GWg2ZY7kpbxPSO8yv4sQ5oGAQRL37G5a27lLGBiRPfBIKcTZVE2WLCPZzuaK50i6xzZFeYFQC /Sdo= X-Google-Smtp-Source: AGHT+IH8AFk38xnx11zVMuNDhcJQkJyvHrqNFF1D6rb1QmK8TDJTwNLhG0QSoTp1nPAbDgMMlKMb1A== X-Received: by 2002:a05:6512:3ca8:b0:536:a4f1:d214 with SMTP id 2adb3069b0e04-53a1544519emr4841543e87.19.1729352696015; Sat, 19 Oct 2024 08:44:56 -0700 (PDT) Received: from [127.0.1.1] (2001-14ba-a0c3-3a00-70b-e6fc-b322-6a1b.rev.dnainternet.fi. [2001:14ba:a0c3:3a00:70b:e6fc:b322:6a1b]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53a15211401sm562854e87.249.2024.10.19.08.44.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2024 08:44:54 -0700 (PDT) From: Dmitry Baryshkov Subject: [PATCH 0/6] phy: qualcomm: add support for USB+DP and PCIe PHYs on SAR2130P Date: Sat, 19 Oct 2024 18:44:49 +0300 Message-Id: <20241019-sar2130p-phys-v1-0-bf06fcea2421@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAPHTE2cC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxNDA0Nz3eLEIiNDY4MC3YKMymJdEyMzc2PjJAsDQzNLJaCegqLUtMwKsHn RsbW1AKS8XxlfAAAA X-Change-ID: 20241017-sar2130p-phys-426733b80169 To: 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 X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1542; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=Vwq8dyZKEj2ygSd1yqgy0fl5gmIjHUGwyRng0MKb4hQ=; b=owEBbQKS/ZANAwAKARTbcu2+gGW4AcsmYgBnE9PzYZWOONvC1WZ8PZ1mKMr6Opf7JrXjbI6m2 MuG5OluqPmJAjMEAAEKAB0WIQRdB85SOKWMgfgVe+4U23LtvoBluAUCZxPT8wAKCRAU23LtvoBl uEHcD/4gLcV0Lbco6iiFQ+CfYZbWxZNV6Qx8VSQuh15OTmj1Z+XkqjCJlAuMR8vbj4LTrn8t8Sr Nq0ApJUOP2m0dhsoDhP6L7rRJxHmNMRgu5xjSKWuU/YwNG+NaRuNFaLWE/2WzDbmbBYmMnf0IC/ bNVMvzDPY6NDB6X6CYCzoOdJYn4waPRly+0l86I2LKXPVSFQ4L/iz5LRxGmz7nZenesikXu/88i SbUwoXl3u0zAYgkdOeaE4kn8QtWOLuhowmb+CMzEGHtr1jNxQdNDQ+ShUAd7FZ4ttGvSxZ1QRHw aOpqfl24Xw7vTVHakbP0v7KB2A2E/U1slpY9KuGy6N3uvaAjfmf4tQny7vO2j1uEMSCxhD03VDz bw41W8hfn0izP9IKN8yqkzhIqudR6dOLjsGe6VanZvUWbZnvgL/LPZtUokWrQvMZU+vkhoQL/BQ L9Pdgd9RqgICCHSbAAfkHIdbVRZkc/taz0fG3VyI1JtAIi15Al5a+Hi/rnqXcArq+oDnSpjsLSJ /EJxJ9HqPRWhuALrdDBtkhMP44Ur2e1W5fKjRpf4maRJ9Sky0vNr67lHnjb46hiqX1a7ul1tUYG U7m7tqbyobhOKpD9wLp2cDhxwgc++NASzbXvnNJYaFiRCFjXqE+Blr1fjmxrTU+DRsN03Ha23yU ALi0q+NAgB43eBQ== X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Add support for the USB+DP Combo PHY and PCIe PHY on the Qualcomm SAR2130P platform. The DP part of the combo PHY wasn't yet tested, but it is not possible to support just the USB part of the PHY. DP part might require additional fixes later. Signed-off-by: Dmitry Baryshkov --- Dmitry Baryshkov (6): dt-bindings: phy: qcom,sc8280xp-qmp-usb32dp: Add SAR2130P compatible dt-bindings: phy: qcom,sc8280xp-qmp-pcie-phy: Add SAR2130P compatible phy: qualcomm: qmp-combo: add support for SAR2130P phy: qualcomm: qmp-pcie: split PCS_LANE1 region phy: qualcomm: qmp-pcie: define several new registers phy: qualcomm: qmp-pcie: add support for SAR2130P .../bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml | 2 + .../phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 2 + drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 100 ++++++++++++ drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 173 ++++++++++++++++++++- drivers/phy/qualcomm/phy-qcom-qmp-pcs-pcie-v4_20.h | 5 +- drivers/phy/qualcomm/phy-qcom-qmp-pcs-pcie-v5_20.h | 5 +- drivers/phy/qualcomm/phy-qcom-qmp-pcs-pcie-v6.h | 3 + drivers/phy/qualcomm/phy-qcom-qmp-pcs-v6.h | 2 + .../phy/qualcomm/phy-qcom-qmp-qserdes-txrx-v6.h | 1 + 9 files changed, 284 insertions(+), 9 deletions(-) --- base-commit: f2493655d2d3d5c6958ed996b043c821c23ae8d3 change-id: 20241017-sar2130p-phys-426733b80169 Best regards,