Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp435530rdb; Mon, 15 Jan 2024 02:01:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpJOz2syv3KpNHzfRhgnIGLSp+XTMmtGKCbwVkO5vjElf5rqv/DgHdoVfoC1P+aZ62wKak X-Received: by 2002:a05:6402:698:b0:557:8cb9:909a with SMTP id f24-20020a056402069800b005578cb9909amr2503362edy.60.1705312889737; Mon, 15 Jan 2024 02:01:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705312889; cv=none; d=google.com; s=arc-20160816; b=0Hq1ExYjvv8NMoYHTn7Cnh3faTfmvFYl+kbL78nhk6HfmM504c7/MdG8L4d0+o4Wxs JBfRcuqbeKLa/t6YXacfZb2bktjQsRsE6ZdGMuosTMnPyHRMZrdOvSiXUmsumdln+ObT 0qqIRWySlsF+xnadb46aYWSTk9rT5RO0QSf5QkliQ2OYgzK0ERhyH7ruy5M6JZBGgK9W MsyYd3p27x4k8gNewxW04+LA3CHhKi1F0S2iLlqMBiOri8vNGVpFhtcblxX61EFfWxxA 4S6Lxkl3fsTFK8rpPPs0SDI88G9w6OuYhCzPA1NRxV8Ub4mTjO4QVd633A6z/zfQGjuT CxCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zZFT1yFxYlVkgqvKMiV1rHlNH9vvM1PcstUoRcD6u4I=; fh=DWJaaOYRsVLY7PuH3LHhlj3JT5EzN2eR7PibTMnrEHY=; b=liuo/0forD93afXEWjgNzDk/gxx6pYumkZFALt5S0Mrj6UH5GWi6SMOjjuuyhLDJp3 wbONh7yzRcRzo37RucS+qeJjJj3qDj9V2WWLOJ5TPlxThsgNsAkrjTsjb6CMzYC5ZiVb yR3qNo5f4FeO3ySumIZVYFGSRWSUjJJjDpV8BE+J4ipUwMlWbMVt1Y3psYZIIW64yXyk ZydI+IDbs43uAkfX1RdG8WdqnCPlpwvGvjPY0A5NB33c8rEqWWZNR+2iVimVOOkjHnU9 WorEjdq5Rox8c/93+fz/Mj3l0s5uP1scsVQRk3xfDnP/BjmVLHKEjb6bMIliFBu1yYbN YTrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OHlw7b5l; spf=pass (google.com: domain of linux-kernel+bounces-25823-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25823-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 h13-20020a0564020e0d00b0054f64f49accsi3743799edh.305.2024.01.15.02.01.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 02:01:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25823-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=OHlw7b5l; spf=pass (google.com: domain of linux-kernel+bounces-25823-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25823-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 2D7581F22112 for ; Mon, 15 Jan 2024 09:52:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62464E579; Mon, 15 Jan 2024 09:52:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="OHlw7b5l" Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (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 0C87DF50D for ; Mon, 15 Jan 2024 09:52:12 +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-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-555bd21f9fdso9495038a12.0 for ; Mon, 15 Jan 2024 01:52:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705312331; x=1705917131; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=zZFT1yFxYlVkgqvKMiV1rHlNH9vvM1PcstUoRcD6u4I=; b=OHlw7b5lY7AgyX/NVhm0cm6539Bm8DPEV2E6yqOYmUWMOtTgP5WdcY+0WP0+VaIJOq PAdXFFOsepa8G6uneknX4woqZm6XKUcLVgRRHAB+1eRvgi3oA+Y+zfHpMu/NXzraxcz3 m6Ok91hSGKR/zMOsxdmRD2wemAnKqVrqg+M7AgwwFv/XkNsGPelwocW+UfLbUI1BKx9F LOg1r5iNJ811vf0H7TQsVGc46eMb4iPSnghnDPbs9N7m3+ZdbwR2dDxnq3NZIQU8gF09 +Z6Q01Hhz0qEFsvaHCwaNW9HY6gGkP1d1Sk19Z/v+ouWJQrH65aYalv1U4zQy6IAcJJT mAGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705312331; x=1705917131; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zZFT1yFxYlVkgqvKMiV1rHlNH9vvM1PcstUoRcD6u4I=; b=mHSLNsDhu49ar2VMmR/HYRoij8j+9yzkAln45JlyLNfAD7mFCc/66atZYlH+nNfbVn GO+y1fVdMmNgKXkQdukosrkyFLMVvGYZnCfJ8vpTYX5cqvTxbfPJ96bNpzqEpNqfY7Ve LkwMdPjLXoN+EQPxuWw68vALCNswOwEOxad+lqBM3RIvlQYS6TdbvyV6xYT6ylKXetR4 CpDJ0NxgUNACfRmLlcYnhiYJGruD9sPDhd/4K447sFhA3n/Ew20MO4/eA8LTsTaTan/Q cIirk5ipWJr+0LQlWDqXwXrIj+yiOWyDuTlSpJDXdDZedQlL1fcZNh5IMG72oEFNhggO a3Fg== X-Gm-Message-State: AOJu0YyAiKdHPM2T/zT9W80V2JbKnVYxUTxQC8m71ZXnf3iuxdM3CQ8l bWKuVXX8SMO1qnultb8MQzHi7hp0IWoHcg== X-Received: by 2002:a17:906:3750:b0:a23:71ca:2bb4 with SMTP id e16-20020a170906375000b00a2371ca2bb4mr2367128ejc.144.1705312331209; Mon, 15 Jan 2024 01:52:11 -0800 (PST) Received: from linaro.org ([79.115.23.25]) by smtp.gmail.com with ESMTPSA id st7-20020a170907c08700b00a2cfa8edbcesm3342141ejc.199.2024.01.15.01.52.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 01:52:10 -0800 (PST) Date: Mon, 15 Jan 2024 11:52:09 +0200 From: Abel Vesa To: Konrad Dybcio Cc: Dmitry Baryshkov , 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 Subject: Re: [PATCH 0/3] phy: qcom: edp: Add support for DT phy mode configuration Message-ID: References: <20231219-x1e80100-phy-edp-compatible-refactor-v1-0-f9e77752953d@linaro.org> <6179e3c7-f399-4b0f-abb0-aaf5e549d8d9@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=us-ascii Content-Disposition: inline In-Reply-To: <6179e3c7-f399-4b0f-abb0-aaf5e549d8d9@linaro.org> On 24-01-03 14:42:49, Konrad Dybcio wrote: > 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? phy-type would be a property of the phy. That way we would need pass the mode to the controller. So it was concluded that passing that information from the controller via phy_set_mode is more straightforward. > > Konrad