Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1482158lqg; Sun, 3 Mar 2024 12:17:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCURNEXjsAc3ubZOlpDHFc85eG6PoI7oKm7BkemKFkkUJnXinrIOUylUS3NUXtv9UtQvv+OIdIpUzaucPkwkQYS/gH0xe9HpgY5dfyCqDQ== X-Google-Smtp-Source: AGHT+IEBf3dSY502/x7Vl60a3Bgbc1FRIj/qYx+/zbRnt8Ulli97Bk82epDRyLq5Gze+2yE0qvM2 X-Received: by 2002:a17:902:ce8c:b0:1dc:6b99:a547 with SMTP id f12-20020a170902ce8c00b001dc6b99a547mr11074046plg.47.1709497073829; Sun, 03 Mar 2024 12:17:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709497073; cv=pass; d=google.com; s=arc-20160816; b=HccxIw47wdZmfmrxLfEgL1e30lWcHvlS90TpDy1Ba3RKvyDMVutPsWbQagb1rrfbUl ehon1HAQYTburZRd9kmlYjqdU/yakgSy3wXby65S++WybU/1EuQ0g2Scnd2JSNg7pKTm yMSklV9OFICl8gR+51wreNt4zXyoNfhg1k3rV5ztEYu1P53S6EyQNKCyfnguRr+QQnNL tgoPBtXArCqa62Yjx6uTFaIZdqh4sberS1uf14/9tzNi8WL669gN50fx75/407oZD1sc ZQnUHPAF+Ahok+Yqw5fdi38QES/VAfGKQJRarEY+Cq/esLtjHawN95qOALztzfHZ0HY2 dRKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=0oLMJ7QyQW9M1dcmvX6Tku2vCY05PL1Xxf4L46VwXmk=; fh=yqXsZyWwHO0RtVpYTjHqfmtF2XNY7YE9pC0LBF9eG/c=; b=RKXspq1Sot5AooRjuSJY/2lybamWVebvwuaVynDpHkW9W5u+xcr+BRzSV6OqUhbDaX 8D0SBEqBo1319UEl20PeWjFCvIvOZn5Giigc2OGJBs7c8SMi5JgveETo58KdVNJD7Wk/ v3RK0RuwYx6Vi2LpmqHBaZQeazPtrNXi7usbemjMtI91z5wCvLxzPRt+euZvIzh0vaFD YRuZYzG6+6fNyyVnujosmVrBxt1gOSGlb1l7fcY7rwKYtcZtr3jMRRevTDZ2oOaacboa E221KwwJG2TQG/TsqG9AaYiAb8VpfIJsgoP96cR9eFkBsPh9ONO/TGw/8z6wSWg1r+1g RXOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WaISdvOo; 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-89895-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89895-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. [139.178.88.99]) by mx.google.com with ESMTPS id j21-20020a17090a841500b0029a5eba078asi9318959pjn.142.2024.03.03.12.17.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 12:17:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89895-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WaISdvOo; 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-89895-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89895-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 77DA128166B for ; Sun, 3 Mar 2024 20:17:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D93322AE90; Sun, 3 Mar 2024 20:17:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="WaISdvOo" Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) (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 EE04B79DB2 for ; Sun, 3 Mar 2024 20:17:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709497062; cv=none; b=L3m3V4bhqDNEUcAvT7P7jII7ZHpjKlBkLJTOdFDLDDBr3AX9RdpU2XU/yvv0OB1sH1ug00mnA+yhXIddLCcIrUs3iHEua/lszmnBVnXN6sCglWZ9pPdOdAFCYYtofqmxNcY15Otr0RnBqDe/Mgr6JeEPFyHglCZilmmqtydNIvM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709497062; c=relaxed/simple; bh=Pr/EGbS52tudhJ/h/9+tZQSoXN2fkwJrEeJMk/YQ648=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=tHhf9/E7rHrBiv41HkLN2G8Ddb2F6ITkkE95ZRMJGKVjWBCisbJnyxkvIL7dGh6jXMpbNwr6TFMFovJz2mD31IJ2QG6oct7yNwpCsHnPM+qYvl0yRL7Ptg6Br3wugnX7fbjufjmWyuM2p5PfL4Wk+tM+L3/cs7iSHvu3QsDjzJw= 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=WaISdvOo; arc=none smtp.client-ip=209.85.219.170 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-yb1-f170.google.com with SMTP id 3f1490d57ef6-dcbcea9c261so3830392276.3 for ; Sun, 03 Mar 2024 12:17:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709497060; x=1710101860; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0oLMJ7QyQW9M1dcmvX6Tku2vCY05PL1Xxf4L46VwXmk=; b=WaISdvOoxG3aBepSnEyZUPAWYtz/cshUCQKS7IoB/uq3FfvAZdKXObpIwdLPf9BHtk 1bHDpWL/QfiGLTLfDvrUQLtUgRovgSMf4xJKKOReHp6swyzOIXSGDey/7sqcRdlnY98V TEqDcy2LqRpx4EBnXfYZt1wi21I54LeBllBmORD5VukpFoqVWk8ZbpEeQZFIzwHI3YIb V9dva1VV8/bX9GF1vtPVLCj0AdpFwG4J0mYMhtFrOAT90+4dqJt1k9BBHjiO+lvCaurB w4slsIHibjSDRYRjC7zg3M2OT2Mr6QKta1XAKd0a83s6gdEAbrciFX+p5kzbPGTyN7Hm gfAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709497060; x=1710101860; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0oLMJ7QyQW9M1dcmvX6Tku2vCY05PL1Xxf4L46VwXmk=; b=t7UPCtlmqXrkD+6TnDx+ia+irHLCQxMsN41iqp9dSik+Fsatqt+cVijuBqrst5TyT0 LSa40UANAv98yCMytCrfCGXv4ahaIpAkerzw5AQ8Yh+aNdG+4hBUfqmqkTBXvUccFcFy 7zW84No7W5CXHykzALhpBk8sWb8uTew5AgS4zbfmNhTPwNSbJf3pcrdk5OvThoHmRtuD SongHUCPQGwPI62i3KIqMgK2SJxY8BIE/c0eL/eMOrSIV6HyWmFFRoHmyupg2BGL4E7m z1iXMLUUFka3ToydT3/OP+NGrHOvr2T9S43U76zfQv2DhILb5knieF/wJSQ8e/OdXgDl toqA== X-Forwarded-Encrypted: i=1; AJvYcCVIVI1D9NIbsSqSqGKwg/zujiI6Qj5W4mOiy1lttt79uaGHKgMmmSPxFrlpnPrgIqSn91bhUv0dhRT57cHaJTzfti71q5yssB5itFAe X-Gm-Message-State: AOJu0YyitTHEXrbgo+lufrhO5owlCaBov7ebEr1hntvxCwU3Zbscq2Pp DuvPQQ/9jelhio01TO3tkDAA3SE3n57+Pmu+DCeKqt8tXhvmh+mQR3kP0yI04ptl7oBBvYTw21y Q5PLeoc795aY2/SfV9ftvvt4ChNrkiTst88FsdA== X-Received: by 2002:a81:4744:0:b0:608:b5e4:9576 with SMTP id u65-20020a814744000000b00608b5e49576mr4921561ywa.45.1709497059898; Sun, 03 Mar 2024 12:17:39 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240222-x1e80100-display-refactor-connector-v2-0-bd4197dfceab@linaro.org> <20240222-x1e80100-display-refactor-connector-v2-1-bd4197dfceab@linaro.org> <20240301175205.GB2438612-robh@kernel.org> In-Reply-To: <20240301175205.GB2438612-robh@kernel.org> From: Dmitry Baryshkov Date: Sun, 3 Mar 2024 22:17:28 +0200 Message-ID: Subject: Re: [PATCH v2 1/3] dt-bindings: display: msm: dp-controller: document X1E80100 compatible To: Rob Herring Cc: Krzysztof Kozlowski , Abel Vesa , Rob Clark , Abhinav Kumar , 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 Content-Type: text/plain; charset="UTF-8" On Fri, 1 Mar 2024 at 19:52, Rob Herring wrote: > > 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. Is there a generic schema for DisplayPort controllers? I think there is none at this point. We can probably add it, declaring is-edp property, link-frequencies, etc. However Mediatek already uses a different option to specify supported link frequencies. > > 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. Once this patchset is accepted (in this or that or whatever else form), we will cleanup most of those hardcoded types. > > 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. It's not that easy. First, probing of the bridge chain differs slightly depending on whether the controller is eDP or DP controller. eDP should use AUX BUS, while DP (currently) doesn't use it. More importantly, error conditions differ too. For example, in the DP case it is perfectly fine to have nothing attached to the controller. It just means that the display chain needs no additional handling and the HPD pin will be handled by the controller itself. In the eDP case if neither a panel nor a bridge are attached, it is considered to be an error and thus the driver will return probe error. > Qualcomm is not the only one with this problem. Solve it for everyone... -- With best wishes Dmitry