Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp447556lqg; Fri, 1 Mar 2024 09:52:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUFZcRTEV0lTDIGkWN5VPH/8D6k/7BvzNrsLTrcwcfIb6W0UO/q7tlNlYqcoFGDGOlSLH1n0zWQ+Ft3XnLyrjNHT9494PEKuZOLUHe/7Q== X-Google-Smtp-Source: AGHT+IEZy7m/MGmyepEkaX/a7/0GDZKd4dZlrF5WJhOhsiWcmwVQLtX8sH+ANpXDc/l2hutfz5Ps X-Received: by 2002:ac8:7dcb:0:b0:42e:d2cc:1365 with SMTP id c11-20020ac87dcb000000b0042ed2cc1365mr1544879qte.28.1709315570563; Fri, 01 Mar 2024 09:52:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709315570; cv=pass; d=google.com; s=arc-20160816; b=TyCg3ootxOLkJxOkmpiu5ezl0m9NRPmXq0kwRjMN8VVCMOH/ccUgGT5zlDRGtkWtau 3n3z1VTMZdHLsXS9MwESFkb1jGS2CdmqAypMcn9V892NiH6B3LQm9+KVTfcrIE8Qa2sb mHV35k+kcfd3a5FSeVNQk+bY1YYR2IAPCgii9NO+31DCQ+Hr6e8TyI7RJZNiklhr+yM8 2DesFev4fmKaIR29KOBX0ZRM8Yk6G23TVn4fbFeDM2fnOVw447ltljPWL2HSLW/aPW4R VSoASiB7HGl4kfnNKl2o116cWODs5Y01MoeMc/leeVBNWEAlP1HitDOSJbLZsBkvLvk2 Tqbg== ARC-Message-Signature: i=2; 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=LL1sqS88sa7mXygdy6EK47eQNhzx7M+LnzFQfhF8sq0=; fh=QkcFRJOKmN2mAZPhxblGK6nJCWrmiakROwxGj634LMA=; b=jgdyj3yI38sRpQ9SKGmxDOAPPLKRC31v6afhCh9Git+8s8Ql9C2rE2zkwOZcDz8bk5 IqHHwDFb97Fj8/WgCttaOPDYtPhz8XBQQKlU93FiBKTV25MoulgOvW1OLzxEmDUeyUaC N1wnZJ4Ac+xrgfeNCrXdYxa06MXzb4NSRwbGEWT+scFiDZqA90SNdvzpEmEBjBGtEHM3 ERPSV4Rx2Y64TA2OvWJxQr2Yfnz/1cVZO9w0WSesbDkoJ2Sd2P/4JDGS9Pivmo8miuFg 5OVO3Ric29XCo/195GIb6whDJ9x8JPmOnUJqujX9w1yoBTCysuxxq1jBUzPcmSh65oZs 825Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HrVAiMut; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-88868-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88868-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h21-20020ac846d5000000b0042ea429226bsi3661753qto.409.2024.03.01.09.52.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:52:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88868-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HrVAiMut; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-88868-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88868-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 260681C255C1 for ; Fri, 1 Mar 2024 17:52:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 647CC364CC; Fri, 1 Mar 2024 17:52:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HrVAiMut" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 876DA282E3; Fri, 1 Mar 2024 17:52:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709315528; cv=none; b=qltlEIgUMOW2aOhwpgpXAL35yLHVeEsvqIPMrsbR+A/jDlCNEdOpS+/liXq1wna3d4qzycZ19uOjmSGBgndcn6i6iAseRKdJ72+ps+g4LWeTnOCH4L5Atk10PNRHbkBBIdG/9Aox+3CWMVXFOJ7ecS1xf8RjX7oYW6LgMdGE1rU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709315528; c=relaxed/simple; bh=eXoHHqlUv+ocYn2KKFi9ZKx6ERkFZTOcTcwpaPExuVI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mous2Oc8vdsGNGvamGwptYz3dzUtN81iwLBeByoURqGYI3Q+QI0NoCUVIk4zh0o1lEJTaldBrsMFIZZUUqfrkduqszcs9dw6gMSsC/nvYJb+eR+aA+SGRfxu+GgG0/OWbaWq62tiYUiWQbtpXJRfPb/mqzuVccmcZPNIE6Mwa3g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HrVAiMut; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6F5CC433F1; Fri, 1 Mar 2024 17:52:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709315528; bh=eXoHHqlUv+ocYn2KKFi9ZKx6ERkFZTOcTcwpaPExuVI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HrVAiMutZQezfJbYV3TUqSN6fprFMBM/1O47qXOKKky/Ym8cG43fYrDXnI20zLv9Y QsmCu/fK9X4wOvuy+4yPp9VluDpMkz7ofkMzL3yOdJ9NcLCcBfEaXC7+4Gv8syNF8c uum0r18Id0vJu2MzhTVjx61Ae0YDKUkbX9tm2dxc9Ioytz6248wDLtu/J3RTlC8vQ8 lSeYAd/4M0oFNwKaxqt71JBDnJIRw2s7xmgYy+POh4Cqmb4fKkFmYmQ0Y6R4o1Cuzc nSTBS6113X6qTIdNteQH0POeFH46qJDiCnADQQ/UcWHenY+HUY3I4l9B3L8LmH3/de vp+YA2GNpHBvA== Date: Fri, 1 Mar 2024 11:52:05 -0600 From: Rob Herring To: Krzysztof Kozlowski Cc: Abel Vesa , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Krzysztof Kozlowski , Conor Dooley , Kuogee Hsieh , Bjorn Andersson , Konrad Dybcio , Johan Hovold , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/3] dt-bindings: display: msm: dp-controller: document X1E80100 compatible Message-ID: <20240301175205.GB2438612-robh@kernel.org> References: <20240222-x1e80100-display-refactor-connector-v2-0-bd4197dfceab@linaro.org> <20240222-x1e80100-display-refactor-connector-v2-1-bd4197dfceab@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: On Tue, Feb 27, 2024 at 04:45:25PM +0100, Krzysztof Kozlowski wrote: > On 22/02/2024 16:55, Abel Vesa wrote: > > Add the X1E80100 to the list of compatibles and document the is-edp > > flag. The controllers are expected to operate in DP mode by default, > > and this flag can be used to select eDP mode. > > > > Signed-off-by: Abel Vesa > > --- > > Documentation/devicetree/bindings/display/msm/dp-controller.yaml | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml > > index ae53cbfb2193..ed11852e403d 100644 > > --- a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml > > +++ b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml > > @@ -27,6 +27,7 @@ properties: > > - qcom,sdm845-dp > > - qcom,sm8350-dp > > - qcom,sm8650-dp > > + - qcom,x1e80100-dp > > - items: > > - enum: > > - qcom,sm8150-dp > > @@ -73,6 +74,11 @@ properties: > > - description: phy 0 parent > > - description: phy 1 parent > > > > + is-edp: > > + $ref: /schemas/types.yaml#/definitions/flag > > + description: > > + Tells the controller to switch to eDP mode > > > DP controller cannot be edp, so property "is-edp" is confusing. Probably > you want to choose some phy mode, so you should rather use "phy-mode" > property. I am sure we've been here... phy-mode belongs in the phy node though. Not that you couldn't look in the phy node and see, but everyone likes all the properties they need nicely packaged up in their driver's node. > Anyway, if you define completely new property without vendor prefix, > that's a generic property, so you need to put it in some common schema > for all Display Controllers, not only Qualcomm. I'm trying to unsee what the driver is doing... Hard-coding the connector type and some instance indices. Uhhhh! I'm sure I'm to blame for rejecting those in DT. I've suggested connector nodes in the past. More generally, whatever is attached at the other end (as it could be a bridge rather than a connector) knows what mode is needed. It's simple negotiation. Each end presents what they support. You take the union of the list(s) and get the mode. If there's more than one, then the kernel or user gets to choose. Qualcomm is not the only one with this problem. Solve it for everyone... Rob