Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3576268rwb; Tue, 20 Sep 2022 01:30:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5rdWFlGX/xwRZ3oEGGrVeZcYwB8vDGILENi2ARduQmVKg+ICILtDq4qbuKGq6gX2uM/9aJ X-Received: by 2002:a50:ef03:0:b0:44e:82bf:28e6 with SMTP id m3-20020a50ef03000000b0044e82bf28e6mr18138986eds.270.1663662659329; Tue, 20 Sep 2022 01:30:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663662659; cv=none; d=google.com; s=arc-20160816; b=dPdB8HRQ9PHHKcQss2V8G83hbQ3hrFKFQGRxfSTtHZnWi1PoMsCbXTNis5z03YEyg5 t5SwQcbHaII+bs4PGINJ7p01bxnuGc3d530x3YjE/+hPGSOrPgSs4jphnnyynf3NI/Eh 2sRO0VOtWX/l1lyRLfz2TxFH0nLnftBSyT6YAQN6jZ99rr9co3fv+jJ9zHTMXebe8aRJ g+TsXyNEbQWqpcBEzKJq2fHu/gOmjw+mNBF8HMfCSfLPvklLSs4YzDr40Rqa5sjyKweh rz5T3bShic85nvRLhA7fFzigsVeNOR1SlKLpYTNIX8P5iHCFhC8M4+3IFCMwGFUPrkRx Q9IQ== 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=GlKFhI9TAL03BDoN4OXHBN9Ag6tIYtSQpqqpHxXaab8=; b=nIvJ1397N0K+IHl3NSUXUMFKSsC0M3699UbtBLdTAJorpsni/ths44+XOv7U4NPRbj w269FEaZ0cWszfSbv/nrO0P7ZXTQYpYyAV1TEYoVgCIangFewMJQFWn5GKMSrxFuKAor ecoGJvoFtcyUJC4+LWlyZ58C4oV6tH85A7BnPIBGilIlK5YRHsnMTGfkkjhSZ/vy8/Df ZrF1NOEbkPxJPpVfCmocnPt7P1caQn+khWDbVapJgmNqnfZk3YgJeQaXFxBhR4bivBuK 9Gx3j760tC4eo+c5p61Fq4/ZH4Yb7V5hpSIlM9fN0rurjLaDwB9BbzTFkI6po5RWbUbU m6Ig== 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 dp16-20020a170906c15000b00780abacf5fcsi634478ejc.911.2022.09.20.01.30.34; Tue, 20 Sep 2022 01:30:59 -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 S229971AbiITH5U (ORCPT + 99 others); Tue, 20 Sep 2022 03:57:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229792AbiITH5K (ORCPT ); Tue, 20 Sep 2022 03:57:10 -0400 Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 960A61F2CC; Tue, 20 Sep 2022 00:57:09 -0700 (PDT) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 4BBED225F6C; Tue, 20 Sep 2022 09:57:08 +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 00147225F75; Tue, 20 Sep 2022 09:57: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 A00781802201; Tue, 20 Sep 2022 15:57:02 +0800 (+08) From: Richard Zhu To: p.zabel@pengutronix.de, l.stach@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, Richard Zhu Subject: [PATCH v8 1/2] dt-binding: phy: Add iMX8MP PCIe PHY binding Date: Tue, 20 Sep 2022 15:38:17 +0800 Message-Id: <1663659498-5180-2-git-send-email-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1663659498-5180-1-git-send-email-hongxing.zhu@nxp.com> References: <1663659498-5180-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 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 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