Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp241107rdb; Tue, 16 Jan 2024 23:50:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHqJKKZ0doKJ1cVW2D+q0Uc9XoZnRrW2g0AE+jd6V32faUe5wYmAR75fFKypiSKLg8qKe7b X-Received: by 2002:a05:6870:d10f:b0:210:9fe7:377d with SMTP id e15-20020a056870d10f00b002109fe7377dmr561715oac.18.1705477831623; Tue, 16 Jan 2024 23:50:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705477831; cv=pass; d=google.com; s=arc-20160816; b=1HEmdMBdls5iJN5gNGOWt9W4iDQj/Vm2zTzhuqhcQxxOelz93F7Cy3y1Pp/a5j3WiL AHqi4B8jbnTL8jxJVpSQi3wZrHfPAQ1EgI8/UyCwedDS2oXRr2KN/AL2vhNztXH+3MEe L0JpZlZMDgqsYpEbqPtpFZk/tHJSVDJrUCof3Oos44PMZTyNpu+eOpSDZU/fo32r+Yxj xysb9WlqL1vRwMII1EiFhprbo+bvkXrfTNilzUFutn83KQ1aRpBCDrgaXSpHDMfnJelj bO0h6nNo7WRSH/ti76Iswn9EkntLmJZa9+rTEU09m+fakhBUBPugkPOTFSw7O9nZBBay oIyw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=36xknjqsMnWATQ7WxAV9OaWpPCPeju9HhmSYakGXE+U=; fh=2iUhQ7WRJQfdUWff2Kbvk4WdOCZdPrTIue1CqQ1OAVo=; b=z13m2nOU4lXBgfPRhdS11mo3Uc287dt0Jyyo7eaKPITXp0WZwaZT4U4e4ndQdKf4Vl AMzd1riPZ1i8yaaLplJNnh/im7saBEpfxKmVByTFZbN0GST9yxc4zPzNYSFTfHEOQ2uc rxuGU8+Je01s0v8RqIzVWJfB6OFh/GM3rm0I5t88wkZqz7vZw+iHoT6igHsLoDcB/ufs 6cxfECme0ftHL0Kc24+rTngZUzQ5F2MLWtrLTg4JG9QTnQGcKG/do3iPDsop6hneRDN5 4eO9JaH1Wv2/tW3KraS9Gcu296r4nlWunA2hWoXUxUbwm+ZBMO0XmFpb90oZiR8MpIy2 NZWA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gnu.org header.s=fencepost-gnu-org header.b=ocI2FDe3; arc=pass (i=1 spf=pass spfdomain=gnu.org dkim=pass dkdomain=gnu.org dmarc=pass fromdomain=gnu.org); spf=pass (google.com: domain of linux-kernel+bounces-28615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m26-20020a63711a000000b005ce06ca3538si13094749pgc.873.2024.01.16.23.50.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 23:50:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gnu.org header.s=fencepost-gnu-org header.b=ocI2FDe3; arc=pass (i=1 spf=pass spfdomain=gnu.org dkim=pass dkdomain=gnu.org dmarc=pass fromdomain=gnu.org); spf=pass (google.com: domain of linux-kernel+bounces-28615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3986DB22F0B for ; Wed, 17 Jan 2024 07:49:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3040F1170E; Wed, 17 Jan 2024 07:49:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gnu.org header.i=@gnu.org header.b="ocI2FDe3" Received: from eggs.gnu.org (eggs.gnu.org [209.51.188.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5F84BE4C; Wed, 17 Jan 2024 07:49:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.51.188.92 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705477764; cv=none; b=nKc4uue/Q6+z5gUp7XH/fpfF1wMqxKA4+r5mbmBLZ5/0rCvS3QjG7wLyTHKUBpH0/2nsB4pZvMxILDNHBAvnfrWmcgQkHVkp4WQsnBRHKhth1Nq1qHKPkYDDBC7ACM17j1YPVZTim7+2qmKl7bANQgC59QnFMzjxXC1x+8rHQt0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705477764; c=relaxed/simple; bh=PxrFLwWzmbu6edWXOm6DVsQOEXXm4tMsOq0hHLoCOFk=; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; b=rsys3LqBigpHXUPKNTvR4HiMYnVuZnnfwXKUDkCwR8bleEhhNEphrkA/KAvyZ6UZuPFTXD68TYs056eADHKW3wMfmUyA9MBV4MLTTY1oUgsJvA8VhLSy0G2EgvuoAsUsb56jgcxMKfdpaQRZVoxgpvvXAPJJPnZ5Wg/jvMdbHAU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gnu.org; spf=pass smtp.mailfrom=gnu.org; dkim=pass (2048-bit key) header.d=gnu.org header.i=@gnu.org header.b=ocI2FDe3; arc=none smtp.client-ip=209.51.188.92 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rQ0fp-0000gw-Mr; Wed, 17 Jan 2024 02:49:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=36xknjqsMnWATQ7WxAV9OaWpPCPeju9HhmSYakGXE+U=; b=ocI2FDe3nVnaeTYll8sc nG5jR9XRv1n+wCYblQnnt9iHQPFJSeNqLDBzpDkV33mi2vkaTXzQeEPCKwzZIUz9whows0HaTEQFb gx3GBbaatvu3LJBAjaWlDh4RYQ5JB6Q71eK0pPikRK91xxtz8XCVpdGTE7FOKAqWovX+gI625rKnb pqjlu39FjV5q37WVgVCie/rGyWXawLYYzQn1NfhdMvEn00hb+Q9sgiH2o3h56D9LXHIRXKSV2035Z ckdW4EMSopTD6eG4sGBighp8L0IGFVPmHgKEqxFFQJQZKkQ0EOFw9Fy9x8o/DVwhCaTF2e0QhvhUB A7MaHWHrrZU/Xg==; From: Mathieu Othacehe To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Li Yang , Stefan Wahren , Christoph Stoidner , Wadim Egorov Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mathieu Othacehe Subject: [PATCH v2 2/2] arm64: dts: imx93-phycore-segin: Add Phytec i.MX93 Segin Date: Wed, 17 Jan 2024 08:49:11 +0100 Message-ID: <20240117074911.7425-3-othacehe@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240117074911.7425-1-othacehe@gnu.org> References: <20240117074911.7425-1-othacehe@gnu.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add DTSI for Phytec i.MX93 System on Module and DTS for Phytec i.MX93 on Segin evaluation board. This version comes with: - 1GB LPDDR4 RAM - external SD - debug UART - 1x 100Mbit Ethernet Signed-off-by: Mathieu Othacehe --- arch/arm64/boot/dts/freescale/Makefile | 1 + .../dts/freescale/imx93-phycore-segin.dts | 93 +++++++++++++++++++ .../boot/dts/freescale/imx93-phycore-som.dtsi | 64 +++++++++++++ 3 files changed, 158 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx93-phycore-segin.dts create mode 100644 arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 2e027675d7bb..f078d6ef75f7 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -201,6 +201,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8qxp-colibri-iris-v2.dtb dtb-$(CONFIG_ARCH_MXC) += imx8qxp-mek.dtb dtb-$(CONFIG_ARCH_MXC) += imx8ulp-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-11x11-evk.dtb +dtb-$(CONFIG_ARCH_MXC) += imx93-phycore-segin.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxca.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxla.dtb diff --git a/arch/arm64/boot/dts/freescale/imx93-phycore-segin.dts b/arch/arm64/boot/dts/freescale/imx93-phycore-segin.dts new file mode 100644 index 000000000000..748b779a9dc1 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx93-phycore-segin.dts @@ -0,0 +1,93 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2023 PHYTEC Messtechnik GmbH + * Christoph Stoidner + * Copyright (C) 2024 Mathieu Othacehe + * + */ +/dts-v1/; + +#include "imx93-phycore-som.dtsi" + +/{ + model = "PHYTEC phyBOARD-Segin-i.MX93"; + compatible = "phytec,imx93-phycore-segin", "phytec,imx93-phycore-som", + "fsl,imx93"; + + chosen { + stdout-path = &lpuart1; + }; + + reg_usdhc2_vmmc: regulator-usdhc2 { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>; + regulator-name = "VSD_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio3 7 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; +}; + +/* Console */ +&lpuart1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart1>; + status = "okay"; +}; + +/* SD-Card */ +&usdhc2 { + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; + pinctrl-1 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; + pinctrl-2 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; + cd-gpios = <&gpio3 00 GPIO_ACTIVE_LOW>; + vmmc-supply = <®_usdhc2_vmmc>; + bus-width = <4>; + status = "okay"; + no-sdio; + no-mmc; +}; + +/* Watchdog */ +&wdog3 { + status = "okay"; +}; + +&iomuxc { + pinctrl-names = "default"; + status = "okay"; + + pinctrl_uart1: uart1grp { + fsl,pins = < + MX93_PAD_UART1_RXD__LPUART1_RX 0x31e + MX93_PAD_UART1_TXD__LPUART1_TX 0x31e + >; + }; + + pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp { + fsl,pins = < + MX93_PAD_SD2_RESET_B__GPIO3_IO07 0x31e + >; + }; + + pinctrl_usdhc2_gpio: usdhc2gpiogrp { + fsl,pins = < + MX93_PAD_SD2_CD_B__GPIO3_IO00 0x31e + >; + }; + + pinctrl_usdhc2: usdhc2grp { + fsl,pins = < + MX93_PAD_SD2_CLK__USDHC2_CLK 0x178e + MX93_PAD_SD2_CMD__USDHC2_CMD 0x139e + MX93_PAD_SD2_DATA0__USDHC2_DATA0 0x138e + MX93_PAD_SD2_DATA1__USDHC2_DATA1 0x138e + MX93_PAD_SD2_DATA2__USDHC2_DATA2 0x138e + MX93_PAD_SD2_DATA3__USDHC2_DATA3 0x139e + MX93_PAD_SD2_VSELECT__USDHC2_VSELECT 0x51e + >; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi b/arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi new file mode 100644 index 000000000000..4edff4a50b2b --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi @@ -0,0 +1,64 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2023 PHYTEC Messtechnik GmbH + * Christoph Stoidner + * Copyright (C) 2024 Mathieu Othacehe + * + */ +/dts-v1/; + +#include "imx93.dtsi" + +/{ + model = "PHYTEC phyCORE-i.MX93"; + compatible = "phytec,imx93-phycore-som", "fsl,imx93"; + + reserved-memory { + ranges; + #address-cells = <2>; + #size-cells = <2>; + + linux,cma { + compatible = "shared-dma-pool"; + reusable; + alloc-ranges = <0 0x80000000 0 0x40000000>; + size = <0 0x10000000>; + linux,cma-default; + }; + + ele_reserved: ele-reserved@a4120000 { + compatible = "shared-dma-pool"; + reg = <0 0xa4120000 0 0x100000>; + no-map; + }; + }; +}; + +/* eMMC */ +&usdhc1 { + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc1>; + pinctrl-1 = <&pinctrl_usdhc1>; + pinctrl-2 = <&pinctrl_usdhc1>; + bus-width = <8>; + non-removable; + status = "okay"; +}; + +&iomuxc { + pinctrl_usdhc1: usdhc1grp { + fsl,pins = < + MX93_PAD_SD1_CLK__USDHC1_CLK 0x15fe + MX93_PAD_SD1_CMD__USDHC1_CMD 0x13fe + MX93_PAD_SD1_DATA0__USDHC1_DATA0 0x13fe + MX93_PAD_SD1_DATA1__USDHC1_DATA1 0x13fe + MX93_PAD_SD1_DATA2__USDHC1_DATA2 0x13fe + MX93_PAD_SD1_DATA3__USDHC1_DATA3 0x13fe + MX93_PAD_SD1_DATA4__USDHC1_DATA4 0x13fe + MX93_PAD_SD1_DATA5__USDHC1_DATA5 0x13fe + MX93_PAD_SD1_DATA6__USDHC1_DATA6 0x13fe + MX93_PAD_SD1_DATA7__USDHC1_DATA7 0x13fe + MX93_PAD_SD1_STROBE__USDHC1_STROBE 0x15fe + >; + }; +}; -- 2.41.0