Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2000605iog; Sun, 19 Jun 2022 04:52:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vGm0dqPQZIur7xritW7YJuXSDPuAo6n1nhq7GkNTUZMp/AWHzsKRijEgHynCu6FVEeLtPc X-Received: by 2002:aa7:d5c9:0:b0:435:8099:30e6 with SMTP id d9-20020aa7d5c9000000b00435809930e6mr634922eds.384.1655639539402; Sun, 19 Jun 2022 04:52:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655639539; cv=none; d=google.com; s=arc-20160816; b=NY7v7PcdU804OmzCdQ1MgeLsTNpcePt4DIx4hs6TFZLkiU6HgfKKFXlsdjXRZnqLR5 KHzMpANfzfCr8cnJcB+P3QRe1GQGZD/QEW5By31cFbdYaxlMMEihHwFgEJdC84xLbsTb TGJ6NCFCuML+i2ijt/dv41O8pcol2ka16hFxBlJyWjIIhzQHMSOFi5g/tNGUu+J23mPv 5trXgLiGMTEMMqEzjOVcgR0wIFaMNq8M3Z073T4heffWDnNEEcJWJIRwLkbrxq14RS0z oU1cBzsPr0oM71Pf4PXr+zBPKb23oUPvAYefTI8QKu5IrZOi/KQEAOHFxyyjCiadqx4q UZ2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YnGwRhsQBkxYAnVmuKe5h12qgOtj1Xt3xoLVcSICx4c=; b=LBu+Dr8IcWYHnJG3bkJnJqYdhxOn3EL+D1iJ/Mp7jnnFlla1kxBAlWYA8Q4C2eYt2T T8YGreD9ZSf2eQgix5+y3/+KcPr0fx9bgfYuZh5u044r5PCnNHxRqSKiEO0Ex/xXO2VG zRoI3A1xbBcit+6HB4d79Nh3X0oB3lAnMDONPE4hCEUDOsZ6ggz7CcvU1Mtz2pPjttmY YTJp9ZGNdZ4u0tjaY9W7bFbPXhREuBOYIzZgHGtjyXGXWzhdsOadK3yQyYTeS7qt134m UcUMv57/B0ZNLWzofbQU1X4hsLqRfvYQvl/VkPrKR1UGJ6U+0m/EBx/6MHTektlvgQoC 2TeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=JUHkgqIQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n14-20020a05640205ce00b0042e1708c0ebsi9061568edx.579.2022.06.19.04.51.54; Sun, 19 Jun 2022 04:52:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=JUHkgqIQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236499AbiFSLkc (ORCPT + 99 others); Sun, 19 Jun 2022 07:40:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229993AbiFSLkb (ORCPT ); Sun, 19 Jun 2022 07:40:31 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E31211A25; Sun, 19 Jun 2022 04:40:29 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id BCC3925E; Sun, 19 Jun 2022 13:40:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1655638826; bh=F985BgbPk6OEp+5ogkDCv/89Z7ithnzpRugLwEVYEp8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JUHkgqIQ4eCmyE3s1Ug0PS5cPnbkHC1bVg5u4Kzwc9F7zsf4U4y7zVpSYYhXRdz3D W0psvcSnd25rEngNNlURd57Ohq3pRoND2QH76OMOuuaz98Q82wDLZ7w4Q3fiJe8boX fxZERRMUkJZzKAfXZlMeBapvfLj/GVg+N0MPpeyk= Date: Sun, 19 Jun 2022 14:40:12 +0300 From: Laurent Pinchart To: Krzysztof Kozlowski Cc: Chunfeng Yun , Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Anurag Kumar Vulisha , Michal Simek , Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Anderson Subject: Re: [PATCH] dt-bindings: phy: make phy-cells description a text Message-ID: References: <20220619113325.21396-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220619113325.21396-1-krzysztof.kozlowski@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Krzysztof, Thank you for the patch. On Sun, Jun 19, 2022 at 01:33:25PM +0200, Krzysztof Kozlowski wrote: > The description field is a string, so using YAML inside phy-cells > description is not actually helpful. Does it hurt though ? For xlnx,zynqmp-psgtr.yaml I wrote it that way to prepare for a future where it could be described using a YAML schema (but such future may never come). > Make it a proper text. > > Signed-off-by: Krzysztof Kozlowski > --- > .../bindings/phy/mediatek,tphy.yaml | 14 ++++---- > .../bindings/phy/mediatek,xsphy.yaml | 10 +++--- > .../bindings/phy/xlnx,zynqmp-psgtr.yaml | 32 ++++++++----------- > 3 files changed, 23 insertions(+), 33 deletions(-) > > diff --git a/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml b/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml > index 4b638c1d4221..bd0e4c4915ed 100644 > --- a/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml > +++ b/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml > @@ -154,14 +154,12 @@ patternProperties: > "#phy-cells": > const: 1 > description: | > - The cells contain the following arguments. > - > - - description: The PHY type > - enum: > - - PHY_TYPE_USB2 > - - PHY_TYPE_USB3 > - - PHY_TYPE_PCIE > - - PHY_TYPE_SATA > + The cells contain the following arguments:: > + - The PHY type:: > + - PHY_TYPE_USB2 > + - PHY_TYPE_USB3 > + - PHY_TYPE_PCIE > + - PHY_TYPE_SATA > > nvmem-cells: > items: > diff --git a/Documentation/devicetree/bindings/phy/mediatek,xsphy.yaml b/Documentation/devicetree/bindings/phy/mediatek,xsphy.yaml > index 598fd2b95c29..7262b8e184e2 100644 > --- a/Documentation/devicetree/bindings/phy/mediatek,xsphy.yaml > +++ b/Documentation/devicetree/bindings/phy/mediatek,xsphy.yaml > @@ -100,12 +100,10 @@ patternProperties: > "#phy-cells": > const: 1 > description: | > - The cells contain the following arguments. > - > - - description: The PHY type > - enum: > - - PHY_TYPE_USB2 > - - PHY_TYPE_USB3 > + The cells contain the following arguments:: > + - The PHY type:: > + - PHY_TYPE_USB2 > + - PHY_TYPE_USB3 > > # The following optional vendor properties are only for debug or HQA test > mediatek,eye-src: > diff --git a/Documentation/devicetree/bindings/phy/xlnx,zynqmp-psgtr.yaml b/Documentation/devicetree/bindings/phy/xlnx,zynqmp-psgtr.yaml > index 79906519c652..7083eddb467c 100644 > --- a/Documentation/devicetree/bindings/phy/xlnx,zynqmp-psgtr.yaml > +++ b/Documentation/devicetree/bindings/phy/xlnx,zynqmp-psgtr.yaml > @@ -18,25 +18,19 @@ properties: > "#phy-cells": > const: 4 > description: | > - The cells contain the following arguments. > - > - - description: The GTR lane > - minimum: 0 > - maximum: 3 > - - description: The PHY type > - enum: > - - PHY_TYPE_DP > - - PHY_TYPE_PCIE > - - PHY_TYPE_SATA > - - PHY_TYPE_SGMII > - - PHY_TYPE_USB3 > - - description: The PHY instance > - minimum: 0 > - maximum: 1 # for DP, SATA or USB > - maximum: 3 # for PCIE or SGMII > - - description: The reference clock number > - minimum: 0 > - maximum: 3 > + The cells contain the following arguments:: > + - The GTR lane (minimum:: 0, maximum:: 3) > + - The PHY type:: > + - PHY_TYPE_DP > + - PHY_TYPE_PCIE > + - PHY_TYPE_SATA > + - PHY_TYPE_SGMII > + - PHY_TYPE_USB3 > + - The PHY instance:: > + minimum:: 0 > + maximum:: 1 # for DP, SATA or USB > + maximum:: 3 # for PCIE or SGMII > + - The reference clock number (minimum:: 0, maximum:: 3) > > compatible: > enum: > -- > 2.34.1 > -- Regards, Laurent Pinchart