From patchwork Mon Oct 19 09:47:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 286971 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71146C433E7 for ; Mon, 19 Oct 2020 09:48:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 18C1822243 for ; Mon, 19 Oct 2020 09:48:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="aD+OWPvG" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728741AbgJSJse (ORCPT ); Mon, 19 Oct 2020 05:48:34 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:36236 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728684AbgJSJsP (ORCPT ); Mon, 19 Oct 2020 05:48:15 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20201019094746euoutp024d6e193324a1920777ae2cf424a8c159~-W76XR_8p2477824778euoutp02M for ; Mon, 19 Oct 2020 09:47:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20201019094746euoutp024d6e193324a1920777ae2cf424a8c159~-W76XR_8p2477824778euoutp02M DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1603100866; bh=FqxW9f1+LuYbBwoXpPUvT/85NwXSuEJLmmuYl/MBjdE=; h=From:To:Cc:Subject:Date:References:From; b=aD+OWPvGL4cNwCcD98957LOBUwdcCOHssuJnmS+TkGGajwzxH9rdzWiVgW05J89lz z5jlQ77JxNG/d247dJz2O3NKIaKDvMnhATiY/3M7HvRvnEQr0iYC9Jve1B2OrJ0KIN 4cTGk4Ew2MKgk5UzehKh3GACygnab8xJA755licQ= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20201019094738eucas1p23cbddf92d23c54680e309a7b79345deb~-W7ymcuKb1210912109eucas1p2o; Mon, 19 Oct 2020 09:47:38 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id E6.F2.05997.AB06D8F5; Mon, 19 Oct 2020 10:47:38 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20201019094737eucas1p283ea94186450c0756442624d95de627f~-W7yQgHmN0748607486eucas1p2w; Mon, 19 Oct 2020 09:47:37 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20201019094737eusmtrp20ee391f9e5011271d49307a44635220b~-W7yPf7fh2596225962eusmtrp2w; Mon, 19 Oct 2020 09:47:37 +0000 (GMT) X-AuditID: cbfec7f4-677ff7000000176d-43-5f8d60ba7de2 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id D8.CB.06017.9B06D8F5; Mon, 19 Oct 2020 10:47:37 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20201019094737eusmtip1050f48de2edf96d119dcc997d9e28bdf~-W7xsOZdg1561015610eusmtip1f; Mon, 19 Oct 2020 09:47:37 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-pci@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jaehoon Chung , Marek Szyprowski , Jingoo Han , Krzysztof Kozlowski , Bjorn Helgaas , Lorenzo Pieralisi , Vinod Koul , Kishon Vijay Abraham I , Rob Herring Subject: [PATCH 0/6] Add DW PCIe support for Exynos5433 SoCs Date: Mon, 19 Oct 2020 11:47:09 +0200 Message-Id: <20201019094715.15343-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA0VSa0hTYRju29m5ODxynIIfFgYDjQLdrIhDWlj04xAR/Qghw+Zsp03apm3O 0h81XElOTRvLdIm3LHVq2RIvk8xsOVG2mQo6VCoq0co/XsJMMreT9u+5vM/3vC98BCIsRyOJ DE02q9XIVCJMwO8c/OWNdaSVSCW+MZRuyFfSNU4PSk+tF6B000olTo9+LcZor7cdp8cdVRjt rnZhdIW3j0f/+D2P023OWZy+88qJ0z0zQ0gSybRWtwKmxzqLM7V2PWO3FWLMvQ4bYFxTXTxm 2R51Dk8RJMpZVUYOqxUfTxMoS7sbsKzb1I2liS+oAVhIEwgiIHUY9tu6eCYgIIRUE4DGugWU IysATk/YEY4sA2ixe8B2pKTPDDijEcBi9zC2E7nvfcvzT2FUPDQtmrYMgginkuDaKu2fQah6 BBpKnYGXwqhEOO218P2YT0XD+dlNxI9J6hisGC1Cuba9sKW9P7AGpEpx+H7Yw+OMU7Csbo7P 4TD4zdWBc3gP3Oyp4XEBI4CfPG04R4oBHM+v+HdEApzxrAfWQ6j98LlDzMknYMuHRdQvQyoE Ti2G+mVkC5o7HyKcTMK7BUJuOgZaXc92at+MjiEcZmDLy++B1YRUKmxwlaBlIMr6v6sWABuI YPU6t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S77I+bpx25667Sc2nf5xTO114RkF54D3tqwb3l5fE3Lpdd/x/6/LPXzmHp+hyT0vrFXX 2lF/d+yjjUvuJqimdcuWOO5ev+GhhVOfp1+JEktxRqKhFnNRcSIAzuluZH8CAAA= X-CMS-MailID: 20201019094737eucas1p283ea94186450c0756442624d95de627f X-Msg-Generator: CA X-RootMTR: 20201019094737eucas1p283ea94186450c0756442624d95de627f X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201019094737eucas1p283ea94186450c0756442624d95de627f References: Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Dear All, This patchset is a resurrection of the DW PCIe support for the Exynos5433 SoCs posted long time ago here: https://lkml.org/lkml/2016/12/26/6 and later here: https://lkml.org/lkml/2017/12/21/296 . In meantime the support for the Exynos5440 SoCs has been completely dropped from mainline kernel, as those SoCs never reached the market. The PCIe driver for Exynos5440 variant however has not been removed yet. This patchset simply reworks it to support the Exynos5433 variant. The lack of the need to support both variants significantly simplifies the driver code. Best regards, Marek Szyprowski Patch summary: Jaehoon Chung (5): Documetation: dt-bindings: add the samsung,exynos-pcie binding Documetation: dt-bindings: add the samsung,exynos-pcie-phy binding phy: samsung: phy-exynos-pcie: rework driver to support Exynos5433 PCIe PHY pci: dwc: pci-exynos: rework the driver to support Exynos5433 variant arm64: dts: exynos: add the WiFi/PCIe support to TM2(e) boards Marek Szyprowski (1): Documetation: dt-bindings: drop samsung,exynos5440-pcie binding .../bindings/pci/samsung,exynos-pcie.yaml | 104 ++++++ .../bindings/pci/samsung,exynos5440-pcie.txt | 58 --- .../bindings/phy/samsung,exynos-pcie-phy.yaml | 51 +++ .../boot/dts/exynos/exynos5433-pinctrl.dtsi | 2 +- .../dts/exynos/exynos5433-tm2-common.dtsi | 24 +- arch/arm64/boot/dts/exynos/exynos5433.dtsi | 36 ++ drivers/pci/controller/dwc/Kconfig | 3 +- drivers/pci/controller/dwc/pci-exynos.c | 358 +++++++----------- drivers/pci/quirks.c | 1 + drivers/phy/samsung/phy-exynos-pcie.c | 304 ++++++--------- 10 files changed, 472 insertions(+), 469 deletions(-) create mode 100644 Documentation/devicetree/bindings/pci/samsung,exynos-pcie.yaml delete mode 100644 Documentation/devicetree/bindings/pci/samsung,exynos5440-pcie.txt create mode 100644 Documentation/devicetree/bindings/phy/samsung,exynos-pcie-phy.yaml Reviewed-by: Krzysztof Kozlowski Acked-by: Krzysztof Kozlowski