Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1565232rdb; Thu, 7 Dec 2023 02:53:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGLVMj+/8T66mJ3eSR3cKEIEtbiaXM+Sk4n8vAraj2pLqQpW3QFxKSW91anJ+LlDO5+ojSR X-Received: by 2002:a17:902:e847:b0:1d0:c762:7fe6 with SMTP id t7-20020a170902e84700b001d0c7627fe6mr2378453plg.103.1701946389553; Thu, 07 Dec 2023 02:53:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701946389; cv=none; d=google.com; s=arc-20160816; b=rQH398Ds7iJXZLKNajZYtKLLUfVBxWbCZwgBm75kAjdBgs/OoNvPHn6sqYV6R/FH82 SKP0pMxEJINGexuKIc+YTrieolU0bqDlyUKRQ7N89wEeNDdss6C8rdZK1sXwSzU5qe9k GUAKuW/saQgFEA+4OHeGhG7rMvfbB1lJDZ0IdFN2sK4NPYJ5dhOASNnCM4VDCexTORy4 8Pk/q4N06DKSkdjbXUuDA5InABUxrGXYVlvjUer5w6Bne1ClioUUF/tq+gObU/sekf3O 5fJP1QP1npDwEaLiOij7jKimjUIqthKqacu+aMahT1oz39AU/YBwpIp9K4MLAxXpcA01 kD8A== 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 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id m16-20020a170902db1000b001cfc170c11asi917111plx.475.2023.12.07.02.53.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 02:53:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; 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 23.128.96.37 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 3ED36804E7BB; Thu, 7 Dec 2023 02:53:08 -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 + 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 ); 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 ; Thu, 7 Dec 2023 02:53:02 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-54c79968ffbso1007911a12.3 for ; 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 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 , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abhinav Kumar , Dmitry Baryshkov , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa 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: 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:08 -0800 (PST) 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 --- 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, -- Abel Vesa