Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp507040iob; Thu, 28 Apr 2022 07:12:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQBqEgGFhkbSxniTN4q7DNk15Ur1LmweyuMFTH9eNoG7pPDsXV6d7isusH5pz3qL3O8BUr X-Received: by 2002:a05:651c:a10:b0:24e:e85c:6319 with SMTP id k16-20020a05651c0a1000b0024ee85c6319mr22939482ljq.228.1651155159080; Thu, 28 Apr 2022 07:12:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651155159; cv=none; d=google.com; s=arc-20160816; b=fIQSEEZTv7G0WPiO4AxZclTv+JU06dv0mp++PgZArr1XBEOV5arzBFJLLl9S+zc84j rV2sY6i4ONIyFIhApp5L7BVjVD8+P4wPcAe69MTxd5ev8ButvMaiSNsmvHjswajXnQPf 17oji64Bx1WBCVzQ5brj5ITTcvyIuzPtiy+c2YwAyqYfAn+QSAG0lsR2pHFnxKTPoMi1 GBehlYDdEbf+20Z3+AxsFhdv9nx7QcoxtESaoP2d53VVNnDVq5ArdcYYt3+7Q9joDYmy inMsZj1vW7tYOjGit0z819DS7qXl5hdfhINSQUDmjfHWqZM/P/aOUoI1mEOTw+vv5xId 1Zmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ZGNUaKvmhdWADegA9+35rNWReEdvm/VLEsDmu8SXlcI=; b=Oh3CeDHCjw/LsI3ramGMiolb0KgOG4y87+QBUF3rztoAPHEeBt9iANWib2Zv7UeaUm 3kXLT1UWOUgomjNFu5yI3qjCzpjur9jJaPUaHfcZzDHuFBgcMc++TCNxjqmodd7Y41Zl vfZ9YTMLjg3ORu4e88FZBTYqLBozz5CPJazDFtIkQuwK2SIqw5nIztNy9q1T+8x26Xvb IUPU5980+PUC40b/pQSetVm2APnYZjS83yCc0KJ5c9IgLkwtDvpZ3Mak98wCWwBcuoNy 0HpU+u4VPc/QY0VHjVqcjHjnptg/0cwce6UFKiMZ69L9SBm0padyNyiVpL2BBg3BH1aV gB+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uxezT5Ln; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f25-20020a056512323900b00471fdd7943fsi4327722lfe.254.2022.04.28.07.12.08; Thu, 28 Apr 2022 07:12:39 -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 header.i=@linaro.org header.s=google header.b=uxezT5Ln; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244061AbiD1GgX (ORCPT + 99 others); Thu, 28 Apr 2022 02:36:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243955AbiD1GgX (ORCPT ); Thu, 28 Apr 2022 02:36:23 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F8306973A for ; Wed, 27 Apr 2022 23:33:09 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id p4so4400653edx.0 for ; Wed, 27 Apr 2022 23:33:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=ZGNUaKvmhdWADegA9+35rNWReEdvm/VLEsDmu8SXlcI=; b=uxezT5LnyHKSBkq6AQW89pc3qDtfxZHYMAix0t8fNa7iN8SiPU1Ilsl1nM1G37M5R+ +iu92f1x/5vR1NTnqi8ROX0/LwJwdGKQmoBkn8pixlB6fKZyo7GpO6a7YYkK1pW1jNQT wNHmkFGVSfRqXb8sEShA2W6HoHm5NLbFl5Spems7FPFI6zXPRgGCACekKLjBWUJQMl4E 73ek80xKQJ1KRfH67Egat8mV375c+FUSf/cJw5OVhhrlizX0esnpjiAi8Erb1aORY0vE o3rPGR9G86LWNf4VY5otQY/Gm6CzHNWFv8J3C1ofMgFmk3ptIhJGQ5VBAyLp82amwWr1 6tbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=ZGNUaKvmhdWADegA9+35rNWReEdvm/VLEsDmu8SXlcI=; b=MpusQUdGJGUg2G1I0mau2zSFgMXoQ7hArddhunNuM7ls8CXSvQxyj7x/ju1h3nyYbi UcST89yVwPcXMgDfJdFktl+VaP3b5/vRz5a/nXnuOMVJW1dqVq/ZB3CZrI+FNgRme/58 eq9YVu6HiV9T7vCyNG1efbWJ0z9zYFdr+o7IHcO20HoFLQRY+WJ8yrO6EWBoD59vLpjl QOJTZUNJrS5qAFIFkrvBNDtnGrj1qGmmBTmxrDycT1ZGH+GhAQZU3D2HbOXPc/sQH0kn PBj4gihmTB3niS8O1dcXcXoxfLmTopjufL0MpD1u743U/95CbUoH6W4mxL/EXE1YA+WW GZwg== X-Gm-Message-State: AOAM533q4ifwJ2SsVGHss3JWgIV3an+axkdRfBMjR3CGZZd0uCc/WNFX nzVj+zFLD7Cf51W780FKzRGOaA== X-Received: by 2002:a05:6402:43cc:b0:425:fda3:ac3a with SMTP id p12-20020a05640243cc00b00425fda3ac3amr12162862edc.70.1651127587742; Wed, 27 Apr 2022 23:33:07 -0700 (PDT) Received: from [192.168.0.159] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id i23-20020a0564020f1700b0042617ba6382sm943988eda.12.2022.04.27.23.33.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Apr 2022 23:33:06 -0700 (PDT) Message-ID: Date: Thu, 28 Apr 2022 08:33:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [RFC/RFT v2 01/11] dt-bindings: phy: rockchip: add PCIe v3 phy Content-Language: en-US To: Frank Wunderlich , linux-rockchip@lists.infradead.org Cc: Frank Wunderlich , Bjorn Helgaas , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Kishon Vijay Abraham I , Vinod Koul , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= , Philipp Zabel , Johan Jonker , Peter Geis , Michael Riesch , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org References: <20220426132139.26761-1-linux@fw-web.de> <20220426132139.26761-2-linux@fw-web.de> From: Krzysztof Kozlowski In-Reply-To: <20220426132139.26761-2-linux@fw-web.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On 26/04/2022 15:21, Frank Wunderlich wrote: > From: Frank Wunderlich > > Add a new binding file for Rockchip PCIe v3 phy driver. > > Signed-off-by: Frank Wunderlich > > --- > v2: > dt-bindings: rename yaml for PCIe v3 > rockchip-pcie3-phy.yaml => rockchip,pcie3-phy.yaml > > changes in pcie3 phy yaml > - change clock names to ordered const list > - extend pcie30-phymode description > - add phy-cells to required properties > - drop unevaluatedProperties > - example with 1 clock each line > - use default property instead of text describing it > - update license > --- > .../bindings/phy/rockchip,pcie3-phy.yaml | 84 +++++++++++++++++++ > 1 file changed, 84 insertions(+) > create mode 100644 Documentation/devicetree/bindings/phy/rockchip,pcie3-phy.yaml > > diff --git a/Documentation/devicetree/bindings/phy/rockchip,pcie3-phy.yaml b/Documentation/devicetree/bindings/phy/rockchip,pcie3-phy.yaml > new file mode 100644 > index 000000000000..3592888b5ee2 > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/rockchip,pcie3-phy.yaml > @@ -0,0 +1,84 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/phy/rockchip,pcie3-phy.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Rockchip PCIe v3 phy > + > +maintainers: > + - Heiko Stuebner > + > +properties: > + compatible: > + enum: > + - rockchip,rk3568-pcie3-phy > + - rockchip,rk3588-pcie3-phy > + > + reg: > + maxItems: 1 > + > + clocks: > + minItems: 1 > + maxItems: 3 > + > + clock-names: > + items: > + - const: "refclk_m" > + - const: "refclk_n" > + - const: "pclk" Drop quotes. > + > + minItems: 1 I think we agreed to skip rk3588 or make the number of clocks strict? > + > + "#phy-cells": > + const: 0 > + > + resets: > + maxItems: 1 > + > + reset-names: > + const: phy > + > + rockchip,phy-grf: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: phandle to the syscon managing the phy "general register files" > + > + rockchip,pipe-grf: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: phandle to the syscon managing the pipe "general register files" > + > + rockchip,pcie30-phymode: > + $ref: '/schemas/types.yaml#/definitions/uint32' No need for quotes. You don't use it in other places. > + description: | > + set the phy-mode for enabling bifurcation > + bit0: bifurcation for port 0 > + bit1: bifurcation for port 1 > + bit2: aggregation > + constants are defined in the dt-bindings/phy/phy-rockchip-pcie3.h Full path. It should also follow vendor,device naming convention. > + minimum: 0x0 > + maximum: 0x4 > + default: 0x4 > + > +required: > + - compatible > + - reg > + - rockchip,phy-grf > + - "#phy-cells" > + > +additionalProperties: false > + > +examples: > + - | > + #include > + pcie30phy: phy@fe8c0000 { > + compatible = "rockchip,rk3568-pcie3-phy"; > + reg = <0x0 0xfe8c0000 0x0 0x20000>; > + #phy-cells = <0>; > + clocks = <&pmucru CLK_PCIE30PHY_REF_M>, > + <&pmucru CLK_PCIE30PHY_REF_N>, > + <&cru PCLK_PCIE30PHY>; > + clock-names = "refclk_m", "refclk_n", "pclk"; > + resets = <&cru SRST_PCIE30PHY>; > + reset-names = "phy"; > + rockchip,phy-grf = <&pcie30_phy_grf>; > + }; Best regards, Krzysztof