Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp3042352pxy; Wed, 4 Aug 2021 00:21:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQhsIZ4gJiFtC1lCbjwjhgzGQzD6ZMLrO7E1/HQZTTOaQIHOWH946cLIsKSzFYQRYlBmIg X-Received: by 2002:a05:6402:1c83:: with SMTP id cy3mr31186130edb.231.1628061695626; Wed, 04 Aug 2021 00:21:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628061695; cv=none; d=google.com; s=arc-20160816; b=ZND5Lp7OPuUZRw8MYmFucXsCGTqcimv8BZlVwg7qAeFS0VQyx+F5wexwHVKvJOBLAf nwm1ScDdOs1IMx0FjmvbTU8fCOyvDSoXJ+e8H4D/nxlxpM2eweG5P96mTnX2DKwJ7dc9 1ZubVuxOb0WUJVHk2WVX40eTevN154snzCg9TdaALl6YMaDrTdSpqp6r0/8224uk8lHY s3HmUnqwHBPPMkz7LbqDuet8y/n7yWMy3MqMFSMCXcWUPhdMfKYgpX1lXvpWM+vcmWhe nEGUtvQMoEilmr/3jn/M8nsGpDmNiEGgSYFhAyBvTPjP3sL3k8eD2lDtsSikledMmBx3 UMcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qTFk0I/nEl5O5hrGnkwWJ0cW0Kjp0at1OKmL8nk01GM=; b=fqNS3RTENm3qIbRhhe6Upa3VRgIHzRIX6YFGxWF9fCZNgDehlVJfI60rSuivim1xgp RyA4jDFV/D7S32YHFVrFcnzhdrD8wIbDaAXoUIK3jEC4g2X8IgnB8pyGmOIjj9Ynip1i f4ayEEA1F3jUr7EUXykHLIVxymEFBKk3FvTR/RL5qnqrTRXmmhFh2D8ZVJdFidvyZkZO 3ipqqIRyUkwjooBsjeU/ZGGnclcxeS73RLM2D1kLztaRDZyZhndd4rC60ALvZ0J9Zuto BDev9EzuLQLV7e7KZ2WHFBjPpNos6qxHyDNHQRhKyiKn2mraWTmBSBw8u1FDt9YLOZw+ Sffg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NGAkVlwX; 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 m5si1488453edc.162.2021.08.04.00.21.10; Wed, 04 Aug 2021 00:21:35 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NGAkVlwX; 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 S235799AbhHDHTd (ORCPT + 99 others); Wed, 4 Aug 2021 03:19:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:56728 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235762AbhHDHTN (ORCPT ); Wed, 4 Aug 2021 03:19:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 625E760F8F; Wed, 4 Aug 2021 07:19:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628061541; bh=+H9v5GjIE5Eik9iuQ3wu2uXDaeBxC37Uf+jlcQ4RMI8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NGAkVlwXXMuFhU087pFHbMBw4KFpyKBaasbiFJrwmlBUHwwtbt8vVD54/8XXLFT4m OqspaUAYPa8aRwF116gwclVXhsUWeKKacDsjRiF9c28u3q0ke5XhL3SdsR/E2BVbcu NQ+kgA6elxuh2wOkYhAZsMizK+BecFCQaIKiYmJn2VRzkt6kjmfFrCHV3QVxuu00Xw KLJ+otbB7D+OawqonSB1MhEdkFGGeR0q7oftvy7N6opvr92kB2AN8IqQfOXpJZdiVw FE/3lHwwss2FkYFcXqMMQ08bt8HcBxdk0oz+gqYwvx4VbKCYGZUoofbgSHUfbmOdJn WmlS6Y88evoYg== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mBBB5-000BlP-9c; Wed, 04 Aug 2021 09:18:59 +0200 From: Mauro Carvalho Chehab To: Rob Herring Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , Kishon Vijay Abraham I , Vinod Koul , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Subject: [PATCH v4 4/4] dt-bindings: phy: Add bindings for HiKey 970 PCIe PHY Date: Wed, 4 Aug 2021 09:18:57 +0200 Message-Id: <461495431dd28ad2779658659f137db4bd747aa8.1628061310.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the bindings for HiKey 970 (hi3670) PCIe PHY interface, supported via the pcie-kirin driver. Signed-off-by: Mauro Carvalho Chehab --- .../phy/hisilicon,phy-hi3670-pcie.yaml | 82 +++++++++++++++++++ 1 file changed, 82 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..17367a0275fe --- /dev/null +++ b/Documentation/devicetree/bindings/phy/hisilicon,phy-hi3670-pcie.yaml @@ -0,0 +1,82 @@ +# 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 + + 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: phy_ref + - const: aux + - const: apb_phy + - const: apb_sys + - const: aclk + + hisilicon,eye-diagram-param: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: Eye diagram for phy. + +required: + - "#phy-cells" + - compatible + - reg + - clocks + - clock-names + - hisilicon,eye-diagram-param + - phy-supply + +additionalProperties: false + +examples: + - | + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + pcie_phy: pcie-phy@fc000000 { + compatible = "hisilicon,hi970-pcie-phy"; + reg = <0x0 0xfc000000 0x0 0x80000>; + #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 = "phy_ref", "aux", + "apb_phy", "apb_sys", "aclk"; + hisilicon,eye-diagram-param = <0xffffffff 0xffffffff + 0xffffffff 0xffffffff 0xffffffff>; + }; + }; -- 2.31.1