Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6797596pxv; Fri, 30 Jul 2021 02:36:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUt9QL5RF812xQBduZm7vAQc1QNIyYkyGzxKwDuELIgYZufpPXqF/70hEOlfeoGZ1vvK/Y X-Received: by 2002:a17:906:5e11:: with SMTP id n17mr1689144eju.470.1627637811178; Fri, 30 Jul 2021 02:36:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627637811; cv=none; d=google.com; s=arc-20160816; b=CxjVBIT8g0N6O2zxo8u3Nb5/ZJR2dbtAqYx/TvEqNN4MK4fGptOU3h7Vr8yXnuc/bN oSfc24cNqNBVE7Sp3k1mYiP45WbjEIDSNcl/XpfKC/AsP1SO+gIrNERBIxRCP/K1BzOw rL6JZ1cuN6fg1+69EbqCwibUQ9PKDmsrGoSdrxgRP+81GzCWdaHdVn4VELJI1XhYCSt4 vB90YzmmsqW+dkMdXIE7E+bCbWQY1W2L1sAcMeQL0S+XFZRf85EZg0ZepoBrMHUiJZzZ comvwNiQkRMUars4PA7KhpuagZQ78t0gPM7UZ3ag/gDAA8QnLeutqjl3GW1ePJBy11DO VCwA== 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=EQxlo7tAQb42ePAkvoFscPuam6s92KHZELoSTKedbUI=; b=AO4aTv1Lah0JcRCsIcHRzDftp1cNVb992Gnl7UdwSrYTtgf/zYl9LM+CfUGR1nOG3/ qroPzZedx21eeFAOPd01r6Xe5Y8HI+AIld0yrzxhsnlSjKReoRMieg+rAkBEHKV4pu8a 6Hw9tKvy5PBRXHKMK6AsBGOy7MCn9R/uPqNrLFyXxTnG4fYV+Y/mUn7A0lUFKE/0REid n9qZu4btaniX/xVKEHVi9kyx9ioA4Db0WduZ23pJ16vsypWL+N3LJQviBUz8XzGPvhh8 ocK/HIMYJ37xsJikg4J+Hhl6NLzqh/sx+xaRJTYeusSRGLXMoBprzuINi3bK69sijC3H B1lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cj7sLJt9; 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 hk18si1120496ejb.238.2021.07.30.02.36.27; Fri, 30 Jul 2021 02:36:51 -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=cj7sLJt9; 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 S238375AbhG3Jel (ORCPT + 99 others); Fri, 30 Jul 2021 05:34:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:51888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238356AbhG3Jec (ORCPT ); Fri, 30 Jul 2021 05:34:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D74B061019; Fri, 30 Jul 2021 09:34:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627637667; bh=AyZq286GxOzlTPT6NwaDtxxaeeo+pRSi6ddl1AxdRy4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cj7sLJt9ZYR4ZSGjKUviFXa1tBXGUFeNKogl5uby272IwYnNM7joGPvCPA3/hBjnB RAtrkN2nwigreOu6vhnjK6eximxGUGECRjRBeQ9zoKbeEt2H4j8MFSKwBa7Xv+eg8Q Sce5iB19zLdBOv7slmotk7Ky3ddLJLnwBLMfugv//saK3XdJp0HF1w/Sl3DVzqiS3L V2eSmAV4o4298JSDdyFctl6aylq9t3FrEAyrRSCiI0RLBsHgBuoWdscLfx1e35yqKq 3e1z/GHUEf75Y7T0LZBLGC0Iuj00HyvDIrKt3nH46v9bhuRqUkBKaX2CG17CZ859Tp 4E/ALiZN7wSoQ== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1m9OuO-006qwF-MH; Fri, 30 Jul 2021 11:34:24 +0200 From: Mauro Carvalho Chehab To: Rob Herring Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , Kishon Vijay Abraham I , Rob Herring , Vinod Koul , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Subject: [PATCH v2 4/4] dt-bindings: phy: Add bindings for HiKey 970 PCIe PHY Date: Fri, 30 Jul 2021 11:34:21 +0200 Message-Id: <1e9669ef81f523f4e16f10d8c720507dea3dc444.1627637448.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 | 86 +++++++++++++++++++ 1 file changed, 86 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..1e0153e4f4a5 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/hisilicon,phy-hi3670-pcie.yaml @@ -0,0 +1,86 @@ +# 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 + + clkreq-gpios: + description: Clock request GPIOs + maxItems: 3 + + 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