Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4559218rwb; Tue, 6 Sep 2022 09:08:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR489L7ExpbxdiVuAb+98jNu4g4NKJDY/L8OXMaLqUDBNSszggg1zqzgpHyI9mgrx1E2ApNI X-Received: by 2002:a17:907:3f90:b0:741:96fe:6641 with SMTP id hr16-20020a1709073f9000b0074196fe6641mr29242480ejc.378.1662480491486; Tue, 06 Sep 2022 09:08:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1662480491; cv=pass; d=google.com; s=arc-20160816; b=enY/ubVHBeqNWfpZvZDbqTUCWF0WQJfufd3VVVrAoLHibGsQENkRr7EGyld4Z9pssZ V1mvRSqy8066bKA372OTr/fzY/84RB+0nPXpWUHx36iMF5WHW3fKSb2Vc9ZfW2MYMKVw kIqz2yEX0fS6J98p66M2VYiJo3s29090h8JvYxg6ghVjiNWZ8Y/QTMLx7l1ki3gvSmfF qmWe0PY3h4UN3PtS4z6y6fsctVzYXsD2SUsvUPOj6hj/cnM+Erfvf4n8QxAhw0209srQ uuqtpJDHQLi+4lBmoWKwdeA+ji32bxnvy7zog2stqu3SnrC08HVUWN6sDtK0IjlV3XXy MzRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/n+n7zJPnpG8IGDf0oet+gswMFVi9N2XfM/ZsowdNJg=; b=rvX+AXfdyiJ5tk63IGBnRqgzzEd2iMfXlGFuzPKSHI7Ps6pDwBa39z71d/2eK0DIQ+ d0E/4CvF6joFBhDIfbQxX3CfXA8MTtC3yZ912PyTzeowSegwP9Pieop/phoc1eNAf1fE R1VvNNJxflnMOxZ5F0vhRaRgLtIUX/1mxqwptshTukY2xycW8oVsPQ170Yq5joCtN+0D mPD62Z7bIf4UqDDqgWzso8yLT2mWzeZXpkwoDSe6/q6m7vM3EBcQEqXYPw+9fVaZwr9C B/mpphU9hR2rfcQ0jh81ShAK8yZA9ywcGpDAmiKXbVbb1/ai9IsMERGNZk5SbfssMQ/e w9pw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=qVsTLZWf; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o21-20020a170906975500b0073d6e0416f9si11107015ejy.671.2022.09.06.09.07.44; Tue, 06 Sep 2022 09:08:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=qVsTLZWf; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241984AbiIFOhr (ORCPT + 99 others); Tue, 6 Sep 2022 10:37:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241975AbiIFOhN (ORCPT ); Tue, 6 Sep 2022 10:37:13 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on20602.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1a::602]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 952721160; Tue, 6 Sep 2022 07:00:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AqcA9dknAHwun9ytLJYMEutHNc76SndtjZMTj3kaM0kl9x5BDQZl9ZxEEFSJb8xeX5zrvVvO302C8ih4cS44EHNh++H7m6E5i0WT3NU8o3jS0WI0kJa3QupR4itF5zcPb9XdoV8NnKdI9x6qipwsJPUOSx/P/0QJwmEwqlREiyP9U4Jib9K5jMeUDmDhi1erq5dpOe0t2xY6qRFwPIDigxpKGj6CR2dTlvPbYz/fPgj2ZEGWmQMrj4MXJWzTgayV9uJDm1g8UlyTMysSdK9WCUzDVwa5OGn214EypRdzeGCUNbz6PRsnURlyviDgZK8lerD7BO4EzEvf1ls3bbdmYg== 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=/n+n7zJPnpG8IGDf0oet+gswMFVi9N2XfM/ZsowdNJg=; b=Rrz+GFMsSkRGy2/QEix4+X/fzLszEDcZYP7E2grxtkQpzP9xmk5aoaOTADwXW/YW1IpfzBHZPbodUaGONq6A1UmHw1RYLkK8OQzpEwBJ7a6jCCjP+YUS5IO8jMtwbNZ752yC8MUX9u0tHJ96eVhZhyWLQUaUd1RfRFocs9am9B0Fe3yBjCsPxBPLkyLDlnn5gzIbPyOqXoSLqX3B8pWBSl1eoF3AEAuFVG9SZulc1zVK6mOZg/fn6G/jlHHtcggsO4fNleEJQBlnMlLpIMgQ2q3DJeedjqqpOAZH5p46oPCF7uXP4Ve3sh2f/sovRw9Is2pQ+7ffYxOS5fHsoKjjHQ== 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=/n+n7zJPnpG8IGDf0oet+gswMFVi9N2XfM/ZsowdNJg=; b=qVsTLZWfLq4NJHmEWe5g+66AwgAgNYH3IKSFOQtMQlzT1nlhFmyKecHKeF9nGzzSA3b1usWW44VVoXazIYH+RHtdewQjWvxLmMjdjsbUCwiKDFQXkrBaU2G5h4ij8VLmtnKviEUJte8n7jpsPoZA0UGy5KBvi1C24+6p0TS06bY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) by VI1PR04MB5181.eurprd04.prod.outlook.com (2603:10a6:803:62::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.12; Tue, 6 Sep 2022 13:55:44 +0000 Received: from PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::b152:60ce:3622:7962]) by PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::b152:60ce:3622:7962%4]) with mapi id 15.20.5566.021; Tue, 6 Sep 2022 13:55:44 +0000 From: Shenwei Wang To: Rob Herring , Sascha Hauer , Fabio Estevam , Denys Drozdov Cc: Krzysztof Kozlowski , Shawn Guo , Pengutronix Kernel Team , NXP Linux Team , Marcel Ziswiler , Alexander Stein , Marek Vasut , Max Krummenacher , Matthias Schiffer , Tim Harvey , Vladimir Oltean , Peng Fan , Alex Marginean , Reinhold Mueller , Shenwei Wang , Viorel Suman , Abel Vesa , Ming Qian , Li Yang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev Subject: [PATCH v7 4/5] arm64: dts: freescale: add i.MX8DXL SoC support Date: Tue, 6 Sep 2022 08:53:44 -0500 Message-Id: <20220906135345.38345-8-shenwei.wang@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220906135345.38345-1-shenwei.wang@nxp.com> References: <20220906135345.38345-1-shenwei.wang@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BY3PR04CA0012.namprd04.prod.outlook.com (2603:10b6:a03:217::17) To PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0387017e-5deb-4903-60aa-08da900f7e23 X-MS-TrafficTypeDiagnostic: VI1PR04MB5181:EE_ X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IsS47H2ZV7B9QbeXlrnTgXpRPQK+npRztiUFY2NtaXSEbu+REfemTCBecPvfBnEmfo40+Rm30CJS9HL8UGxX5n+tHlTTX9p0dt1+M8hptdBMJ5QeI4rP2CMuU9BeGvylYBhX82jjRGd+lEJiytzKN+a6Aa5I6gaCkXCOG1vsZuBWcpqhzPv3s9zM682CPB4IsWXOQFSHiBkwK4ahPKfsZXpchjn0AeMmqcQ7CKo0zszNAL8SsJTqi8OIOniP+KblAFGjtIqluQd8B/M28yFcKdFIOi5KhfkmMdkAra7dRUjknULx3vKiRAD3hTy/Te6sPvEbn8X8twxytb56DGBXYjkPqM/dccHvQECUBxpJlM/ZrcYKzw+LcE6jOUMk86BesAFt+NcW36cqo+GnRxGd3mailEqAX7TvDCiBMyRiCiyBbVERCfL4vx29e6GE6y5s+suIHWmVT7xfCxPWh0UIThQzdh78rIWnq4Mq3NCqiH1sc0oxjOoebi5aAygvvqZu9VgeUiPk5CUI3Lcy9+h7AY4DmAQUgYYwvl/RuVaOy1BOCb1Na1JMuzU2ii5BROS+akEYl/4kJeNIVBExqePDEw4mn9slbIuE/del53i/irvLxTmBH+Uip4QK1UUT22C2Esfuxslg04qRyf/f33TO82FtM/AUlUxDp2DW7xth3CIq35vIK0cAzVs15x6Yp+PGTZYx692QqlLo6pMTFEqp6vdMtfezleRD2fhONkEx1eA6XJYkTUktbXS31ciEAEH7 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9185.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(376002)(346002)(39860400002)(136003)(366004)(396003)(8676002)(4326008)(66476007)(2906002)(66556008)(66946007)(30864003)(44832011)(2616005)(1076003)(83380400001)(7416002)(8936002)(36756003)(38100700002)(5660300002)(38350700002)(54906003)(110136005)(316002)(41300700001)(52116002)(6486002)(478600001)(6506007)(6512007)(55236004)(26005)(186003)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?nIT9EOkxFhD9jlGpanClM2VbkfqvObhqhzlWn9ph9CnHlYhGYs2/3eu4zb3+?= =?us-ascii?Q?HqGtwU2iF+/O36CZXoYG7ifTrozKrIjQMWOjJkzxBvYXcEHpPfCrV7TCkSK2?= =?us-ascii?Q?Bbt8fxPSEJAKojlBYqumFyH1yD06sTirjJn5aADGtema1vhTr7h7d7UqDHkN?= =?us-ascii?Q?W4pyvGMDZPyjKFu7S5bOpEBJQI9VeEq/NrOFYx7HV+0AjMQVykTalcpOJQTc?= =?us-ascii?Q?fvNDrQKPK2fk93mDk+6qKWsOipFMP4/vLBjAjU72LJ1IQU2o7U8a8UbvwWCt?= =?us-ascii?Q?syBIebYG9fT4XkjGxOE+/5rxjzMyLIzGMLmM+PUkRXjyy9gT5ewmn5V7J/ki?= =?us-ascii?Q?YP9xgoDMGJGjePIF5o9m9bvYuQrQaxvb1+b2RDeqRyKvav5wKkfDxm9cacpV?= =?us-ascii?Q?/8PDCemEwKDSzZjPQiAX/Fysku+uwZUlTP6fynq+XFZvUwoyBtIzkPvCZml4?= =?us-ascii?Q?WTyPif+BfNj2pOo/3ESucaa5b708BlBQ29gS/GfFrgwpVaEse+juqOsyFR8K?= =?us-ascii?Q?0/SP3ONRyzSw/ga4/tyUzlB2BP+1Y5hbYV/OU1SGjl2uslDeD8pRGogCyJrm?= =?us-ascii?Q?PCi5i0RWu3q24dGh7icQPw7wGiiTL/zH3l+ckXkRMZOf+5m6AsXM83xEfsnS?= =?us-ascii?Q?Kf0V6sQPrkspphO3ll+kYejpMTNDzkuyWVruZoO/RJnSx5XQHNsokXX8l6/O?= =?us-ascii?Q?vADoaJK3BCF/8UIKpdr+9W+XlgB8ERblkIyir7aGthXYc6OvGDqtb8x2uXUF?= =?us-ascii?Q?hJCOQgr28nifOyTtksErD6aaT1dan84twW42MGvXsbn57QoSWOHnJCLyW3Hz?= =?us-ascii?Q?6dg0M/C75ksvHJxWhQARb6GCJIwB8IPAx/ulKw5zx9SvIFejDRGaVHfMCLVq?= =?us-ascii?Q?dGkJuqdpC4yDJAHelo3VXvJHLBLFtfJ9UaXhHL1TdqsdPrejW80S4bXwIoxg?= =?us-ascii?Q?QxCjXXnj+oNra+UEvHTexmTdBQXLhAHiOcXLJkuyIreHosqcSA7e5Mk95OeQ?= =?us-ascii?Q?DuXSMpFme/yfeQ+eNpCaEOFVz0EsnJL+0SxLMUzztAdNrgUWkJn8cPMseRss?= =?us-ascii?Q?VPID2Ua3+jIGdRrSRE337jpQnD1IF++5/7Shm9pRrztBPoB1qB+FQLE5G38T?= =?us-ascii?Q?p4jieIImhqRhdBuu/aaji7cMx6M04FrERZ3A+6pfRWyG1aMBWYPzT5iey34x?= =?us-ascii?Q?OkJ492NBuBt722uHy/IGXZdy8f8N60s71/zGcGdUNjEWVCLqc8bRhBz1m5HF?= =?us-ascii?Q?NBGKF5jdUNZHJvHjs9mzCV6mSeoQFaGNyhjOjXCM8w4lGb+568lzfwtuPwOp?= =?us-ascii?Q?7hUPOGH3UVWlMal+d+t9mxT+KGl7BbyAyzBVHklOySkzKGyxpCyXRlInGvKh?= =?us-ascii?Q?r8+7VsBFZaaxBPJ4xcBfcWE4OrH4YgUWyjiRmQ4Zww86D9LdmXK68ChN4hPI?= =?us-ascii?Q?fyP5N95uD506SkRfc679de3mpSb+f9gkSmwvsYlNIm0Fqc8JYVi25Dke3EOY?= =?us-ascii?Q?L6C4qsyfTcWRJfT4UciHu8GCWocO4DL0M3mZKMVcwja8MwjzHVM1WQpWir+3?= =?us-ascii?Q?Qfip4BG5vUFwbXaEXoDsFY3KQHAcX+ps22tRjV8s?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0387017e-5deb-4903-60aa-08da900f7e23 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9185.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2022 13:55:44.4939 (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: v8PR3uXcPFFxJzjX0n8zAsLfMm3P0WFAMnj6w1ZpwZAsodky5nlUdPYxh3rE+o2gIWG6dAqbEps96uCaE1Apkg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5181 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,T_SPF_PERMERROR autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org i.MX8DXL is a device targeting the automotive and industrial market segments. The chip is designed to achieve both high performance and low power consumption. It has a dual (2x) Cortex-A35 processor. This patch adds the basic support for i.MX8DXL SoC. Signed-off-by: Shenwei Wang --- .../boot/dts/freescale/imx8dxl-ss-adma.dtsi | 52 ++++ .../boot/dts/freescale/imx8dxl-ss-conn.dtsi | 142 +++++++++++ .../boot/dts/freescale/imx8dxl-ss-ddr.dtsi | 9 + .../boot/dts/freescale/imx8dxl-ss-lsio.dtsi | 74 ++++++ arch/arm64/boot/dts/freescale/imx8dxl.dtsi | 238 ++++++++++++++++++ 5 files changed, 515 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8dxl-ss-adma.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8dxl-ss-ddr.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8dxl-ss-lsio.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8dxl.dtsi diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-ss-adma.dtsi b/arch/arm64/boot/dts/freescale/imx8dxl-ss-adma.dtsi new file mode 100644 index 000000000000..795d1d472fae --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8dxl-ss-adma.dtsi @@ -0,0 +1,52 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2019~2020, 2022 NXP + */ + +&audio_ipg_clk { + clock-frequency = <160000000>; +}; + +&dma_ipg_clk { + clock-frequency = <160000000>; +}; + +&i2c0 { + compatible = "fsl,imx8dxl-lpi2c", "fsl,imx8qxp-lpi2c", "fsl,imx7ulp-lpi2c"; + interrupts = ; +}; + +&i2c1 { + compatible = "fsl,imx8dxl-lpi2c", "fsl,imx8qxp-lpi2c", "fsl,imx7ulp-lpi2c"; + interrupts = ; +}; + +&i2c2 { + compatible = "fsl,imx8qxp-lpi2c", "fsl,imx7ulp-lpi2c"; + interrupts = ; +}; + +&i2c3 { + compatible = "fsl,imx8qxp-lpi2c", "fsl,imx7ulp-lpi2c"; + interrupts = ; +}; + +&lpuart0 { + compatible = "fsl,imx8qxp-lpuart", "fsl,imx7ulp-lpuart"; + interrupts = ; +}; + +&lpuart1 { + compatible = "fsl,imx8qxp-lpuart", "fsl,imx7ulp-lpuart"; + interrupts = ; +}; + +&lpuart2 { + compatible = "fsl,imx8qxp-lpuart", "fsl,imx7ulp-lpuart"; + interrupts = ; +}; + +&lpuart3 { + compatible = "fsl,imx8qxp-lpuart", "fsl,imx7ulp-lpuart"; + interrupts = ; +}; 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..69c4849f2132 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi @@ -0,0 +1,142 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2019~2020, 2022 NXP + */ + +/delete-node/ &enet1_lpcg; +/delete-node/ &fec2; + +&conn_subsys { + conn_enet0_root_clk: clock-conn-enet0-root { + compatible = "fixed-clock"; + #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_4>, + <&eqos_lpcg IMX_LPCG_CLK_6>, + <&eqos_lpcg IMX_LPCG_CLK_0>, + <&eqos_lpcg IMX_LPCG_CLK_5>, + <&eqos_lpcg IMX_LPCG_CLK_2>; + 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 clcok. + * scu firmware disables the access to the clock and keeps + * it always on in case other core (M4) uses one of these. + */ + clocks = <&clk_dummy>; + ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; + #stream-id-cells = <1>; + power-domains = <&pd IMX_SC_R_USB_1>; + status = "disabled"; + + clk_dummy: clock-dummy { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + clock-output-names = "clk_dummy"; + }; + }; + + usbmisc2: usbmisc@5b0e0200 { + #index-cells = <1>; + compatible = "fsl,imx7ulp-usbmisc"; + reg = <0x5b0e0200 0x200>; + }; + + usbphy2: usbphy@0x5b110000 { + compatible = "fsl,imx8dxl-usbphy", "fsl,imx7ulp-usbphy"; + reg = <0x5b110000 0x1000>; + clocks = <&usb2_2_lpcg IMX_LPCG_CLK_7>; + power-domains = <&pd IMX_SC_R_USB_1_PHY>; + 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"; + power-domains = <&pd IMX_SC_R_USB_1_PHY>; + }; + +}; + +&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,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 = ; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-ss-ddr.dtsi b/arch/arm64/boot/dts/freescale/imx8dxl-ss-ddr.dtsi new file mode 100644 index 000000000000..550f513708d8 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8dxl-ss-ddr.dtsi @@ -0,0 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2020 NXP + */ + +&ddr_pmu0 { + compatible = "fsl,imx8-ddr-pmu"; + interrupts = ; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-ss-lsio.dtsi b/arch/arm64/boot/dts/freescale/imx8dxl-ss-lsio.dtsi new file mode 100644 index 000000000000..815bd987b09b --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8dxl-ss-lsio.dtsi @@ -0,0 +1,74 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2019~2020, 2022 NXP + */ + +&lsio_gpio0 { + compatible = "fsl,imx8dxl-gpio", "fsl,imx35-gpio"; + interrupts = ; +}; + +&lsio_gpio1 { + compatible = "fsl,imx8dxl-gpio", "fsl,imx35-gpio"; + interrupts = ; +}; + +&lsio_gpio2 { + compatible = "fsl,imx8dxl-gpio", "fsl,imx35-gpio"; + interrupts = ; +}; + +&lsio_gpio3 { + compatible = "fsl,imx8dxl-gpio", "fsl,imx35-gpio"; + interrupts = ; +}; + +&lsio_gpio4 { + compatible = "fsl,imx8dxl-gpio", "fsl,imx35-gpio"; + interrupts = ; +}; + +&lsio_gpio5 { + compatible = "fsl,imx8dxl-gpio", "fsl,imx35-gpio"; + interrupts = ; +}; + +&lsio_gpio6 { + compatible = "fsl,imx8dxl-gpio", "fsl,imx35-gpio"; + interrupts = ; +}; + +&lsio_gpio7 { + compatible = "fsl,imx8dxl-gpio", "fsl,imx35-gpio"; + interrupts = ; +}; + +&lsio_mu0 { + compatible = "fsl,imx8qxp-mu", "fsl,imx6sx-mu"; + interrupts = ; +}; + +&lsio_mu1 { + compatible = "fsl,imx8-mu-scu", "fsl,imx8qxp-mu", "fsl,imx6sx-mu"; + interrupts = ; +}; + +&lsio_mu2 { + compatible = "fsl,imx8-mu-scu", "fsl,imx8qxp-mu", "fsl,imx6sx-mu"; + interrupts = ; +}; + +&lsio_mu3 { + compatible = "fsl,imx8-mu-scu", "fsl,imx8qxp-mu", "fsl,imx6sx-mu"; + interrupts = ; +}; + +&lsio_mu4 { + compatible = "fsl,imx8-mu-scu", "fsl,imx8qxp-mu", "fsl,imx6sx-mu"; + interrupts = ; +}; + +&lsio_mu5 { + compatible = "fsl,imx8qxp-mu", "fsl,imx6sx-mu"; + interrupts = ; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8dxl.dtsi b/arch/arm64/boot/dts/freescale/imx8dxl.dtsi new file mode 100644 index 000000000000..5ddbda0b4def --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8dxl.dtsi @@ -0,0 +1,238 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2019~2020, 2022 NXP + */ + +#include +#include +#include +#include +#include +#include +#include + +/ { + interrupt-parent = <&gic>; + #address-cells = <2>; + #size-cells = <2>; + + aliases { + ethernet0 = &fec1; + ethernet1 = &eqos; + gpio0 = &lsio_gpio0; + gpio1 = &lsio_gpio1; + gpio2 = &lsio_gpio2; + gpio3 = &lsio_gpio3; + gpio4 = &lsio_gpio4; + gpio5 = &lsio_gpio5; + gpio6 = &lsio_gpio6; + gpio7 = &lsio_gpio7; + mu1 = &lsio_mu1; + }; + + cpus: cpus { + #address-cells = <2>; + #size-cells = <0>; + + /* We have 1 clusters with 2 Cortex-A35 cores */ + A35_0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a35"; + reg = <0x0 0x0>; + enable-method = "psci"; + next-level-cache = <&A35_L2>; + clocks = <&clk IMX_SC_R_A35 IMX_SC_PM_CLK_CPU>; + #cooling-cells = <2>; + operating-points-v2 = <&a35_opp_table>; + }; + + A35_1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a35"; + reg = <0x0 0x1>; + enable-method = "psci"; + next-level-cache = <&A35_L2>; + clocks = <&clk IMX_SC_R_A35 IMX_SC_PM_CLK_CPU>; + #cooling-cells = <2>; + operating-points-v2 = <&a35_opp_table>; + }; + + A35_L2: l2-cache0 { + compatible = "cache"; + }; + }; + + a35_opp_table: opp-table { + compatible = "operating-points-v2"; + opp-shared; + + opp-900000000 { + opp-hz = /bits/ 64 <900000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <150000>; + }; + + opp-1200000000 { + opp-hz = /bits/ 64 <1200000000>; + opp-microvolt = <1100000>; + clock-latency-ns = <150000>; + opp-suspend; + }; + }; + + gic: interrupt-controller@51a00000 { + compatible = "arm,gic-v3"; + reg = <0x0 0x51a00000 0 0x10000>, /* GIC Dist */ + <0x0 0x51b00000 0 0xc0000>; /* GICR (RD_base + SGI_base) */ + #interrupt-cells = <3>; + interrupt-controller; + interrupts = ; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + dsp_reserved: dsp@92400000 { + reg = <0 0x92400000 0 0x2000000>; + no-map; + }; + }; + + pmu { + compatible = "arm,armv8-pmuv3"; + interrupts = ; + }; + + psci { + compatible = "arm,psci-1.0"; + method = "smc"; + }; + + system-controller { + compatible = "fsl,imx-scu"; + mbox-names = "tx0", + "rx0", + "gip3"; + mboxes = <&lsio_mu1 0 0 + &lsio_mu1 1 0 + &lsio_mu1 3 3>; + + pd: power-controller { + compatible = "fsl,scu-pd"; + #power-domain-cells = <1>; + wakeup-irq = <160 163 235 236 237 228 229 230 231 238 + 239 240 166 169>; + }; + + clk: clock-controller { + compatible = "fsl,imx8dxl-clk", "fsl,scu-clk"; + #clock-cells = <2>; + clocks = <&xtal32k &xtal24m>; + clock-names = "xtal_32KHz", "xtal_24Mhz"; + }; + + iomuxc: pinctrl { + compatible = "fsl,imx8dxl-iomuxc"; + }; + + ocotp: ocotp { + compatible = "fsl,imx8qxp-scu-ocotp"; + #address-cells = <1>; + #size-cells = <1>; + + fec_mac0: mac@2c4 { + reg = <0x2c4 6>; + }; + + fec_mac1: mac@2c6 { + reg = <0x2c6 6>; + }; + }; + + rtc: rtc { + compatible = "fsl,imx8qxp-sc-rtc"; + }; + + sc_pwrkey: keys { + compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key"; + linux,keycode = ; + wakeup-source; + }; + + watchdog { + compatible = "fsl,imx-sc-wdt"; + timeout-sec = <60>; + }; + + tsens: thermal-sensor { + compatible = "fsl,imx-sc-thermal"; + #thermal-sensor-cells = <1>; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , /* Physical Secure */ + , /* Physical Non-Secure */ + , /* Virtual */ + ; /* Hypervisor */ + }; + + thermal_zones: thermal-zones { + cpu-thermal0 { + polling-delay-passive = <250>; + polling-delay = <2000>; + thermal-sensors = <&tsens IMX_SC_R_SYSTEM>; + + trips { + cpu_alert0: trip0 { + temperature = <107000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu_crit0: trip1 { + temperature = <127000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&cpu_alert0>; + cooling-device = + <&A35_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A35_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + }; + + /* The two values below cannot be changed by the board */ + xtal32k: clock-xtal32k { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + clock-output-names = "xtal_32KHz"; + }; + + xtal24m: clock-xtal24m { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "xtal_24MHz"; + }; + + /* sorted in register address */ + #include "imx8-ss-adma.dtsi" + #include "imx8-ss-conn.dtsi" + #include "imx8-ss-ddr.dtsi" + #include "imx8-ss-lsio.dtsi" +}; + +#include "imx8dxl-ss-adma.dtsi" +#include "imx8dxl-ss-conn.dtsi" +#include "imx8dxl-ss-lsio.dtsi" +#include "imx8dxl-ss-ddr.dtsi" -- 2.25.1