From patchwork Thu Dec 9 21:53:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 12695535 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 7469BC433F5 for ; Thu, 9 Dec 2021 21:56:15 +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:References:In-Reply-To: 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: List-Owner; bh=L0fFV9cHHmSxl9DdyeXq0Wzrk4KauYFG6jqLixHU1pE=; b=CfMaPA8fXJUWT7 E1kknFLxcBc5zwQxGMkiGm93Il6beHy6oqAlI4ARenQG/E5pe/5rM5I77L7hsjEw1+JgsZBj3kGWe 5A6U+h/0oRS/ysL71K6rE7I52ybwBCTEVp3rY7QkjAnvjQzqqTg67W6xenHZM6Msqga1i/KwoJWRN Q1IikNoI+BcSrvgeSNhEKmUE63OLtWJCtEGWXwYTHU9cvHEJjTzcyrzrCs2gSiZj8YK85Xfz/Aho4 16xVepnP7VVKaHEdxZzIuJyHAONDNqWbGhmrjLx+yV21QHazbf92PeXyOSnZFxbYZ0EXLw46bkxsC a7leKdzTr0YHU0ko+JIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvRNO-0008fr-D8; Thu, 09 Dec 2021 21:54:54 +0000 Received: from st43p00im-zteg10073501.me.com ([17.58.63.180]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvRMm-0008QI-K1 for linux-arm-kernel@lists.infradead.org; Thu, 09 Dec 2021 21:54:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1639086855; bh=A2jhYOomsuOm4V0BEb9bdP5dTvI8ffnV0G50ioBK2m4=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=M40Zm185h/t9iNiu+p4wE2nUpiaUjg9SUMTtcugy6nVu3RYi23+Wblk7NHHvcoK7j 0OUIDc2YizL5qUC6xWBdp9tNFTEfEtjs9msZkvS/XBvdhTYQVdd1OP4vsNyKM4DDHv BY4UYR8ZcZ5StJ0A1eHU0a4aFvyGOR4pWgVefFaIedZhAk0SBm+zFbwYbIvs6lZuub x6TZvyA3PLrHqwNvW7md7y8MryV0foPLqZtxH95WwQqLxpcrTiSd3GCdnBSa6kvQTZ h2ZzqpgfEhsRo6kj2MMI432mjOdwKyjYgrGFTUMA6p4b2CEEtAK8on0wpFvpCrR8/x +I2gnkZ+lG9vw== Received: from localhost (101.220.150.77.rev.sfr.net [77.150.220.101]) by st43p00im-zteg10073501.me.com (Postfix) with ESMTPSA id 8F09AAE053D; Thu, 9 Dec 2021 21:54:14 +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 4/5] ARM: dts: sti: add the PCIe controller node within stih407-family Date: Thu, 9 Dec 2021 22:53:49 +0100 Message-Id: <20211209215350.4207-5-avolmat@me.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211209215350.4207-1-avolmat@me.com> References: <20211209215350.4207-1-avolmat@me.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.425, 18.0.790 definitions=2021-12-08_08:2021-12-08, 2021-12-08 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2009150000 definitions=main-2112090112 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211209_135416_746547_5E9FB7BD X-CRM114-Status: GOOD ( 11.41 ) 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 Add the pcie1 entry within stih407-family dtsi. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih407-family.dtsi | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi index 21f3347a91d6..fe4ea2d5b583 100644 --- a/arch/arm/boot/dts/stih407-family.dtsi +++ b/arch/arm/boot/dts/stih407-family.dtsi @@ -631,6 +631,46 @@ spifsm: spifsm@9022000{ status = "disabled"; }; + pcie1: pcie@9b10000 { + compatible = "st,stih407-pcie"; + device_type = "pci"; + reg = <0x09b10000 0x00001000>, /* cntrl registers */ + <0x3fff0000 0x00010000>, /* config space */ + <0x40000000 0xc0000000>; /* lmi mem window */ + + reg-names = "dbi", + "config", + "mem-window"; + + st,syscfg = <&syscfg_core 0xdc 0xe4>; + + #interrupt-cells = <1>; + interrupts = ; + interrupt-names = "msi"; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &intc GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 2 &intc GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 3 &intc GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 4 &intc GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>; + + #address-cells = <3>; + #size-cells = <2>; + /* non-prefetchable and prefetchable */ + ranges = <0x82000000 0 0x30000000 0x30000000 0 0x05550000>, + <0xc2000000 0 0x35550000 0x35550000 0 0x0AAA0000>; + bus-range = <0x00 0xff>; + + resets = <&softreset STIH407_PCIE1_SOFTRESET>, + <&powerdown STIH407_PCIE1_POWERDOWN>; + + reset-names = "softreset", "powerdown"; + + phys = <&phy_port1 PHY_TYPE_PCIE>; + phy-names = "pcie"; + + status = "disabled"; + }; + sata0: sata@9b20000 { compatible = "st,ahci"; reg = <0x9b20000 0x1000>;