Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2232644pxb; Tue, 12 Oct 2021 02:09:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUN4V6XHqWKDk1vVkZpk7+uGIfS2PxAq6r2IqegJW4V35PztrmaGsT3Z5x+Nyk1BhJQCd0 X-Received: by 2002:a17:906:9742:: with SMTP id o2mr31427862ejy.532.1634029780782; Tue, 12 Oct 2021 02:09:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634029780; cv=none; d=google.com; s=arc-20160816; b=mKDcGf2pSG8j0s9PzFeVNbzfQa/A4IZ9WZOFsJlatf0HCyG97G/c7Y3StqqH4jEu64 NI0s2ILl7NM7Y9kgJiVGBoeUrHstcQWSNVFmzdVYt98yw0GGcDn6p/Y8YRAhYmLeuo6g WSFQSlP9I1jbTq5tLsbjp2XwWWHIIMxrjz55xW138SZf7qeGhgw/DJ53PvVY3A4Rmio9 M+9VNmSS3tjlM7ziZjB42I5iG8DUpuCXpGT2+sHr7Z3onmBx0MdQnDZyTPC/AHB09ESd 1IXxAvACpgfUAdIeJzHgggXwBba5HaF2J9d97Sp/RNh3tsLvI5WmupRKTw9ZTIV9WSwG mb4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=AyiGDeFg/cRgJAelRu0KbdGiTwGn9RWMrQf/HsXm18Y=; b=HL/570oX/YLh24dQ6ITCPfYWBVAdoCq2w/R2Zx6aB8nRfw0C2BZgfhRwjR7xex8KJ5 ehblI+zmIxWpf0BuJoyPy8wsMbjHE/9ULF8G8ExqM5pXYs4SJkabrApOpQGEtiLEx0jk 6/1d51aP7R/vA9g69oEHaW8kYoTV8KDIuRnY3YrgqgxbML9c7qYIplK3/r0M8RMay8xP lvgU7oTtMooe+rSJxoA+wWChRuiZyqMMRmXXPUcetQE36JRf0FWkRwFPNZ04SnUhpVqh q0k/DSx3RFC0prW/ZQ8y/RnDHa8BdEtbxsmR2fPc11jNxyYnnVqk1l6OML4/nzznDLI/ 0T8g== 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b16si14757220eja.239.2021.10.12.02.09.17; Tue, 12 Oct 2021 02:09:40 -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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235417AbhJLJJK (ORCPT + 99 others); Tue, 12 Oct 2021 05:09:10 -0400 Received: from inva020.nxp.com ([92.121.34.13]:45554 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235175AbhJLJIL (ORCPT ); Tue, 12 Oct 2021 05:08:11 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E16091A1D0A; Tue, 12 Oct 2021 11:06:07 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id A62F61A1D08; Tue, 12 Oct 2021 11:06:07 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 02E23183AD14; Tue, 12 Oct 2021 17:06:05 +0800 (+08) From: Richard Zhu To: l.stach@pengutronix.de, tharvey@gateworks.com, kishon@ti.com, vkoul@kernel.org, robh@kernel.org, galak@kernel.crashing.org, shawnguo@kernel.org Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, linux-imx@nxp.com, Richard Zhu Subject: [PATCH v3 2/9] dt-bindings: phy: add imx8 pcie phy driver support Date: Tue, 12 Oct 2021 16:41:11 +0800 Message-Id: <1634028078-2387-3-git-send-email-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1634028078-2387-1-git-send-email-hongxing.zhu@nxp.com> References: <1634028078-2387-1-git-send-email-hongxing.zhu@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add dt-binding for the standalone i.MX8 PCIe PHY driver. Signed-off-by: Richard Zhu --- .../bindings/phy/fsl,imx8-pcie-phy.yaml | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/fsl,imx8-pcie-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/fsl,imx8-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/fsl,imx8-pcie-phy.yaml new file mode 100644 index 000000000000..7973abf67278 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/fsl,imx8-pcie-phy.yaml @@ -0,0 +1,79 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/fsl,imx8-pcie-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX8 SoC series PCIe PHY Device Tree Bindings + +maintainers: + - Richard Zhu + +properties: + "#phy-cells": + const: 0 + + compatible: + enum: + - fsl,imx8mm-pcie-phy + + reg: + maxItems: 1 + + clocks: + items: + - description: PHY module clock + + clock-names: + items: + - const: ref + + resets: + items: + - description: Phandles to PCIe-related reset lines exposed by SRC + IP block. + + reset-names: + items: + - const: pciephy + + fsl,refclk-pad-mode: + description: | + Specifies the mode of the refclk pad used. It can be UNUSED(PHY + refclock is derived from SoC internal source), INPUT(PHY refclock + is provided externally via the refclk pad) or OUTPUT(PHY refclock + is derived from SoC internal source and provided on the refclk pad). + Refer include/dt-bindings/phy/phy-imx8-pcie.h for the constants + to be used. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [ 0, 1, 2 ] + +required: + - "#phy-cells" + - compatible + - reg + - clocks + - clock-names + - fsl,refclk-pad-mode + +additionalProperties: false + +examples: + - | + #include + #include + + pcie_phy: pcie-phy@32f00000 { + compatible = "fsl,imx8mm-pcie-phy"; + reg = <0x32f00000 0x10000>; + clocks = <&clk IMX8MM_CLK_PCIE1_PHY>; + clock-names = "ref"; + assigned-clocks = <&clk IMX8MM_CLK_PCIE1_PHY>; + assigned-clock-rates = <100000000>; + assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_100M>; + resets = <&src IMX8MQ_RESET_PCIEPHY>; + reset-names = "pciephy"; + fsl,refclk-pad-mode = ; + #phy-cells = <0>; + }; +... -- 2.25.1