Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3577755rwb; Tue, 20 Sep 2022 01:32:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5c/YaKWa8dgW6VmHFv/JkEXZF41JsB1WWWJ9FzDLUtahpW94+KJU7FtFZ1DreKaRUdnFTu X-Received: by 2002:a17:907:3188:b0:741:4bf7:ec1a with SMTP id xe8-20020a170907318800b007414bf7ec1amr16476542ejb.448.1663662759837; Tue, 20 Sep 2022 01:32:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663662759; cv=none; d=google.com; s=arc-20160816; b=OHE97cq1sIZiEJ5uye8bw22lJrnh3ZD7gJa+7Kv+v8VSeg4KG56XxsSSi0Ub0JGFlL CxizaF8NurE9GUZ2MEwhYIYQfYLDedofu6eLmBgoG0RbZDnU/QQrUkyqPSygoW+S0dfJ 7lVdBDY1JzQWLuplahfhMWsl47IuX411P2CLWDf2ZavUz48/VQMgNoHJhslZeU8e0xnY sAbKnyrujoC1CDJRG4rSQKz85O2A5izN/Ymq2HT/AKKb4SrddWyEGaxPM8fNWyM8bkp/ Q2+d/5Eo3HxaCac1A65Gnv8ke2S18guzVb3v7dbgWkfqik8Qq+DKU7NxghvwJVGjjGwK SZOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=1abn7jKQlITlxp5MSJZrQS9/zfKFB07+KjnUlDeBi4s=; b=P7i1/dh0+9Onew8ZFqm1zPUp4QQsnhgZylVPh64v56mnYljwYAjIcEmvCHAbRYrn3e 6A13o9Bt5YI/HcW5luVqGa0bLfkhdDUanq+4lYQWQsfj7BRigO0fWbYgNMw2cBr6angn 90Qca0pmQpkJef8AoaF2HS5h4hIl0sMFFEvdl0+oxYwBIv+5t8rPHrWQLms9kAw4MmFw NHOwauVxdftqFIFv+fjW6r98GS7Nrq6DXMqpKgQoe6l33iEGpeFMGgXmwd63VKmW7M5h Kb3tDKZGspfMDiIxIZyOe1m+xaXUhN7JpdzLpoZYzQdtavPHgQHjTlCNSM9ji+5g1fQt NuQg== 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 sc19-20020a1709078a1300b00779e71654e6si833536ejc.56.2022.09.20.01.32.14; Tue, 20 Sep 2022 01:32: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 S230040AbiITH5M (ORCPT + 99 others); Tue, 20 Sep 2022 03:57:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229557AbiITH5G (ORCPT ); Tue, 20 Sep 2022 03:57:06 -0400 Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AED7627F; Tue, 20 Sep 2022 00:57:04 -0700 (PDT) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 609ED225F6F; Tue, 20 Sep 2022 09:57:03 +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 15AA4225F6C; Tue, 20 Sep 2022 09:57:03 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 5472B180222C; Tue, 20 Sep 2022 15:56:58 +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 Subject: [PATCH v8 0/2] Add the iMX8MP PCIe support Date: Tue, 20 Sep 2022 15:38:16 +0800 Message-Id: <1663659498-5180-1-git-send-email-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.7.4 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 Based on the 6.0-rc1 of the pci/next branch. This series adds the i.MX8MP PCIe support and tested on i.MX8MP EVK board when one PCIe NVME device is used. - i.MX8MP PCIe has reversed initial PERST bit value refer to i.MX8MQ/i.MX8MM. Add the PHY PERST explicitly for i.MX8MP PCIe PHY. - Add the i.MX8MP PCIe PHY support in the i.MX8M PCIe PHY driver. And share as much as possible codes with i.MX8MM PCIe PHY. - Add the i.MX8MP PCIe support in binding document, DTS files, and PCIe driver. Main changes v7-->v8: - Add the Reviewed-by tag, no other changes. Only two patches in v8, Since the other patches had been merged by Philipp/Shawn/Lorenzo. Main changes v6-->v7: - Add "Reviewed-by: Lucas Stach " into first three patches. - Use "const *char" to replace the static allocation. Main changes v5-->v6: - To avoid code duplication when find the gpr syscon regmap, add the gpr compatible into the drvdata. - Add one missing space before one curly brace in 3/7 of v5 series. - 4/7 of v5 had been applied by Phillipp, thanks. For ease of tests, still keep it in v6. Main changes v4-->v5: - Use Lucas' approach, let blk-ctrl driver do the hsio-mix resets. - Fetch the iomuxc-gpr regmap by the different phandles. Main changes v3-->v4: - Regarding Phillipp's suggestions, add fix tag into the first commit. - Add Reviewed and Tested tags. Main changes v2-->v3: - Fix the schema checking error in the PHY dt-binding patch. - Inspired by Lucas, the PLL configurations might not required when external OSC is used as PCIe referrence clock. It's true. Remove all the HSIO PLL bit manipulations, and PCIe works fine on i.MX8MP EVK board with one NVME device is used. - Drop the #4 patch of v2, since it had been applied by Rob. Main changes v1-->v2: - It's my fault forget including Vinod, re-send v2 after include Vinod and linux-phy@lists.infradead.org. - List the basements of this patch-set. The branch, codes changes and so on. - Clean up some useless register and bit definitions in #3 patch. [PATCH v8 1/2] dt-binding: phy: Add iMX8MP PCIe PHY binding [PATCH v8 2/2] phy: freescale: imx8m-pcie: Add i.MX8MP PCIe PHY