Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp108451rdb; Sun, 28 Jan 2024 16:26:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEBhdO5aMPoJ9KMu6eRnI6wN1vUqn+WECnYsv2T+pNDPx6JXCQKDVPcMY6zsXzOLQeoFN6 X-Received: by 2002:a05:6402:b76:b0:55e:f3ce:c621 with SMTP id cb22-20020a0564020b7600b0055ef3cec621mr1024673edb.2.1706487979433; Sun, 28 Jan 2024 16:26:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706487979; cv=pass; d=google.com; s=arc-20160816; b=c3xwJ93GI2KjWa6AupF+tMWKBsm0sz8l7PXNUNpJPoMHz08TUifhNMyWt+NM9DqrJk JdT+zWz3u1XV6gMyuE0dF7G05wUnP++f6G50xImagjcFSkPi2DwhyYqVArtreYSHYIOD iDmQcosp2iau8KQpMy5zQECBLT/xNNHxTJpaON0rzgJhPL2R3qVzc8e5O9mzks6SQpVR iCj4C/sKlg+F6Wgt4zJbgSgwdYWuZ5+Ks+csWyqgr2jLAzB7MbBdQuFjD95s8jkNp38G muBJHlyw8J1y9gf0+5BNFN6DpFKQfjGvndDMdUDgCEtKkjcsHLrS7rDrFySpgXarpBdP 5DWg== 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=QSP/j0QUmoRkVRe8b6nQxtIgMt443r+QjiLpoKVUJr8=; fh=hghu1b5B4wMCT5dgWuh83Q+U/TC7261vDsS+ji8dHxg=; b=Gh9bmteF7aCdu3HUggOFnsOYCenx+r93sk9RHoVmYihQo9pPuRv+u96u90BUoqDH5s udkdAU8fiOFCze9//1X8aznZ0XMAXH5eTIFlwiW2UKJWlSJpKO3RZ9RQwSjCb/dnou7x l9xCQQcff7z8xPpRn49uKVqs7JjmzwaFkeygEk5i8lyv7e0k4pQndmE2tN/WftnFjV6v +6Ajmes7UX/X2Ql+XC8SHe4M+GNjE77hHF/B7Mv6XaaMcRyfDY5nu9L6cvCRXmENG77r ifqg6VqtR4fYdCtt9vw/wvQhlaomIy5dYIG2UaxJPrgtFElZPvtE9+gKw9o9BJHSKmmW rUKA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uZJ1ukuI; 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-42028-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42028-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u26-20020aa7db9a000000b0055c9c70f91esi2901453edt.182.2024.01.28.16.26.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 16:26:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42028-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uZJ1ukuI; 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-42028-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42028-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 12C181F21C47 for ; Mon, 29 Jan 2024 00:26:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A8B38F55; Mon, 29 Jan 2024 00:26:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uZJ1ukuI" Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (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 D29504C66 for ; Mon, 29 Jan 2024 00:26:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706487967; cv=none; b=lHEcHjrZ/XWBMt4+OE60OzlmZ4bCza+92EuenS+2XAAhiLF53khCwXeTR0t1ax25oYsQiW0Q9XfkGVS4v2PbekGBCf+jq5LSvRpSDY/LrUBwePY5grxwEgAIM7k4SPLCpWI2kako6KHjRS7FAFZPsf+fMOnQSi7HbJzUntFMoZs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706487967; c=relaxed/simple; bh=fAzsOPWQXg496cQXdSRwttLRSK17eobKfvDNm7cJwnI=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=ukPeRs5oYXPSRogW4KOqhqfqjpSp8x1ch87nQ80P/95QC53DH9APkhKKWln9mGIv7vkdZyCF5MGg/5cAO5vfFaYM0Pv8cJE11LyJ1gTR48W3NPi+Fd6j9GZDFN+phYD3W6v8639Um6dT8asH8uvsCFMvixebYRukh1WzM1Tj0A8= 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=uZJ1ukuI; arc=none smtp.client-ip=209.85.208.50 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-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-55a179f5fa1so2192171a12.0 for ; Sun, 28 Jan 2024 16:26:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706487961; x=1707092761; 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=QSP/j0QUmoRkVRe8b6nQxtIgMt443r+QjiLpoKVUJr8=; b=uZJ1ukuIKsQ/cc6NPsllbQ9F/w4l2IM/LxJC8QUlCZFRYf75UHbT5rHzCpsSFE5Ybe kbJwSQ0hWMytVioBAedwd4A6FMlyIJRObI95J2EbZ4/dNcDwxMsMjyOEhOGcRrEdcnI9 ZBJWHt7DDr1NaTEajI5KOE9iLE+NVWPTo95XFhI6zVlkdhTTnlb5usK3c/mVdnSnmDNe NvsrFIvJjij+3qDQWw9pRG+8+mqQ3ez7+aIGYQrtQZJFWI8nZfwdVcOiYWzby7L6FB3H WL8Zg50figIPfffkA6VSIUPh4wh3KKTwzPob+BG2iXkMAhzkc1MoK0swklE91IrrnNKQ 5ngg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706487961; x=1707092761; 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=QSP/j0QUmoRkVRe8b6nQxtIgMt443r+QjiLpoKVUJr8=; b=db6I7U+0GX2M33ZVfXLLwqmUUDG1ZyeEk23sHOF9aesAp6zfq2Q+IYE6Uka4U7pQEz Bxebpj5CzEZQAnQjcyvP1myxnftzZO/zu9D5ntiFh0CQtnU408/gbUwN2EIH0/0sdg9u bIQdVxQkiEyHzD9QVkrYODyNSHSIiz/TDxXzRVKzpo2L/22Dy92VcwhMo1htLE7eqP6v 2HFb67fFDGoUGqX4ubDdlC2LESPvsdKfCZp5Nt+1NqiSd3qzv+zuBjghoWReEVRwLvlx MZ/Gymqcr98gEaRtpUhKHyMlmpDn2AxQ3soMIPL4FahNnbp7fXccWGmiLkwIEZadSRnI E31w== X-Gm-Message-State: AOJu0Yz2I5SV6cluwMduuf/YaiKMiOvR5hlc0fVxWXNipAI+H2kilRJ4 olmZzLws/iMNNha9T6pLiQPvvxV0UWBmqrpqmAL9lqlscv7wpzPaHuiBbOo1QWE= X-Received: by 2002:a05:6402:4503:b0:55e:dcdf:50b0 with SMTP id ez3-20020a056402450300b0055edcdf50b0mr1828652edb.15.1706487961084; Sun, 28 Jan 2024 16:26:01 -0800 (PST) Received: from [127.0.1.1] ([79.115.23.25]) by smtp.gmail.com with ESMTPSA id h29-20020a0564020e9d00b0055cfb3f948fsm3208193eda.76.2024.01.28.16.25.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 16:26:00 -0800 (PST) From: Abel Vesa Subject: [PATCH v3 0/2] phy: qcom: edp: Allow eDP/DP configuring via set_mode op Date: Mon, 29 Jan 2024 02:25:44 +0200 Message-Id: <20240129-x1e80100-phy-edp-compatible-refactor-v3-0-e71f3359c535@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=H4sIAIjwtmUC/5WNQQ6CMBBFr2K6dkw7TS248h7GRWkHaIK0KYRAC He3sNKdLt/Mz3srGyh5GtjttLJEkx986DPI84nZ1vQNgXeZGXKUAkUJs6CCC84htguQi2DDK5r RVx1BotrYMSQotJRkjbbWGZZVMX/8fGQez8ytH/JsOaqT2K9/BiYBHOqStNYKSyXdvfO9SeESU sP2woQfVsQfrZitplK6uFqUqqy/rNu2vQEn1po0LwEAAA== To: Vinod Koul , Kishon Vijay Abraham I , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Baryshkov , Johan Hovold Cc: linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Abel Vesa X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1980; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=fAzsOPWQXg496cQXdSRwttLRSK17eobKfvDNm7cJwnI=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBltvCQBfS5UyZzHhV0GQwwQcciT4hN0x/JoP1/G prHeMx7m1OJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZbbwkAAKCRAbX0TJAJUV VjrFEADJnJpjIiS2JY5iAhr+bwymSv6XOiwMhJ4R5gRXky2QknEdN7w8QdUAGoS07hIU4ZeZKU5 4Kk7X6k8N13FcTvv/Ht1o+l3wmqIalhWQh4dZ3cM3eF/E5bNlEDeU8036WLOhvjJ0JGKG9PAbkN 3bs/fH8DxEQ1P/phajqIl1H1lzWqu2irPh+c5CkDeUuaLj3FdCLTOHPIF8YS8Vp4kUpNosfk0vM gBAuV8+n2fylK6tg8MKzHUDb3ReTmrvLfemSWq/wbKwz6nNu1RyPA3pb4lu3NOG41ZQAaw2b23a MjVgkuadPGVWqSPTALwhB8FlxfX+SQ9hmpD0yFlWXOqknOZ9hXt7xBIos7MCWNwNdf2c6n3uD/M rjMUWV4yvrKK1ZrJW/34XfANc8E7Nt7yKDj5RrwdRakP18BOyoggYkQht47G/50ICnNAK4kNtQW NSL8UfHuws+qy2HRPME1/c+6g/3mggQfIWEgwLAKqO24eoLWnoYvYUVI+fpD9r0UJLJnndziSAn 4eMdvcoilH3189B3ptkwTgmfjyt+hFMpoGRbqgJNmfAW2RsR9sBGVD3gui2xPuG7hUuDeYYw+4+ 8FZdDSfWWdBq4CgLknUIzjVjt02xpgcdW4ythAC5a9B9WleDfsG/ZC5S2LILtuvPI0pEhnRgDnR uwQ62LSjJwkC52w== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE Until now, all platform that supported both eDP and DP had different compatibles for each mode. Using different compatibles for basically the same IP block but for a different configuration is bad way all around. There is a new compute platform from Qualcomm that supports both eDP and DP with the same PHY. So instead of following the old method, we should allow the submode to be configured via set_mode from the controller driver. The controller part will follow after we conclude the PHY part first. Signed-off-by: Abel Vesa --- Changes in v3: - Dropped needs_swing_pre_emph_cfg as we store the table instead - Picking the table based on is_edp instead of overriding. - Link to v2: https://lore.kernel.org/r/20231222-x1e80100-phy-edp-compatible-refactor-v2-0-ab5786c2359f@linaro.org Changes in v2: - Dropped the dedicated xlate function and added set_mode op instead - Dropped the eDP PHY type and mode addition - Added the DP PHY submodes (eDP and DP) - Removed the device match data storing from the container struct - Link to v1: https://lore.kernel.org/r/20231219-x1e80100-phy-edp-compatible-refactor-v1-0-f9e77752953d@linaro.org Initial attepmpt was here: https://lore.kernel.org/all/20231122-phy-qualcomm-edp-x1e80100-v3-3-576fc4e9559d@linaro.org/ Compared to that version, this one uses the phy-cells method and drops the X1E80100 support. The X1E80100 support will be a separate patchset. --- Abel Vesa (2): phy: Add Embedded DisplayPort and DisplayPort submodes phy: qcom: edp: Add set_mode op for configuring eDP/DP submode drivers/phy/qualcomm/phy-qcom-edp.c | 71 ++++++++++++++++++++++++++----------- include/linux/phy/phy-dp.h | 3 ++ 2 files changed, 54 insertions(+), 20 deletions(-) --- base-commit: 72dd5696a6a27d019a1592acbca13263a2ebbac6 change-id: 20231219-x1e80100-phy-edp-compatible-refactor-8733eca7ccda Best regards, -- Abel Vesa