Message ID | 20231122-phy-qualcomm-edp-x1e80100-v3-0-576fc4e9559d@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp4690510vqy; Thu, 7 Dec 2023 02:53:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IFi4RyOjdbchCBOb+Be2UYT7PL8AnrwwaHTkHi5k9pZ/tuwiRR8QvMKIgw0c4csxOwNbI1Y X-Received: by 2002:a05:6a20:5499:b0:18c:2d7:b84c with SMTP id i25-20020a056a20549900b0018c02d7b84cmr3198405pzk.61.1701946388802; Thu, 07 Dec 2023 02:53:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701946388; cv=none; d=google.com; s=arc-20160816; b=Ddmbcg7AmR6e33rb0QxNV9OiDK59xLjzd+PjtSXFbpelC1kETo8dbxseCR/0v49c57 bbhffXgxmv6YNR2AkVnrm5nwUNvrWUBHpWrFOK0KcAHHCISSA1L8XxVtCFee47vQJvsn k+oWLLrIThq7ngnw/VWBQ53Slar6ybp+ifm1iQoCBcJknW4PFX48pgZz5rUpVsLVk1jF FeXdv9vwLU3WuPUP28H6MCyOwAh+utwqnbRxtuSTzXbPlzV1sGM/54ezxb+akqRsqgWo 9nlgiXsLjF8cTlOnb0bO6O05IcahG/SlWqRCOasBsUqvkXSXVg9yDtfmp76QWlceUSj/ aZOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=AtCSycu5VoV4XGxtf8UzVv+51mWT6iBDiDsVSWX2wmQ=; fh=GSy8hy3QRwoDgZJEBlEaSaMToAfS2O8J9/+ubYJRa/4=; b=jBTA/DsyCbRrPU/fvyIabIfOi/XSnCdUjKupZk7hpd99CqJY5BAE/Pv594ueFNqTPy PfMB+47nCBs0xruPSXax22Kl1cXhXZEGTL0hdo3eAfZVixmfASuoZFxl94Q+063M+zFB 89VO5ssEurT8k0RpmVweYYwKgFQuZb7tB5nwGMmacBvh56kK7DF1XFLDUvybkl+y6wGG GgTkp/96YFQsrzuzrk0J0GO5K4wrqaFGfNrtDNuiDUVO3veAM1WTC6hm2V5sIMvarmZE QJIl+BBXAr2ro/SV54lG0IOOuAhbfblODfB1UWqjy1JKQEKuQV8hu4Ihd7lWeCyaKyP0 1qig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZpXeXnHO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id mh1-20020a17090b4ac100b00285864ca8a0si896908pjb.180.2023.12.07.02.53.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 02:53:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZpXeXnHO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 84F3880BE2D2; Thu, 7 Dec 2023 02:53:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232222AbjLGKw5 (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Thu, 7 Dec 2023 05:52:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231372AbjLGKw4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 7 Dec 2023 05:52:56 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FB9A10C2 for <linux-kernel@vger.kernel.org>; Thu, 7 Dec 2023 02:53:02 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-54c79968ffbso1007911a12.3 for <linux-kernel@vger.kernel.org>; Thu, 07 Dec 2023 02:53:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701946380; x=1702551180; 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=AtCSycu5VoV4XGxtf8UzVv+51mWT6iBDiDsVSWX2wmQ=; b=ZpXeXnHOMV8VLiCP3f49NU/ZqxWz6jmZJ5MkZ5oj+iMkbfFW+KD7avR4gCg/zSNdL/ wCJMZPx6fQ0+MSsTJ0gpxhOjkANXBRI01xNWJilYQTbC6uUYeu721ZmNqSNLk6RTMbQV VoseiVatvSst5As9JsI8Qof80A7LM4sWnnEGWr5vOyooiz9E/pIVOlGG2QG0WCVZuQAU 5/fAAfkqHcOrTAld/hEqGxgnSqOdgjItBJLKdjMF69apZ+4koGPFymrI3wXrRc+nYIWr Nyt7cdXcc54lZ41MiKvICWtXAFA4OX7O9A+hPod2xQnsKEPeXv2ipOHsNiTHWz9uUC+v /oEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701946380; x=1702551180; 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=AtCSycu5VoV4XGxtf8UzVv+51mWT6iBDiDsVSWX2wmQ=; b=k2H7VqNAwaz7aJ2hI4iHAgax9XoyBu/kFRKv5YYhcsOHJqH13tyHDllGNGulywYLG9 soBlKFAXAxXUTzTmocVrBYn19Nognrhj6be/RAVTMebxf/gpbSbopGVTVjuN1R3GH4xz mJIbsZ2ubVdelErSOSfbV7IeY33ru441w91bPT/HbpVtTnHdTJFAip1+zKqwrPow1lO3 RSXp4Jl4JjQ5s3Nbx4rgcYqzj56bxVm1dU7+JStpU5fU1pAn3TV5szU5Zk5hA9p4NTnA lRMn8QwKsSxIsYZewpnByJ1eudZE51qsHzemQ2gd3M4Sf35Ot+V55pHNMsvSuxQe3e9y 6/mA== X-Gm-Message-State: AOJu0YzxeMi4kAlaEYPFwU+tgIIuoJ/HDtnfByTfX528hfyPxJzIATll FL1U4DinIgjqAdKsG3j3EEdiQA== X-Received: by 2002:a17:906:12:b0:a01:a193:1d56 with SMTP id 18-20020a170906001200b00a01a1931d56mr1427724eja.14.1701946380521; Thu, 07 Dec 2023 02:53:00 -0800 (PST) Received: from [127.0.1.1] ([82.79.186.233]) by smtp.gmail.com with ESMTPSA id k23-20020a1709063e1700b00a1db8b08610sm668700eji.148.2023.12.07.02.52.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 02:53:00 -0800 (PST) From: Abel Vesa <abel.vesa@linaro.org> Subject: [PATCH v3 0/3] phy: qcom: edp: Add support for X1E80100 Date: Thu, 07 Dec 2023 12:52:47 +0200 Message-Id: <20231122-phy-qualcomm-edp-x1e80100-v3-0-576fc4e9559d@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAP+jcWUC/42NQQ6DIBQFr9KwLg0fapSueo+mC9SPkCBYqEZjv HvRXXcu5yVvZiUJo8VEHpeVRJxsssFnENcLaYzyHVLbZiaccQHAOR3MQj+jck3oe4rtQGfAigF jVBVlA4XWWvCa5H+tEtI6Kt+YbPCjc3kcImo7H8HXO7Ox6RvicvQn2NczqQlo7kkpKikZtrV4O utVDLcQO7JrJ35axbMK4I5lJTUDWfyptm37Ab+EthcjAQAA To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Vinod Koul <vkoul@kernel.org>, Kishon Vijay Abraham I <kishon@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Abhinav Kumar <quic_abhinavk@quicinc.com>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Johan Hovold <johan@kernel.org> Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa <abel.vesa@linaro.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2332; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=J0EO7EFg1UUSjme4RsWRaM9iONQtXhLwbGIIZFOz4eQ=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBlcaQBe5bGJRePDF3FebwqZ6aTKwsnphqkGo1c1 zwZfP/GC8CJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZXGkAQAKCRAbX0TJAJUV VlSWD/9EuCWKfjtiFjobk3uxsDeMKlEyfKMAURDentVCqtx/tdduq+aN2Paubjw8qIhYFax0ozD neobZgMzFaQmvOZMM5pBO3c8+BH8lEG8JLTI5MXXlhPsEdf9WR1rbml95OcE2JPprTbtj86Aus6 6nBw58IPFJo0BciOkTNSMnCHtfWxPTQj47qxIHvnawGXtXmMJDSjTeml5MBz0X6CzDeGTs8Kvkq mkgBWLPkjnQDkDc5puoGNcbIgxE/zyh2HErKs1XCy/kbds7ZPvUE3j2jnLLh5Rx2lJ0K8R7A3Ed mCfvf1cbXPF8ntdGUaeoyekEEQSIIGcnwyPZwKUxIIOtNUgOsuidcLxCMONth9XZvTEbh6KqztF gaVsRR+IHLH9hBYrC7AkLNvY5mg468QY+jRbBZ54QpBPTdc3LVkuaqc7GHdBnYh3M+tOhEaVk/q tn6fN/EHTcDK1aeaTQjOgBDfZV4lJKbndbaTejHAq/84/YDpvPOnlbT7qhP7GV/TWKe+4waOi1/ UmPpQjpBB2hIy1hUuBblQhj26ekUtjcZSBSgaWL9YCtRGqQbgvtzijTbpt7uHyFLZu7JpnAxlNp zuCOUWysDY/ceX4muA8bLxOmAjGHkd96vIsFWnYw5P5t7h++u1kR9zO32swP6a10M8A6XF0m1QH dMVZFfDD9qSNabA== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 07 Dec 2023 02:53:07 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784620136266745668 X-GMAIL-MSGID: 1784620136266745668 |
Series |
phy: qcom: edp: Add support for X1E80100
|
|
Message
Abel Vesa
Dec. 7, 2023, 10:52 a.m. UTC
This patchset adds support for the X1E80100 eDP/DP PHY and documents its
compatible.
Now, the X1E80100 uses QMP COM v6 registers, so it is added here. This
required configuration-based register offsets support, so that's done
here as well. Then, the legacy "PHY type" specific compatible should not
be used by newer platforms, so the platform-specific configurations have
been added. Rest of it is pretty much variables renaming to make their
use more obvious.
Only tested this on the X1E80100 CRD. Need to test it on at least one
legacy with "PHY type" compatible platforms.
This patchset depends on the QSERDES_V6_COM_SSC_ADJ_PER1 register offset
added by the following patchset:
https://lore.kernel.org/all/20231122-phy-qualcomm-v6-v6-20-v7-new-offsets-v1-0-d9340d362664@linaro.org/
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
---
Changes in v3:
- The whole support for COM v6 register offsets has been reworked from scratch.
- The bindings now document the phy-type property. (dropped Krzysztof's R-b tag)
- New patch for adding PHY_TYPE_EDP into bindings header file.
- Link to v2: https://lore.kernel.org/r/20231122-phy-qualcomm-edp-x1e80100-v2-0-114e789f0195@linaro.org
Changes in v2:
- Added Krzysztof's R-b tag
- Re-worded commit message for bindings to suggest same PHY can work in
both eDP and DP mode rather than being different PHY types.
- Implemented different qcom_edp_configure_ssc and
qcom_edp_configure_pll for each version of the PHY.
- Dropped the cfg8 override in qcom_edp_phy_init
- Used enum instead of defines for PHY versions
- Link to v1: https://lore.kernel.org/r/20231122-phy-qualcomm-edp-x1e80100-v1-0-a9938990edb3@linaro.org
---
Abel Vesa (3):
dt-bindings: phy: Add PHY_TYPE_EDP definition
dt-bindings: phy: qcom-edp: Add X1E80100 PHY compatibles
phy: qcom: edp: Add support for X1E80100 PHY
.../devicetree/bindings/phy/qcom,edp-phy.yaml | 15 +
drivers/phy/qualcomm/phy-qcom-edp.c | 583 +++++++++++++++++----
include/dt-bindings/phy/phy.h | 1 +
3 files changed, 506 insertions(+), 93 deletions(-)
---
base-commit: 629a3b49f3f957e975253c54846090b8d5ed2e9b
change-id: 20231122-phy-qualcomm-edp-x1e80100-a57c15fff32b
Best regards,