From patchwork Thu Oct 3 18:15:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13821374 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 2B5C5CF34BC for ; Thu, 3 Oct 2024 18:17:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding: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=otJX/mdx8jk1/7TFcF6TX17yGDYgpbkQQWGRIi9ynqw=; b=HmMRKckhKme94vslwJAEEkZN0n 38tvhKIhEApRHjrsc6gc7ZkHI/5OEA06fS1UqrpssCDmd7JPQZHoMiVu8NjXMK8ZlBOwzQWQnOhHN QsN90OocfkjJWy7R/LUkQvNPh/iIQYSeyTxOC86ve3MWfcol/PTz0oTqjeZQJeSQQyMwhmjtVhNXD k/QHshVjkgP+LKN80/WcqLloa1jj+NTz1bmPqtdHzniKJPa32nDmL6ufAcGNX8X2qUnaeVDQ8VFxS mdVFJ2F9WrpqVN1t+1rHVKPDKsGcIE5aL8Irk3EDXT5Kmtg202QO2Tk2hjxQzZALERojfiCP3Ns3v Q6xtnAGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1swQOH-0000000A43E-0QFC; Thu, 03 Oct 2024 18:17:29 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1swQMz-0000000A3na-441y for linux-arm-kernel@lists.infradead.org; Thu, 03 Oct 2024 18:16:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=y/fjF700fQcRLG7A6L340CTLujZjHcxHIxiyRpnznEBl/DAJznGsbxAW9kJUuITFGz/bH5PbadtZ6VHH5dUHm3vLFthUS7Cpz55eox8c3RRmfj8+LMl+v5ea7wvQJ1fkfnEGhRY0DFy5TAZkR910QuK4qnZ9NKBMpnhhuaCwaHAFsehwnydURBLKT8YiDwAfyRPFnRokkBtJIgS/wFH2jn0Sk8wAUUzv1xjwJOag+vmJNcx14glM6O5kFJxUt6lCUJplqWfRSSm3BVfsct6fWDffXWAF05FRWK6d4OTxD9/0IDeE1buerTu+P5YQc3fAwpT1Ukxjq9Y5WIBzZM5TGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=otJX/mdx8jk1/7TFcF6TX17yGDYgpbkQQWGRIi9ynqw=; b=XCU4G2+g6UvzzWitnCbm8P0nL/ZwPj+xP8HTGY/0QWScq6sKrU8N2f+sajrQ+Mm4XoF58qW2FOVL4WFuDuatDNn+UQAOBhNRORmbStqBBozAMGDl3W1HTkRlLUXLsr7ywqhudwLx16d1VRSt8g5jJGNFw+eSR2vdWFgP7cJEPe2HPfHpSp1Kjavw5MGIfxCdaRhD7rwLndCw+GJW8dK+Y8H/aWtXNs2Ft6Mi7E8PaLF1stWhAQZ9A++MaVtSJE4lVQUjz02evNyjSm16fENn1C8gdIwLnO2pwRvFOEK6P/RMOCSaprshrPgu4DTup5/cnSeJGqTkpVw3waYqmEQ4uQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=otJX/mdx8jk1/7TFcF6TX17yGDYgpbkQQWGRIi9ynqw=; b=AZUlorhNm/u+dE7AvFrR0nS3P0fJ65s04KDCC0xWfGbgYvhBUc5QTWw4Ys4XphP/efvaRRteyTsSD23LuZcriZNv4ZEkRnmZ32LjE+owOVBnc/Erv5GkuTjA5GVj10f11flT2RyBGW+xKbxv0EIG239z7epFUCcCACqgX2J4qzgPTDcR4lqZJJ/WgzknZ7dVPtU6w35G/i1Bub4+/vUDGrenwnZAzUK9B8P7wPxPjqX05aCBjTE41lrDrpb92IPHjmnforIvJ6XCIVqsa2D6KeEZ8aF0qT6IeAYDMO/f/PL2a9r+igqHNsPcy4UXNTJ3c4pL/GYx06Sfhu2fOnt0Gw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DU2PR04MB9194.eurprd04.prod.outlook.com (2603:10a6:10:2f9::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Thu, 3 Oct 2024 18:16:00 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8026.016; Thu, 3 Oct 2024 18:16:00 +0000 From: Frank Li To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), imx@lists.linux.dev (open list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Cc: imx@lists.linux.dev Subject: [PATCH v2 1/4] arm64: dts: imx8-ss-hsio: Add PCIe support Date: Thu, 3 Oct 2024 14:15:37 -0400 Message-Id: <20241003181542.620461-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: BYAPR21CA0014.namprd21.prod.outlook.com (2603:10b6:a03:114::24) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DU2PR04MB9194:EE_ X-MS-Office365-Filtering-Correlation-Id: 02f4a227-7629-4020-b6d9-08dce3d76ee4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: E/HXdS9y1VYoWh1yAOv3q90MuX/sgGGNdS6+K0E5IwTIn9Y2nhfarIt+M2eUE7xs7+NVYb4HFVyI6Ai8o3qxd072GKK73xOXzoNo/pTRg6Chtkgx5sEvy2ys21wJjjrPva6/ZfvADjhdCDFiu9+dNsocy8bxSpCPhCI4VRgXWOtsIB1V9GeAQJ1ju/TampwiFnFLLzfCKcvLld9OtQZ3kYE6ShYRZ1d0d+0opoVozyq9PSsjXEuge78Ezb/c0Nlcqb8tuxEmTEPEtYVxBebm6GzX/ihxB4oHBJUxuRYqyJg13MJ6EQrziwHmLRDvekVt52ry82xUHb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RY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(52116014)(376014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: p/oFYbFYCb3Gi2gRlhPLiIEPZL9N+hQex48ypDe+8VnWubpfNNPaKFzqPyDXRKpmxVh2MyRDAKyGNDNzCWRY9Cm8e6crenMt0ompK3z7hUV0jy++f8ZwOXC0MkMFLnk3013z9LYQzlnIolzGoly6Fj7vYW0iPaRNecw3Hd/4d4/sSgBrMnE4KvDbuzQ6Y4cRPOFT7AwEU6L/hEJjt5difkO1bAxLMMcPi1TyutWuYLL1Lulvjrfn4BcSpBpHAOFL/mzeQGAJ/V0FR0ybgLhNOI8AvlcPJHnnvhzYPEDWfitOPw5csH29CV3gX4NfXF/1kOIEk3eyerAWR7tptPE2hbO1lJFwahCh/xSCK8VFZFth1RePIDGGu/tus5rkYcvqqQkIYHwEB3xwGw104y2e9e3TZWrg0aec0/xy5YpBCJ8170VWa0tTjNCWZaEjVsHzSOvX4HnNUnZ5+gCvVZqV6l+uArKC2XoTKH6lkIv7U1uiMz9e0o2HMaeOFZX1+/tgO7ixi0GEIMgME0WeydAYDyFzkBMjTj5kBkbUS76yYhiM5BVe3ScTbhvhTfWiPU31P526JCOQZE9Dcgf/FcockiF4vGxdH6BIUGNfVF9i78co2/t6MyxKImSbJFyqRcKIcfe6KsPhKQa/f7gmWDb4TM4IOmcW9Bgm2v+qYhlUU4F6mj+aiFyaBOUNEuFnad0B1bpJjGKuIp2Q8CJLyKQFLt0OWatPM9xrWGkfQfypuY4f5iiehRxC6b1mdSOwaxNDX5Gdv6SX7imstxp02EYGPhpPjyHg2w79tpAkGIz1u4Ldhi4xqTYXpy2WlsUn2H6M7Gb9eugfrk+vtcMJyLR+3+SN7czZ3Dfti06/9j0i7UsrJvqSMS9TqEb12wDtfx8zpHQBNGEba3MGFwaye8CD+UDqgiSlsAJQ5n+0YLYIuGebUO3weOZ4JEpsUfqlS3XDpRKy9GbiVZJdr+LjHQ7E4wcm85gU0dFIcJjlAcJ4qvA7MIqJwaZi0XaEQ93biAqjRQrqI3PdENRRHAKq3Ftq3MOEQc+zpLFkeUosi/u/GHXT9lCYaWdICQIT72+M6ZhFL/bo3V1KXOACkIJVI1oySGrPibyLbaEaqauslubJ2jY9RqiN5NJnfc+TNfKSATFHOQ+Fizcqd42jLXd3xH8rUmReZa+DgIFmF7BJ8T6hXhL/dADtBIRJxnJdiht8YixdEs0BhKXRlaH0sq2CZAJ+to1K98ZrlYtQAUMpDwHKKBzZzIfFxbOgXUq9kU4IZwgJ0m6GqaeCnTSlFUOvpxflWN2Xi7cRy1IeUiIhFyJmPQehtF0oGQMUQI60hD9kJxDI6QvBQxo6vazon8VAPOcEdFUlFvjqq0oo9rrTCsHz9mJerlEDMWU/fucsYP242jeR+1P5JOYEzQ9iiBbOIdl4RECVNEh1pcv58gtlk8I7wpyRwY0IWlrrr/kwukf+b3j7FP/d8+C9VGbDh5DU5dd+dIjIKD9ozq16Mu3A31Qw4CGVXTnmvepm4QqqQdFgYaR9w2bp8EHgBSOs/0Gz0+eu9LDFnXuwJBu/lXxr+LcJBGKXjhKnbCaYJrko7xPk9vSb X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 02f4a227-7629-4020-b6d9-08dce3d76ee4 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2024 18:16:00.0340 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: FUQzmkuvoHHHlovr5fNwFKl75J4C1ltQin5wJ4GNDRF8v6jL2I4qZrVUzw3duy1fo06yozvyxBe/FeCHW+Myxg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9194 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241003_111610_214668_0F09A532 X-CRM114-Status: GOOD ( 16.09 ) 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 From: Richard Zhu Add PCIe support for i.MX8QXP, i.MX8QM and i.MX8DXL. Signed-off-by: Richard Zhu Signed-off-by: Frank Li --- Change from v1 to v2 - none On going discussion: https://lore.kernel.org/imx/20240930-pci_fixup_addr-v3-2-80ee70352fc7@nxp.com/ don't affect this dts. This work for with/without above patches. --- .../boot/dts/freescale/imx8-ss-hsio.dtsi | 123 +++++++++++ .../boot/dts/freescale/imx8dxl-ss-hsio.dtsi | 52 +++++ arch/arm64/boot/dts/freescale/imx8dxl.dtsi | 2 + .../boot/dts/freescale/imx8qm-ss-hsio.dtsi | 209 ++++++++++++++++++ arch/arm64/boot/dts/freescale/imx8qm.dtsi | 2 + .../boot/dts/freescale/imx8qxp-ss-hsio.dtsi | 41 ++++ arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 2 + 7 files changed, 431 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8-ss-hsio.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8dxl-ss-hsio.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8qm-ss-hsio.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8qxp-ss-hsio.dtsi diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-hsio.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-hsio.dtsi new file mode 100644 index 0000000000000..bf05cae05d27a --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8-ss-hsio.dtsi @@ -0,0 +1,123 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2024 NXP + * + * Richard Zhu + */ +#include + +hsio_axi_clk: clock-hsio-axi { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <400000000>; + clock-output-names = "hsio_axi_clk"; +}; + +hsio_per_clk: clock-hsio-per { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <133333333>; + clock-output-names = "hsio_per_clk"; +}; + +hsio_refa_clk: clock-hsio-refa { + compatible = "gpio-gate-clock"; + clocks = <&xtal100m>; + #clock-cells = <0>; + enable-gpios = <&lsio_gpio4 27 GPIO_ACTIVE_LOW>; +}; + +hsio_refb_clk: clock-hsio-refb { + compatible = "gpio-gate-clock"; + clocks = <&xtal100m>; + #clock-cells = <0>; + enable-gpios = <&lsio_gpio4 1 GPIO_ACTIVE_LOW>; +}; + +xtal100m: clock-xtal100m { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <100000000>; + clock-output-names = "xtal_100MHz"; +}; + +hsio_subsys: bus@5f000000 { + compatible = "simple-bus"; + ranges = <0x5f000000 0x0 0x5f000000 0x21000000>, + <0x80000000 0x0 0x70000000 0x10000000>; + #address-cells = <1>; + #size-cells = <1>; + dma-ranges = <0x80000000 0 0x80000000 0x80000000>; + + pcieb: pcie@5f010000 { + compatible = "fsl,imx8q-pcie"; + reg = <0x5f010000 0x10000>, + <0x8ff00000 0x80000>; + reg-names = "dbi", "config"; + ranges = <0x81000000 0 0x00000000 0x8ff80000 0 0x00010000>, + <0x82000000 0 0x80000000 0x80000000 0 0x0ff00000>; + #interrupt-cells = <1>; + interrupts = ; + interrupt-names = "msi"; + #address-cells = <3>; + #size-cells = <2>; + clocks = <&pcieb_lpcg IMX_LPCG_CLK_6>, + <&pcieb_lpcg IMX_LPCG_CLK_4>, + <&pcieb_lpcg IMX_LPCG_CLK_5>; + clock-names = "dbi", "mstr", "slv"; + bus-range = <0x00 0xff>; + device_type = "pci"; + fsl,max-link-speed = <3>; + interrupt-map = <0 0 0 1 &gic 0 105 4>, + <0 0 0 2 &gic 0 106 4>, + <0 0 0 3 &gic 0 107 4>, + <0 0 0 4 &gic 0 108 4>; + interrupt-map-mask = <0 0 0 0x7>; + num-lanes = <1>; + num-viewport = <4>; + power-domains = <&pd IMX_SC_R_PCIE_B>; + status = "disabled"; + }; + + pcieb_lpcg: clock-controller@5f060000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5f060000 0x10000>; + clocks = <&hsio_axi_clk>, <&hsio_axi_clk>, <&hsio_axi_clk>; + #clock-cells = <1>; + clock-indices = , , ; + clock-output-names = "hsio_pcieb_mstr_axi_clk", + "hsio_pcieb_slv_axi_clk", + "hsio_pcieb_dbi_axi_clk"; + power-domains = <&pd IMX_SC_R_PCIE_B>; + }; + + phyx1_crr1_lpcg: clock-controller@5f0b0000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5f0b0000 0x10000>; + clocks = <&hsio_per_clk>; + #clock-cells = <1>; + clock-indices = ; + clock-output-names = "hsio_phyx1_per_clk"; + power-domains = <&pd IMX_SC_R_SERDES_1>; + }; + + pcieb_crr3_lpcg: clock-controller@5f0d0000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5f0d0000 0x10000>; + clocks = <&hsio_per_clk>; + #clock-cells = <1>; + clock-indices = ; + clock-output-names = "hsio_pcieb_per_clk"; + power-domains = <&pd IMX_SC_R_PCIE_B>; + }; + + misc_crr5_lpcg: clock-controller@5f0f0000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5f0f0000 0x10000>; + clocks = <&hsio_per_clk>; + #clock-cells = <1>; + clock-indices = ; + clock-output-names = "hsio_misc_per_clk"; + power-domains = <&pd IMX_SC_R_HSIO_GPIO>; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-ss-hsio.dtsi b/arch/arm64/boot/dts/freescale/imx8dxl-ss-hsio.dtsi new file mode 100644 index 0000000000000..f3104e205ae89 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8dxl-ss-hsio.dtsi @@ -0,0 +1,52 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2024 NXP + */ + +&hsio_subsys { + phyx1_lpcg: clock-controller@5f090000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5f090000 0x10000>; + clocks = <&hsio_refb_clk>, <&hsio_per_clk>, + <&hsio_per_clk>, <&hsio_per_clk>; + #clock-cells = <1>; + clock-indices = , , + , ; + clock-output-names = "hsio_phyx1_pclk", + "hsio_phyx1_epcs_tx_clk", + "hsio_phyx1_epcs_rx_clk", + "hsio_phyx1_apb_clk"; + power-domains = <&pd IMX_SC_R_SERDES_1>; + }; + + hsio_phy: phy@5f1a0000 { + compatible = "fsl,imx8qxp-hsio"; + reg = <0x5f1a0000 0x10000>, + <0x5f120000 0x10000>, + <0x5f140000 0x10000>, + <0x5f160000 0x10000>; + reg-names = "reg", "phy", "ctrl", "misc"; + clocks = <&phyx1_lpcg IMX_LPCG_CLK_0>, + <&phyx1_lpcg IMX_LPCG_CLK_4>, + <&phyx1_crr1_lpcg IMX_LPCG_CLK_4>, + <&pcieb_crr3_lpcg IMX_LPCG_CLK_4>, + <&misc_crr5_lpcg IMX_LPCG_CLK_4>; + clock-names = "pclk0", "apb_pclk0", "phy0_crr", "ctl0_crr", + "misc_crr"; + #phy-cells = <3>; + power-domains = <&pd IMX_SC_R_SERDES_1>; + status = "disabled"; + }; +}; + +&pcieb { + #interrupt-cells = <1>; + interrupts = ; + interrupt-names = "msi"; + interrupt-map = <0 0 0 1 &gic 0 47 4>, + <0 0 0 2 &gic 0 48 4>, + <0 0 0 3 &gic 0 49 4>, + <0 0 0 4 &gic 0 50 4>; + interrupt-map-mask = <0 0 0 0x7>; +}; + diff --git a/arch/arm64/boot/dts/freescale/imx8dxl.dtsi b/arch/arm64/boot/dts/freescale/imx8dxl.dtsi index 7e54cf2028580..76de3db8b9423 100644 --- a/arch/arm64/boot/dts/freescale/imx8dxl.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8dxl.dtsi @@ -237,12 +237,14 @@ xtal24m: clock-xtal24m { #include "imx8-ss-conn.dtsi" #include "imx8-ss-ddr.dtsi" #include "imx8-ss-lsio.dtsi" + #include "imx8-ss-hsio.dtsi" }; #include "imx8dxl-ss-adma.dtsi" #include "imx8dxl-ss-conn.dtsi" #include "imx8dxl-ss-lsio.dtsi" #include "imx8dxl-ss-ddr.dtsi" +#include "imx8dxl-ss-hsio.dtsi" &cm40_intmux { interrupts = , diff --git a/arch/arm64/boot/dts/freescale/imx8qm-ss-hsio.dtsi b/arch/arm64/boot/dts/freescale/imx8qm-ss-hsio.dtsi new file mode 100644 index 0000000000000..6494f55d33f85 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8qm-ss-hsio.dtsi @@ -0,0 +1,209 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2024 NXP + * Richard Zhu + */ + +&hsio_subsys { + compatible = "simple-bus"; + ranges = <0x5f000000 0x0 0x5f000000 0x21000000>, + <0x40000000 0x0 0x60000000 0x10000000>, + <0x80000000 0x0 0x70000000 0x10000000>; + #address-cells = <1>; + #size-cells = <1>; + + pciea: pcie@5f000000 { + compatible = "fsl,imx8q-pcie"; + reg = <0x5f000000 0x10000>, + <0x4ff00000 0x80000>; + reg-names = "dbi", "config"; + ranges = <0x81000000 0 0x00000000 0x4ff80000 0 0x00010000>, + <0x82000000 0 0x40000000 0x40000000 0 0x0ff00000>; + #interrupt-cells = <1>; + interrupts = ; + interrupt-names = "msi"; + #address-cells = <3>; + #size-cells = <2>; + clocks = <&pciea_lpcg 2>, + <&pciea_lpcg 0>, + <&pciea_lpcg 1>; + clock-names = "dbi", "mstr", "slv"; + bus-range = <0x00 0xff>; + device_type = "pci"; + fsl,max-link-speed = <3>; + interrupt-map = <0 0 0 1 &gic 0 73 4>, + <0 0 0 2 &gic 0 74 4>, + <0 0 0 3 &gic 0 75 4>, + <0 0 0 4 &gic 0 76 4>; + interrupt-map-mask = <0 0 0 0x7>; + num-lanes = <1>; + num-viewport = <4>; + power-domains = <&pd IMX_SC_R_PCIE_A>; + status = "disabled"; + }; + + pcieb: pcie@5f010000 { + compatible = "fsl,imx8q-pcie"; + reg = <0x5f010000 0x10000>, + <0x8ff00000 0x80000>; + reg-names = "dbi", "config"; + ranges = <0x81000000 0 0x00000000 0x8ff80000 0 0x00010000>, + <0x82000000 0 0x80000000 0x80000000 0 0x0ff00000>; + #interrupt-cells = <1>; + interrupts = ; + interrupt-names = "msi"; + #address-cells = <3>; + #size-cells = <2>; + clocks = <&pcieb_lpcg 2>, + <&pcieb_lpcg 0>, + <&pcieb_lpcg 1>; + clock-names = "dbi", "mstr", "slv"; + bus-range = <0x00 0xff>; + device_type = "pci"; + fsl,max-link-speed = <3>; + interrupt-map = <0 0 0 1 &gic 0 105 4>, + <0 0 0 2 &gic 0 106 4>, + <0 0 0 3 &gic 0 107 4>, + <0 0 0 4 &gic 0 108 4>; + interrupt-map-mask = <0 0 0 0x7>; + num-lanes = <1>; + num-viewport = <4>; + power-domains = <&pd IMX_SC_R_PCIE_B>; + status = "disabled"; + }; + + sata: sata@5f020000 { + compatible = "fsl,imx8qm-ahci"; + reg = <0x5f020000 0x10000>; + interrupts = ; + clocks = <&sata_lpcg 0>, + <&sata_crr4_lpcg 0>; + clock-names = "sata", "sata_ref"; + /* + * Since "REXT" pin is only present for first lane PHY + * and its calibration result will be stored, and shared + * by the PHY used by SATA. + * + * Add the calibration PHYs for SATA here, although only + * the third lane PHY is used by SATA. + */ + phys = <&hsio_phy 2 PHY_TYPE_SATA 0>, + <&hsio_phy 0 PHY_TYPE_PCIE 0>, + <&hsio_phy 1 PHY_TYPE_PCIE 1>; + phy-names = "sata-phy", "cali-phy0", "cali-phy1"; + power-domains = <&pd IMX_SC_R_SATA_0>; + status = "disabled"; + }; + + pciea_lpcg: clock-controller@5f050000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5f050000 0x10000>; + clocks = <&hsio_axi_clk>, <&hsio_axi_clk>, <&hsio_axi_clk>; + #clock-cells = <1>; + clock-indices = , , ; + clock-output-names = "hsio_pciea_mstr_axi_clk", + "hsio_pciea_slv_axi_clk", + "hsio_pciea_dbi_axi_clk"; + power-domains = <&pd IMX_SC_R_PCIE_A>; + }; + + sata_lpcg: clock-controller@5f070000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5f070000 0x10000>; + clocks = <&hsio_axi_clk>; + #clock-cells = <1>; + clock-indices = ; + clock-output-names = "hsio_sata_clk"; + power-domains = <&pd IMX_SC_R_SATA_0>; + }; + + phyx2_lpcg: clock-controller@5f080000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5f080000 0x10000>; + clocks = <&hsio_refa_clk>, <&hsio_per_clk>, + <&hsio_refa_clk>, <&hsio_per_clk>; + #clock-cells = <1>; + clock-indices = , , + , ; + clock-output-names = "hsio_phyx2_pclk_0", + "hsio_phyx2_pclk_1", + "hsio_phyx2_apbclk_0", + "hsio_phyx2_apbclk_1"; + power-domains = <&pd IMX_SC_R_SERDES_0>; + }; + + phyx1_lpcg: clock-controller@5f090000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5f090000 0x10000>; + clocks = <&hsio_refa_clk>, <&hsio_per_clk>, + <&hsio_per_clk>, <&hsio_per_clk>; + #clock-cells = <1>; + clock-indices = , , + , ; + clock-output-names = "hsio_phyx1_pclk", + "hsio_phyx1_epcs_tx_clk", + "hsio_phyx1_epcs_rx_clk", + "hsio_phyx1_apb_clk"; + power-domains = <&pd IMX_SC_R_SERDES_1>; + }; + + phyx2_crr0_lpcg: clock-controller@5f0a0000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5f0a0000 0x10000>; + clocks = <&hsio_per_clk>; + #clock-cells = <1>; + clock-indices = ; + clock-output-names = "hsio_phyx2_per_clk"; + power-domains = <&pd IMX_SC_R_SERDES_0>; + }; + + pciea_crr2_lpcg: clock-controller@5f0c0000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5f0c0000 0x10000>; + clocks = <&hsio_per_clk>; + #clock-cells = <1>; + clock-indices = ; + clock-output-names = "hsio_pciea_per_clk"; + power-domains = <&pd IMX_SC_R_PCIE_A>; + }; + + sata_crr4_lpcg: clock-controller@5f0e0000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5f0e0000 0x10000>; + clocks = <&hsio_per_clk>; + #clock-cells = <1>; + clock-indices = ; + clock-output-names = "hsio_sata_per_clk"; + power-domains = <&pd IMX_SC_R_SATA_0>; + }; + + hsio_phy: phy@5f180000 { + compatible = "fsl,imx8qm-hsio"; + reg = <0x5f180000 0x30000>, + <0x5f110000 0x20000>, + <0x5f130000 0x30000>, + <0x5f160000 0x10000>; + reg-names = "reg", "phy", "ctrl", "misc"; + clocks = <&phyx2_lpcg IMX_LPCG_CLK_0>, + <&phyx2_lpcg IMX_LPCG_CLK_1>, + <&phyx2_lpcg IMX_LPCG_CLK_4>, + <&phyx2_lpcg IMX_LPCG_CLK_5>, + <&phyx1_lpcg IMX_LPCG_CLK_0>, + <&phyx1_lpcg IMX_LPCG_CLK_1>, + <&phyx1_lpcg IMX_LPCG_CLK_2>, + <&phyx1_lpcg IMX_LPCG_CLK_4>, + <&phyx2_crr0_lpcg IMX_LPCG_CLK_4>, + <&phyx1_crr1_lpcg IMX_LPCG_CLK_4>, + <&pciea_crr2_lpcg IMX_LPCG_CLK_4>, + <&pcieb_crr3_lpcg IMX_LPCG_CLK_4>, + <&sata_crr4_lpcg IMX_LPCG_CLK_4>, + <&misc_crr5_lpcg IMX_LPCG_CLK_4>; + clock-names = "pclk0", "pclk1", "apb_pclk0", "apb_pclk1", + "pclk2", "epcs_tx", "epcs_rx", "apb_pclk2", + "phy0_crr", "phy1_crr", "ctl0_crr", + "ctl1_crr", "ctl2_crr", "misc_crr"; + #phy-cells = <3>; + power-domains = <&pd IMX_SC_R_SERDES_0>, <&pd IMX_SC_R_SERDES_1>; + status = "disabled"; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi index 3ee6e2869e3cf..ac9064a949d82 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi @@ -594,6 +594,7 @@ mipi_pll_div2_clk: clock-controller-mipi-div2-pll { #include "imx8-ss-dma.dtsi" #include "imx8-ss-conn.dtsi" #include "imx8-ss-lsio.dtsi" + #include "imx8-ss-hsio.dtsi" }; #include "imx8qm-ss-img.dtsi" @@ -603,3 +604,4 @@ mipi_pll_div2_clk: clock-controller-mipi-div2-pll { #include "imx8qm-ss-audio.dtsi" #include "imx8qm-ss-lvds.dtsi" #include "imx8qm-ss-mipi.dtsi" +#include "imx8qm-ss-hsio.dtsi" diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-ss-hsio.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp-ss-hsio.dtsi new file mode 100644 index 0000000000000..47fc6e0cff4a1 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8qxp-ss-hsio.dtsi @@ -0,0 +1,41 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2024 NXP + * Richard Zhu + */ + +&hsio_subsys { + phyx1_lpcg: clock-controller@5f090000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5f090000 0x10000>; + clocks = <&hsio_refb_clk>, <&hsio_per_clk>, + <&hsio_per_clk>, <&hsio_per_clk>; + #clock-cells = <1>; + clock-indices = , , + , ; + clock-output-names = "hsio_phyx1_pclk", + "hsio_phyx1_epcs_tx_clk", + "hsio_phyx1_epcs_rx_clk", + "hsio_phyx1_apb_clk"; + power-domains = <&pd IMX_SC_R_SERDES_1>; + }; + + hsio_phy: phy@5f1a0000 { + compatible = "fsl,imx8qxp-hsio"; + reg = <0x5f1a0000 0x10000>, + <0x5f120000 0x10000>, + <0x5f140000 0x10000>, + <0x5f160000 0x10000>; + reg-names = "reg", "phy", "ctrl", "misc"; + clocks = <&phyx1_lpcg IMX_LPCG_CLK_0>, + <&phyx1_lpcg IMX_LPCG_CLK_1>, + <&phyx1_crr1_lpcg IMX_LPCG_CLK_4>, + <&pcieb_crr3_lpcg IMX_LPCG_CLK_4>, + <&misc_crr5_lpcg IMX_LPCG_CLK_4>; + clock-names = "pclk0", "apb_pclk0", "phy0_crr", "ctl0_crr", + "misc_crr"; + #phy-cells = <3>; + power-domains = <&pd IMX_SC_R_SERDES_1>; + status = "disabled"; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index 0313f295de2e9..db21c6d64f24d 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi @@ -323,6 +323,7 @@ map0 { #include "imx8-ss-conn.dtsi" #include "imx8-ss-ddr.dtsi" #include "imx8-ss-lsio.dtsi" + #include "imx8-ss-hsio.dtsi" }; #include "imx8qxp-ss-img.dtsi" @@ -330,3 +331,4 @@ map0 { #include "imx8qxp-ss-adma.dtsi" #include "imx8qxp-ss-conn.dtsi" #include "imx8qxp-ss-lsio.dtsi" +#include "imx8qxp-ss-hsio.dtsi" From patchwork Thu Oct 3 18:15:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13821375 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 8E791CF34BC for ; Thu, 3 Oct 2024 18:18:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding: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=Ry3yMsSUAKR3lOdbiah9P0pNrcUap4zX9GbGljGFwvk=; b=HxQsQB6Q4IoqB++I9NrONMx79l 7VcVS8+6AIK9njqs4xrh2nV5yLDzY+kKhmLtOfqTg2UBRTwfhq2FkMGDfiwsbU9cFmScRArkwTJAZ dZ2xUMg0OAm+rJtsGMDP5GDt+aHKY8EqPvQuuhqLIswR5Rhk2/3P11beoRE1hwkJGHGVHLT9mhi8n nq7cxeSwXB7E+1err4e+ZftSs3s9zSRMktvG+CtHf1/hKkXXGAkJBVxbGNfh9UT/qX+frc4kP8sIF kwe2ZRKtCbPaQ5SVCjq5QY2TqpA/Nw9mowEvIjnj2/zlptHqbq2gp8usXw2Zly9ArTb8QYEkTv1by stxl2X3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1swQPT-0000000A48v-22Z5; Thu, 03 Oct 2024 18:18:43 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1swQN2-0000000A3na-0Y9h for linux-arm-kernel@lists.infradead.org; Thu, 03 Oct 2024 18:16:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AGBDOyb6407pyGhIkjrSxrTgWbuHpaG27SRSH1UeCG9b4GkKLkYxS1oAX9jAMEipSmYyl3/FJ6ktAcY1wyTR0NhEFGWD/ZEVuw/oeZmGa6vdDWOYutzobLj+Y2dy6ArPmB/u1jqiAgL80GgJVRXbYFflq06bKGWGAHAfZIgjFXzhDf9zd4ump5r0oxndtqJpe4f8M6P3qRjlA46831En1VS6r+nR51z5I/FPw8tBiU/EKpmFudMb5LGvS1rr18fc+QCWkJvMUdbeLUSLtAfJeIF+CUKZhTOpMY2PtGd8rLTos7A9a0LMLxd/79Od3R3nl6AAc1/VZ5dXoCRG/xf5oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ry3yMsSUAKR3lOdbiah9P0pNrcUap4zX9GbGljGFwvk=; b=cPMPHseZc+QzaJidur4ptb31MSkH/HMx8mxs8COBbPVPXjDKijHurOFAH9tnRjp1SlFqkHThlEDaN+7MOzK7foxA+CtKiVh73dvgctNR8l5jdVdG9MJN2rA0RMJysPPBz4DU8AjA/w+bnmadSEMPklbu+AZ5jQzl1k8Iy5lR1+aQpGpzO4wQPmQS1HhE0hYLznJret3DljJWGeuGHZGHIB31DGJ3N/qwq+nuMD6hC+ccNc/RJEsztpdbcOC2zsUnvBa3VjMHeYnhdrmtbclTD464sQrwHXQGsNOhcxL08MrXDdfDAqkGpatH69bvwW26ivoRS2G9FP3LTnOBU+jJew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ry3yMsSUAKR3lOdbiah9P0pNrcUap4zX9GbGljGFwvk=; b=AFVC2KUTR3El6cfy4ZVVUg4wBbL/HTKfc+lnWBmxhDyLr60NHrh8y19SthHBpa3YOCByw9Wdsf4ldGiFigOFtd7+vy2ioDkX82dOH+4PveuoqciZLt4OAbD5dM7VbQnyR2dwztpuzLi0QSlmEvGq0kA5h9oncTxTs1h679+saVICHDvYWkncKQjHsSlCR6Te4qYaWf5F4g1orY5nBtoPv0CV71wyRAXYxa2pMIHDlsS1MIAM5ODSflGEOMlVsa77VeZy6TBwsnngYf49+uBvvOQMvOi3H6swdjjs+AoEWZydKYSj6emQ9HrfE2slet9ApJCmvOzBgYbJUCTMzZ/t8g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DU2PR04MB9194.eurprd04.prod.outlook.com (2603:10a6:10:2f9::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Thu, 3 Oct 2024 18:16:03 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8026.016; Thu, 3 Oct 2024 18:16:03 +0000 From: Frank Li To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), imx@lists.linux.dev (open list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Cc: imx@lists.linux.dev Subject: [PATCH v2 2/4] arm64: dts: imx8dxl-evk: Add PCIe support Date: Thu, 3 Oct 2024 14:15:38 -0400 Message-Id: <20241003181542.620461-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241003181542.620461-1-Frank.Li@nxp.com> References: <20241003181542.620461-1-Frank.Li@nxp.com> X-ClientProxiedBy: BYAPR21CA0014.namprd21.prod.outlook.com (2603:10b6:a03:114::24) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DU2PR04MB9194:EE_ X-MS-Office365-Filtering-Correlation-Id: a1d9fe11-41f1-4e93-8e68-08dce3d770f1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: KE9hrhVQt9CTlC+SbJlNgG/JqFPDCrAiyvlVmcpzNzvz7lDP0QG0WZB8MzqeIKoKbpdXNGlO/MLZWLdkuAWOylcTMIzLhtNsl6WuxvG8Aet3ekXSfhcoTvLXsj4VipKsYBngT9casoke78pINHAixYaQuX1h37hj0Yzmedgz4EbeT7cU65FEUkRl07OFglFpt2Ngl/iZlGczKH8n10Xq80hkA805MpcJMmMTM1DUdh2Tdt1RvxBOotOd/W4YXR+ahjybHiK7HeiwUzO0Q2mZe9584uu9QB221IokoXUZADjJlgwt2XfwcpP1sJSJMa8sLMLr7kvYqLu7fthBJvQrdbRQ2JSuYjLra7hiFhyRIg3a+oJ9wxoYQhp/RVXMSYP6AGaCoAbapbFTxlssHj5DgSdoEhLSbJAx0ZOzFdgLeX9fW06629aNcF9ayxtuRcC8JPy8kEUzSKn6WzDiXIWfXPRcLRUcxsZdGuDoTfG8neboPBGTnm0ZGoP07K9M4PyykSmTAqXO6YlmRY360pSxcm0H4PxuUEOAh85dzqjqBFDUfZ5PjwZzU3agXx2G0vfFEFECmWI66bP1bmuOaPAZVhL7qPSGqfhsxroIHb66I2uBY3/pifvTputrCw65+rRxZ/ntBUtKJcVSkLIsbAJ9XqBhJkSCVrgYFa9sAn8uDFH1gkZF4WuSQGCITY6iiuNdPwlRpU0YzByOcaqZrZ/NqKb+vOS976kaqUC+ofxhkRpYHjmGB5Nloxkgf8eEknJWruCaKJGgSuU/VUGHOGzv3YM+QjoMBgPDv0PVOar/4YqQRWLuJmG6i6IqSyDsWVxdL1mEynaisuGJApIZNrrWgyxO+9UDUTI2UiAOFWzSwM6I9TFCfZi1oRiElXfPWR+8pJSPnBhEvbhHu5ik8/FBcxQyA7VVlan1ggXiYJez4BEF/E4D1F6agf9xvkvMZk7PcTg3grPs6VoMtcxmBlkUUp2I3mT9B0MxDDx3psib8SQLG5hXArlufFTTl3+L/iBtW9HRzwuinatLV9yhBHYIwdrkOEX1jcd6KO0056DxkkjX2cNjHVfpSEkVQKT3/IhV6sphT1vFdpMeE6XMQg364aZjpxRDFW3PWrsJotHu+GIaAcrbtc4Wnz0eHNq6SM5xXwv5x1Gbm4vaCzv0b6T1Em53UnqQm8G1FpC2wTbIJI/JDOPYy+8Udtpcuwv71zpis2uHUMspref/aGo1jXWgmaY1+1bgCMQbBssKusD4apc+Luo95kCzFEl7CyG6Z+kZbZRavM4uAfVoQKs2/rbe6P1lmj53SesbsxgMzPOtqPC+eywGlveuyXECBJbfmhBaJ19i0IUUnh8rNRBPBqIBc9/FMaOLiVD/qVhWUHMAO+k= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(52116014)(376014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 8cRqQbWOLKu5epPp9Wp0ZYK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YjaY+aGZxxgfYQhc82YNLPluGbVM8ncCwll0yydQFU7G32ZK/DCO/5IDZQqnRhyG+dQtBV4scP7uZ2JFT6LDQaQa0flNq8KOLeYsQtaTAYwp14YMl/ML+ZXTSnNF9UoXsHemIuaBw30udFPZfnr1D+c+9XR9zjZSGrVS9Wqnawv6PZ11CjeM7lNe6VwBA+e05eYo3M+Fe3G5vjLtRN3VupZIMmrBj9nyNZNxZAI495CsIj+IqhXEly9KsXbUJnKt0tg9mwCD15fvvs2j1eNxDDXVhV5EgCWTujgfnJ5bbvixt1lB0/bs4+eFDusVoEOhMgdPe3jA25VZgZCKR6SIv0PkmG8DUuPRh1HxAi69iXgA3NHDx5gdr4gU5pBAO9dicD6lWc6LKu9krWipiegyMoBmfKOR2tR/CoroYuDnvZKdbGWHDmafHN39LlBGNoXANqsk6NgzT3fFw4KO5t10zqjoiG2YW+MmTuKtClJTpqW4 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a1d9fe11-41f1-4e93-8e68-08dce3d770f1 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2024 18:16:03.3583 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2N8KPOfml958N7kzW5Q4A+frcSB56Gn2VIBSDHlrxVCFkT7ASFq9obgz8dAJbBLyJqSPZBLHi2Kaw3gIKBAxDA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9194 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241003_111612_201144_EC86E06E X-CRM114-Status: GOOD ( 11.23 ) 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 From: Richard Zhu Add PCIe support on i.MX8DXL EVK board. Signed-off-by: Richard Zhu Signed-off-by: Frank Li --- chagne from v1 to v1 - supports -> support - add space before { --- arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts index 4caaecc192277..6259186cd4d92 100644 --- a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts @@ -182,6 +182,15 @@ mii_select: regulator-4 { regulator-always-on; }; + reg_pcieb: regulator-pcieb { + compatible = "regulator-fixed"; + regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3300000>; + regulator-name = "reg_pcieb"; + gpio = <&pca6416_1 13 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + bt_sco_codec: audio-codec-bt { compatible = "linux,bt-sco"; #sound-dai-cells = <1>; @@ -567,6 +576,12 @@ &flexcan3 { status = "okay"; }; +&hsio_phy { + fsl,hsio-cfg = "pciea-x2-pcieb"; + fsl,refclk-pad-mode = "output"; + status = "okay"; +}; + &cm40_intmux { status = "disabled"; }; @@ -585,6 +600,16 @@ &lsio_gpio5 { status = "okay"; }; +&pcieb { + phys = <&hsio_phy 0 PHY_TYPE_PCIE 0>; + phy-names = "pcie-phy"; + pinctrl-0 = <&pinctrl_pcieb>; + pinctrl-names = "default"; + reset-gpio = <&lsio_gpio4 0 GPIO_ACTIVE_LOW>; + vpcie-supply = <®_pcieb>; + status = "okay"; +}; + &sai0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sai0>; @@ -868,6 +893,14 @@ IMX8DXL_UART1_CTS_B_ADMA_UART1_CTS_B 0x06000020 >; }; + pinctrl_pcieb: pcieagrp { + fsl,pins = < + IMX8DXL_PCIE_CTRL0_PERST_B_LSIO_GPIO4_IO00 0x06000021 + IMX8DXL_PCIE_CTRL0_CLKREQ_B_LSIO_GPIO4_IO01 0x06000021 + IMX8DXL_PCIE_CTRL0_WAKE_B_LSIO_GPIO4_IO02 0x04000021 + >; + }; + pinctrl_sai0: sai0grp { fsl,pins = < IMX8DXL_SPI0_CS0_ADMA_SAI0_RXD 0x06000060 From patchwork Thu Oct 3 18:15:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13821379 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 33258CF34BD for ; Thu, 3 Oct 2024 18:20:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding: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=YigBvtdIYapTNxgp5W83vHKbKkQjEEs51+cGPRxPFDg=; b=NGpc1mOdXsTRx2lt4xvSbzHt47 c4GXnvzpnrByd2uymy+Qi5a0N8wKHxG8MjxQH6lm9YHVuI9qk5zcdUGY/6xUHz5T3tcHOsAI7hUOn Hd6KrSYRsJqi1LdKNqDq7R+qvet23zW1DbqwH2YNL8WmFWu3LrO38wEyf2mLRvGVUJtOglGnA69JX aKnySv4Ges6f1WKxAOe5k05pJTH9KCBKpb0y459M0jR5AjRP6Wte+FzjnAoh7tu5OmSCz541O7QVT ttExUoFyu/6t/5yBds3NsQCrsS0xqREudNM88jvxyPem1uzKsFoH04I1XY3IqgfHjutLuZgMGd+QR K44HSdFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1swQQh-0000000A4HX-06fp; Thu, 03 Oct 2024 18:19:59 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1swQN3-0000000A3na-2dwn for linux-arm-kernel@lists.infradead.org; Thu, 03 Oct 2024 18:16:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=W5Q+vztwX52UjQ87KVmWHAPOsNoPYfhPMJYyUCpC9BvdeukImWhKWRQx6Kglu2i1/2ozWW2Kdgyr9kIMt7wrCeOEsENgqHyWiITwLfYubU9r9YzuxFVWuWHudn37hpfVvCOqP1IQYtEnhZHJ8Ziz4OHSK36ktr+APSWIsXv7r0/lBASjepktYlZij4TKyCUnEK/1YRQTz0q7YtHUAOdalM9/+94QOPs22FgRCKWwQSdVNwpRuuzDaQ9AxsicmMRQZbfn/4pzHfM19+oJdSGPISNAozXrl1rO4Gh5Z7HC3kGWfy4Mh4eGEEdrjCAjPuwRUUUQ1WO6J6lYrJU3hoWa6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YigBvtdIYapTNxgp5W83vHKbKkQjEEs51+cGPRxPFDg=; b=hEhhTJPmHWjVAs7kscazQfEfgaUBERvc2HFaGQo1H4jnnIqbOrxcnzXsDUnun/9t2hzFT3REVfTmuJodotBOVkfg2OgBmJZQVal1tl7ihedzqXU0/c0vgMqyvHQvrxqbbqCf2dfvC+EmeLQx+SbMOygKHAjfMK4V4D2n+CYiNpkVxltO7wnuZ7xqw5wXr3PI1qyrJ1IWBPj0mJPDoqUY1BjP6J6AQxPWKzaJPvFgxeq0gwrlhfWHZXWiUQlo5ANxhW/0zAFm1oNjA31QmerqqDOnlYX6N0s4VsN/svdXVrGCsNAZjnji/xqYq6To9YjiOyEegBne4sIxniTFfBp9qg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YigBvtdIYapTNxgp5W83vHKbKkQjEEs51+cGPRxPFDg=; b=KGqxg6dvWCZkMMxT5I9dLKZuG8JcMdDpFKsM5aVNH/bOyvss1gH5prbhKI4BMDFH7AQQcLZTIe1auGZhaZFVO7Q7oqlF6aGdK5RTU921WzQAhztTk7PRQTb6HwnvKpO48t1ihcAbo4iZd87pAumkJXipzMpG0hVSKaIxrJPFKydd5dploRhEN0tjAcdZzjcCrnVbAArvaHf00kYU+bH+CDVu8zw3mBFBnYMl91QvN1tOgs5+7M5XSGr3l1/7FAfw3TgLiqf70JVBMz6F1zCDA+evTqqo8mZqWcW4U0x3Hjbv0xVbutU0xA40ZUBdG47XLqqmWOIfY4FbQGYaTtfshw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DU2PR04MB9194.eurprd04.prod.outlook.com (2603:10a6:10:2f9::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Thu, 3 Oct 2024 18:16:06 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8026.016; Thu, 3 Oct 2024 18:16:06 +0000 From: Frank Li To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), imx@lists.linux.dev (open list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Cc: imx@lists.linux.dev Subject: [PATCH v2 3/4] arm64: dts: imx8qxp-mek: Add PCIe support Date: Thu, 3 Oct 2024 14:15:39 -0400 Message-Id: <20241003181542.620461-3-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241003181542.620461-1-Frank.Li@nxp.com> References: <20241003181542.620461-1-Frank.Li@nxp.com> X-ClientProxiedBy: BYAPR21CA0014.namprd21.prod.outlook.com (2603:10b6:a03:114::24) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DU2PR04MB9194:EE_ X-MS-Office365-Filtering-Correlation-Id: 24be7272-7e77-4c16-e655-08dce3d772ea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|921020|38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wkFDn53hlYTzCzwqPS6hht7pmrNWubC2jjsbESh0V6qrqmGUHuSN8AhkqLSfRyBmRcd49u9MGCseT7hjIY8VUNLLB89ht2vznaO/ER2ETCrpCWTXaLJ3PZ9jDPCd0eOiEHremXHzz20IqDNFgoLrEirWLQrLZm9yHiGG/uiljr+VsDhnLEjFH/Tpqp/pXS3mdncWmkZjqmgDwBsc+tdxPQz354BxeWcDqytWJePz3kipHnB7ijbrTM+rrBYWDi7kG87+W/jqUwR5SSXS+qSxvb2e7xN1htpktC9nWQVrVRn89196qfAaEZB6vg9sfpk= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(52116014)(376014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZIcw0FN7QiYUOtT/Y10idTobZG27oMWKHcIAd/TCjQVJe0DTOJhTPI/WOMG0CCUoAYgjtZ8OEyfrRKLIlZC/1CLw1u2BjXOvMN4I9yEAINqUhQM7yXA+FeWlOlZQLPCb4N6rza/ZltD92+XsgPfDb3s4/BA/aUW/mO4WPJYeFYfvcKvgJ6z5AGV/YrZzzpSX3rOQVV2MBaGdczW3Z6h5k863sgePJb2neHap4tXuvUZnOo5VjOOWYeOyQZc6Z0lCLRWjDP2TlwVQcEl67obQvm7nYUioy7uh8aJVxBrhtGcTOYnbL3pbn0lR5dXeheMtKuGbhxnLy2cZJu6UwW6cPhOf+mQa6WWfUfHbe/1Gipvqm7Ey5PH7bh3vGixtDo6ME0nfOyu+oRUIZuZUXupw7FacQBpsw1F2O1D9jzx+ZhhAZBxjlYojxlFGjc1T86eGGya7lhzG0fSJ+9u7kJYfaHIhcqScwKETJtKns+S4odMlZeYUndFloSai1yaZUOMCmu0uYKZeLPFXh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Org: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 24be7272-7e77-4c16-e655-08dce3d772ea X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2024 18:16:06.7004 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: THWxq5PR9Bdmlrdj49MMF/wEURihQxP1qI0xcxiLDPCDfKh8KG3MzufW+M1b8cBLMsFhJ9sJvUEpvepEUd9Vlw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9194 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241003_111613_692316_BE29A641 X-CRM114-Status: GOOD ( 11.20 ) 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 PCIe support for i.MX8QXP MEK board. Signed-off-by: Frank Li --- Chagne from v1 to v2 - none --- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index 936ba5ecdcac7..9f643a4ce8ae7 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -45,6 +45,15 @@ usb3_data_ss: endpoint { }; }; + reg_pcieb: regulator-pcie { + compatible = "regulator-fixed"; + regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3300000>; + regulator-name = "mpcie_3v3"; + gpio = <&pca9557_a 2 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + sound-wm8960 { compatible = "fsl,imx-audio-wm8960"; model = "wm8960-audio"; @@ -246,6 +255,12 @@ &cm40_intmux { status = "okay"; }; +&hsio_phy { + fsl,hsio-cfg = "pciea-x2-pcieb"; + fsl,refclk-pad-mode = "input"; + status = "okay"; +}; + &lpuart0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_lpuart0>; @@ -272,6 +287,16 @@ &mu1_m0 { status = "okay"; }; +&pcieb { + phys = <&hsio_phy 0 PHY_TYPE_PCIE 0>; + phy-names = "pcie-phy"; + pinctrl-0 = <&pinctrl_pcieb>; + pinctrl-names = "default"; + reset-gpios = <&lsio_gpio4 0 GPIO_ACTIVE_LOW>; + vpcie-supply = <®_pcieb>; + status = "okay"; +}; + &scu_key { status = "okay"; }; @@ -493,6 +518,14 @@ IMX8QXP_FLEXCAN2_RX_ADMA_UART3_RX 0x06000020 >; }; + pinctrl_pcieb: pcieagrp { + fsl,pins = < + IMX8QXP_PCIE_CTRL0_PERST_B_LSIO_GPIO4_IO00 0x06000021 + IMX8QXP_PCIE_CTRL0_CLKREQ_B_HSIO_PCIE0_CLKREQ_B 0x06000021 + IMX8QXP_PCIE_CTRL0_WAKE_B_LSIO_GPIO4_IO02 0x04000021 + >; + }; + pinctrl_typec: typecgrp { fsl,pins = < IMX8QXP_SPI2_SCK_LSIO_GPIO1_IO03 0x06000021 From patchwork Thu Oct 3 18:15:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13821380 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 EF80CCF34BC for ; Thu, 3 Oct 2024 18:21:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding: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=Z6AijFCh1A/p9OE1RQ3JA5DYmgi8UbUn07cXAg/Og04=; b=uzsWurH934ocVY2LYikrOFf8lE r2In1ZO5gjsFG/KWOI6njPirbCe3jCMs0fR/SB1U7SmhBZN/4vIl4Jhw+NZjgdU6RAHQZSVkN/0rP rlseIe5Qpr+8d7l+uhaQn7TGIIhH0OefV+sJsW/gXsEMkydHVJZcAQiCMjcWJ1hDtMmKncTQvz4Mq 3BNhpxoR7/B4Jdzhta8Io0Efwh7nOOvYSBJ24S5kiKARRbDSQ7O4O/JlymSthrECVZ7V3JGb58hFo p/s/xcHSoE+bLHWwEYklgMkgSmc4rbPKHwR8kgEjQQ2n/bYJqBTjr6dz+LPUGRUUYz3gJS7lKEivj WpEOKPSQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1swQRu-0000000A4Ro-1vev; Thu, 03 Oct 2024 18:21:14 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1swQN5-0000000A3na-0aJx for linux-arm-kernel@lists.infradead.org; Thu, 03 Oct 2024 18:16:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Fj97jzRiESDJ8DLZXONcZg3N0YbrWsZXki3EPiDSLC4n+2V8gfD1yOORfJiv2k3dfot7kX2k1dj80fCayTEkrG2f8hVnsP8/ez0mGqBhIBI0c9o1drwZJTMixoH7m2DVqV9EQMfG5OlLxBhkTJHTsCgJ+8H3Rgx9SCasjMAK9M0F9vRW8pk/sIjSmSh7V49WucmCsT6kfTeBNvz7TTyxp5+8CSCqrwTK1YGmSuG1cS+4RWakY07tz0xCu/ilax/f8NcqR5l9y+z/lmCVHA3s/qPHl6/FpHoezHK1o8DOrwVJALFfBM+soQPYc9aJONkqK63Cols2gt9t7e961qmjhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Z6AijFCh1A/p9OE1RQ3JA5DYmgi8UbUn07cXAg/Og04=; b=wXZDwfMZSotwz6ohyM2omeTmtLG2B6lLdH7ikOp9Pz9uaLvGp9qPvSmPMHSj3yYjaZPh5xKYweR0hOlSkIrEZrV0Np3qmqn6C0kmkUFbH708Cseqh3/1sOgJgvecou3iS9MyJbUpo2wNW54KfGFBHqwIRF1yHysGuuu9uVgbotEcSgrwV9aYu4nSL3m2OaBX0qesCWz7Nue/z/USt7gVuzdCUZS3VYM5ztEhF8CTrt1r90w+uVtaU2BjIyx+bS6+10qaLDQxaxHljbSZJRGTIxtiJm96XlwQqBQgzSj/WUm7nKJ987NFIWxxINOl6LhA7uY7gIMkjHLRboH5FA3DCw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Z6AijFCh1A/p9OE1RQ3JA5DYmgi8UbUn07cXAg/Og04=; b=GVv7DvMqgJ0THszaaw18AkV6HV7yZzUVYnZ60TgfBAjLJ+nJAtP3Wu3WKP/O/YcZljZNTcx/8WP1ymHXUwQ1CFnqq0UNYgCVIBRmlXcFA37Dt0v679THj/onnUNRbfi4iZ8Qi0RupTNNeLRxMJwc8ODi4d+BnjW+uyV2yP/Dm9o8FTDpU6Z58n/Wuwq34MkKqmcPOTyw6HNLsOd6IVMmoZQ1U8+35SVK0lHksRBwSkAZaZ3uzPkhTK3FQptWLTpToSqXrqYQhhv9M8WlwFnxAXptrKjIoWYbbIhuK3YqyjEjTzrSty1wEmva5Y5rYIHOovjhOzPqZf1o4wtxhiP27Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DU2PR04MB9194.eurprd04.prod.outlook.com (2603:10a6:10:2f9::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Thu, 3 Oct 2024 18:16:10 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8026.016; Thu, 3 Oct 2024 18:16:10 +0000 From: Frank Li To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), imx@lists.linux.dev (open list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Cc: imx@lists.linux.dev Subject: [PATCH v2 4/4] arm64: dts: imx8qm-mek: Add PCIe and sata Date: Thu, 3 Oct 2024 14:15:40 -0400 Message-Id: <20241003181542.620461-4-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241003181542.620461-1-Frank.Li@nxp.com> References: <20241003181542.620461-1-Frank.Li@nxp.com> X-ClientProxiedBy: BYAPR21CA0014.namprd21.prod.outlook.com (2603:10b6:a03:114::24) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DU2PR04MB9194:EE_ X-MS-Office365-Filtering-Correlation-Id: 561cc572-c8e6-4cf6-38e1-08dce3d774eb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: 0hPZjMcRIQsMJ3b7Fng7A9teUONvS4VdegxhTEXz2IVDhN5/dFY3tG3d1zYGk/GjV7T2nNPIQfMwfFTBlW4eS38t5koYw/UChXnoa1AZjdzfWMFkihE/J8xpX42CywPayqAgCY9jMVYYTh28FQT9GWcQBQX2iA04ifIh4RWp81FsCIOGMcQJn9zcWwu6pzqK6vKWUc4DHHYpS/KDq9AYbRgEsz4lrZVu5YQ+oTM+DhlbH8/PGvmxB4JAfBfBxvBt2XQFKnEh/PmXkPnJNS+TTKt0oSG6o0gfsOxefRAEGM5+RsTY4NQFPrFCODa/ewN3ksBmSZGzpKG63xHByFmq/HFoXpzXEcmgBz9jzz+R4/PrNIm7o8bK0WIgeSJzEu02neEPKtwrimjwdnIRkJ9pPicRj6ZAviSY1SrpvG+Kuwx8+WRAtJoJSD8UboqUQ+ZEMSxvp3ivbtyI44RFz4srk3JGF9MZmOAIDteht6cr2EtNyYl48p3Y9Qa9cOXAI3gDqMkokkd6hrSRwofqswewGGSWELMfntzacSOFpw6QSdfVI75cpkazyfo62aRzFum4LtVwoOtpHFD/UjfOk9jhJjVI6xqH3wVbXck5DET95hWs3D+QgLGvgHz3iEKvO+cuyCB3yuXjwG9uUV7Z2Z4JP4hmuHi+j8BBTvvAHi4feNK7PW/tvxmlUQtbN3n2hpX/QS+8Ca4H8dAp0UCxRIb/y+K5hmLFvwVYnkNIclgNBaCnbNw01IdiKGCLuXwuSg4AFIpZsxc/aUnmmcfAUbptsLPzSllk/CCJjRm+9hEwlKsWiIHqNZf5lFCdh0sj55lCTNtNguhZH0Ccbi5rT6nWZi1r81LH6O2JzmbqIlRKgodoxeW1etnJ0BJURhbiE8HmOB8s+SHSa0ULUrDl3EcZk9sqi8AdQha+/oN0bwnE3pXiFf4TEyQlRgGOM5SHMQzYMjmuroMqIcEYk9yagWih/NqS0PeTxQbD7pTB//d+gsuWOWv2vesqrgaffwMaQoxC8t6DhjuJaR1GWw5XKk7R7yXaxzMPzsw4UWN5EWMb1pc73rJhyITENsViHq3kBQE6lL7XoMfksUoru/INuC5v4XxZJh2IXETEOOwsCaUEQH+K5oiwKhy63VS4REqg47tpD+PwoIEmXfRJoTsqznZvwEq2KIESxNhVjWxT6LaSANKwkjuOkl8DUr1mOezhrJyW+wddHBDkfyKdc/11R96WzCdr+GAdN0uUbiVX0X78CjdbUEJMqKPaIoAEWiFtBdeICrV3VAeBe1hvhqQ+fwpV0yhP9uoobY4W4+fSko2hTuaUsK21pBmBm6WDO0yusjBfeLYT/b2xho9U4/nfjFhue4osKrz5foXGrE6i/bA1DT8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(52116014)(376014)(921020)(38350700014);DIR:OUT;SFP:1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QVKkVcUsx49M9K1KFJJ72bFfCHgoQgYWybXSW+Y64OHt9d35rhZPC+nqGYjaTlpyzJAKul8fvd4mkRFU///vwlKV4XcIZz8t5q87DJyA9Tc+lfpiyZtnSUW1+pHfeLWDXQnWjT7eVs/CzJnZhMjmkTe/Q/CaUqdjCn/7VcAdB+fHEQNg2wAMqcHJ0y/FypjpGWFSETIy3UrxVg0y7cu14evgNY2vxfbQsc8qY5GuFURfUnKo74HTe0g08CjEbv4tq2p28E3DxfdeeifclOkYpaSMfDtCPqJbApPlGW//0LD19AkMhOI6Fq4hLKOJOQg+R/J2wlqvd8t89u9mC1xi6Oc5NTGZpO00sLCVE+jeKS1lRJU4/Koef337Ck2htoTd3iZ0wnZtO3qEP4C2UyKOBqr23x/uA6U6QTxTrlqoC9bYHxbMD/ojPNVFxfTwtLvKPBc5p8UaSIsXDytLo7VBhyli9/MRoJ+AmUVa6LKZOeyQLvYGCqf/oJGW79xM5mz/dgopmKZsRVJvoS8Di7zYwh6eyKmLpABX7jgtudUkmBmbxYGUUBqv88tOLAigIuzBNpxEjO1lut50XosDG2K/58s X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 561cc572-c8e6-4cf6-38e1-08dce3d774eb X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2024 18:16:09.9964 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fP9AJJKxL1bdSvANBP7js19sRipgZOHhkIb57DFGeMpdSkG3lgvpOHgtSUUeRz94xrZERlRq6ogVJe0FVF8PYQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9194 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241003_111615_206936_36816BAF X-CRM114-Status: GOOD ( 11.30 ) 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 PCIe[a,b] and sata support for i.MX8QM-MEK board. Signed-off-by: Frank Li --- change from v1 to v2 - add space before { --- arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 62 ++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index 62203eed6a6cb..e983633a4bb31 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -181,6 +181,17 @@ reg_can2_stby: regulator-can2-stby { vin-supply = <®_can2_en>; }; + reg_pciea: regulator-pcie { + compatible = "regulator-fixed"; + pinctrl-0 = <&pinctrl_pciea_reg>; + pinctrl-names = "default"; + regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3300000>; + regulator-name = "mpcie_3v3"; + gpio = <&lsio_gpio1 13 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + reg_vref_1v8: regulator-adc-vref { compatible = "regulator-fixed"; regulator-name = "vref_1v8"; @@ -296,6 +307,12 @@ &cm41_intmux { status = "okay"; }; +&hsio_phy { + fsl,hsio-cfg = "pciea-pcieb-sata"; + fsl,refclk-pad-mode = "input"; + status = "okay"; +}; + &i2c0 { #address-cells = <1>; #size-cells = <0>; @@ -541,6 +558,25 @@ &fec2 { status = "okay"; }; +&pciea { + phys = <&hsio_phy 0 PHY_TYPE_PCIE 0>; + phy-names = "pcie-phy"; + pinctrl-0 = <&pinctrl_pciea>; + pinctrl-names = "default"; + reset-gpio = <&lsio_gpio4 29 GPIO_ACTIVE_LOW>; + vpcie-supply = <®_pciea>; + status = "okay"; +}; + +&pcieb { + phys = <&hsio_phy 1 PHY_TYPE_PCIE 1>; + phy-names = "pcie-phy"; + pinctrl-0 = <&pinctrl_pcieb>; + pinctrl-names = "default"; + reset-gpio = <&lsio_gpio5 0 GPIO_ACTIVE_LOW>; + status = "disabled"; +}; + &qm_pwm_lvds0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm_lvds0>; @@ -640,6 +676,10 @@ &sai7 { status = "okay"; }; +&sata { + status = "okay"; +}; + &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>; @@ -829,6 +869,28 @@ IMX8QM_LVDS1_I2C1_SDA_LVDS1_I2C1_SDA 0xc600004c >; }; + pinctrl_pciea: pcieagrp { + fsl,pins = < + IMX8QM_PCIE_CTRL0_WAKE_B_LSIO_GPIO4_IO28 0x04000021 + IMX8QM_PCIE_CTRL0_PERST_B_LSIO_GPIO4_IO29 0x06000021 + IMX8QM_SCU_GPIO0_07_SCU_DSC_RTC_CLOCK_OUTPUT_32K 0x20 + >; + }; + + pinctrl_pciea_reg: pcieareggrp { + fsl,pins = < + IMX8QM_LVDS1_I2C0_SDA_LSIO_GPIO1_IO13 0x06000021 + >; + }; + + pinctrl_pcieb: pciebgrp { + fsl,pins = < + IMX8QM_PCIE_CTRL1_CLKREQ_B_HSIO_PCIE1_CLKREQ_B 0x06000021 + IMX8QM_PCIE_CTRL1_WAKE_B_LSIO_GPIO4_IO31 0x04000021 + IMX8QM_PCIE_CTRL1_PERST_B_LSIO_GPIO5_IO00 0x06000021 + >; + }; + pinctrl_pwm_lvds0: pwmlvds0grp { fsl,pins = < IMX8QM_LVDS0_GPIO00_LVDS0_PWM0_OUT 0x00000020