Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7960596rwn; Wed, 14 Sep 2022 07:04:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR7pWwCj9jjUVni6wj43SiTF4AzrlKMHeexb+Hvh/dwSrgZ0f4LdQ6yW7JRvrXXeTHArP+M5 X-Received: by 2002:a17:907:c08:b0:77a:9b71:222f with SMTP id ga8-20020a1709070c0800b0077a9b71222fmr15548632ejc.739.1663164271378; Wed, 14 Sep 2022 07:04:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663164271; cv=pass; d=google.com; s=arc-20160816; b=P/sgKfoT+0SHHNk+vaPDTm2C20pGAOW7m/tYmeQlWLMtvLCq0mSiq7hVN4QqQtNS3S 5/4FttRgpEWNhzmfP7rs/72sXCVeLQO/aakPPSICWYGA7RevX0jeg39/BqvQDwEUxlQB Sa/c3B11p/qiwbs1d5czxnTbAt4BPXZyikGEfYMBr5JRUcXeY5koYF7irJwxGrLQ6xgk mFO1jfNvcAHZHDuRVijCt7kjdyzVijShioeWegU5gNs72h5UMy+MrLBhIZQv/Lb1NWBs l+n4Nhefr6NSYUvQqhSi6E/tXDAozmuro0GUryo2jDTRVerlCNxHZM85DILVCVjVHC6F sQHQ== 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=lZWddFMQiU3BDAkvHqTRqC6aWdp1rrfVvfSOy6X8VPY=; b=oa3qXhplmUKtnIQ8KCl6APsr46MEJbI9WOoluFkm+0wP+1myQGvHsQ9qIQstEVJk7/ 0GOfZkJdimKW59LtT4t5oG19Fbg2jROgYuquKo3fXBQUENpHw5S+nsHJ4BqYXW98F4kA C5ieEEDowew9QQRFakPJCyEud53A2acVgGKiVNHkPlNOi76p2XBVqi84r3ag7KXNsA2m msrlsOe9UMpCOY2Pg89hKAaqHWhrYMpV+EOA+OmG5ofEvPdUTT77ttvj5o4eKlpXOytt VZMbDSdPCxYRwo3lrsx8Ggpbbv8i+Q66aLSM6YWm5o0I77l765LdaxoxIqXc5cvIc+2T OM3g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=i53BhhAj; 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 el15-20020a056402360f00b004516b10bb3asi9351597edb.234.2022.09.14.07.04.04; Wed, 14 Sep 2022 07:04:31 -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=i53BhhAj; 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 S229973AbiINOA7 (ORCPT + 99 others); Wed, 14 Sep 2022 10:00:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229910AbiINOAX (ORCPT ); Wed, 14 Sep 2022 10:00:23 -0400 Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00047.outbound.protection.outlook.com [40.107.0.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5136578231; Wed, 14 Sep 2022 07:00:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l71LXeYEWgJwscEaeJaRsr7lNCYJ6KezvNPFjfDgPd6Su2F1n70wxnu98vprFMl8s+q/JRNfZkirW2nrCXCzQM36rtWtjVWaa14sQN7K6t6Lp5llz7ogagB86/YoqdkJwAlcvEIBDYcTpUcQrGObaj/pTXb7+4WyBYPhpk4+++1IgQKOEhVyP0xIr1SLFKkrC4B6Ef6hCh2rUIBX5G5c7gcLT+Vk+wU0IOw5tA2M/coi/VSzegR6WzxSbF7sAgz4wnvnZCfAPi1nn4+emQPTjeGWbOwc5M/gUV62onKRO1gD6QyiLNWk5ycc66YPfQvLp0iUDlFM9EuviRVb5NiW6A== 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=lZWddFMQiU3BDAkvHqTRqC6aWdp1rrfVvfSOy6X8VPY=; b=RKiVI4aFDcMiddTZK6X+0OWUYadjseIhhA6MQxvgEC84tsmYD1IY16eAhutvdnRraBmRTdLUq3KCWRc92++OyoO7kwxKDKqPVY4ezGC97LqvzkX1R/J1xz7QdPq/sCy3IB895DDU6gd1udIXR0AOVJo4jF+EPEd6Zk6lOifSSd/QLEvdSHGPm7Z/+CG8xIB5i70yks8BvVldWI0/d7lf6BU0/LV641yzeH30dtWXzxD2AGEGUaW8DWSD6fWsQweYTAqIAzjNM6ABs+PcVlUl/xZocxUPcQwFPwy1/KgPFW4u+wzG2qDUSJmwVm0P1ZUFG/ubqDXMyk9AGhN9fpEspg== 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=lZWddFMQiU3BDAkvHqTRqC6aWdp1rrfVvfSOy6X8VPY=; b=i53BhhAjsCJ0265JMqVOQkFoMD82UVvmnBVUG34RKMLcAD/iiDEm9q3GmV+KN/ZyM3aoCdrEdhiDBYqGKEXUrMWwayq7mRqfdIye5gmTZnZRGiszBNGFBIVwTCUicoO4teafQ+dr6utNHcLZpBszL4Ya6xd7Gs3QvO9POww3m5I= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB9176.eurprd04.prod.outlook.com (2603:10a6:20b:44b::7) by DB8PR04MB7129.eurprd04.prod.outlook.com (2603:10a6:10:127::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Wed, 14 Sep 2022 14:00:00 +0000 Received: from AS8PR04MB9176.eurprd04.prod.outlook.com ([fe80::a552:97fd:60f4:edd6]) by AS8PR04MB9176.eurprd04.prod.outlook.com ([fe80::a552:97fd:60f4:edd6%7]) with mapi id 15.20.5612.022; Wed, 14 Sep 2022 14:00:00 +0000 From: Shenwei Wang To: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer Cc: Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Marcel Ziswiler , Marek Vasut , Alexander Stein , Max Krummenacher , Matthias Schiffer , Denys Drozdov , Tim Harvey , Alex Marginean , Reinhold Mueller , Shenwei Wang , Viorel Suman , Abel Vesa , Zhou Peng , Shijie Qin , Ming Qian , Peng Fan , Li Yang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev Subject: [PATCH v8 5/5] arm64: dts: freescale: add support for i.MX8DXL EVK board Date: Wed, 14 Sep 2022 08:58:48 -0500 Message-Id: <20220914135848.118616-6-shenwei.wang@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220914135848.118616-1-shenwei.wang@nxp.com> References: <20220914135848.118616-1-shenwei.wang@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BY5PR16CA0034.namprd16.prod.outlook.com (2603:10b6:a03:1a0::47) To AS8PR04MB9176.eurprd04.prod.outlook.com (2603:10a6:20b:44b::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB9176:EE_|DB8PR04MB7129:EE_ X-MS-Office365-Filtering-Correlation-Id: 0edfcce5-2cfd-4665-68a3-08da96596967 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: YwrT5kFZZgFLWr7IlirUnmtW+XBWcAaBbAyox7sYml2WWMce+LOygIW072pL4pb7G2c7qLxSMQXxvI+WeNHfJzTWuf7DKScoDq1C/M8c6RsFWGdI+pNf9qT7b0EIuC/iWg+LXp+WEDrqspibawk0UxIcAhJp/3bRk7PMWmA950EYFXy7upJWjwu0TRSburfKg316UZFGFUlnI8NguEOxhimQINUeuXm/DqLawxyKcMO+7aBmjeYu+tzthOfx885FBuL1V0r8A+LyiUm/54+7JvP5gq/ZweoKSeTGcAr7OI9kZJvQEunN+ybJO7vBRv2KNpDfvnI5hDJYESr0Q+L7e7NdRuPv/zMgj/8SGQQzE3oL423+FXT6PssK3Zu8saNCAMMZwMY3bn/ZRp2UAKxPNR/SB9rlaPOsvI422Ba03QGRHESSRIUu9Fr4xfd7kvVY9zVhkAxtMyR524VTND5gM7bNSvttAVeEw4W/gMk36GkuY0/kGdhheohT12ohkqrR5vmBhFqGWcB7hNfk0teOZLmkXqOnc//DVMj6pts3LZVpN+MldeIFV+KgbRsYdCt2EbRjyUZo7pEOdBGyRO8cfQOb2y7+6hmT9F9nyjou7/NwluGvNAz417ncrfm9RKKM+dHF4kuPj34brErFLdV/MrmKrt2sTmDlNf79n4/ejQF70fSVkb4/t1/ztqDA6NrsVEAHghACbLhW366nxmxVih1zHVDqJMaQAZfM/AO/5Ar+W1c8uzgB67Who5wlotjyOLBUJ8TU1HZ+hdGcHrwJ55tK+1Bvl7Doa14JmYzY2mPSTLK6xBWAyfKbSVGMjy2T X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB9176.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(136003)(396003)(39860400002)(376002)(366004)(346002)(451199015)(38350700002)(4326008)(5660300002)(7416002)(66946007)(6666004)(55236004)(1076003)(66556008)(38100700002)(8936002)(8676002)(6486002)(186003)(44832011)(41300700001)(66476007)(30864003)(86362001)(26005)(316002)(110136005)(2906002)(478600001)(54906003)(2616005)(36756003)(52116002)(6506007)(83380400001)(6512007)(473944003)(414714003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?zTvZTgdErkh0Bj0DLAnDChNejjO5+2cWywbFkwHDoTC6XzeFoqPq43Nz7M/B?= =?us-ascii?Q?3DiziqmNsgjTdaMLJj65css9lTnwaE71v6xWLmQFcOc0hFRtbKXep2Yms0iF?= =?us-ascii?Q?OpGMYHLT9e9y4AqvpWA2kTMEnnd1Dh7u369CpNgZzcgSTCOn2MTiV67ZOecH?= =?us-ascii?Q?tZoZjYnIGFm2Bx/zZTGgDEJZolzHwadEbB72qbfwb+CcMHsvJSMRphXyAnnN?= =?us-ascii?Q?rG/e9pdtMepHcyyvHlgB6Gl2RP/OinDG5YT2hC6aVMq6586BAD7zYjxtz9yw?= =?us-ascii?Q?1fqSYIo5MAN3Nqiu2R0meLpFgZlez8v96M6/QpLO1dXfIQIB52Tm+s9K9M4Y?= =?us-ascii?Q?NiHZLC0ycy8v6tvDBM+cW3H6CYZ4xwgNfskUmxJLFk1jpPAitDuRz0VK9+dA?= =?us-ascii?Q?FXRdLhpMJ/s/nle/PS/xDXxPO/hNVpIjINaSm5wQv1cdnDeKcjzbv0eywDo/?= =?us-ascii?Q?WuHvbD0G+LYzZSnD3N9BLPPlIBSHe2rlOhUxHEyLf+/pUHFbC2Xd7zqQdGOW?= =?us-ascii?Q?gclbGEYWgXDeHHS6J2ZbLLi5s5twCjrM+Pf9c+SCkozylz5b7WXqyqm0ih9x?= =?us-ascii?Q?d9oTAi4rTJHEJOF1rtaiCyb88kEzqCkrsLJm5pFoMFvm5l4yrggQQt7XRuOF?= =?us-ascii?Q?/wecaG/dy5tUMwEMNCG3ZgYI4fEup57bZmHiiB5RdL0IE3iK/p5LijeRcZua?= =?us-ascii?Q?pEh65fPKjAIh+cIHgbb9Oh+9FYRB5wkChIKOPUVsXfqTHl5gtVsAuRoz8ZSM?= =?us-ascii?Q?z3dvB6iiiW7JBvKODRqsBBVWDasDEUYpMNCwbOpXkkVJ2RyTicqyNIL6UYW7?= =?us-ascii?Q?OLcC8jg1zcozy96o+bJGeg+9SVP2+oxzh9aM+Rb7IDw0ipiiRV5z8Qt9YE9o?= =?us-ascii?Q?pjWtqzIsSag1fLfZtWYErDaECfZHeii3JkHw5vb/7A0cOwIyfGtRZiXORcuM?= =?us-ascii?Q?rYu4ZSu09HxrVlHz7cIRCSR3PuIRRsRs2Gj2Brh+KBERBCf/4Z7PbjP5hkM/?= =?us-ascii?Q?4hMyTXzM9fMUslRCTLPPxdfFvUayN81xPhcDBLQKp9XJm46HLYxZMGHvmsIW?= =?us-ascii?Q?dJc2YBEnmQ/7dD1i95D6UMsT1l0Hg/X/nX4W2P25VOo98Hmib02VmVmQgPrq?= =?us-ascii?Q?GhCH+0PgQYbGP10R23zT7csa5ouaXkvpPoOrCiHPVbM9lLoBOxPvpe0ppqZj?= =?us-ascii?Q?VNTeG2EdCK5+cld6WkCAxYQ4bSFwZ4YtLI2uf64XwaIZr/IQmrzvhxy+ES9M?= =?us-ascii?Q?CxK+CNE4t9qtonkybKvBCxCW1PleZTtFxDx9lgmDFucBvhRJjG0QZquZ1I0S?= =?us-ascii?Q?WTaABAy408WHcqvi+72JW1AKkG5iSnZAKHLjUwvnJMW2owFo44JXh4mbDLuD?= =?us-ascii?Q?EaTdjoNhTm8ZEzRwK1RkRzOawHJ+ArUtSH7lJate8V9gljVAszRq95XphPXN?= =?us-ascii?Q?1vzDb/cQBBvDggUzEC7YE9GF2wIH+VDhQeMlPI1DS4Ki56YWwuZWLGOvN6ux?= =?us-ascii?Q?YejVxtVYwXn633DPyu7z+Gt4gjn6eq6xckNRkD1w3WS2UfJBq2a+p8QM128H?= =?us-ascii?Q?LeNubhYifj7sO+vSZzRIsvrDmbENsh6T3w9VLbSH55SLNIh/mPqAwT3tnDes?= =?us-ascii?Q?jw=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0edfcce5-2cfd-4665-68a3-08da96596967 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB9176.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2022 14:00:00.2234 (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: 2c+476rEC0IQx6QM7QF6YwpPHQm9U5L725vs1NJLcunzFaVtBpPLnCF5FDGYqWSQBDWo4vHZEb02Eo2kpkYzAw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7129 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, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 This is to support the EVK (Evaluation Kit Board) for the i.MX8DXL. The patch has enabled the serial console, SD/EMMC interface, and the eqos and fec ethernet network. Signed-off-by: Shenwei Wang --- arch/arm64/boot/dts/freescale/Makefile | 1 + arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 426 ++++++++++++++++++ 2 files changed, 427 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8dxl-evk.dts diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 8bf7f7ecebaa..2741205efe84 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -48,6 +48,7 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-qds-85bb.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-qds-899b.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-qds-9999.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8dxl-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-beacon-kit.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-data-modul-edm-sbc.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-ddr4-evk.dtb diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts new file mode 100644 index 000000000000..ca2a43e0cbf6 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts @@ -0,0 +1,426 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2019~2020, 2022 NXP + */ + +/dts-v1/; + +#include "imx8dxl.dtsi" + +/ { + model = "Freescale i.MX8DXL EVK"; + compatible = "fsl,imx8dxl-evk", "fsl,imx8dxl"; + + aliases { + i2c2 = &i2c2; + mmc0 = &usdhc1; + mmc1 = &usdhc2; + serial0 = &lpuart0; + }; + + chosen { + stdout-path = &lpuart0; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x00000000 0x80000000 0 0x40000000>; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* + * Memory reserved for optee usage. Please do not use. + * This will be automatically added to dtb if OP-TEE is installed. + * optee@96000000 { + * reg = <0 0x96000000 0 0x2000000>; + * no-map; + * }; + */ + + /* global autoconfigured region for contiguous allocations */ + linux,cma { + compatible = "shared-dma-pool"; + reusable; + size = <0 0x14000000>; + alloc-ranges = <0 0x98000000 0 0x14000000>; + linux,cma-default; + }; + }; + + mux3_en: regulator-0 { + compatible = "regulator-fixed"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "mux3_en"; + gpio = <&pca6416_2 8 GPIO_ACTIVE_LOW>; + regulator-always-on; + }; + + reg_fec1_sel: regulator-1 { + compatible = "regulator-fixed"; + regulator-name = "fec1_supply"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&pca6416_1 11 GPIO_ACTIVE_LOW>; + regulator-always-on; + status = "disabled"; + }; + + reg_fec1_io: regulator-2 { + compatible = "regulator-fixed"; + regulator-name = "fec1_io_supply"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&max7322 0 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; + status = "disabled"; + }; + + reg_usdhc2_vmmc: regulator-3 { + compatible = "regulator-fixed"; + regulator-name = "SD1_SPWR"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + gpio = <&lsio_gpio4 30 GPIO_ACTIVE_HIGH>; + enable-active-high; + off-on-delay-us = <3480>; + }; +}; + +&eqos { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_eqos>; + phy-mode = "rgmii-id"; + phy-handle = <ðphy0>; + nvmem-cells = <&fec_mac1>; + nvmem-cell-names = "mac-address"; + snps,reset-gpios = <&pca6416_1 2 GPIO_ACTIVE_LOW>; + snps,reset-delays-us = <10 20 200000>; + status = "okay"; + + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + ethphy0: ethernet-phy@0 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0>; + eee-broken-1000t; + qca,disable-smarteee; + vddio-supply = <&vddio0>; + + vddio0: vddio-regulator { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + }; + }; +}; + +/* + * fec1 shares the some PINs with usdhc2. + * by default usdhc2 is enabled in this dts. + * Please disable usdhc2 to enable fec1 + */ +&fec1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_fec1>; + phy-mode = "rgmii-txid"; + phy-handle = <ðphy1>; + fsl,magic-packet; + rx-internal-delay-ps = <2000>; + nvmem-cells = <&fec_mac0>; + nvmem-cell-names = "mac-address"; + status = "disabled"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethphy1: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + reset-gpios = <&pca6416_1 0 GPIO_ACTIVE_LOW>; + reset-assert-us = <10000>; + qca,disable-smarteee; + vddio-supply = <&vddio1>; + + vddio1: vddio-regulator { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + }; + }; +}; + +&i2c2 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2>; + status = "okay"; + + pca6416_1: gpio@20 { + compatible = "ti,tca6416"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + pca6416_2: gpio@21 { + compatible = "ti,tca6416"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + pca9548_1: i2c-mux@70 { + compatible = "nxp,pca9548"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x70>; + + i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0>; + + max7322: gpio@68 { + compatible = "maxim,max7322"; + reg = <0x68>; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + }; + + i2c@4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x4>; + }; + + i2c@5 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x5>; + }; + + i2c@6 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x6>; + }; + }; +}; + +&lpuart0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lpuart0>; + status = "okay"; +}; + +&lsio_gpio4 { + status = "okay"; +}; + +&lsio_gpio5 { + status = "okay"; +}; + +&thermal_zones { + pmic-thermal0 { + polling-delay-passive = <250>; + polling-delay = <2000>; + thermal-sensors = <&tsens IMX_SC_R_PMIC_0>; + + trips { + pmic_alert0: trip0 { + temperature = <110000>; + hysteresis = <2000>; + type = "passive"; + }; + + pmic_crit0: trip1 { + temperature = <125000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&pmic_alert0>; + cooling-device = + <&A35_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A35_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; +}; + +&usdhc1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc1>; + bus-width = <8>; + no-sd; + no-sdio; + non-removable; + status = "okay"; +}; + +&usdhc2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; + bus-width = <4>; + vmmc-supply = <®_usdhc2_vmmc>; + cd-gpios = <&lsio_gpio5 1 GPIO_ACTIVE_LOW>; + wp-gpios = <&lsio_gpio5 0 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +&iomuxc { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hog>; + + pinctrl_hog: hoggrp { + fsl,pins = < + IMX8DXL_COMP_CTL_GPIO_1V8_3V3_GPIORHB_PAD 0x000514a0 + IMX8DXL_COMP_CTL_GPIO_1V8_3V3_GPIORHK_PAD 0x000014a0 + IMX8DXL_SPI3_CS0_ADMA_ACM_MCLK_OUT1 0x0600004c + IMX8DXL_SNVS_TAMPER_OUT1_LSIO_GPIO2_IO05_IN 0x0600004c + >; + }; + + pinctrl_usbotg1: usbotg1grp { + fsl,pins = < + IMX8DXL_USB_SS3_TC0_CONN_USB_OTG1_PWR 0x00000021 + >; + }; + + pinctrl_usbotg2: usbotg2grp { + fsl,pins = < + IMX8DXL_USB_SS3_TC1_CONN_USB_OTG2_PWR 0x00000021 + >; + }; + + pinctrl_eqos: eqosgrp { + fsl,pins = < + IMX8DXL_ENET0_MDC_CONN_EQOS_MDC 0x06000020 + IMX8DXL_ENET0_MDIO_CONN_EQOS_MDIO 0x06000020 + IMX8DXL_ENET1_RGMII_RXC_CONN_EQOS_RGMII_RXC 0x06000020 + IMX8DXL_ENET1_RGMII_RXD0_CONN_EQOS_RGMII_RXD0 0x06000020 + IMX8DXL_ENET1_RGMII_RXD1_CONN_EQOS_RGMII_RXD1 0x06000020 + IMX8DXL_ENET1_RGMII_RXD2_CONN_EQOS_RGMII_RXD2 0x06000020 + IMX8DXL_ENET1_RGMII_RXD3_CONN_EQOS_RGMII_RXD3 0x06000020 + IMX8DXL_ENET1_RGMII_RX_CTL_CONN_EQOS_RGMII_RX_CTL 0x06000020 + IMX8DXL_ENET1_RGMII_TXC_CONN_EQOS_RGMII_TXC 0x06000020 + IMX8DXL_ENET1_RGMII_TXD0_CONN_EQOS_RGMII_TXD0 0x06000020 + IMX8DXL_ENET1_RGMII_TXD1_CONN_EQOS_RGMII_TXD1 0x06000020 + IMX8DXL_ENET1_RGMII_TXD2_CONN_EQOS_RGMII_TXD2 0x06000020 + IMX8DXL_ENET1_RGMII_TXD3_CONN_EQOS_RGMII_TXD3 0x06000020 + IMX8DXL_ENET1_RGMII_TX_CTL_CONN_EQOS_RGMII_TX_CTL 0x06000020 + >; + }; + + pinctrl_fec1: fec1grp { + fsl,pins = < + IMX8DXL_COMP_CTL_GPIO_1V8_3V3_ENET_ENETB0_PAD 0x000014a0 + IMX8DXL_COMP_CTL_GPIO_1V8_3V3_ENET_ENETB1_PAD 0x000014a0 + IMX8DXL_ENET0_MDC_CONN_ENET0_MDC 0x06000020 + IMX8DXL_ENET0_MDIO_CONN_ENET0_MDIO 0x06000020 + IMX8DXL_ENET0_RGMII_RXC_CONN_ENET0_RGMII_RXC 0x00000060 + IMX8DXL_ENET0_RGMII_RXD0_CONN_ENET0_RGMII_RXD0 0x00000060 + IMX8DXL_ENET0_RGMII_RXD1_CONN_ENET0_RGMII_RXD1 0x00000060 + IMX8DXL_ENET0_RGMII_RXD2_CONN_ENET0_RGMII_RXD2 0x00000060 + IMX8DXL_ENET0_RGMII_RXD3_CONN_ENET0_RGMII_RXD3 0x00000060 + IMX8DXL_ENET0_RGMII_RX_CTL_CONN_ENET0_RGMII_RX_CTL 0x00000060 + IMX8DXL_ENET0_RGMII_TXC_CONN_ENET0_RGMII_TXC 0x00000060 + IMX8DXL_ENET0_RGMII_TXD0_CONN_ENET0_RGMII_TXD0 0x00000060 + IMX8DXL_ENET0_RGMII_TXD1_CONN_ENET0_RGMII_TXD1 0x00000060 + IMX8DXL_ENET0_RGMII_TXD2_CONN_ENET0_RGMII_TXD2 0x00000060 + IMX8DXL_ENET0_RGMII_TXD3_CONN_ENET0_RGMII_TXD3 0x00000060 + IMX8DXL_ENET0_RGMII_TX_CTL_CONN_ENET0_RGMII_TX_CTL 0x00000060 + >; + }; + + pinctrl_lpspi3: lpspi3grp { + fsl,pins = < + IMX8DXL_SPI3_SCK_ADMA_SPI3_SCK 0x6000040 + IMX8DXL_SPI3_SDO_ADMA_SPI3_SDO 0x6000040 + IMX8DXL_SPI3_SDI_ADMA_SPI3_SDI 0x6000040 + IMX8DXL_SPI3_CS1_ADMA_SPI3_CS1 0x6000040 + >; + }; + + pinctrl_i2c2: i2c2grp { + fsl,pins = < + IMX8DXL_SPI1_SCK_ADMA_I2C2_SDA 0x06000021 + IMX8DXL_SPI1_SDO_ADMA_I2C2_SCL 0x06000021 + >; + }; + + pinctrl_cm40_lpuart: cm40lpuartgrp { + fsl,pins = < + IMX8DXL_ADC_IN2_M40_UART0_RX 0x06000020 + IMX8DXL_ADC_IN3_M40_UART0_TX 0x06000020 + >; + }; + + pinctrl_i2c3: i2c3grp { + fsl,pins = < + IMX8DXL_SPI1_CS0_ADMA_I2C3_SDA 0x06000021 + IMX8DXL_SPI1_SDI_ADMA_I2C3_SCL 0x06000021 + >; + }; + + pinctrl_lpuart0: lpuart0grp { + fsl,pins = < + IMX8DXL_UART0_RX_ADMA_UART0_RX 0x06000020 + IMX8DXL_UART0_TX_ADMA_UART0_TX 0x06000020 + >; + }; + + pinctrl_usdhc1: usdhc1grp { + fsl,pins = < + IMX8DXL_EMMC0_CLK_CONN_EMMC0_CLK 0x06000041 + IMX8DXL_EMMC0_CMD_CONN_EMMC0_CMD 0x00000021 + IMX8DXL_EMMC0_DATA0_CONN_EMMC0_DATA0 0x00000021 + IMX8DXL_EMMC0_DATA1_CONN_EMMC0_DATA1 0x00000021 + IMX8DXL_EMMC0_DATA2_CONN_EMMC0_DATA2 0x00000021 + IMX8DXL_EMMC0_DATA3_CONN_EMMC0_DATA3 0x00000021 + IMX8DXL_EMMC0_DATA4_CONN_EMMC0_DATA4 0x00000021 + IMX8DXL_EMMC0_DATA5_CONN_EMMC0_DATA5 0x00000021 + IMX8DXL_EMMC0_DATA6_CONN_EMMC0_DATA6 0x00000021 + IMX8DXL_EMMC0_DATA7_CONN_EMMC0_DATA7 0x00000021 + IMX8DXL_EMMC0_STROBE_CONN_EMMC0_STROBE 0x00000041 + >; + }; + + pinctrl_usdhc2_gpio: usdhc2gpiogrp { + fsl,pins = < + IMX8DXL_ENET0_RGMII_TX_CTL_LSIO_GPIO4_IO30 0x00000040 /* RESET_B */ + IMX8DXL_ENET0_RGMII_TXD1_LSIO_GPIO5_IO00 0x00000021 /* WP */ + IMX8DXL_ENET0_RGMII_TXD2_LSIO_GPIO5_IO01 0x00000021 /* CD */ + >; + }; + + pinctrl_usdhc2: usdhc2grp { + fsl,pins = < + IMX8DXL_ENET0_RGMII_RXC_CONN_USDHC1_CLK 0x06000041 + IMX8DXL_ENET0_RGMII_RX_CTL_CONN_USDHC1_CMD 0x00000021 + IMX8DXL_ENET0_RGMII_RXD0_CONN_USDHC1_DATA0 0x00000021 + IMX8DXL_ENET0_RGMII_RXD1_CONN_USDHC1_DATA1 0x00000021 + IMX8DXL_ENET0_RGMII_RXD2_CONN_USDHC1_DATA2 0x00000021 + IMX8DXL_ENET0_RGMII_RXD3_CONN_USDHC1_DATA3 0x00000021 + IMX8DXL_ENET0_RGMII_TXD0_CONN_USDHC1_VSELECT 0x00000021 + >; + }; +}; -- 2.25.1