Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2295002lqp; Sun, 24 Mar 2024 11:51:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUIMJaapXtur70gtS0c7Vbt+0LgKJV7cuZgKMjDq8+yGz6cSkT/wyHkkVt0aibe9TojL/pUI0DH2GP0u47yPvJX8I976ls4h2kmnQVMvA== X-Google-Smtp-Source: AGHT+IG+Tmxb4eCCggBmH9tG7CKH0RGYaoh8e96qX8De+oE1QBPupvR4HIbzHfIQVpwUSsuTGIv+ X-Received: by 2002:ad4:5cef:0:b0:690:d7dc:df9d with SMTP id iv15-20020ad45cef000000b00690d7dcdf9dmr7387390qvb.13.1711306262220; Sun, 24 Mar 2024 11:51:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711306262; cv=pass; d=google.com; s=arc-20160816; b=IZAzkOZICCJGPFRRXaXcWXiWZtadKEbAJYjOhl14J/LGqWcTaXY+FPcenforjOED6i Vzs/RC1TFMwqCeSlUNVcDCLrghyXxoptZtrB6nUooV8pit7aqJMrDQxr9KGFk5/VKwAy RqcQ6FgAt5w18SHdHWvnFAtC+7NLs6K6rMb23uTc3uQtHhbJmYlK1MA9jBWu8y+07lYP bfjEu/epAPfX5/ITJRsr+9XodaQvX5Ywl0PTPFVgeaOAxv+BMxBwO0mS/Yq/T4BbJ0+3 gBEsJFSHAY+GamnuOy/bbgInH14JHw8Srd621Ia2MrlLu2e9cMFfJerQ/fGFcBkcTmDw mnMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=YXniBx4zGce2I+zUvQZeh9F9TJPf5+YSFwkB/zgLcpo=; fh=Pxbv5beu3vhS017d3CN+e8FU8guwm7FXkZ2HSXU04To=; b=HhVlXG/AXoXo5qwA5S6NQDfxSt4A+y51SUfdSgrcBRoIYvia3R8umcgA09C9Ulyb9i MkTgswWkCmZDg2z6qnWy36GBHm5sbVFVEYKwklBL2KZUSYNSYAxXlpOiUeI+csnskWsK KiLpMYJvawIpHktt+UxO+cFeebUZB28S/EEnMsuzUyyv+LOd6C8FMSm/KSnsPOnsyCPB e5axnya7+KtFFnu5vKUD2j1j8wzJRWZrJHy6z+w14J6GjcU9sXii1ydCod1Mffch8vTN hIQ83JaQnFRIOwepYJh45N+GvXut8J3iQjFrwibnMa0HrFZks9H19Iy8F7owBGi/LDar 0A4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pwRKFTw6; 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-112808-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112808-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ny6-20020a056214398600b00690bfb207fesi6204129qvb.279.2024.03.24.11.51.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 11:51:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112808-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pwRKFTw6; 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-112808-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112808-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E96571C208C1 for ; Sun, 24 Mar 2024 18:51:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F30BF9DA; Sun, 24 Mar 2024 18:50:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="pwRKFTw6" Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 E7B55D2F0 for ; Sun, 24 Mar 2024 18:50:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711306242; cv=none; b=ABGtC1xM0h/Bgc42K0Dcshb6nzy9hUEJKuY+d7s5SgaU8ZRqWSfjhXCfGDVSro++0hMQ+/SIcEg52QkP5S816VYxx/xfg4fGOtBSwdPN0azgORIlKLJQELSVa1P/2/ysbd6RSBOflT4dzvIz6lYbZkUuyOU6aqyVZt3e+T9j2d0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711306242; c=relaxed/simple; bh=UEn883fEvn74EKDrMBY5HRtTZ852wPrXNTB+0TMl9N8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SJIqyWuTdNBicH5vrlycl66j70IUTdaveDFW6LiSbhZCayjwdxxYCiJD8TAM4jRwaMsQ/6o8StqE44zxayo1RZtA5IMp4LthsEtToxcRyHFzudrOhJEp/xY6GDfulTICylCMpoVXfUudEKMaXzx+nBL//LSRh1TA1nBNOH8lDKQ= 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=pwRKFTw6; arc=none smtp.client-ip=209.85.218.42 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-ej1-f42.google.com with SMTP id a640c23a62f3a-a4702457ccbso476034266b.3 for ; Sun, 24 Mar 2024 11:50:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711306238; x=1711911038; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=YXniBx4zGce2I+zUvQZeh9F9TJPf5+YSFwkB/zgLcpo=; b=pwRKFTw6OdAohH71ob1uq/UqdOJvYF52hhVVkrZnWlQj3sj5+LTQnV5sAR/ljLGFEB 7zExttgTxbWreEslBKzqwR4MQAtiy7TYzlK0H3+ct1HcD9tz1zOMPuSEusqXGCWsCWJv 7Yq0WdWU9T0FzKi00sK3d2na44vWWXZbnQZaR3Sf2eaDDlHgN7aq9ujLLnesIuEQ9bd9 uzhA5KEJ6U2T1Z/2Yc+pc+nCI/IHM+Pc7T+PEBqT8p5OjhE+y//sQ7ydMVLpWwt+ix+G 8LwD9csIvw1X8BS8etqYvaTncGgkeCRl9aC8tcEcPRnvDg5clokKCg/SP1T5as6KYvMV 9U9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711306238; x=1711911038; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YXniBx4zGce2I+zUvQZeh9F9TJPf5+YSFwkB/zgLcpo=; b=jxSmHr+pAaJ257p7of9K7vpSMGA/m+wxlaOx6R16breiFMDqzD9LZCmpj6pbmY0JT2 rzUGRizw37UYykm88aVNN9tZQvivQQQ5LqVJczUpG2zhCZ1hB/WkUxxHl5rwUjqx4hqL cr7b7pn38x5FZpX3RDO5lkZ+LtycSb3PbHiVGwkuGeybuTv64x/BT6vhN7t2JNWsrupr r2daVbuY78dttpaYUaSgf7Dq5f5AF4Lu5wo8mEw9HQo9aLDZeMoODhB0ifQfjsuVq2FM iXs17MAB30L+C42QaiajmiTdXhLpJHGlmDFGhUPmVF0ayhrmV/ZCeEXIjW5dFfborZdA rm8Q== X-Forwarded-Encrypted: i=1; AJvYcCVBXkVDExj9tfS05sgYQ92R7D2VgXDQbFdLbTu3Lsb8KEEfWf5oFuig+woZQwnCKIXXdqQjaaIp7dWuloOEWOq42+zmmytiGu1esDUM X-Gm-Message-State: AOJu0YwQ5wXKPi2cZes/s91b4HUof53M2+G1np4OkldOg+tesEumWgcU u3UwGsWuWwzhkPqAtZYQ5DE4qSByATRWw2l66QVzCVV7q0LznKzSztYsWM9x/BB7rSTUrWqkuTT I X-Received: by 2002:a17:906:b243:b0:a47:1d01:bb8f with SMTP id ce3-20020a170906b24300b00a471d01bb8fmr2788482ejb.31.1711306237970; Sun, 24 Mar 2024 11:50:37 -0700 (PDT) Received: from [127.0.1.1] ([79.114.172.194]) by smtp.gmail.com with ESMTPSA id kn5-20020a170906aa4500b00a46524d06afsm2188136ejb.8.2024.03.24.11.50.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 11:50:37 -0700 (PDT) From: Abel Vesa Date: Sun, 24 Mar 2024 20:50:17 +0200 Subject: [PATCH RESEND v5 1/2] phy: Add Embedded DisplayPort and DisplayPort submodes 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 Message-Id: <20240324-x1e80100-phy-edp-compatible-refactor-v5-1-a0db5f3150bc@linaro.org> References: <20240324-x1e80100-phy-edp-compatible-refactor-v5-0-a0db5f3150bc@linaro.org> In-Reply-To: <20240324-x1e80100-phy-edp-compatible-refactor-v5-0-a0db5f3150bc@linaro.org> 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.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=715; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=UEn883fEvn74EKDrMBY5HRtTZ852wPrXNTB+0TMl9N8=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBmAHX4iS0d2pQK1abiEyUGqEBZHZJ2E94lwhHzy SV+OHdxdqWJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZgB1+AAKCRAbX0TJAJUV VgDTD/9P5eObpOH3NwGOJBXgjEhwh08WrSARxONu7d4ai2ARgbmiOc4l2h4FgMxpr5QtIxwb1D1 BJEJHZl0KBpFK/5HNn3ZZQtgGGcpp1/LzYNvIB6P5TgRR7yxabH9LzeB5pBXaK48V/t7+UM8B9S PNhuJ/W6PYW/Nj0so7WCfKG/7XAHxxO6M2VcJ5rMyes9mTdzoeBXeMwguHamavAJ/0+UNPqPyBa OLD1Oe64pW/duvMqhoF4s2PYVvKBDUVMUMfPvQ8+yhizbdNM7fYaDxrI89yRO4F7QjSNMSxQLo+ Hq/orrnfowW7rQK7EFTGVYRuxLiQnDwj221uHLG6sDHLnAnNdH7h3GPJf+tWkAyMSYNHmOCW3TC FSTSs65vOz7gvtDKWqdFkpoKC1v0/X824VcWGEDx6bs2oPdDm609wVAWN/1RbMyP84uhRH93clP E+c4/DciD0NHcQtBW0KgdlcKZtLdoDbVT/GrhTaV53VWHAasH+ffqwWtlbW7qQyNvYw2ndy/9Qo 1sOkrPQ0b+ZOb/s62BouBwGjDA01UyKE8qXhbl9pEJmzCFjI7pkjftCgKPMZgwDVZNqd+a5ot6d MV1odRIF6p7D2V0qMyTt+YEoQMdVH5OU0JQ8khnO5aW2nyH1kVPWmEiZMqx1Wg8JEwaFB7l6yyr y83z4hvCjBDyKZg== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE In some cases, a DP PHY needs to be configured to work in eDP mode. So add submodes for both DP and eDP so they can be used by the controllers for specifying the mode the PHY should be configured in. Signed-off-by: Abel Vesa --- include/linux/phy/phy-dp.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/phy/phy-dp.h b/include/linux/phy/phy-dp.h index 18cad23642cd..9cce5766bc0b 100644 --- a/include/linux/phy/phy-dp.h +++ b/include/linux/phy/phy-dp.h @@ -8,6 +8,9 @@ #include +#define PHY_SUBMODE_DP 0 +#define PHY_SUBMODE_EDP 1 + /** * struct phy_configure_opts_dp - DisplayPort PHY configuration set * -- 2.34.1