Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3735894pxb; Mon, 1 Nov 2021 19:59:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbgzEgN5kCLWJJjFVJqcGiOiWU04VAr89NZNHKpR9gIeceKK8McuxZQy1O0cFJBAbmUEiL X-Received: by 2002:a5d:8242:: with SMTP id n2mr23487916ioo.170.1635821996998; Mon, 01 Nov 2021 19:59:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635821996; cv=none; d=google.com; s=arc-20160816; b=pSWMrZ/lpMmXwWF9Di5Ougr7+H67TMHoOt+H4UzqEnbGGKWf2N+rARGzKwKR9yYTfH Jdlj8ZnX51tPdwKNOb0DXctnI6X9TC6ZZ+hL6sqr5JKNfka/nOMPc4dL3OuXsCe+CIqr X7vyNEEnxwobLRkdRKd/bU3xQ2KP4ICk/4I16/KTlOfgYFMZnPrwlrPXRoUwhEOn9+/N 8PZD+4VWQBROtLqnYkP9WGkgw8ClvqTQRSTNZYVKqVRUizzRjXrCo3nJROaSOvbEIxWR 0DZbLEJCq+cph3vnonXD5dEXcM8DJ9LPAGjC/zD+W+pbeUsfq8p2d16PoR5Uwmk89wn0 hiIw== 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=OTmoMApx6SIu6mY7ygo+YXcZIGwScex6Tf1bI5YyEBo=; b=X4Z/bE4BfK92oXwcgwKzQYXS0KBgTQ75WAaRHv+DVbTqSbEPQsz8PEPCyDRWLefXK1 dgXrpjPMCAPuHZZNlGdVubrC2W9ANbAqMQGLPHRXV5aNCc0JLcQfUMH1/Bbm2g2gPQLa ceZqwYtUO9fhVorhor0uuW82l0u/+mQhs41yMHAiwHOLzXrhIFq69F6/Xnj7slMAGfNP PrMOKn/fz07dheyQ+0jmRQBSlXzjsy3GPQtSDq4/3Xu/IlnJ4nVtlS9yxYXJPY4X0+Lx TIum+X6PgPOzCC4FzMDUmViWmwAncFklYPFq+CxqjLXyu1wjiXz31kDPIHl6FHc6yW/2 jfEg== 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 d5si12944300ioe.100.2021.11.01.19.59.39; Mon, 01 Nov 2021 19:59:56 -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 S232378AbhKBDBM (ORCPT + 99 others); Mon, 1 Nov 2021 23:01:12 -0400 Received: from inva020.nxp.com ([92.121.34.13]:46234 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231811AbhKBDBJ (ORCPT ); Mon, 1 Nov 2021 23:01:09 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 88E771A016F; Tue, 2 Nov 2021 03:58:34 +0100 (CET) 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 26C5F1A010E; Tue, 2 Nov 2021 03:58:34 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 61011183AD0B; Tue, 2 Nov 2021 10:58:32 +0800 (+08) From: Richard Zhu To: l.stach@pengutronix.de, marcel.ziswiler@toradex.com, 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 v5 2/8] dt-bindings: phy: Add imx8 pcie phy driver support Date: Tue, 2 Nov 2021 10:32:29 +0800 Message-Id: <1635820355-27009-3-git-send-email-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1635820355-27009-1-git-send-email-hongxing.zhu@nxp.com> References: <1635820355-27009-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 Tested-by: Marcel Ziswiler Reviewed-by: Tim Harvey Tested-by: Tim Harvey --- .../bindings/phy/fsl,imx8-pcie-phy.yaml | 95 +++++++++++++++++++ 1 file changed, 95 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..b9f89e343b0b --- /dev/null +++ b/Documentation/devicetree/bindings/phy/fsl,imx8-pcie-phy.yaml @@ -0,0 +1,95 @@ +# 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 ] + + fsl,tx-deemph-gen1: + description: Gen1 De-emphasis value (optional required). + $ref: /schemas/types.yaml#/definitions/uint32 + default: 0 + + fsl,tx-deemph-gen2: + description: Gen2 De-emphasis value (optional required). + $ref: /schemas/types.yaml#/definitions/uint32 + default: 0 + + fsl,clkreq-unsupported: + type: boolean + description: A boolean property indicating the CLKREQ# signal is + not supported in the board design (optional) + +required: + - "#phy-cells" + - compatible + - reg + - clocks + - clock-names + - fsl,refclk-pad-mode + +additionalProperties: false + +examples: + - | + #include + #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