Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp227032rwi; Wed, 12 Oct 2022 19:10:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4hquptiyGH+auEmI+YRZ7Yoe1Imt5IXf2s/HrZBTIPq3G8TzP+72hO7D8WOnPnj5im90EX X-Received: by 2002:a05:6402:1d86:b0:457:e84:f0e with SMTP id dk6-20020a0564021d8600b004570e840f0emr29587689edb.241.1665627039553; Wed, 12 Oct 2022 19:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665627039; cv=none; d=google.com; s=arc-20160816; b=uNg9OmCfKYEicI1xLcOMJZ1aIugMeF/SzgzbwHsimM269WaluTz5ExuWZpCwkozs3B jTxUW8izqSmxBLcip0icBWrDsjJ1p1capkWlEVNepGK0xgK0EQM/zQsoMgB4ApOBMuig DKhs0VFEXI6r0xWacLDsGj/EHcKkOQ/+x9xlwzrxRvwZf9vDzEHYkzvOn3E60xAKR2Jy xUVBdaznrjwRlgN162BZNbTqS2nXKeO8xnMGHvZhf8COFmLYt4HwqXrnFnONfWVVqxv0 v+ezBN0RoU05sRjJtBPZDkivaq04zWJQx2RUn4n8R0TpvpMtoTI53MqoDKQNmyuN3Mx0 ktLg== 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=yIF7nrjTih9CNNQjBV4umSuB+fCZqRqdj5s7LDwld8U=; b=t1MHdHLZ+FgQwUlSnHAwDAxdq3wfDp5K6egxEfjwLmrcwemnCxOiLN90mEi7ZWhm8P f8wQCpfOIhiZ7Y1VUyuFncD/ySS5T2mKqAQ/20/Q0K1IBXoa8SOcswslpOq2EyHCmbhR X9MNnroDLbhufJu26950tZtae5SOWrQ+rmyABAlx2CrZjGF6Ay38Ao68Zw0wrjPgSNhw /zn3SPVK2kSOPCF98aKlOpA9ZTPsAehGWlukGYq6WQ4GUmjXuQm/1Nv6dJZRacA5ilWT f4naBJAl2FWFOQHQVhfEZT3WYF/6/9q7ZxvpB2kQ8qgFkFcWmLQihubvp5Eh4Q0tDw0B ljUg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz20-20020a0564021d5400b0045ce40540ebsi784800edb.269.2022.10.12.19.10.14; Wed, 12 Oct 2022 19:10:39 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229658AbiJMCG6 (ORCPT + 99 others); Wed, 12 Oct 2022 22:06:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbiJMCGz (ORCPT ); Wed, 12 Oct 2022 22:06:55 -0400 Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B932122BED; Wed, 12 Oct 2022 19:06:53 -0700 (PDT) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 270D12229FB; Thu, 13 Oct 2022 04:06:52 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id EB8DD21103D; Thu, 13 Oct 2022 04:06:51 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id E68C91802205; Thu, 13 Oct 2022 10:06:49 +0800 (+08) From: Richard Zhu To: vkoul@kernel.org, a.fatoum@pengutronix.de, p.zabel@pengutronix.de, l.stach@pengutronix.de, bhelgaas@google.com, lorenzo.pieralisi@arm.com, robh@kernel.org, shawnguo@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, Richard Zhu Subject: [RESEND v12 1/4] dt-binding: phy: Add i.MX8MP PCIe PHY binding Date: Thu, 13 Oct 2022 09:46:59 +0800 Message-Id: <1665625622-20551-2-git-send-email-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1665625622-20551-1-git-send-email-hongxing.zhu@nxp.com> References: <1665625622-20551-1-git-send-email-hongxing.zhu@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Add i.MX8MP PCIe PHY binding. On i.MX8MM, 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 Reviewed-by: Rob Herring --- .../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 -- 2.25.1