Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1697681rwe; Fri, 2 Sep 2022 02:08:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR4g7jAOmKEMdBSLUhDEI2HQy4C8uK/q0dlAHPXdgL1OQaCe1U9yCf0pZ7fdu9QFbAUKBUuA X-Received: by 2002:a17:907:7b94:b0:731:1b11:c241 with SMTP id ne20-20020a1709077b9400b007311b11c241mr27580217ejc.676.1662109734084; Fri, 02 Sep 2022 02:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662109734; cv=none; d=google.com; s=arc-20160816; b=lE+bDCKPWYhwA6k/G6m0i4WQNbs+Xix5aNolk+XnF9AU61ppg/Ls5s25uDhLJ4RboK eNnQkbSChth1dpWwD2hahZ7fQtjiPUT+BgO4FYGR6io7ZphW3zFmNpSoTiWBrVTofMzK 0Vf+diIrgZfROT2lhaDlJyGnZa90/4fEx4LgURr8cISC6qBPuhGGMF/OEuupIUu2SkWt 3ajcgVxxUnA84Ms5tSXyWA+JGJs8bPLvZX3oJOc8NNRGcXddtAmsLiM3OCq903lxJ9M8 OrIHwzQ2EdvXhdoIF62NP5AuqdXY1tpWLfE8fBfU/j50KoNQ4dSSblRjQ97l8agkcqrW ERtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=BtCqDzj3Ie2NnBrHzz8Lddq6o8tIIj/TVawMsWE02TQ=; b=r+TtAugx2WdJItHF+uEQtnWyRhJsl327LPduRymBCSCT3V4LbezLlU/ROxowjkx9ru c64gA0x2wYQycjOI59CiXocIElP2tfOzqL0YdMoh1MoubNAnF7IKmTSW25jSWWxzJZbf nsbvs0oKpg1lNEZUTh09wlkPBqrNPA1yX4q9FyoCdssDMb+nGIzdw3MQpdGGlMrT8CoM 8+pP8qF5CIoA+ZDtogu7qQm4hAUjHj3+l/bfUtcvx0+bDItxxET4XZ8pqc3gJMLRcRrj fR4CwHpTaVqcXPcpGZoMQYyEGyBjEXfL/r73tzxEBfrHUArrVn5WMfvdQlG5D9aujhPn Dv+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l13-20020a50d6cd000000b00448b72c6f0esi1216429edj.301.2022.09.02.02.08.26; Fri, 02 Sep 2022 02:08:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235884AbiIBIeH (ORCPT + 99 others); Fri, 2 Sep 2022 04:34:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235902AbiIBIdl (ORCPT ); Fri, 2 Sep 2022 04:33:41 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA243C2FA7 for ; Fri, 2 Sep 2022 01:33:06 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oU26J-0001LT-Jw; Fri, 02 Sep 2022 10:32:31 +0200 Message-ID: Subject: Re: [PATCH v6 1/7] dt-binding: phy: Add iMX8MP PCIe PHY binding From: Lucas Stach To: Richard Zhu , p.zabel@pengutronix.de, bhelgaas@google.com, lorenzo.pieralisi@arm.com, robh@kernel.org, shawnguo@kernel.org, vkoul@kernel.org, alexander.stein@ew.tq-group.com, marex@denx.de, richard.leitner@linux.dev Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, linux-imx@nxp.com Date: Fri, 02 Sep 2022 10:32:28 +0200 In-Reply-To: <1662004960-14071-2-git-send-email-hongxing.zhu@nxp.com> References: <1662004960-14071-1-git-send-email-hongxing.zhu@nxp.com> <1662004960-14071-2-git-send-email-hongxing.zhu@nxp.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Donnerstag, dem 01.09.2022 um 12:02 +0800 schrieb Richard Zhu: > Add i.MX8MP PCIe PHY binding. > On iMX8MM, the initialized default value of PERST bit(BIT3) of > SRC_PCIEPHY_RCR is 1b'1. > But i.MX8MP has one inversed default value 1b'0 of PERST bit. > > And the PERST bit should be kept 1b'1 after power and clocks are stable. > So add one more PERST explicitly for i.MX8MP PCIe PHY. > > Signed-off-by: Richard Zhu > Tested-by: Marek Vasut > Tested-by: Richard Leitner > Tested-by: Alexander Stein Reviewed-by: Lucas Stach > --- > .../bindings/phy/fsl,imx8-pcie-phy.yaml | 16 +++++++++++++--- > 1 file changed, 13 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/phy/fsl,imx8-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/fsl,imx8-pcie-phy.yaml > index b6421eedece3..692783c7fd69 100644 > --- a/Documentation/devicetree/bindings/phy/fsl,imx8-pcie-phy.yaml > +++ b/Documentation/devicetree/bindings/phy/fsl,imx8-pcie-phy.yaml > @@ -16,6 +16,7 @@ properties: > compatible: > enum: > - fsl,imx8mm-pcie-phy > + - fsl,imx8mp-pcie-phy > > reg: > maxItems: 1 > @@ -28,11 +29,16 @@ properties: > - const: ref > > resets: > - maxItems: 1 > + minItems: 1 > + maxItems: 2 > > reset-names: > - items: > - - const: pciephy > + oneOf: > + - items: # for iMX8MM > + - const: pciephy > + - items: # for IMX8MP > + - const: pciephy > + - const: perst > > fsl,refclk-pad-mode: > description: | > @@ -60,6 +66,10 @@ properties: > description: A boolean property indicating the CLKREQ# signal is > not supported in the board design (optional) > > + power-domains: > + description: PCIe PHY power domain (optional). > + maxItems: 1 > + > required: > - "#phy-cells" > - compatible