Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp1201902lko; Tue, 13 Jul 2021 19:28:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyf5NLg5ZzPLv+Rj857ctbXew6AySsp+ljiS83DxH0hwv3tIsLLTZzxfUgMYvx5fa1foxY2 X-Received: by 2002:a17:907:7786:: with SMTP id ky6mr8081266ejc.93.1626229702532; Tue, 13 Jul 2021 19:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626229702; cv=none; d=google.com; s=arc-20160816; b=HzQ1N06aYXVghxSYzWPyoMvRGI3EinU4nIan5bEa27KaXQRX2olkQhLPLuAUT/BAir N/flPVc5Mp7i8NYtbNfcIRkActVRZnKfdr9IGt44fvVZAzvgHTR6qs5bjGQNj1UT+a8k VN50yYEr/jbwPWvJ1ApjvL1zUEdYUXhIGS3XIOTN3eRiWcrUCL4dsazdIQfKRyY6c+82 6u4Ot1blNMsjFfbELzr1l4zeAsetuY0YVXDuiL+RftcNcpFAQoE9t13xiuL0KffDfZTi 5HQgwDGwOn3eL/25Fi+R3odxNzFWAfWAOAj6BIgjFN9+vd5QQoRZYzJecDmXadWS4nrU ykig== 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; bh=voA9smuMk/g18L5B9OeTv9tT41v85LP2kwVfB4rVqRY=; b=reMhbAVgYAwx5jvhMmX12UW5IKvgAI5kvcnR/Egtog+/uQEU/MyLLK7I8gNK4QhXe0 7iZN+ppSyeXleQtEdsC8b6kji/DdNqa49gWlHJyWXIm5J1e/YpXB8GtGNsZwI9Fc/L67 GpmrGctQinB40r+la/3k6+ccutMI8aJPrwKq8qzqpIMqVT2pRYcJ6ghtayOPpaf8Qoyb A9/AnYj1iDBTvl6WMrO/zufXYDSg9bKQv2WYIN9Yzy6HqkkZ5rD5j4E/cnJoCJmxZX+i q0DS/gTeiASUY+huhE+tct5fYwa27Ynv7m743LXs3nqdPkjnHAs5RjDb08R73Voe97Nb DqfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 24si772620ejw.232.2021.07.13.19.28.00; Tue, 13 Jul 2021 19:28:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237530AbhGNC3q (ORCPT + 99 others); Tue, 13 Jul 2021 22:29:46 -0400 Received: from mail-il1-f180.google.com ([209.85.166.180]:36476 "EHLO mail-il1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237375AbhGNC3p (ORCPT ); Tue, 13 Jul 2021 22:29:45 -0400 Received: by mail-il1-f180.google.com with SMTP id j5so81325ilk.3; Tue, 13 Jul 2021 19:26:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=voA9smuMk/g18L5B9OeTv9tT41v85LP2kwVfB4rVqRY=; b=WIm9ZnZNoTsgxNdPLJvEXO/bMuDG+X3UecmZeJog4WihgJsPOfuqyCpp76Ax8Jen1n 8NDGzFAyIAmsveaGYGEPc4lsASC/y0Sfc1JF3Uy25t+rlWDj0wJQE99m8BuR3WabopL8 4ckMui20xYNiHftoXV+uhwxJX9hm4C9Wv4PkhrU9I22XpDVy/BR5E5rvyNlYjTlqjJ/1 pyipPuNXnjM0J4GP06SLER8hpB9dRD2Oo0DXFKrjFh3Y42A/dyCT2cVrOpRAeiJzZTHq c/hY2gi1qsLQjE1uROWuWWIGGX8C2gcVjx0GMBd+CilLJ/bM4INOBHNpJhD1fEjY0qzT Xf0g== X-Gm-Message-State: AOAM530cG/0AUSOyHO/u2gxcimPVPFtplakEzyrqVAumBFq4zW2fNJ/A r7k0vzNNod9tKOlVqNPSOQ== X-Received: by 2002:a92:b308:: with SMTP id p8mr5045602ilh.296.1626229613897; Tue, 13 Jul 2021 19:26:53 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id d14sm443440iln.48.2021.07.13.19.26.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jul 2021 19:26:53 -0700 (PDT) Received: (nullmailer pid 1329963 invoked by uid 1000); Wed, 14 Jul 2021 02:26:49 -0000 Date: Tue, 13 Jul 2021 20:26:49 -0600 From: Rob Herring To: Mauro Carvalho Chehab Cc: Bjorn Helgaas , linuxarm@huawei.com, mauro.chehab@huawei.com, Manivannan Sadhasivam , Kishon Vijay Abraham I , Vinod Koul , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Subject: Re: [PATCH v5 2/8] dt-bindings: phy: Add bindings for HiKey 970 PCIe PHY Message-ID: <20210714022649.GA1324196@robh.at.kernel.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 13, 2021 at 08:28:35AM +0200, Mauro Carvalho Chehab wrote: > Document the bindings for HiKey 970 (hi3670) PCIe PHY > interface, supported via the pcie-kirin driver. Same comments on this one. > > Signed-off-by: Mauro Carvalho Chehab > --- > .../phy/hisilicon,phy-hi3670-pcie.yaml | 101 ++++++++++++++++++ > 1 file changed, 101 insertions(+) > create mode 100644 Documentation/devicetree/bindings/phy/hisilicon,phy-hi3670-pcie.yaml > > diff --git a/Documentation/devicetree/bindings/phy/hisilicon,phy-hi3670-pcie.yaml b/Documentation/devicetree/bindings/phy/hisilicon,phy-hi3670-pcie.yaml > new file mode 100644 > index 000000000000..976ab6fe7b0a > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/hisilicon,phy-hi3670-pcie.yaml > @@ -0,0 +1,101 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/phy/hisilicon,phy-hi3670-pcie.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: HiSilicon Kirin970 PCIe PHY > + > +maintainers: > + - Mauro Carvalho Chehab > + > +description: |+ > + Bindings for PCIe PHY on HiSilicon Kirin 970. > + > +properties: > + compatible: > + const: hisilicon,hi970-pcie-phy > + > + "#phy-cells": > + const: 0 > + > + reg: > + maxItems: 1 > + description: PHY Control registers > + > + reg-names: > + const: phy > + > + phy-supply: > + description: The PCIe PHY power supply > + > + clocks: > + items: > + - description: PCIe PHY clock > + - description: PCIe AUX clock > + - description: PCIe APB PHY clock > + - description: PCIe APB SYS clock > + - description: PCIe ACLK clock > + > + clock-names: > + items: > + - const: pcie_phy_ref > + - const: pcie_aux > + - const: pcie_apb_phy > + - const: pcie_apb_sys > + - const: pcie_aclk > + > + reset-gpios: > + description: PCI PERST reset GPIOs > + maxItems: 4 Hiding the 4 ports in the phy? > + > + clkreq-gpios: > + description: Clock request GPIOs > + maxItems: 3 > + > + hisilicon,eye-diagram-param: > + $ref: /schemas/types.yaml#/definitions/uint32-array > + description: Eye diagram for phy. Is there a size to this array? > + > +required: > + - "#phy-cells" > + - compatible > + - reg > + - reg-names > + - clocks > + - clock-names > + - reset-gpios > + - clkreq-gpios > + - hisilicon,eye-diagram-param > + - phy-supply > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + bus { > + #address-cells = <2>; > + #size-cells = <2>; > + pcie_phy: pcie-phy@fc000000 { > + compatible = "hisilicon,hi970-pcie-phy"; > + reg = <0x0 0xfc000000 0x0 0x80000>; > + reg-names = "phy"; > + #phy-cells = <0>; > + phy-supply = <&ldo33>; > + clocks = <&crg_ctrl HI3670_CLK_GATE_PCIEPHY_REF>, > + <&crg_ctrl HI3670_CLK_GATE_PCIEAUX>, > + <&crg_ctrl HI3670_PCLK_GATE_PCIE_PHY>, > + <&crg_ctrl HI3670_PCLK_GATE_PCIE_SYS>, > + <&crg_ctrl HI3670_ACLK_GATE_PCIE>; > + clock-names = "pcie_phy_ref", "pcie_aux", > + "pcie_apb_phy", "pcie_apb_sys", "pcie_aclk"; > + reset-gpios = <&gpio7 0 0 >, <&gpio25 2 0 >, > + <&gpio3 1 0 >, <&gpio27 4 0 >; > + clkreq-gpios = <&gpio20 6 0 >, <&gpio27 3 0 >, <&gpio17 0 0 >; > + hisilicon,eye-diagram-param = <0xFFFFFFFF 0xFFFFFFFF > + 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF>; > + }; > + }; > +... > -- > 2.31.1 > >