Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2294475rdb; Fri, 8 Dec 2023 04:18:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IENQEJvdn4PZjdMhgSrzZ7IFFFqyi90rvXB9jp+wUhe8mKaLmP9Vh9uplvJV0Nz31TUFVOC X-Received: by 2002:a05:6a20:914a:b0:18f:f86f:bcdb with SMTP id x10-20020a056a20914a00b0018ff86fbcdbmr3018737pzc.93.1702037896572; Fri, 08 Dec 2023 04:18:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702037896; cv=none; d=google.com; s=arc-20160816; b=Qp01EdM6snhQ/3yysmN9IO/hSAidOKlvBbO5MQ18YEZtH3rjEfXV20vWc7aWHpt8Rk sQHwX0A0gtW9emtE+GFaimqYSXUwXUObcnFQSoLAazbb1IjJJ7eE8eGATAld0nF+dhRo qAPIT3IXVPTzSA24Fam32xLDCzpGW2xkedFpWkpJ+RsTqTxvQkA8v185MywYniOyXS1S y9gFsBkhRh8APvADs2KrqYKPFpZfI0hebQFJAYVp9XFElZMeEOjqC5C5fRXo8T2P3Eyc JJA+gRRFf1NdPSAeRoGE9kp3nLMqLzBjXoLf4fNHX4m/aEY5YtnOWrlEO9nPuOnC2lpj zAaQ== 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=DaQSgVgjNOrxYGF+6uUUzWR0hTH/PyjaW2hJgF8XM1Y=; fh=x9nihIsdLHjSJ6KRyvsauueqwXneElNuRCT3LM+wRYY=; b=tVGHodfBC0ariJIVeneHFocaVvfl82ovmVBdWi2AdUHlgaR5kVrmXL23wVrwv3LNyl L/v6t2yWwsP5J2kLyFyFI+CIIujo8DxY/20irc62+ENAa0x6O5Pc55N3E4leDVPpZZor tgeHecgf/IbIlOvuNcFHw3UG4NHHQRjW5RztDKbZ+yElT/sH5/jkyXN8qcNsPYHIvpPQ aYCJqDL+T9Yu0fjuG09yOQBXxmiCtS5mS7KX70vJ8pL3AkGmub9RPXX9tRgAbNpOilYq I0QVkxpZPE2N+ZjetcvwD5ENVdxJQOcxugQfhflQfpUTUNPIC1sRsZ20rXRnER1Ph0lF y9XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R2QGvqbJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id h18-20020a656392000000b005be3c3748c7si1406078pgv.38.2023.12.08.04.18.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 04:18:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R2QGvqbJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id C98D28246858; Fri, 8 Dec 2023 04:18:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233394AbjLHMRl (ORCPT + 99 others); Fri, 8 Dec 2023 07:17:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233520AbjLHMRh (ORCPT ); Fri, 8 Dec 2023 07:17:37 -0500 Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5894E1986 for ; Fri, 8 Dec 2023 04:17:43 -0800 (PST) Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-5d7b1a8ec90so16758347b3.2 for ; Fri, 08 Dec 2023 04:17:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702037862; x=1702642662; 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=DaQSgVgjNOrxYGF+6uUUzWR0hTH/PyjaW2hJgF8XM1Y=; b=R2QGvqbJ1jJSIcQw1HwxWijEwRt4+J4vTNT+X6LS5cB8iJhhbLGifI7JPmRrlHqNbT CW2HB4Euz4N7lhwPIj7GH1v5eRPSdtIHpj6Xz228uZL3oPYj2ynWzhPpltVR4BdPpG6s 4TdVnIaaUq5KoE9jSUumKBSquel9YYpQdCTbxsCKYxjEmId8GWBcmgvP84Acj1xLzHDZ Xd3JWnNsUHS6+TMtfJaMLdNBugijLKnYX6Xw2frKpXFZb8URGfHC8Il5/+UOtXAqnAdf KLiFQEqI4w+7SuGsNLVrm0BKd37aQ3UilB1LQ3BTNjxGmixtSH8q78CyfH8jnN2wmf2E H8Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702037862; x=1702642662; 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=DaQSgVgjNOrxYGF+6uUUzWR0hTH/PyjaW2hJgF8XM1Y=; b=HU4TU8GCgc5s1fNKmACrscgmtHExMdgSegpczy9wtz3qlsdhGUA1kljPXZms+SJTTL uaLeBSSdlTz9hm+mm+5knlNgazy9pBtkac7h2NjSWJVvJXu87VvqWyk0cBkd0TWAuCIT 54j28bZGcu2JQcy/d6aoFIsgknk+9FCv5ZGko1jUVpKZ1xJ8U++nGX5vE1b0tuexTpX+ 3gOehE8pWmMCFK1GMAP12c8kAd42p3mfGx64pclj7kl7luq765i/2tHbyRH47Zz6gJtx xmgTb3E69SVFYeKdSXAAs4calXsdYDFzrlYp0D51m7f5DaeIoRju1Do0DXHZ5rJkE6K1 Onrg== X-Gm-Message-State: AOJu0YxTDhhmtrQ/7HHm5PVdo6+43kaK/PfCJUrhtVmCe9nyVBChOCVX 6TJ8Jtbo8ZWNCwNI2CuTPvolQ5jazpUt1D21j5V2Hg== X-Received: by 2002:a81:af02:0:b0:5d7:1940:8dd1 with SMTP id n2-20020a81af02000000b005d719408dd1mr3016048ywh.56.1702037862435; Fri, 08 Dec 2023 04:17:42 -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 14:17:31 +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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 08 Dec 2023 04:18:05 -0800 (PST) On Fri, 8 Dec 2023 at 13:45, Krzysztof Kozlowski wrote: > > On 08/12/2023 12:04, Dmitry Baryshkov wrote: > > 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. > > Therefore what I proposed was correct - the block which uses the phy > configures its mode. Because this part: > "this phy is of this type on this board". > is not true. The phy is both types. But hopefully you don't mean using #phy-cells here. There are no sub-PHYs or anything like that. -- With best wishes Dmitry