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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9B1AC433FE for ; Mon, 3 Jan 2022 07:48:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232085AbiACHsO (ORCPT ); Mon, 3 Jan 2022 02:48:14 -0500 Received: from st43p00im-ztdg10073201.me.com ([17.58.63.177]:45198 "EHLO st43p00im-ztdg10073201.me.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232070AbiACHsN (ORCPT ); Mon, 3 Jan 2022 02:48:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1641196092; bh=A2jhYOomsuOm4V0BEb9bdP5dTvI8ffnV0G50ioBK2m4=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=jp1En/9A4+AlIU2j5cn+hooGGzKZNVOfDvrihi8x2e00Mkm7MIRUpRLthD6e0h9IR yj1CjnQuHhopaJOWHPOlrTJbje1/010jor0IQQLqs0M9gmaKjgMH9bQDd6c2qC9rO8 Jk8rW+Cwbjc7WL2j4Rk+WMTDMPXUuT7axGE21lvgzNAE6XrgJnc+o2Zb3OTgb+z1RF dUVwsHAHovTToor9GETYBXr+Qrfhz8Ty6FJfPngl6xizHhJmivvRUZsQlLwTmEZ681 cXpDqizKHiwQmvbO1Eh4CCh5opPQPaJRdcJ9tygR0qtsJdZYqbDtbLAQUTSSzG6SyX DpH1DpE011f6w== Received: from localhost (101.220.150.77.rev.sfr.net [77.150.220.101]) by st43p00im-ztdg10073201.me.com (Postfix) with ESMTPSA id 486F49A009E; Mon, 3 Jan 2022 07:48:11 +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 4/5] ARM: dts: sti: add the PCIe controller node within stih407-family Date: Mon, 3 Jan 2022 08:47:30 +0100 Message-Id: <20220103074731.3651-5-avolmat@me.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220103074731.3651-1-avolmat@me.com> References: <20220103074731.3651-1-avolmat@me.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.425,18.0.790,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2022-01-03=5F01:2021-12-30=5F02,2022-01-03=5F01,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1015 malwarescore=0 suspectscore=0 mlxscore=0 spamscore=0 adultscore=0 bulkscore=0 phishscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2201030052 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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>; -- 2.25.1