From nobody Tue Oct 7 18:26:11 2025 Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) (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 2F1E71D63D8; Tue, 8 Jul 2025 04:22:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.19.9.99 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751948531; cv=none; b=UsqPs7p1yp2PtJtX+HWKo/61RZhQwotrBJdo2t3hBDkwJlm3AKFamdiyWghSae3Kv52pdLIx9Znnn9GqXca7Iv5vzRyF5CyyX7wUHh4kK+yfnibDuyohu1kEjac2wFBiPdr3Q9CsFFpPu47kAMgcZdBdnoyzvqGvnUuNVSEbr5g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751948531; c=relaxed/simple; bh=dfPpwCM7OcyTLw0igecA8TsBNdeOXqGRUAE177jf01o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mvbD/Dffr59uQ36l12KOpMtnkygU2i+oHWOpIUqOaHIFsRPwrjhJNvIquwfm4hEZUkRie+oWs97GN65qWGt5vAHOGgt+Q5ZFOvTqfrd2KjXwYs/vIyGeEwVPm9QmGXXKxi8Q2VBXKnukTi8rwj4UFI/hv3dt/2AONLYmZEwz1UI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=norik.com; spf=pass smtp.mailfrom=norik.com; dkim=pass (2048-bit key) header.d=norik.com header.i=@norik.com header.b=dEJxUQek; arc=none smtp.client-ip=46.19.9.99 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=norik.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=norik.com header.i=@norik.com header.b="dEJxUQek" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=kWtLMNetAysLYmRYa3XY3eQD60RB/+MFvSgGQYe8k8I=; b=dEJxUQekx06MVMJZTTUYXA37xl pkuF/agw4v+L4NrBxZu3pJ+SmTvyQhVdCoez7naUmj7ZqPL5zhxVLJfHK137yGXT5WKpkI2lQfyjD UlF3JtTzr403we24IPQtfXA1C8bf3fqM+CB0nYV0KnrVz75di+edg/fycaPIJlXaGQtPGcDBc6JsK FbelNOgCjI5mSUjUo/qqak3ugvcNC4ZU8qYwbiyv1/VJ6lmU0UhwCnouWdVxXR87rKRNz6HhDKkW7 ovp413W5kmPLV3B5SF0OceE6KgU420/uKe8Pv1TC+BGTsRCYtHvf1GgpcxoQNjR/F7PHM6lw+00Hd 2Ke6zG5A==; Received: from [89.212.21.243] (port=45388 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1uYzqK-00GO9H-16; Tue, 08 Jul 2025 06:22:07 +0200 From: Primoz Fiser To: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, upstream@lists.phytec.de Subject: [PATCH v3 1/4] arm64: dts: imx93-phycore-som: Add RPMsg overlay Date: Tue, 8 Jul 2025 06:22:03 +0200 Message-Id: <20250708042206.329208-2-primoz.fiser@norik.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250708042206.329208-1-primoz.fiser@norik.com> References: <20250708042206.329208-1-primoz.fiser@norik.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: primoz.fiser@norik.com X-Authenticated-Sender: cpanel.siel.si: primoz.fiser@norik.com X-Source: X-Source-Args: X-Source-Dir: Content-Type: text/plain; charset="utf-8" Add an overlay used for remote processor inter-core communication between A55 and M33 cores on the phyCORE-i.MX93 SoM based boards. Overlay adds the required reserved memory regions and enables the mailbox unit and the M33 core for RPMsg (Remote Processor Messaging Framework). Signed-off-by: Primoz Fiser Reviewed-by: Peng Fan --- Changes in v3: - fix license to match base dts - add Reviewed-by tag arch/arm64/boot/dts/freescale/Makefile | 4 ++ .../dts/freescale/imx93-phycore-rpmsg.dtso | 60 +++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx93-phycore-rpmsg.dtso diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/f= reescale/Makefile index 0b473a23d120..08a1de299538 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -324,6 +324,10 @@ dtb-$(CONFIG_ARCH_MXC) +=3D imx93-14x14-evk.dtb dtb-$(CONFIG_ARCH_MXC) +=3D imx93-kontron-bl-osm-s.dtb dtb-$(CONFIG_ARCH_MXC) +=3D imx93-phyboard-nash.dtb dtb-$(CONFIG_ARCH_MXC) +=3D imx93-phyboard-segin.dtb + +imx93-phycore-rpmsg-dtbs +=3D imx93-phyboard-nash.dtb imx93-phyboard-segin= .dtb imx93-phycore-rpmsg.dtbo +dtb-$(CONFIG_ARCH_MXC) +=3D imx93-phycore-rpmsg.dtb + dtb-$(CONFIG_ARCH_MXC) +=3D imx93-tqma9352-mba91xxca.dtb dtb-$(CONFIG_ARCH_MXC) +=3D imx93-tqma9352-mba93xxca.dtb dtb-$(CONFIG_ARCH_MXC) +=3D imx93-tqma9352-mba93xxla.dtb diff --git a/arch/arm64/boot/dts/freescale/imx93-phycore-rpmsg.dtso b/arch/= arm64/boot/dts/freescale/imx93-phycore-rpmsg.dtso new file mode 100644 index 000000000000..23bede7833f8 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx93-phycore-rpmsg.dtso @@ -0,0 +1,60 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2025 PHYTEC Messtechnik GmbH + * Author: Primoz Fiser + */ + +/dts-v1/; +/plugin/; + +&{/} { + reserved-memory { + #address-cells =3D <2>; + #size-cells =3D <2>; + + rsc_table: rsc-table@2021e000 { + reg =3D <0 0x2021e000 0 0x1000>; + no-map; + }; + + vdev0vring0: vdev0vring0@a4000000 { + reg =3D <0 0xa4000000 0 0x8000>; + no-map; + }; + + vdev0vring1: vdev0vring1@a4008000 { + reg =3D <0 0xa4008000 0 0x8000>; + no-map; + }; + + vdev1vring0: vdev1vring0@a4010000 { + reg =3D <0 0xa4010000 0 0x8000>; + no-map; + }; + + vdev1vring1: vdev1vring1@a4018000 { + reg =3D <0 0xa4018000 0 0x8000>; + no-map; + }; + + vdevbuffer: vdevbuffer@a4020000 { + compatible =3D "shared-dma-pool"; + reg =3D <0 0xa4020000 0 0x100000>; + no-map; + }; + }; +}; + +&cm33 { + mbox-names =3D "tx", "rx", "rxdb"; + mboxes =3D <&mu1 0 1>, + <&mu1 1 1>, + <&mu1 3 1>; + memory-region =3D <&vdevbuffer>, <&vdev0vring0>, <&vdev0vring1>, + <&vdev1vring0>, <&vdev1vring1>, <&rsc_table>; + status =3D "okay"; +}; + +&mu1 { + status =3D "okay"; +}; --=20 2.34.1 From nobody Tue Oct 7 18:26:11 2025 Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) (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 2F0F41C8610; Tue, 8 Jul 2025 04:22:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.19.9.99 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751948531; cv=none; b=sd0LOwNAey7VOYg9q4K6jKuntwZn+89S/C5Eu5XJzgyWdh3TU9r7gk0UANhZLGhjckF6x1D1dgjzRtZZVdacQsTmX2sdl4KrCawItuUGb8mM5NCh8YqXRH13op3NeJVekoPVc+Vwt1IO9cl+WDe4bZx5OooLsCcx3vE8vF4L0DU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751948531; c=relaxed/simple; bh=lK+/YCpPKtoiftQ5RjFEFQRAnYJ5Nka4bSWUC+ntovA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Ff+EG+61ssK2292lOCtoKDfecO26ymq8xZWoZ3yag7Jj3pR1b2bwgemDURQEtQo/hy+WSA8wDbn+RjcHd1YscA9l7llQEBn45DD9P8TNvfYuOJVimhT0O5AFn/nABsMmdm5upzqMmbXOEtOAx/pEXelfTqhCRQvaTwQ4QUqajqE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=norik.com; spf=pass smtp.mailfrom=norik.com; dkim=pass (2048-bit key) header.d=norik.com header.i=@norik.com header.b=iAU8ed0W; arc=none smtp.client-ip=46.19.9.99 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=norik.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=norik.com header.i=@norik.com header.b="iAU8ed0W" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=xgOAbYrU3I65DP3OBtlB0nUbAXTzxo+RZlakjhJvTL4=; b=iAU8ed0WIG7iFMLG4xU0oWUvyJ hmFDqbDFyQUgLDXCL4GOHS11eVF1kP3wSS60gTBo4FvhfFxJJdQuJdT39GkDJ0Nhph3Fr+ojumGaG C6W0khng+aU/ZZhJQsVxuEgW5jgH02EFOLoF58qql9uH/Yki4u28p/mc4Kq+SRK0XbNove0YeDnD2 zT4ySjk72zQgmUOs8kqASWxd5ID+VZQYW+KS6QHpOHbQvw9wnSEpFR7EkgkEclyydgaA0h+0PjOTK nfRIdFa8Q4M4QEctwYTHHocd/UKtiNNhz1OT8Xk5yqKcWPtIcIIGtYyX309Ab49bbBEEapzEKhhT9 tTJ1tEug==; Received: from [89.212.21.243] (port=45388 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1uYzqK-00GO9H-1N; Tue, 08 Jul 2025 06:22:07 +0200 From: Primoz Fiser To: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, upstream@lists.phytec.de Subject: [PATCH v3 2/4] arm64: dts: imx93-phyboard-segin: Add PEB-EVAL-01 overlay Date: Tue, 8 Jul 2025 06:22:04 +0200 Message-Id: <20250708042206.329208-3-primoz.fiser@norik.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250708042206.329208-1-primoz.fiser@norik.com> References: <20250708042206.329208-1-primoz.fiser@norik.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: primoz.fiser@norik.com X-Authenticated-Sender: cpanel.siel.si: primoz.fiser@norik.com X-Source: X-Source-Args: X-Source-Dir: Content-Type: text/plain; charset="utf-8" Add overlay to support PEB-EVAL-01 adapter on phyBOARD-Segin-i.MX93. This is a PHYTEC evaluation module with three LEDs and two input buttons that users can attach to the board expansion connector X16. Note that, due to compatibility with existing PHYTEC platforms using the phyBOARD-Segin carrier board such as i.MX6UL and STM32MP1, we face some hardware limitations and can thus only support one user LED (D2) and one button (S2) on the i.MX93 variant of the phyBOARD-Segin. Signed-off-by: Primoz Fiser Reviewed-by: Peng Fan --- Changes in v3: - fix license to match base dts - add Reviewed-by tag arch/arm64/boot/dts/freescale/Makefile | 2 + .../imx93-phyboard-segin-peb-eval-01.dtso | 52 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx93-phyboard-segin-peb-= eval-01.dtso diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/f= reescale/Makefile index 08a1de299538..011b2d58e4f7 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -325,7 +325,9 @@ dtb-$(CONFIG_ARCH_MXC) +=3D imx93-kontron-bl-osm-s.dtb dtb-$(CONFIG_ARCH_MXC) +=3D imx93-phyboard-nash.dtb dtb-$(CONFIG_ARCH_MXC) +=3D imx93-phyboard-segin.dtb =20 +imx93-phyboard-segin-peb-eval-01-dtbs +=3D imx93-phyboard-segin.dtb imx93-= phyboard-segin-peb-eval-01.dtbo imx93-phycore-rpmsg-dtbs +=3D imx93-phyboard-nash.dtb imx93-phyboard-segin= .dtb imx93-phycore-rpmsg.dtbo +dtb-$(CONFIG_ARCH_MXC) +=3D imx93-phyboard-segin-peb-eval-01.dtb dtb-$(CONFIG_ARCH_MXC) +=3D imx93-phycore-rpmsg.dtb =20 dtb-$(CONFIG_ARCH_MXC) +=3D imx93-tqma9352-mba91xxca.dtb diff --git a/arch/arm64/boot/dts/freescale/imx93-phyboard-segin-peb-eval-01= .dtso b/arch/arm64/boot/dts/freescale/imx93-phyboard-segin-peb-eval-01.dtso new file mode 100644 index 000000000000..a20898734741 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx93-phyboard-segin-peb-eval-01.dtso @@ -0,0 +1,52 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2025 PHYTEC Messtechnik GmbH + * Author: Andrej Picej + */ + +/dts-v1/; +/plugin/; + +#include +#include +#include "imx93-pinfunc.h" + +&{/} { + gpio-keys { + compatible =3D "gpio-keys"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_gpio_keys>; + + button-s2 { + label =3D "sleep"; + linux,code =3D ; + gpios =3D <&gpio1 10 GPIO_ACTIVE_LOW>; + wakeup-source; + }; + }; + + user-leds { + compatible =3D "gpio-leds"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_user_leds>; + + user-led2 { + gpios =3D <&gpio4 13 GPIO_ACTIVE_HIGH>; + default-state =3D "on"; + }; + }; +}; + +&iomuxc { + pinctrl_gpio_keys: gpiokeysgrp { + fsl,pins =3D < + MX93_PAD_PDM_BIT_STREAM1__GPIO1_IO10 0x31e + >; + }; + + pinctrl_user_leds: userledsgrp { + fsl,pins =3D < + MX93_PAD_ENET1_RD3__GPIO4_IO13 0x31e + >; + }; +}; --=20 2.34.1 From nobody Tue Oct 7 18:26:11 2025 Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) (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 50CAE1D9A5F; Tue, 8 Jul 2025 04:22:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.19.9.99 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751948532; cv=none; b=urrAiz8WXD8+L3gpX+F8cW/vES7t6FQ5oSl8STHSonT7g3+BUAmBXeI73/nf0E5VW8q8lCnDhORbY9ssIqAAP2eN6nH+jwbszYbf6mCT/8Q5reBNiF60lTUGDgmGo8MImzrQ+R1hkAVVPo3h5AiEaG7cAlxyZajw8pKb9MIfGrs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751948532; c=relaxed/simple; bh=j1pQxf0/E7CAqOTMC2NKLnR09+Xge+5C7chGPlEdsKQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=U4NdWLSFuJWY/MXJTTMDDv3j4M939bvrasGSYMsmrc+r41t3XN1eMX9kZqo1nyBgZaDjl1UuU53YpeZYh7YpkxTMUMYSPwi0yefypEnNT7rv04hYtGc6I/UpCYOdVeY+6vukrF2zxTF1AdRuvWyahQ6p5YeYxgeGG1pzukuXHng= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=norik.com; spf=pass smtp.mailfrom=norik.com; dkim=pass (2048-bit key) header.d=norik.com header.i=@norik.com header.b=Y2FpZm9V; arc=none smtp.client-ip=46.19.9.99 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=norik.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=norik.com header.i=@norik.com header.b="Y2FpZm9V" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=4ZbUL8/OuT41cZx+qcOESroeHGmMgdpATuOoRlj+Mco=; b=Y2FpZm9V5raaulaQq/5bhXIL/G NOy2570VHOrWzvsZzxrnlB0XTQma4FbmcrXtk5FPkpmsgcQGGCYT2F7Plrse83UXUgj6hCHyGpe7d vcI8/EvcBPMvxNysyOvAQeIqMHuZaHb9PTX6+kYis2UWTV2xGH15npOR54TweUWLk9k5rMjYqVqWS U+povErgGPCESlaBkyw1RBmi6cZ89JwIAQO3LD7P3jWztotmE4vYAdpQgkjLOw3/fFggtbFypq1Tw 0brbEzvhzZWlVD9B1gjTSHUF0OWIfF2lN3GdpidLvsMeN5O/5XYPtuXaDKWN7g9Mz/jv39CYsQiGh t/ITPaaw==; Received: from [89.212.21.243] (port=45388 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1uYzqK-00GO9H-1g; Tue, 08 Jul 2025 06:22:07 +0200 From: Primoz Fiser To: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, upstream@lists.phytec.de Subject: [PATCH v3 3/4] arm64: dts: imx93-phyboard-segin: Add PEB-WLBT-05 overlay Date: Tue, 8 Jul 2025 06:22:05 +0200 Message-Id: <20250708042206.329208-4-primoz.fiser@norik.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250708042206.329208-1-primoz.fiser@norik.com> References: <20250708042206.329208-1-primoz.fiser@norik.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: primoz.fiser@norik.com X-Authenticated-Sender: cpanel.siel.si: primoz.fiser@norik.com X-Source: X-Source-Args: X-Source-Dir: Content-Type: text/plain; charset="utf-8" Add support for PEB-WLBT-05 WLAN/BT adapter on phyBOARD-Segin-i.MX93. The PEB-WLBT-05 is equipped with a Sterling-LWB radio module, which is capable of Wi-Fi 802.11 b/g/n and Bluetooth 4.2. Signed-off-by: Primoz Fiser Reviewed-by: Peng Fan --- Changes in v3: - fix license to match base dts - add Reviewed-by tag arch/arm64/boot/dts/freescale/Makefile | 2 + .../imx93-phyboard-segin-peb-wlbt-05.dtso | 93 +++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx93-phyboard-segin-peb-= wlbt-05.dtso diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/f= reescale/Makefile index 011b2d58e4f7..3166684ab558 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -326,8 +326,10 @@ dtb-$(CONFIG_ARCH_MXC) +=3D imx93-phyboard-nash.dtb dtb-$(CONFIG_ARCH_MXC) +=3D imx93-phyboard-segin.dtb =20 imx93-phyboard-segin-peb-eval-01-dtbs +=3D imx93-phyboard-segin.dtb imx93-= phyboard-segin-peb-eval-01.dtbo +imx93-phyboard-segin-peb-wlbt-05-dtbs +=3D imx93-phyboard-segin.dtb imx93-= phyboard-segin-peb-wlbt-05.dtbo imx93-phycore-rpmsg-dtbs +=3D imx93-phyboard-nash.dtb imx93-phyboard-segin= .dtb imx93-phycore-rpmsg.dtbo dtb-$(CONFIG_ARCH_MXC) +=3D imx93-phyboard-segin-peb-eval-01.dtb +dtb-$(CONFIG_ARCH_MXC) +=3D imx93-phyboard-segin-peb-wlbt-05.dtb dtb-$(CONFIG_ARCH_MXC) +=3D imx93-phycore-rpmsg.dtb =20 dtb-$(CONFIG_ARCH_MXC) +=3D imx93-tqma9352-mba91xxca.dtb diff --git a/arch/arm64/boot/dts/freescale/imx93-phyboard-segin-peb-wlbt-05= .dtso b/arch/arm64/boot/dts/freescale/imx93-phyboard-segin-peb-wlbt-05.dtso new file mode 100644 index 000000000000..a7285f009566 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx93-phyboard-segin-peb-wlbt-05.dtso @@ -0,0 +1,93 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2025 PHYTEC Messtechnik GmbH + * Author: Andrej Picej + */ + +/dts-v1/; +/plugin/; + +#include +#include "imx93-pinfunc.h" + +&{/} { + usdhc3_pwrseq: usdhc3-pwrseq { + compatible =3D "mmc-pwrseq-simple"; + post-power-on-delay-ms =3D <100>; + power-off-delay-us =3D <60>; + reset-gpios =3D <&gpio4 7 GPIO_ACTIVE_LOW>; + }; +}; + +&lpuart5 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_uart5>; + status =3D "okay"; + + bluetooth { + compatible =3D "brcm,bcm43438-bt"; + shutdown-gpios =3D <&gpio4 13 GPIO_ACTIVE_HIGH>; + host-wakeup-gpios =3D <&gpio1 0 GPIO_ACTIVE_HIGH>; + max-speed =3D <2000000>; + }; +}; + +&usdhc3 { + #address-cells =3D <1>; + #size-cells =3D <0>; + pinctrl-names =3D "default", "sleep"; + pinctrl-0 =3D <&pinctrl_usdhc3>, <&pinctrl_wlbt>; + pinctrl-1 =3D <&pinctrl_usdhc3_sleep>, <&pinctrl_wlbt>; + mmc-pwrseq =3D <&usdhc3_pwrseq>; + bus-width =3D <4>; + non-removable; + no-1-8-v; + status =3D "okay"; + + brmcf: wifi@1 { + compatible =3D "brcm,bcm4329-fmac"; + reg =3D <1>; + }; +}; + +&iomuxc { + pinctrl_uart5: uart5grp { + fsl,pins =3D < + MX93_PAD_DAP_TDO_TRACESWO__LPUART5_TX 0x31e + MX93_PAD_DAP_TDI__LPUART5_RX 0x31e + MX93_PAD_DAP_TCLK_SWCLK__LPUART5_CTS_B 0x31e + MX93_PAD_DAP_TMS_SWDIO__LPUART5_RTS_B 0x31e + >; + }; + + /* need to config the SION for data and cmd pad, refer to ERR052021 */ + pinctrl_usdhc3: usdhc3grp { + fsl,pins =3D < + MX93_PAD_GPIO_IO22__USDHC3_CLK 0x179e + MX93_PAD_GPIO_IO23__USDHC3_CMD 0x4000139e + MX93_PAD_GPIO_IO24__USDHC3_DATA0 0x4000139e + MX93_PAD_GPIO_IO25__USDHC3_DATA1 0x4000139e + MX93_PAD_GPIO_IO26__USDHC3_DATA2 0x4000139e + MX93_PAD_GPIO_IO27__USDHC3_DATA3 0x4000139e + >; + }; + + pinctrl_usdhc3_sleep: usdhc3sleepgrp { + fsl,pins =3D < + MX93_PAD_GPIO_IO22__USDHC3_CLK 0x31e + MX93_PAD_GPIO_IO23__USDHC3_CMD 0x31e + MX93_PAD_GPIO_IO24__USDHC3_DATA0 0x31e + MX93_PAD_GPIO_IO25__USDHC3_DATA1 0x31e + MX93_PAD_GPIO_IO26__USDHC3_DATA2 0x31e + MX93_PAD_GPIO_IO27__USDHC3_DATA3 0x31e + >; + }; + + pinctrl_wlbt: wlbtgrp { + fsl,pins =3D < + MX93_PAD_ENET1_RD3__GPIO4_IO13 0x31e /* BT ENABLE */ + MX93_PAD_ENET1_TXC__GPIO4_IO07 0x31e /* WLAN ENABLE */ + MX93_PAD_I2C1_SCL__GPIO1_IO00 0x31e /* HOST WAKEUP */ + >; + }; +}; --=20 2.34.1 From nobody Tue Oct 7 18:26:11 2025 Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) (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 88F71216E26; Tue, 8 Jul 2025 04:22:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.19.9.99 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751948538; cv=none; b=n3/4aSa3Fqm8tsu++218Y5983PCjvPJrr6hjECQ69azzdaeyNowwn4EAwgWLkpDA4MlSLEJxubr4gdPtgjDn59N9Uc3Ch+iA1EDZF10ajpo29C5wPM882fguhxpFqtlYJ9aGQGukS54IFGGgRbdQCC12rxKsCNJZvQp78kSFrkY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751948538; c=relaxed/simple; bh=ulZevYqiH1chwMsT0/3qmn16lJZY3s37WSKTXbOGwDI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=C36geIPGf3nxpHXzQ6E19TsWM1rb2sFBKoepTDqcN1SFnYoR217+sGlpuU34e3p2vQQzNq9cX/0L9Pvm+68OKWso3iSR5FewojALaF5Z44m8H2OqHOar3fkhW1rlisHYzmlhAnTfz3xUOZbL/gphvkIe5hTE1t+3+rt7iejieiY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=norik.com; spf=pass smtp.mailfrom=norik.com; dkim=pass (2048-bit key) header.d=norik.com header.i=@norik.com header.b=N3dsEHbk; arc=none smtp.client-ip=46.19.9.99 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=norik.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=norik.com header.i=@norik.com header.b="N3dsEHbk" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=TethFMbUHgsgVKgaCK7+OTC1UjdHwcUm63F7FiACyH4=; b=N3dsEHbkPG/fFzLgOrnZTEzAOh NoGliEKeMzxwiVXoTM5i7umz4HxknR/N/gkoQ+MGpGHb43lg2KYQ4ANl+W5faFVkYOy5c8aEiB8dr sf5yh72YfpPNTJRlpgelh6U9gND4rNKDTIqhcXe1wR34J4aXcOPIF99AS5gGMSx7IjGdwJJKKEiK7 oS5IWAWH2p9394mB2nDyeyfh05WJOwQsNbUNoHPPtodoizZi8IhCjrAmg2KoZUToeDVJdqWzPWLSi 1BWcpAlcp83/y6iAu9RKvuhRFppA31Nx2DhAicqwjByO/Do4iibfOMp8wStOu0dncH2MkttRdXqFy L2OcG/7w==; Received: from [89.212.21.243] (port=45388 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1uYzqK-00GO9H-1z; Tue, 08 Jul 2025 06:22:07 +0200 From: Primoz Fiser To: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, upstream@lists.phytec.de Subject: [PATCH v3 4/4] arm64: dts: imx93-phyboard-nash: Add PEB-WLBT-07 overlay Date: Tue, 8 Jul 2025 06:22:06 +0200 Message-Id: <20250708042206.329208-5-primoz.fiser@norik.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250708042206.329208-1-primoz.fiser@norik.com> References: <20250708042206.329208-1-primoz.fiser@norik.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: primoz.fiser@norik.com X-Authenticated-Sender: cpanel.siel.si: primoz.fiser@norik.com X-Source: X-Source-Args: X-Source-Dir: Content-Type: text/plain; charset="utf-8" Add overlay to support PHYTEC PEB-WLBT-07 WiFi/Bluetooth evaluation adapter on phyBOARD-Nash-i.MX93 board. Adapter uses the u-blox MAYA-W2 module (IW612 chipset) which is capable of Wi-Fi 6 and Bluetooth 5.4 LE. Signed-off-by: Primoz Fiser Reviewed-by: Peng Fan --- Changes in v3: - fix license to match base dts - add Reviewed-by tag arch/arm64/boot/dts/freescale/Makefile | 2 + .../imx93-phyboard-nash-peb-wlbt-07.dtso | 88 +++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx93-phyboard-nash-peb-w= lbt-07.dtso diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/f= reescale/Makefile index 3166684ab558..699c3b1d80b2 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -325,9 +325,11 @@ dtb-$(CONFIG_ARCH_MXC) +=3D imx93-kontron-bl-osm-s.dtb dtb-$(CONFIG_ARCH_MXC) +=3D imx93-phyboard-nash.dtb dtb-$(CONFIG_ARCH_MXC) +=3D imx93-phyboard-segin.dtb =20 +imx93-phyboard-nash-peb-wlbt-07-dtbs +=3D imx93-phyboard-nash.dtb imx93-ph= yboard-nash-peb-wlbt-07.dtbo imx93-phyboard-segin-peb-eval-01-dtbs +=3D imx93-phyboard-segin.dtb imx93-= phyboard-segin-peb-eval-01.dtbo imx93-phyboard-segin-peb-wlbt-05-dtbs +=3D imx93-phyboard-segin.dtb imx93-= phyboard-segin-peb-wlbt-05.dtbo imx93-phycore-rpmsg-dtbs +=3D imx93-phyboard-nash.dtb imx93-phyboard-segin= .dtb imx93-phycore-rpmsg.dtbo +dtb-$(CONFIG_ARCH_MXC) +=3D imx93-phyboard-nash-peb-wlbt-07.dtb dtb-$(CONFIG_ARCH_MXC) +=3D imx93-phyboard-segin-peb-eval-01.dtb dtb-$(CONFIG_ARCH_MXC) +=3D imx93-phyboard-segin-peb-wlbt-05.dtb dtb-$(CONFIG_ARCH_MXC) +=3D imx93-phycore-rpmsg.dtb diff --git a/arch/arm64/boot/dts/freescale/imx93-phyboard-nash-peb-wlbt-07.= dtso b/arch/arm64/boot/dts/freescale/imx93-phyboard-nash-peb-wlbt-07.dtso new file mode 100644 index 000000000000..7381b87444e8 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx93-phyboard-nash-peb-wlbt-07.dtso @@ -0,0 +1,88 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2025 PHYTEC Messtechnik GmbH + * Author: Primoz Fiser + */ + +/dts-v1/; +/plugin/; + +#include +#include "imx93-pinfunc.h" + +&{/} { + usdhc3_pwrseq: usdhc3-pwrseq { + compatible =3D "mmc-pwrseq-simple"; + reset-gpios =3D <&gpio4 29 GPIO_ACTIVE_LOW>; + }; +}; + +&lpuart5 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_uart5>; + status =3D "okay"; + + bluetooth { + compatible =3D "nxp,88w8987-bt"; + }; +}; + +/* + * NOTE: When uSDHC3 port is multiplexed on GPIO_IO[27:22] pads, it only + * supports 50 MHz mode, due to introduction of potential variations in + * trace impedance, drive strength, and timing skew. Refer to i.MX 93 + * Application Processors Data Sheet, Rev. 3, page 60 for more details. + */ +&usdhc3 { + pinctrl-names =3D "default", "sleep"; + pinctrl-0 =3D <&pinctrl_usdhc3>, <&pinctrl_wlbt>; + pinctrl-1 =3D <&pinctrl_usdhc3_sleep>, <&pinctrl_wlbt>; + mmc-pwrseq =3D <&usdhc3_pwrseq>; + bus-width =3D <4>; + keep-power-in-suspend; + non-removable; + wakeup-source; + status =3D "okay"; +}; + +&iomuxc { + pinctrl_uart5: uart5grp { + fsl,pins =3D < + MX93_PAD_DAP_TDO_TRACESWO__LPUART5_TX 0x31e + MX93_PAD_DAP_TDI__LPUART5_RX 0x31e + MX93_PAD_DAP_TCLK_SWCLK__LPUART5_CTS_B 0x31e + MX93_PAD_DAP_TMS_SWDIO__LPUART5_RTS_B 0x31e + >; + }; + + /* need to config the SION for data and cmd pad, refer to ERR052021 */ + pinctrl_usdhc3: usdhc3grp { + fsl,pins =3D < + MX93_PAD_GPIO_IO22__USDHC3_CLK 0x179e + MX93_PAD_SD3_CMD__USDHC3_CMD 0x4000178e + MX93_PAD_SD3_DATA0__USDHC3_DATA0 0x4000138e + MX93_PAD_SD3_DATA1__USDHC3_DATA1 0x4000138e + MX93_PAD_SD3_DATA2__USDHC3_DATA2 0x4000138e + MX93_PAD_SD3_DATA3__USDHC3_DATA3 0x4000138e + >; + }; + + pinctrl_usdhc3_sleep: usdhc3sleepgrp { + fsl,pins =3D < + MX93_PAD_GPIO_IO22__USDHC3_CLK 0x31e + MX93_PAD_SD3_CMD__USDHC3_CMD 0x31e + MX93_PAD_SD3_DATA0__USDHC3_DATA0 0x31e + MX93_PAD_SD3_DATA1__USDHC3_DATA1 0x31e + MX93_PAD_SD3_DATA2__USDHC3_DATA2 0x31e + MX93_PAD_SD3_DATA3__USDHC3_DATA3 0x31e + >; + }; + + pinctrl_wlbt: wlbtgrp { + fsl,pins =3D < + MX93_PAD_CCM_CLKO2__GPIO3_IO27 0x31e /* WAKE_DEV */ + MX93_PAD_CCM_CLKO3__GPIO4_IO28 0x31e /* WAKE_HOST */ + MX93_PAD_CCM_CLKO4__GPIO4_IO29 0x31e /* PDn */ + >; + }; +}; --=20 2.34.1