From patchwork Mon Jan 3 07:47:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 12702443 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A346FC433EF for ; Mon, 3 Jan 2022 07:49:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=K1S6bEOjxXs0pdZ/tLk48NJjqBdev2E/ONT3ffLmQeY=; b=NXbQJctIl+h3ra 7/t8+Dn5bbM5ShXJ/88lXWgh+sLAUd0t8OQjNfoUXiIAqXzFK/S1i/aU77KpjaEbS8Y1pll8p1Vln e+2vXkDLbQwJKuB2N/+2c/2FHXkyRqWvHovnClZPlqfuy3z7v6rsV2XW3W2FkRpvSvGUQaPQaKB8k fLmpDXxFtR1rK58Mce8kvfgwmx76RxKQ73DhDwzVwKgR4Ve4WSP1b/5GXGl0yQVbcGuTRk5u9+Wv0 9MTUrW+4ib+WY0zo4r+xUvYRMLJR2Nz/8nAIgA1A9ca9s8pSwb0BLEfcUbB/JQJ5A32kpRwofckgJ 4+xzXoOiSGcdlvYOEv1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4I4Y-008VWP-K7; Mon, 03 Jan 2022 07:48:02 +0000 Received: from st43p00im-ztdg10071801.me.com ([17.58.63.171]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4I4V-008VTZ-FC for linux-arm-kernel@lists.infradead.org; Mon, 03 Jan 2022 07:48:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1641196074; bh=MwMZsATWpgmG+kPynE5dyXpf6f+nL7GftB7qOw0on7Y=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=Wgs5HpiCTnVU9fBVHu7pF5O2E60NBd6nTQN1DGYzs+h1XVPn47pUk36iVcz9u10z1 zmPYRTM2Kpe5gx+3dJbe3kQZqlxyBsZxhDNAe06McjYB40FhQ9SdKB9AoT4jbN7+n7 81/7RRfzxqnnbxxUJxYDfhvppATcZc0ok0mmGdtB4qrRj/lsKPRklBFN5XOkUZxqhD 3iZnOihzMRQ70bAhbBqHYbjZ2Xdx14BgxuWSV/3+YBwyz1zAckPtLIdCYQvQLIbdaQ pmwVX+HpwjYBvAgPUB+LIA93lKNaqJeQytDbTGCY9SGpPCJnCrEEqmOCGOWmjbDdCl mzIuprer1iHPQ== Received: from localhost (101.220.150.77.rev.sfr.net [77.150.220.101]) by st43p00im-ztdg10071801.me.com (Postfix) with ESMTPSA id DAB953C097A; Mon, 3 Jan 2022 07:47:53 +0000 (UTC) From: Alain Volmat To: Rob Herring , linux-pci@vger.kernel.org Cc: Patrice Chotard , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Fabrice Gasnier , avolmat@me.com Subject: [PATCH RESEND v2 0/5] Introduction of PCIe support on STi platform Date: Mon, 3 Jan 2022 08:47:26 +0100 Message-Id: <20220103074731.3651-1-avolmat@me.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-Virus-Version: =?utf-8?q?vendor=3Dfsecure_engine=3D1=2E1=2E170-?= =?utf-8?q?22c6f66c430a71ce266a39bfe25bc2903e8d5c8f=3A6=2E0=2E425=2C18=2E0?= =?utf-8?q?=2E790=2C17=2E11=2E62=2E513=2E0000000_definitions=3D2022-01-03=5F?= =?utf-8?q?01=3A2021-12-30=5F02=2C2022-01-03=5F01=2C2021-12-02=5F01_signatur?= =?utf-8?q?es=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 bulkscore=0 malwarescore=0 spamscore=0 clxscore=1015 adultscore=0 suspectscore=0 mlxlogscore=999 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2201030052 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220102_234759_625639_75E9F10F X-CRM114-Status: GOOD ( 13.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The STi platform SoC embed a designware based PCIe controller. This serie include the driver for the controller and DT for the stih407-family and for the stih418-b2264 into which it is used. Within the DT and the binding, only st,stih407-pcie compatible is used. Rob, could you clarify if I need to mention both compatible (st,stih407-pcie and snps,dw-pcie) or if st,stih407-pcie is enought ? RESEND since not all patches made their way to the mailing list on previous attempt. v2: update of the pcie-st driver to add possibility to build as module and remove the __init of the probe Alain Volmat (5): dt-bindings: pci: st-pcie: PCIe controller found on STi platforms pci: dwc: pcie-st: Add PCIe driver for STi platforms MAINTAINERS: add entry for ST STI PCIE driver ARM: dts: sti: add the PCIe controller node within stih407-family ARM: dts: sti: enable PCIe on the stih418-b2264 board .../devicetree/bindings/pci/snps,dw-pcie.yaml | 2 +- .../devicetree/bindings/pci/st,st-pcie.yaml | 112 +++++ MAINTAINERS | 6 + arch/arm/boot/dts/stih407-family.dtsi | 40 ++ arch/arm/boot/dts/stih418-b2264.dts | 5 + drivers/pci/controller/dwc/Kconfig | 11 + drivers/pci/controller/dwc/Makefile | 1 + drivers/pci/controller/dwc/pcie-sti.c | 386 ++++++++++++++++++ 8 files changed, 562 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/pci/st,st-pcie.yaml create mode 100644 drivers/pci/controller/dwc/pcie-sti.c