From patchwork Mon Jan 29 00:25:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 193191 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp286397dyb; Sun, 28 Jan 2024 16:26:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4JXXN7Ud64F5KRnPp3mlQRMtxckCNkUwtN6bJFGzP3FRzNJntgyMmvzRSmfl5Hh6MvqAG X-Received: by 2002:a17:906:7117:b0:a35:3624:7f91 with SMTP id x23-20020a170906711700b00a3536247f91mr3440763ejj.11.1706488011425; Sun, 28 Jan 2024 16:26:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706488011; cv=pass; d=google.com; s=arc-20160816; b=h8uT43T0iDrQxa/LW6WTYlrGHV4we6//MiaKVCTFU709B9vB3PG9Wmrc1PbnuejB1E 3hSMpl/A3tM4Syfk5aQEoAGkym1vKYNkuGnOCBq1oPVKxapcd/oGk0lcSfEQQY8WkaEy EiMWGtCLDeBRE6Nc5AAnEkHYMsRxrUZImNyvZHNvElsIv0t7skPEInPy2fzsTZcUSM9h 1i99dHiI/pIBkQ5pNFtH1R8NNmAu/Z7MaP1DofabMBe6FyoUsH6EFr0tDGQYXol/mTm8 wN1TWE5zUvkdzaZAp5cKv84g3mBHqBC4xEH1Xj5+lnLrS+qu2QqxkZXq8DMP4LZeZq4Q BzKg== 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=hghu1b5B4wMCT5dgWuh83Q+U/TC7261vDsS+ji8dHxg=; b=UgyMEoKf01Y0cKy20HyeUhJJqIKoa/GrE0zH5HamwBubpry9+W+C7rKJ7mqIHC5D5I vCdA7VOHbH+Y3kDz8udrGmLw1qDW0Z4L3VF+aEmveYQK7qOj1o/3ec7XhhlmoX6CepiL EqrczmdKugcAAK0Xh0pVNggXo0uPh0KMunm2mQ6WU+1vMlVJ/SaEDKXE6mb4J3FlYNEs HxBj9B92OlUuxEOGqgSddiabdNW8k+xEB+OCeC2TL6wnYnn3glDdAhO/6s2MC/vX9l+g KO2LqCRvPdpbwTqCpZ1LGND7CsdbpaJp3vlYpxDqODDVE7+U4pzfbZrw/SyPPgULSaWQ viqw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ExQeCuOC; 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-42030-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42030-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v21-20020a170906565500b00a2c8d6b7bd7si2872773ejr.206.2024.01.28.16.26.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 16:26:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42030-ouuuleilei=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=ExQeCuOC; 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-42030-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42030-ouuuleilei=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 0DB1A1F211B6 for ; Mon, 29 Jan 2024 00:26:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DDD87DDCA; Mon, 29 Jan 2024 00:26:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ExQeCuOC" Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (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 539014C96 for ; Mon, 29 Jan 2024 00:26:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706487968; cv=none; b=nAe1kxAQNg6w1Zbo13KFs5+BaoReStjL+Xu0gkw+SIGxuSB52HxtpoZeYES5sjP95ZiLg4PB7yeYuI9Db6xQsSZZv4lH4PrQ/WSCuvFw9jg1OUWUl7gArS6VXWhOu4oQyHQ6m1MWh5IV5lXdEvIb84yTZzVnYmR2yS5dO2WSQPM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706487968; c=relaxed/simple; bh=UEn883fEvn74EKDrMBY5HRtTZ852wPrXNTB+0TMl9N8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=O6EuBMLb8MW0ZxpCs0bViwI5vv+UIIpKqtJFduwiM4LJYD3Emg4L7KRSpc8AEBl+ycvgS/588NgFH6XD66YL4Ei/JxHalRy+5zyQlKGCPlM8DaNo3FbOneDZyJET8PIFAbL/92n+MPbaNrj2zXyxiFu0LvFgO8iP+GOb/fL9hoM= 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=ExQeCuOC; arc=none smtp.client-ip=209.85.208.176 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-lj1-f176.google.com with SMTP id 38308e7fff4ca-2cf3ed3b917so21962681fa.1 for ; Sun, 28 Jan 2024 16:26:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706487963; x=1707092763; 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=ExQeCuOCw6xyz+5vYoeQRgkdchzMRH9g9Wlbpz6uoE+7MZJ09Frw1L+o8YBTfeHAXk phJ3QjpZqParHnSvneML524zbtxZbbx3UaNAK+7q6lnmHxtdKZepQzCEqFYOyFIkThQa LxlnAvCa5K4FnX6MSpCa1f+IfJnBin+iQx7BNmU48yBNjZuupWqsIjqMN0wO2mjPWMOV OB6jZ6tHRdcvzQPzoo6odm0TwM6Lg4QqK7uw6Sg9ao+8Rlm7K1mu0T0wgyPuPf0Ic8oK FNYMOSoFdwSm2Iy+lmzoeDoILVgBD6BxTu28OmMPAUOa1S/tpWHoRI/3Q5hXs59JAna2 QTeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706487963; x=1707092763; 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=qjN4lH/0oH0+Yv9M2xZYmiWuHgEAT76vUUB3NKyqoIASloGbLo9WAw6kU8x5B1pgtb Mg2HaRy9rb9mFGfjw/IxLG7lHPePBJgOuuIfLiBiojzy9IM7pGOSzjPa/yPiO8PuThRc QJYlIDD8aFHZhwGL+3QFtDD4NtsLmsC9LCgRrpWFeCWu4Tcjs8qJeEa3y/2e5eG1voDI fWFWtQHQLkdMzHkgDTDJmDqbpx+AWh+E3M4H4KOOXCMZgxKdwfqbYpwlz+VthotDtNVm 9hL3ETQ7qnqQ4hSLtR7ntBmhKQL2Z9572GHUbq3m9Rw549AHa0eAoTXcyY7+aB9/Oaok u+iA== X-Gm-Message-State: AOJu0YxkHJnsALpNRFnxd45ts7rnDGcM9t5djx448tIFiovTay/xmHBk ZPOrTzcssc4neGbZZZ42ZlDJfqsC5jzeI+P3ZXJwxSgZQHvUAJW/OqeSIMu/pok= X-Received: by 2002:a2e:bcc4:0:b0:2d0:4158:bb4a with SMTP id z4-20020a2ebcc4000000b002d04158bb4amr2188639ljp.15.1706487962427; Sun, 28 Jan 2024 16:26:02 -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.26.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 16:26:02 -0800 (PST) From: Abel Vesa Date: Mon, 29 Jan 2024 02:25:45 +0200 Subject: [PATCH v3 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 Message-Id: <20240129-x1e80100-phy-edp-compatible-refactor-v3-1-e71f3359c535@linaro.org> References: <20240129-x1e80100-phy-edp-compatible-refactor-v3-0-e71f3359c535@linaro.org> In-Reply-To: <20240129-x1e80100-phy-edp-compatible-refactor-v3-0-e71f3359c535@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.12.4 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/ZANAwAKARtfRMkAlRVWAcsmYgBltvCVBACVcZrnMVBS+u5qZXFWmx75hCoRDiMe8 4tB4whZiQuJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZbbwlQAKCRAbX0TJAJUV ViXqD/0Zq/xflYC4cjb8dLUvaPg2eVQbiY0yhO7NNn7RgChfT9xZdxuvknkqI6BbJWdB/xC6Sax W3zekXpByUJI7mY6rAk4+7WdxUDCILW1mt7GsTMA5691iRkoTIX2bhiIqdiQN1KjQN0dDzjHgpY bk2CplmmI+l9ONHNwhI6rqvavP4XCEouREjX4+Ej13lSJXz0nCPHBqyaWMMRsaNoJdtZo7W791Q cK7nC6rzBg+KGhbWf7CN9zJMLgBcMGGNpYkEyP6KtLbQODvDOyGnIoYpVeBZXgPg6pkmslQnuS+ fdsFRpBFdNVoTIrimhYrvF1qGsgcq7zwgCkFSS1krrDQJv/dzwbZWkPbfsR7M4mKoBXAOcJb1TZ umyY9I4SPiMelFFYBKBPHdadIy4Dg6Kftg7YAgMHBjmOLjdIDtLkTj2T4gJO0yFjvd5RT1WMOrh kMHadP/o10ZuBjWtygPs/ytEUW3XpNCVaYapGN+uiEvAwrPE+45ZH3WqUTvp6YRaB8wbF28b8y+ /41vVQJaZrIVrc+AHSl+Ds8buUYzZ7POYJy7Lg2+uBXMJTRF2hBFxY81o+z0/6Yfep7L/vW/d0a HL+AEtzeaS6rJD4G90rgeqlA5tarcHWF1A+AflurwCnWmeMjKAUoUW5QWu8yQSAZ1BNkdbtDgRl EaQned+k0SYex4g== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789382373102044055 X-GMAIL-MSGID: 1789382373102044055 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 *