From patchwork Tue Apr 19 11:20:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 12817936 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 D301FC433F5 for ; Tue, 19 Apr 2022 11:32:02 +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=vFjOMhD+zUijCXr0WE++jpBR+ezQgm/zh3dWbAgviH4=; b=JX+u4+xefZQquX yY0CeIPuEjP7HPMsewaQ+komtNUSVYwqIDoZtn6E1blrV4c3eAUNVO5vlaeX7T4L/y12ZXtqd7PiK ZTMOzUeNAMilVrzsdwUyuzkXlupmTCmPBNygkKDJZH5VW1dk68HJyIhpwABoKSxQRNTV7wn4BoB/c 1tEqj1YB6MfrbOFc9nVDfLeZRT1XmL9blQGCuImlR0XreYyr9lmJbRai0iYKqZtjgdNHyvjSh04es Wl/RaF/DGQO0u2fjKAIb+R28xTnRzoGqnwGZhWykRYgTG9C75FwDjDJVJJXypmJwCsn0XksVhu7CE MSmtYRahsfN7jPx3lG7w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ngm3s-0038fQ-Bw; Tue, 19 Apr 2022 11:30:25 +0000 Received: from mail-he1eur01on0610.outbound.protection.outlook.com ([2a01:111:f400:fe1e::610] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nglvA-0034KG-4V for linux-arm-kernel@lists.infradead.org; Tue, 19 Apr 2022 11:21:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ff9seCicoB48xChO/kb+fer4pLxVfHL37DyuyNAlRUDplEI6trujQO3x9mPnr/l+7Qj93FnmUCWlsmIeneen4Pigjih/revUjZTUX40b1oFXZvdYjXpRk8faVJ915wLMPT5zjHORA9nkKLQpGJ/xDp9M0/Dy9vCYy6Q0RTQ3K6MyARVyznluWZQtI1XGg5TomXoDGlldX0czeRnKMQawQPicH07MeT5NRUoZsjWVc7LijCZ/oTEGyyuoyToPrTIMp77xmt2qJwB06tpZL8S5S5IiR7B9xGLfyhj7YuUSeYdhYWAxX89NHhUzpx4uFsPUOaftBkynD5yG+Cc6Y+CAog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=vGhlujPNw3n5+6sBIsiPsew9SiOSF9Rx1Zzfql4V0hc=; b=gn7HtAFcWS1Z629qcrF/AaRIYShSnfzaWJOINZCiOr5F4hGtqQirWqeh5XB9z0aeEWnaYzEPMWfmL4vZ0w1/gAIwqZrUBoM09NBXFpCNdZFoh+dK1VryWTALny/qPQNAQPtYJsOUd7DHvYfFswqzN0mOSMdhNWe12R4m6relxilYlr2wL9KwERIHyhYDOoxDL5PhvPg306xulj5OrkYxjS4U2pVMA7Hs7VEp1YbVF8bDcNbNJ5bzQLjhpQRpcL2HhsdoxgXbH3KWd7qnixTWnQx/M6pUN63W7KjgaPNkgj83GMLHMUJVScnrW/AZuhxb1QqugmziFUBeCv76fRl3Tw== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vGhlujPNw3n5+6sBIsiPsew9SiOSF9Rx1Zzfql4V0hc=; b=Y6mlk++n0HS0vNdqc7iUmg8W+8Y42kVqlUxNRFr7H0BsQSrsqvIJ6h6CBYILKOOv4MZudQCfbUmi4NLmnH5BJoCewkjcW6LICCZQT1DOG1EmD9GvKpE4nhrLSUgtLXuRgdqUw/vYceB2qrQ598JYCmTCkTNx4twa+ZRa+k6xmX4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB4688.eurprd04.prod.outlook.com (2603:10a6:803:6a::30) by AM9PR04MB7538.eurprd04.prod.outlook.com (2603:10a6:20b:2d8::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20; Tue, 19 Apr 2022 11:21:20 +0000 Received: from VI1PR04MB4688.eurprd04.prod.outlook.com ([fe80::a9d1:199:574b:502f]) by VI1PR04MB4688.eurprd04.prod.outlook.com ([fe80::a9d1:199:574b:502f%6]) with mapi id 15.20.5164.025; Tue, 19 Apr 2022 11:21:19 +0000 From: Abel Vesa To: Rob Herring , Krzysztof Kozlowski , Ulf Hansson , Shawn Guo , Sascha Hauer Cc: Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, Linux Kernel Mailing List , linux-mmc@vger.kernel.org, , linux-arm-kernel@lists.infradead.org, Jacky Bai Subject: [PATCH v7 03/13] arm64: dts: freescale: Add the imx8dxl connectivity subsys dtsi Date: Tue, 19 Apr 2022 14:20:46 +0300 Message-Id: <20220419112056.1808009-4-abel.vesa@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220419112056.1808009-1-abel.vesa@nxp.com> References: <20220419112056.1808009-1-abel.vesa@nxp.com> X-ClientProxiedBy: VI1PR0102CA0008.eurprd01.prod.exchangelabs.com (2603:10a6:802::21) To VI1PR04MB4688.eurprd04.prod.outlook.com (2603:10a6:803:6a::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4dfea69d-f22c-4600-5f4b-08da21f6ba1e X-MS-TrafficTypeDiagnostic: AM9PR04MB7538:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cWldo7BrsulaJEhVSLWVfS814Z6/ZlPdQcwHR6j1jYAMbzDTxcGICUpYdPbPYduP8yM24BzdEHjmKtBVK1KA2F9Ioo40CTjtGpKsRdxeQOkajR2oEzySGMgmsHRhOY161m6/hPKgZTHvnSG15JZ2pIiL6BcLPDFVW/+6osINX5/CAoJbq0SGY6Z8GpBwKQi4pAWDG6P7BRvUuv1UDJIRNR/VGxUsM8wxMZI96s1px1KGWhbmuQxkBVy2zwXyA8vkRjay5mEstQwDrOcMcMhcZWROfVa/okGY4XQKyJ2msiqxXS9+tNNzfIm88upKX9xOlZs0708vwd/mpOhamG8vlXwe1gRSf3KpGhZF/ZiNBzdviYYCKUd/6oaocJyAsSlILvk49glIySwGq1XCn5xeiSaMur8c2Ur03dwBIpVLLoh+O21ZfMz/CqehcIweDytQQG34XjgWt6wDCFnThlVHtDWI4VsNMbfwkU19o4aiVcOCnOBpaPscsNzm6NH0XXGtsKRH7wdWGlV2nkhHleCMhqFSa94pvyYYagGEnVwXVo85Bsb9/URIwpjfUwfzpdjIEta1VVlFT2r1S+l9TfN798gKtuw06wilXbFFOWvEXtW9Bx72u5MvJhb+vaGoBUzsUMVFHMqmSuvDiFy4iRkQg2B4rqSuJLJbE16XYWd2Axbk1EIrC7H+cwBYPiFfmM3vRvcaJkkVNKumABmSQiBYrSTDTtZ+tqwl/4FsUAYDLak= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB4688.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(316002)(36756003)(66556008)(4326008)(8676002)(66476007)(66946007)(6486002)(1076003)(186003)(110136005)(8936002)(7416002)(86362001)(38100700002)(54906003)(5660300002)(44832011)(83380400001)(38350700002)(2616005)(26005)(6506007)(6666004)(52116002)(6512007)(2906002)(508600001)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: EVL4R/b4MDHXQBZJcxuCjNwC7JbMlylAaaPr+SAxrDu0TGWi6ROQa00S8/hZnRI3hNO/IKpJmMlOks23Z68riR3EtxbKTOJjJS091OWwPo2UmFSieYSGBUrHziWajUuiZ5ODyw2m0hVQ6PjKWqLeuRkqv0MwKgAwBLuuatQkkzZYa7mU25cx1havBIUvlbAWUqbgQ2omctbDT3LNSmhnEZf1Pzbc/aZX6v4kCnuqI6YLn8G3wRl1ExTrFWJfNDUEQ+zWGrSW00aQiLpqUN+PVWlmSLIWo/QHymMRCF8YJc0d3aV9+E4AJU0faUpd6fQzcvAhqSbavbd2GOtr4ebmTFIyHUjUrKt5rQARpLg3fs1AmOTz+X0Z3omwBocNEHynC1v1CVtCOJIuTgnpArl3BG2Eve0PhbuWigstumjt38EtK1N5pKOpCGWNa+F3evSuKoORn8V1nj0LwnVokQ2+9GdSt/lQmq484M6KtUxd++chTmQw4ZF65xaG5YqmyGdeJl8BVzXwl57ZyiQhVZMPYktsBMScTu2Yfp9jX5wKuyMFqw8xC3ud48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3SwQZNjg0YZHfhrNAxTXwhXBUPu/r+8ZONry3OzTSzMjPhyrQ+AnCEeayDa/U3McFpSenkGXsDkFLrwIdlVJ+k+ZOvjDU1JQpPJSJUvXXxW/3vOn4mr1Ymdg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4dfea69d-f22c-4600-5f4b-08da21f6ba1e X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4688.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2022 11:21:19.7070 (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: j/azTe+X9gR8OEYd+KP2ekwrDn347C3CEN+qLzzWpjHyXMyJo2r+vk2pKEt3tq+O0G2P786TxH/wCI6meItBPg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB7538 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220419_042124_231138_5C1D41CB X-CRM114-Status: GOOD ( 13.76 ) 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: Jacky Bai On i.MX8DXL, the Connectivity subsystem includes below peripherals: 1x ENET with AVB support, 1x ENET with TSN support, 2x USB OTG, 1x eMMC, 2x SD, 1x NAND. Signed-off-by: Jacky Bai Signed-off-by: Abel Vesa --- .../boot/dts/freescale/imx8dxl-ss-conn.dtsi | 134 ++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi b/arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi new file mode 100644 index 000000000000..e9bfcc2afa02 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi @@ -0,0 +1,134 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2019-2021 NXP + */ + +/delete-node/ &enet1_lpcg; +/delete-node/ &fec2; + +&conn_subsys { + conn_enet0_root_clk: clock-conn-enet0-root@0 { + compatible = "fixed-clock"; + reg = <0 0>; + #clock-cells = <0>; + clock-frequency = <250000000>; + clock-output-names = "conn_enet0_root_clk"; + }; + + eqos: ethernet@5b050000 { + compatible = "nxp,imx8dxl-dwmac-eqos", "snps,dwmac-5.10a"; + reg = <0x5b050000 0x10000>; + interrupt-parent = <&gic>; + interrupts = , + ; + interrupt-names = "eth_wake_irq", "macirq"; + clocks = <&eqos_lpcg IMX_LPCG_CLK_2>, + <&eqos_lpcg IMX_LPCG_CLK_4>, + <&eqos_lpcg IMX_LPCG_CLK_0>, + <&eqos_lpcg IMX_LPCG_CLK_3>, + <&eqos_lpcg IMX_LPCG_CLK_1>; + clock-names = "stmmaceth", "pclk", "ptp_ref", "tx", "mem"; + assigned-clocks = <&clk IMX_SC_R_ENET_1 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <125000000>; + power-domains = <&pd IMX_SC_R_ENET_1>; + status = "disabled"; + }; + + usbotg2: usb@5b0e0000 { + compatible = "fsl,imx8dxl-usb", "fsl,imx7ulp-usb"; + reg = <0x5b0e0000 0x200>; + interrupt-parent = <&gic>; + interrupts = ; + fsl,usbphy = <&usbphy2>; + fsl,usbmisc = <&usbmisc2 0>; + /* + * usbotg1 and usbotg2 share one clock + * scfw disable clock access and keep it always on + * in case other core (M4) use one of these. + */ + clocks = <&clk_dummy>; + ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; + power-domains = <&pd IMX_SC_R_USB_1>; + status = "disabled"; + }; + + usbmisc2: usbmisc@5b0e0200 { + #index-cells = <1>; + compatible = "fsl,imx8dxl-usbmisc", "fsl,imx7ulp-usbmisc"; + reg = <0x5b0e0200 0x200>; + }; + + usbphy2: usbphy@5b110000 { + compatible = "fsl,imx8dxl-usbphy", "fsl,imx7ulp-usbphy"; + reg = <0x5b110000 0x1000>; + clocks = <&usb2_2_lpcg IMX_LPCG_CLK_7>; + status = "disabled"; + }; + + eqos_lpcg: clock-controller@5b240000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5b240000 0x10000>; + #clock-cells = <1>; + clocks = <&conn_enet0_root_clk>, + <&conn_axi_clk>, + <&conn_axi_clk>, + <&clk IMX_SC_R_ENET_1 IMX_SC_PM_CLK_PER>, + <&conn_ipg_clk>; + clock-indices = , + , + , + , + ; + clock-output-names = "eqos_ptp", + "eqos_mem_clk", + "eqos_aclk", + "eqos_clk", + "eqos_csr_clk"; + power-domains = <&pd IMX_SC_R_ENET_1>; + }; + + usb2_2_lpcg: clock-controller@5b280000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5b280000 0x10000>; + #clock-cells = <1>; + clock-indices = ; + clocks = <&conn_ipg_clk>; + clock-output-names = "usboh3_2_phy_ipg_clk"; + }; +}; + +&enet0_lpcg { + clocks = <&conn_enet0_root_clk>, + <&conn_enet0_root_clk>, + <&conn_axi_clk>, + <&clk IMX_SC_R_ENET_0 IMX_SC_C_TXCLK>, + <&conn_ipg_clk>, + <&conn_ipg_clk>; +}; + +&fec1 { + compatible = "fsl,imx8dxl-fec", "fsl,imx8qm-fec"; + interrupts = , + , + , + ; + assigned-clocks = <&clk IMX_SC_R_ENET_0 IMX_SC_C_CLKDIV>; + assigned-clock-rates = <125000000>; +}; + +&usdhc1 { + compatible = "fsl,imx8dxl-usdhc", "fsl,imx8qxp-usdhc"; + interrupts = ; +}; + +&usdhc2 { + compatible = "fsl,imx8dxl-usdhc", "fsl,imx8qxp-usdhc"; + interrupts = ; +}; + +&usdhc3 { + compatible = "fsl,imx8dxl-usdhc", "fsl,imx8qxp-usdhc"; + interrupts = ; +};