Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2257378rdb; Fri, 8 Dec 2023 03:04:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFr2TXSuKZWCOCriWYHN5R+2JaZE4EHCAF9Y9tY/35gCb7Qc5WYayOWWfwlJkiSbngaTEUZ X-Received: by 2002:a05:6a20:8425:b0:190:5e69:c9db with SMTP id c37-20020a056a20842500b001905e69c9dbmr147893pzd.85.1702033486087; Fri, 08 Dec 2023 03:04:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702033486; cv=none; d=google.com; s=arc-20160816; b=scgAWoGc0jQmLkiVu2dpBU22HTgrg/eDCrmsEEJaWHj3PCRvhzq6Ydvp+Yj3W3Xdjj QziRmktKsgtDXwIe9wITDgoRiG0GNCmvcQ68DVIW1uG8AVlZ+IpvXDQOn+2EsC2iME6F vAWSL7j5myOLzy5blGGAER7MiAX6ndP+YsfhM1QCpLUt4F1XV3FlFs1e2ZHqCwhbcm47 HJz/NAHP+qeqREfc0uOv4SZe4gu2ARMyP1rYqHf+LYYSikd3AlTJPAqX5mL+Fw0D17aP ZeTItEigLQgQxj/LIfekmY9GGdKKceiZ/1YNIwviaRD2ZwnwQtC0ItvudV4iqlWLSb2o GSVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=tmWSiLFpH5ilop9PgBwEvCl5zyYcl/sRlYRMt6cwB08=; fh=x9nihIsdLHjSJ6KRyvsauueqwXneElNuRCT3LM+wRYY=; b=PZlNLd6TkogjiyQkj5P5dmV75GeWa+F3fTW8iMc5ZSindGKXdHDNNrAwztHCuiV1wq OcFDz9XwIX5HDsyYjG57Fc7wHGA3xVkfxz51DFdYXacxPzs6ss0VymwuB1mpj+9MGGCm JHib5sDA5QtKYi+DHGLbK+hketu/UiBympPee0bHUEr7hEXypApzRkZV/swXQuUo38oZ YKBKpoJXhNiYuqLRiWJgZPko8M9w/+Vzx/xgIGpaktrR7/kbdw+JwjCCKnf8jD4vGFv1 qImxV0f1o62r+4N9r2UB99OU78LnqUceYtM/p+VXV7/GQ33r8xSWzW+5IKdpxnZJzMn+ UxWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O6pwzduE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id z21-20020a17090ad79500b00286bf61a8b6si1495572pju.184.2023.12.08.03.04.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 03:04:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O6pwzduE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 64B0D85BF2D2; Fri, 8 Dec 2023 03:04:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233366AbjLHLEZ (ORCPT + 99 others); Fri, 8 Dec 2023 06:04:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231828AbjLHLEY (ORCPT ); Fri, 8 Dec 2023 06:04:24 -0500 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0395F1 for ; Fri, 8 Dec 2023 03:04:29 -0800 (PST) Received: by mail-yb1-xb29.google.com with SMTP id 3f1490d57ef6-daf7ed42ea6so2097287276.0 for ; Fri, 08 Dec 2023 03:04:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702033469; x=1702638269; 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=tmWSiLFpH5ilop9PgBwEvCl5zyYcl/sRlYRMt6cwB08=; b=O6pwzduEgfLIEYMWLFQAi2lxdt0lTx/zb4zr52eBLiWuoFV8V7WptdD3WuIgGxovL9 wZz9hJJaBbMyJhAFNhr0QBV0T6X1Cc0YHHhqP5fO2zCVkB4Lr3BT8WRAqhr+uiUj4pI2 LOGvvicm1RnWfcWW+0UEAtikHmBFdhM6GPbxjeRU9x1DZ6oovsQ3zRl2xWYeCk5G1YeF hVz3QpurKLy1fUVXizgdpJ4qUs+3aJ/55waeN8GESHBAMejfah1nPPOl/d2CKdD97/kI vjgeenHJ0GECd2EcR44Nn0cDL4yZeL6lwx1f9uzxjYu7Dn1L1cvet9gjuJKQOsVxDjh4 P0xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702033469; x=1702638269; 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=tmWSiLFpH5ilop9PgBwEvCl5zyYcl/sRlYRMt6cwB08=; b=rUQTDT5rGNBTcF67p+qQizXwiiy4ihx2b9ZOjtKVhjTAnixDxu6WlpmmctgVducWjc oVNuAkpcBVcz/CyDwbldXVx5NLjMqHZQHomeT6Gf9DI1y+8I0TLXKQSpxRvcGQtsNhL0 I6ICJZDiLXFDdEWgwhBIK/niULmGWoTFUIr4jfOYVA9hsv0f/sAmB5nltnliYyzvuntw vG2UVZ/ECVt7XoVgQePljMmgMTz1HJ8wqeLwaQGtKpqxT8nb/urVlpcTHZeWbinXcBEO YF0GOWX7m4PlwOlfjCN23mO6mD41ZelI39r5Aul1HoAw0rasuzIvjEsmtUR1wqAO4j6V GeMA== X-Gm-Message-State: AOJu0YwamyBDXzdU0sYBUouPlNmyIDm7RAxCHq3iJorXa7MAlJpU1XOl O6heqVhMHEJNVeUf18/wGOmJ1Wr8dx+A++p1FZmHuA== X-Received: by 2002:a81:4312:0:b0:5da:2235:493 with SMTP id q18-20020a814312000000b005da22350493mr3478692ywa.10.1702033469187; Fri, 08 Dec 2023 03:04:29 -0800 (PST) MIME-Version: 1.0 References: <20231122-phy-qualcomm-edp-x1e80100-v3-0-576fc4e9559d@linaro.org> <20231122-phy-qualcomm-edp-x1e80100-v3-2-576fc4e9559d@linaro.org> <545d3ace-66e5-4470-b3a4-cbdac5ae473d@linaro.org> In-Reply-To: From: Dmitry Baryshkov Date: Fri, 8 Dec 2023 13:04:18 +0200 Message-ID: Subject: Re: [PATCH v3 2/3] dt-bindings: phy: qcom-edp: Add X1E80100 PHY compatibles To: Krzysztof Kozlowski Cc: Konrad Dybcio , Abel Vesa , Andy Gross , Bjorn Andersson , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abhinav Kumar , Johan Hovold , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 08 Dec 2023 03:04:39 -0800 (PST) On Fri, 8 Dec 2023 at 09:47, Krzysztof Kozlowski wrote: > > On 07/12/2023 20:16, Konrad Dybcio wrote: > > > > > > On 12/7/23 17:51, Krzysztof Kozlowski wrote: > > > > [...] > > > >>> +allOf: > >>> + - if: > >>> + properties: > >>> + compatible: > >>> + contains: > >>> + enum: > >>> + - qcom,x1e80100-dp-phy > >>> + then: > >>> + properties: > >>> + phy-type: > >>> + description: DP (default) or eDP type > >> > >> Properties must be defined in top-level "properties:" block. In > >> allOf:if:then you only disallow them for other variants. > >> > >>> + enum: [ 6, 13 ] > >>> + default: 6 > >> > >> Anyway, I was thinking this should be rather argument to phy-cells. > > I'm not sure I'm for this, because the results would be: > > > > --- device.dts --- > > &dp_controller0 { > > phys = <&dp_phy0 PHY_EDP>; > > }; > > > > &dp_controller1 { > > phys = <&dp_phy1 PHY_DP>; > > }; > > ------------------ > > > > as opposed to: > > > > --- device.dts --- > > &dp_phy0 { > > phy-type ; > > }; > > > > &dp_phy1 { > > phy-type = ; > > }; > > ------------------ > > Which is exactly what I proposed/wanted to see. > > > > > i.e., we would be saying "this board is connected to this phy > > instead" vs "this phy is of this type on this board". > > > > While none of them really fit the "same hw, different config" > > situation, I'd vote for the latter one being closer to the > > truth > > Then maybe I miss the bigger picture, but commit msg clearly says: > "multiple PHYs that can work in both eDP or DP mode" > > If this is not the case, describe the hardware correctly in the commit > msg, so people will not ask stupid questions... There are multiple PHYs (each of them at its own address space). Each of the PHYs in question can be used either for the DisplayPort output (directly or through the USB-C) or to drive the eDP panel. Same applies to the displayport-controller. It can either drive the DP or eDP output, hardware-wise it is the same. -- With best wishes Dmitry