Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4179590rwb; Mon, 21 Nov 2022 04:51:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7orWB4jwdITPoqcmxYH6uZYKlejM2XML+GMyffH9joNlFoufNvUk2a984HgkDrB9EHybcI X-Received: by 2002:a05:6402:f:b0:468:56c3:7c8 with SMTP id d15-20020a056402000f00b0046856c307c8mr16433874edu.109.1669035072355; Mon, 21 Nov 2022 04:51:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669035072; cv=none; d=google.com; s=arc-20160816; b=H78veIp1f8aMf71KjxoO6+zp9vff8AQjlDrYFjO942expLRA8+xh0Tf8GBBfQe5d7M VGIYF4vvXB0D35XyfrKBBnXhHGdbkSHdSGuk3khwRgPtlCwVRNYyifWBFdO0x5Kgw3e1 ZnEPotk1M/jx2+eryaFjGVM08cJovJnOr9vg4yof5F+zCoeDg4rYA/Lj9IY1HSEAtqcF 80AdFK/mZhZ3dtzbdm5QzKVLyBkouAhjvhXpNORhqAFCMM+DMyDn8+RK8KTouKi5ruxG OLAEHWZXiO1rm9Vv0meEr/oihWXaoaycmmhanyYnArftveJYQBk1+vRCQ6lDxoW5mQrp o8Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=JAjDOi0UPBRuQmw/4iptna7NRf/JlL41ndKpEzYFly0=; b=Dmgiy7a3xGFHhZY0PQpRvMY85qt10ibyHsEhKI59sXNQ63wU12wroGS8xJZLju9opf 32NW/F50ppA26LOx+MbGVHxrP/ZFeYBs8ElgEHdQ8KS8nsscNiPRMhO/zGUOlqTVN/db 4x7o9EEkx5/phvS1lt2gkPC1PR50nSRzvO6YkKMq7YJJayjH+KE60vxgFP8CqQAXaR46 jrKV8AJkOohuFbYYFYglhA6ADkMwpsRATGdqhMXk6q37kwwXKrTiRSD1Cg+C9oVkmzEG dy6vM3lx5oXWZ44jzwJGLkR7N7Z5Txh5Xu5oDGGpiVRz+QRERK3DpNRERx5CwYN/EaTe Agcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=tOXXb0fJ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x4-20020a05640226c400b0045743696acbsi10340612edd.139.2022.11.21.04.50.48; Mon, 21 Nov 2022 04:51:12 -0800 (PST) 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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=tOXXb0fJ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231381AbiKULle (ORCPT + 92 others); Mon, 21 Nov 2022 06:41:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231428AbiKULku (ORCPT ); Mon, 21 Nov 2022 06:40:50 -0500 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C194B7F3 for ; Mon, 21 Nov 2022 03:40:44 -0800 (PST) Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20221121114042epoutp011de18f6abe5527f2ef397ab9adbce919~plrViy1sh1664016640epoutp01P for ; Mon, 21 Nov 2022 11:40:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20221121114042epoutp011de18f6abe5527f2ef397ab9adbce919~plrViy1sh1664016640epoutp01P DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1669030842; bh=JAjDOi0UPBRuQmw/4iptna7NRf/JlL41ndKpEzYFly0=; h=From:To:Cc:Subject:Date:References:From; b=tOXXb0fJDGjW0la6WF+97EUwqp8wjDkeDvVKpd8u1pF1+aYc7oTTo8+UgM4nFjOcs 7bo4tS0NRmOOb8u8Pcc4LALXv0ALe4ZNCn1pE1lei1AFgdjOVbfWaUisZZrXAKoybg LBaiXiCAnsRi7nieYnwuOYcVXE1eOFZuvWRGmNfU= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20221121114041epcas5p15cb082216d3d85dc735e10fec6c12d7b~plrUz3E5H0823008230epcas5p1j; Mon, 21 Nov 2022 11:40:41 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.177]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4NG56w51qsz4x9Pv; Mon, 21 Nov 2022 11:40:40 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 1A.AC.39477.8B36B736; Mon, 21 Nov 2022 20:40:40 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20221121104714epcas5p27508b91010c72117dd7116fc387b382f~pk8pO18NA1910019100epcas5p2a; Mon, 21 Nov 2022 10:47:14 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20221121104714epsmtrp1af1d090f12c8ed21d5c7dfcf7b8f9719~pk8pNhkuC2438624386epsmtrp1P; Mon, 21 Nov 2022 10:47:14 +0000 (GMT) X-AuditID: b6c32a4a-259fb70000019a35-e1-637b63b851c6 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id CE.4B.14392.1375B736; Mon, 21 Nov 2022 19:47:13 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20221121104710epsmtip18f866e7d637eafa26ab0fb923b4208e0~pk8ltSTLF1013310133epsmtip1s; Mon, 21 Nov 2022 10:47:09 +0000 (GMT) From: Shradha Todi To: bhelgaas@google.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, kishon@ti.com, vkoul@kernel.org, lpieralisi@kernel.org, kw@linux.com, mani@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org, alim.akhtar@samsung.com, ajaykumar.rs@samsung.com, rcsekar@samsung.com, sriranjani.p@samsung.com, bharat.uppal@samsung.com, s.prashar@samsung.com, aswani.reddy@samsung.com, pankaj.dubey@samsung.com, p.rajanbabu@samsung.com, niyas.ahmed@samsung.com, chanho61.park@samsung.com Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, Shradha Todi Subject: [PATCH 0/6] Add PCIe support for Tesla FSD SoC Date: Mon, 21 Nov 2022 16:22:04 +0530 Message-Id: <20221121105210.68596-1-shradha.t@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrKJsWRmVeSWpSXmKPExsWy7bCmpu6O5Opkg5trFC0OvD/IYvFg3jY2 i7+TjrFbHNq8ld3i2ssL7BZLmjIsLu/Xtph/5ByrRfPi9WwWF572sFn0vXjIbNHQ85vV4vKu OWwWZ+cdZ7OYsOobi0XLnxYWiwMfVjFaPJnyiNXi6MZgi0Vbv7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2eP178L2FP3h7fvjRF4lbHua15ZzcJpz1PFnzsKNYQg/rrJ4bdxs5eTw/r7J4d/354vnV L9byH6t4fYUv4ZoSS3FGoqEWc1FxIgDh3o1HBAMAAA== X-CMS-MailID: 20221121104714epcas5p27508b91010c72117dd7116fc387b382f X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221121104714epcas5p27508b91010c72117dd7116fc387b382f References: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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 FSD platform has three instances of DesignWare based PCIe IP, one is in FSYS0 block and other two in FSYS1 block. This patch series add required DT binding, DT file modifications, Controller driver support and PHY driver support for the same. This series needs following three patches to be merged before this patchset [1]: https://www.spinics.net/lists/netdev/msg854161.html [2]: https://www.spinics.net/lists/netdev/msg854158.html [3]: https://lore.kernel.org/all/20221013104024.50179-2-p.rajanbabu@samsung.com/ Shradha Todi (6): dt-bindings: phy: Add PCIe PHY bindings for FSD dt-bindings: PCI: Add PCIe controller bindings for FSD PCI: dwc: fsd: Add FSD PCIe Controller driver support phy: tesla-pcie: Add PCIe PHY driver support for FSD arm64: dts: fsd: Add PCIe support for Tesla FSD SoC misc: pci_endpoint_test: Add driver data for FSD PCIe controllers .../bindings/pci/tesla,pcie-fsd-ep.yaml | 107 ++ .../bindings/pci/tesla,pcie-fsd.yaml | 117 ++ .../bindings/phy/phy-tesla-pcie.yaml | 75 ++ arch/arm64/boot/dts/tesla/fsd-evb.dts | 48 + arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi | 65 ++ arch/arm64/boot/dts/tesla/fsd.dtsi | 171 +++ drivers/misc/pci_endpoint_test.c | 3 + drivers/pci/controller/dwc/Kconfig | 35 + drivers/pci/controller/dwc/Makefile | 1 + drivers/pci/controller/dwc/pcie-fsd.c | 1021 +++++++++++++++++ drivers/phy/samsung/Kconfig | 10 + drivers/phy/samsung/Makefile | 1 + drivers/phy/samsung/phy-tesla-pcie.c | 397 +++++++ include/linux/pci_ids.h | 2 + 14 files changed, 2053 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/tesla,pcie-fsd-ep.yaml create mode 100644 Documentation/devicetree/bindings/pci/tesla,pcie-fsd.yaml create mode 100644 Documentation/devicetree/bindings/phy/phy-tesla-pcie.yaml create mode 100644 drivers/pci/controller/dwc/pcie-fsd.c create mode 100644 drivers/phy/samsung/phy-tesla-pcie.c -- 2.17.1