Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7129424rdb; Wed, 3 Jan 2024 05:43:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IGGR+2mhff/GDvlepmvrIR5hjKIPzCACm/nqyW6HkfWL6UCJzW9cUp0YQ+b1kwC3Q+Q5Mgn X-Received: by 2002:a05:6e02:1a68:b0:360:3c:121f with SMTP id w8-20020a056e021a6800b00360003c121fmr22822604ilv.52.1704289414351; Wed, 03 Jan 2024 05:43:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704289414; cv=none; d=google.com; s=arc-20160816; b=BFOTyVonTpQPVqpk7cMTRPceDXBT7tHTsF/BPdhvE6tUzcsGnXhtNVMUuzpDJGnqwK LoOu9gVOxDcE1ow+jiuTG0jZroU5LVUlO6LcSc5VOqqZ7oGXWOZNQMajx+4HeoJ+z6Zz cuO3mPJWUj4Fs6sB/aw5/kDPRu7bApi3JvkF6sHuff4wHVZ2RsCdaJWh9oK3jmmXHYLW nxRUFPXRPtWx8s+VtAbvmyzkYt+sg0fi6YPx321p2dDmbMXoMPrPa8KHUJOVSZR7DJlE 4uz6JQnnzkLAtvtbgwRKcHswgs4e1xwnhdq+b7icks64O6uD3SWzmBhM5vn8X4JTXIQI 1gtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=ywm1NJM84MFVbNs8Kn4Mu02P9WC9fu63PnwufUkYyus=; fh=qKgesWFf2TtFW0psxtncmc4DD2oVy6j6eRycpDNtL3A=; b=zqqM4CF+VYT/I1wSugmt/r5lbI4iilzFtk/eql6KbPpwtOlgvZ9iWp6AzrkuQh9O49 KsH3F5n7ik5a1e+zdWFFMe5UceesPvtJ0ra1k3VpxFzVf7zqjkApUHTUP/tPWAcZi67D wS+Z+YBC6/eXx+HnKfx5T19uKuc94NAi4HtOcEchDnajnZKyV5uV/ufRSf9hz6Bup9Sb dcOlU12sJ4NJHdknMocmOjUb6xHezjfTj+f6PODsmQa3AS5NRWnlVkmrdaSuDJv+ApM9 nE3z3Jg8jKVvTpuYyivwnglyqEV9P0MZBlsNYanv6CccraeuM1vDlAXJaGvtRSIrb1RC 5D+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eaFmddNB; spf=pass (google.com: domain of linux-kernel+bounces-15610-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15610-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y7-20020a633207000000b005c5e2c15169si21806474pgy.737.2024.01.03.05.43.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 05:43:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15610-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eaFmddNB; spf=pass (google.com: domain of linux-kernel+bounces-15610-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15610-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id F3F9D283630 for ; Wed, 3 Jan 2024 13:43:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EBBBD1A28F; Wed, 3 Jan 2024 13:42:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eaFmddNB" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 6D10219BD8 for ; Wed, 3 Jan 2024 13:42:54 +0000 (UTC) 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-lf1-f51.google.com with SMTP id 2adb3069b0e04-50e7abe4be4so8590144e87.2 for ; Wed, 03 Jan 2024 05:42:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704289372; x=1704894172; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ywm1NJM84MFVbNs8Kn4Mu02P9WC9fu63PnwufUkYyus=; b=eaFmddNB4wQQ6+LzNAHt0op2ZK3Cqm5zFKktcbxDa5pLixURkQqsakepP+CCKwog/g k95vv9wAyEhZJMBnlHnpJRzyIwpJBsLK78S824Sc0IwKteyNtGVZXnWkFubEAg/4lbWo uGzZsySL8E9v5F9gDnlR/meLHYTbSdUgLgGZwRvJa+SkN0TrttrzncTJM7qCqFdJPavC 2i6YKLvnmc6O6PDDJhwKq3GiMKA/sZLeEcTyu3ybYZX7K0GvO9UJ3p8MnxSMnlI6yVdn OPWa4RCSJdvGlOJwpCs8sxJr9+tyaWFmcP4NLbRNaOJUCfiyFvt70xTinw3nAVUEeuXQ l1MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704289372; x=1704894172; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ywm1NJM84MFVbNs8Kn4Mu02P9WC9fu63PnwufUkYyus=; b=T/4PZnB3RAnSBmcHrdK/FrkX1XykCH8Y8MpiMh5XyZSODkw0xF2vwnr4Ix+3hk/rnU VCDU7M2rbrr9WTbDFljiFtJKlwXKkAJPiUoa01Kv3RNYeg4YhnM3DQR5TRBmvy7bfJgf ATbLPVu+adJoZdehA/yyEKDZgtrVR/5tCCKDQMOE4+H4cDNlAU040MQ7rZQFiQId0IjK nH/epS3jg8rN3XGr4unobBqJwex8dy98CznrzEtQFTR44J62d9LD1Qh+cKHNdbBTOU5k pZud5tWnEvhxJrZZw1PNVrTscBh7fJigGueRpE8F4/W3uJEYHwH7zXq8Mh7nfr1vMl4C 6rXA== X-Gm-Message-State: AOJu0YxY5PLVap3zmckKLKUo7B3BCJQnvLAA+eN23EpBldpunzxUOGKs VFqClV6VwnGecXGp6N22OFfp9An/pJZbUQ== X-Received: by 2002:a05:6512:39d4:b0:50e:8158:1fae with SMTP id k20-20020a05651239d400b0050e81581faemr7183741lfu.99.1704289372403; Wed, 03 Jan 2024 05:42:52 -0800 (PST) Received: from [192.168.199.125] (178235179036.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.36]) by smtp.gmail.com with ESMTPSA id a5-20020a17090680c500b00a26a4458241sm12720131ejx.18.2024.01.03.05.42.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Jan 2024 05:42:52 -0800 (PST) Message-ID: <6179e3c7-f399-4b0f-abb0-aaf5e549d8d9@linaro.org> Date: Wed, 3 Jan 2024 14:42:49 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/3] phy: qcom: edp: Add support for DT phy mode configuration Content-Language: en-US To: Dmitry Baryshkov , Abel Vesa Cc: Vinod Koul , Kishon Vijay Abraham I , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold , linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org References: <20231219-x1e80100-phy-edp-compatible-refactor-v1-0-f9e77752953d@linaro.org> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3qcYm5JNc5X+JthZOWsbIPSC1Rhxz3JmWIwP1udr5E3oNRe9u2LIEq+wH/toH kpPDhTeMkvt4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b9U/nZvhhdfilEDLe0jKJY0RJErbdRHsalwQCrtq/1ewQpMpsRxXzAjgfRN jc4tgxRWmI+aVTzSRpywNahzZBT695hMz81cVZJoZzaV0KaMTlSnBkrviPz1nIGHYCHJxF9r cIu0GSIyUjZ/7xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 21.12.2023 17:27, Dmitry Baryshkov wrote: > On Tue, 19 Dec 2023 at 22:55, Abel Vesa wrote: >> >> 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 mode to be configured from devicetree. >> >> There has been an off-list discussion on what would be the right way >> to pass on the PHY mode information to the driver and it has been >> concluded that phy-cells is the way to go. This means that basically >> the controller will pass another value (that is, the PHY type) to >> its 'phys' DT property. >> >> For this, we need both the bindings value and the PHY mode value to be >> added as well. >> >> The controller part will follow shortly. But for now, lets see where >> this is going. >> >> There has been another attempt at this 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. > > After several back and forth discussions, I think that this approach > is not correct and not that easy to extend. Instead I'd like to > suggest adding a property to the DP controller, which enables eDP > behaviour (and thus makes DP driver call phy_set_mode()). Something > like this: > dp: displayport-controller@ae0000 { > compatible = "qcom,sm8000-dp"; > /* reg, interrupts, etc */ > edp-interface; > /* or simpler */ > is-edp; > }; > > What do you think? Please excuse my alzheimer, but why did we not go with phy-type after the last discussion? Konrad