Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4437005pxb; Tue, 2 Nov 2021 09:41:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwh+PzXc/EZHf1a6OTCyqt0/X+B6TT7UA9a7I5gQOWX0ceGsDV1eBjHUcXyTl9kV2G/O5lG X-Received: by 2002:a05:6e02:1a85:: with SMTP id k5mr7043541ilv.27.1635871316357; Tue, 02 Nov 2021 09:41:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635871316; cv=none; d=google.com; s=arc-20160816; b=VN1in08g9G7FigP/UijHpnlZ7oNvY3jJAcMnH8KsTaNTz84PDvQPxBjZJTKkzzJfE/ GrDZs3mYy15rOF2a99Z3U3bFShKy2nP0EzydsFYiOFWXacGF8LUgWPRI2Se7RygZy2kM 3oJzq6cbMqUW1mT5J+6X2kKJyCR5sBzL59fCdo6tCCLVq87Am8c1ThF+pH8EDiW3p2c5 4tMLR4my292/4f4Zd8cQ7X1IhbPSfQt8XxA+xt8vv0JQJwBmZ1KUJjnmUcs61CV2Cfg5 uXtvPKaKoJxLPykRchzkDRqyiSG9Kp1tk4TAMC3bPhidr+9HM61Te5WuokF1Bm/C4Pvv AOhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=e5GlJ8JHBJ/9O+bLCp/KS0OxnO+d96GJAcEfTy+w1v8=; b=tF9tYvWWENxd29thXwrsP2nCI9LPPDbDphLVxWQzAL+Mf88OGBRckWbwtA8F3D+gWA ILt3wz586EpvX1VTLoGvB43+7Xb5CV1C/pkWPuyuri4rhu7z5/x/H+kJNiVbqnXIL/H5 P1FmUf1D/pPq1y+mPBg3EyeUvDNw+o9/OPmnXC8otgno6CZTKcSSU2PWMAggWVNzIs1F L9i+EoCmUd4s2SXFheuoX0QRnFLkVYcuVSTlT3wM0z9jgA7q2rRkLyRKF4xTMqi/fBOy RRhDUMezKrK69hWVUQngDJDzADTtFQN5W3Sg+diO3mMbqlxa2Kxnt8IuSSorrngpexEg J0Mw== 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=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 1si21783657iln.66.2021.11.02.09.41.43; Tue, 02 Nov 2021 09:41: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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234690AbhKBQnU (ORCPT + 99 others); Tue, 2 Nov 2021 12:43:20 -0400 Received: from mail-ot1-f41.google.com ([209.85.210.41]:34309 "EHLO mail-ot1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231314AbhKBQnT (ORCPT ); Tue, 2 Nov 2021 12:43:19 -0400 Received: by mail-ot1-f41.google.com with SMTP id t17-20020a056830083100b00553ced10177so30615281ots.1; Tue, 02 Nov 2021 09:40:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=e5GlJ8JHBJ/9O+bLCp/KS0OxnO+d96GJAcEfTy+w1v8=; b=6iUiadjxYCyT03HnBKTV/nCKdHN82L/mh98+YbYGJRdG2DquEBs9fZDmcQuEQcsN9/ Ytey437ldmvJpB3bVNmEylwk9lxQdC8zO9l5rs2Din0CHB/SXsymkCnKiQMLDfZO65wE k/qew+nX61T4Yvyl2WmEMveatxSG3B42WkB4h1ImrczUDAm1rNAVp2bC0n7EegcXqWBJ YfQ1C5g9NsWEYxJHDYsliX+HJQ/f5CjJLfzosUwM+F+0B4cIhUfqFqBUcFCXyJsRw+Um tPWTnjRPbYmbpaQ83pUGvhh9uuUzBZ5X6w1Kyqoxp7bfdudPjvf1ijHE1g3g/XBZHLjU 2Wig== X-Gm-Message-State: AOAM532svrKFMLzO1E4ivgkF2ZUNZkCpMUSQGw+o0hP4q0FKYTCSjQcj kp4hI1SokdU/IvJOnDJ5MQ== X-Received: by 2002:a9d:847:: with SMTP id 65mr23693262oty.326.1635871244046; Tue, 02 Nov 2021 09:40:44 -0700 (PDT) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id bo35sm3941838oib.40.2021.11.02.09.40.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Nov 2021 09:40:43 -0700 (PDT) Received: (nullmailer pid 3033197 invoked by uid 1000); Tue, 02 Nov 2021 16:40:42 -0000 Date: Tue, 2 Nov 2021 11:40:42 -0500 From: Rob Herring To: Richard Zhu Cc: l.stach@pengutronix.de, marcel.ziswiler@toradex.com, tharvey@gateworks.com, kishon@ti.com, vkoul@kernel.org, galak@kernel.crashing.org, shawnguo@kernel.org, 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 Subject: Re: [PATCH v5 2/8] dt-bindings: phy: Add imx8 pcie phy driver support Message-ID: References: <1635820355-27009-1-git-send-email-hongxing.zhu@nxp.com> <1635820355-27009-3-git-send-email-hongxing.zhu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1635820355-27009-3-git-send-email-hongxing.zhu@nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 02, 2021 at 10:32:29AM +0800, Richard Zhu wrote: > 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 The description doesn't really add much. Just 'maxItems: 1'. > + > + clock-names: > + items: > + - const: ref > + > + resets: > + items: > + - description: Phandles to PCIe-related reset lines exposed by SRC > + IP block. More than 1 phandle? The schema says only 1. Again, for only 1, you can use just 'maxItems: 1'. > + > + 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). Optional or 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 > >