Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3629818pxv; Mon, 12 Jul 2021 23:30:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPCUUZxh/F1MiJz/6EGa8pCQUoDK+962smaZGB0RS7AS1csUD4sU2ABZTFT01eLNiMlJ/J X-Received: by 2002:a17:906:1fd2:: with SMTP id e18mr3673363ejt.313.1626157812934; Mon, 12 Jul 2021 23:30:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626157812; cv=none; d=google.com; s=arc-20160816; b=oZdqDo4J8uDoSIVmdfOBljwK47PQQvbc5DQJ3JkfUxN3WJ2HsEIK/1ur5TBIP2y0Ug kRRApvO5p78LkY+BKaFBWmEZFqt5UkWwMNhIrCvm9+p9UDfp8+vjxdN6BkD8D5Hhgkha OFtoRfQiMXc/6OnWloWKzpv4yYsd62s18cfi+4Kh2/09rpLaFnl8deM8vAs21PDNTl4Z I372vYm6urBFO99DZWStwVNLd2zdZOQWYxAEkyhEmSIZVizAAUmOYk1escEfGQ17Fnwb yGcBQZ1jLZyI7KzmR/CO0PHcLK+GbSP/IUQ1xCBDKwVGuAHLoUaJRoXkyNc+1Evcsfzk MuUw== 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=nRVObIlrXptT2lrPTBSxoLMRFENDIxLt98T+c/c2HUQ=; b=b0YV1jM4cHt3pivbWwNLawkEslqB1j0JudJm5MUD63+yz4N6ZMi2FWA8I6wXuy9ngz 2Ccf+7zqOqS9uw+0vEOpNGGXLU57zORM58/+pw/tgUrxzowJx6AIXY3WVOSTxhJAJZMy sTxP56nGTDXBq84eBT60PWgGTyxXNfdCAz8BXPK90SaZoSoATxCngFhv54mwf4bD7hkl bQ91p2eZQL+DFvitoJShXTmUraTS26i8NzNzArCaogTmUJaizxXtLiCSTz3lek2Ml4P3 sB/e6VCaK1rljTjK9optFvJDL48DL71ZkrYQLD8FlPY9fsN0rEAehZD80XtUdg3Y8oy7 s76A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uStJlKTo; 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 j7si22761969ejm.280.2021.07.12.23.29.49; Mon, 12 Jul 2021 23:30:12 -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=uStJlKTo; 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 S234080AbhGMGbf (ORCPT + 99 others); Tue, 13 Jul 2021 02:31:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:50978 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231261AbhGMGbe (ORCPT ); Tue, 13 Jul 2021 02:31:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1E2B5611AB; Tue, 13 Jul 2021 06:28:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626157725; bh=se9640ubWAMBXq29BIJQe5nQYy9uHVZjbLlOIKUMhLo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uStJlKToM2PjoN3BxTnmKgBTyyKyT36OYj7HUwAqTBXD2yupJfQ2NHHScIAyukCHr g3GMxasYYy8CCLaaBFBXY1GfDEDXnCDiZ3xzqe58dAWmyXqQUI0Bk4Fo8g+PPjFD3b qEr/Pse6bnWIWsULrsHx8oWtcmTXY33W+XjY3kXeEaieM8Op94xwSmbASTxbDZu1em 3ZOhsaCGz84cY8YUowhOpJx9XhfizZGlWQe8T2X0AV+8m1aFb2SijApMsXqiKpGIEm 3ORvckVxMzGm41ZCBd3pkTpOPmZd9gVg6S5PdOkO+suBz/F2AzPk5hdG5K9COrrjSF vHR6qnSa9T2+Q== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1m3BuM-005yPb-RS; Tue, 13 Jul 2021 08:28:42 +0200 From: Mauro Carvalho Chehab To: Bjorn Helgaas Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , "Manivannan Sadhasivam" , "Rob Herring" , Kishon Vijay Abraham I , Rob Herring , Vinod Koul , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Subject: [PATCH v5 2/8] dt-bindings: phy: Add bindings for HiKey 970 PCIe PHY Date: Tue, 13 Jul 2021 08:28:35 +0200 Message-Id: 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 | 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 + + 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 + - 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