From mboxrd@z Thu Jan 1 00:00:00 1970 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 185E1C54FB3 for ; Mon, 2 Jun 2025 04:16:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=PM1YUNe6Kcjv4VvPdBukyHU695tq2C+DM6YTTyjSZJQ=; b=CVdwAKQ1jkGjdHUEB4nckhHXFl GXcIdiqOBLVGjI0Taju34g0EyjX635UdzKpHyXvQtmazJgP5f+WDkHHr2N7KJsKMMcyRM9O4XDLdV WtI1tT08wCasK0cVq3oe7+jzN2/K21xmHuJ4aC0X44YxpCg7L9IGpVBvwBcpYuGrx7IAFili2jm0U f925rEEKRfUEAoCQeU/NSzP7lvv1j1j7YjRgc9G0VJ3Cdx/J082ICaWAv3h9JVMY87ThSnpJV8a9P nMI+gozz/ZQFQxa1uO0lI9uV5MpeIR0U1Em0ZpDs1FSFH7v0bnf2UogxMvlRWnwee4qFYTeyRKTYk cxJihSpw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uLwaq-00000006fV3-45kG; Mon, 02 Jun 2025 04:16:12 +0000 Received: from mail-m16.yeah.net ([1.95.21.14]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uLwX6-00000006f8s-19s5 for linux-arm-kernel@lists.infradead.org; Mon, 02 Jun 2025 04:12:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yeah.net; s=s110527; h=Date:From:To:Subject:Message-ID:MIME-Version: Content-Type; bh=PM1YUNe6Kcjv4VvPdBukyHU695tq2C+DM6YTTyjSZJQ=; b=hrmTsxMffdE5+2LEHRQK4t5V9+FQHtqNu35A1386zBT09uiEhgmhF5lq6FRiS2 ZDGQ1sn5sS04WCLR6boKt1vkVIxb6HCs6hQDHHsBeCkBNxYiiWwTwAEFcAxvtrtA dXXCwUkG8VgJpZXWrblWxIR2M/2m1wccymM5BpLHs7guA= Received: from dragon (unknown []) by gzsmtp3 (Coremail) with SMTP id M88vCgBX1cmGJD1oH4VrAg--.29433S3; Mon, 02 Jun 2025 12:11:52 +0800 (CST) Date: Mon, 2 Jun 2025 12:11:50 +0800 From: Shawn Guo To: Laurentiu Mihalcea Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Daniel Baluta , Shengjiu Wang , Frank Li , Marco Felsch , Marc Kleine-Budde , Alexander Stein , Pengutronix Kernel Team , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 5/6] arm64: dts: imx8mp: add aipstz-related definitions Message-ID: References: <20250415171919.5623-1-laurentiumihalcea111@gmail.com> <20250415171919.5623-6-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250415171919.5623-6-laurentiumihalcea111@gmail.com> X-CM-TRANSID: M88vCgBX1cmGJD1oH4VrAg--.29433S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7Cr1UJF47XryUAF4xZF17GFg_yoW5JFyfpa 43CryUCr1IkF47G3sFvr1fJrn8Ka1fAF429w4agrW8KrnI9a48Kr4Fqr1SgrsFqrn3Ca1F 9Fn0vw1xurnxX3DanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07U3PEfUUUUU= X-Originating-IP: [117.83.141.151] X-CM-SenderInfo: pvkd40hjxrjqh1hdxhhqhw/1tbiNAiU+Wg9JIjiHQAA3X X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250601_211220_677906_AEAFD5AD X-CRM114-Status: GOOD ( 16.45 ) 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 On Tue, Apr 15, 2025 at 01:19:18PM -0400, Laurentiu Mihalcea wrote: > From: Laurentiu Mihalcea > > Add header file with AIPSTZ-related definitions: consumer types, > master/peripheral configuration bits, and master ID definitions. > > Signed-off-by: Laurentiu Mihalcea > --- > arch/arm64/boot/dts/freescale/imx8mp-aipstz.h | 33 +++++++++++++++++++ > arch/arm64/boot/dts/freescale/imx8mp.dtsi | 1 + > 2 files changed, 34 insertions(+) > create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-aipstz.h > > diff --git a/arch/arm64/boot/dts/freescale/imx8mp-aipstz.h b/arch/arm64/boot/dts/freescale/imx8mp-aipstz.h > new file mode 100644 > index 000000000000..b5bfcbcf38b8 > --- /dev/null > +++ b/arch/arm64/boot/dts/freescale/imx8mp-aipstz.h > @@ -0,0 +1,33 @@ > +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ > +/* > + * Copyright 2025 NXP > + */ > + > +#ifndef __IMX8MP_AIPSTZ_H > +#define __IMX8MP_AIPSTZ_H > + > +/* consumer type - master or peripheral */ > +#define IMX8MP_AIPSTZ_MASTER 0x0 > +#define IMX8MP_AIPSTZ_PERIPH 0x1 > + > +/* master configuration options */ > +#define IMX8MP_AIPSTZ_MPL (1 << 0) > +#define IMX8MP_AIPSTZ_MTW (1 << 1) > +#define IMX8MP_AIPSTZ_MTR (1 << 2) > +#define IMX8MP_AIPSTZ_MBW (1 << 3) > + > +/* peripheral configuration options */ > +#define IMX8MP_AIPSTZ_TP (1 << 0) > +#define IMX8MP_AIPSTZ_WP (1 << 1) > +#define IMX8MP_AIPSTZ_SP (1 << 2) > +#define IMX8MP_AIPSTZ_BW (1 << 3) > + > +/* master ID definitions */ > +#define IMX8MP_AIPSTZ_EDMA 0 /* AUDIOMIX EDMA */ > +#define IMX8MP_AIPSTZ_CA53 1 /* Cortex-A53 cluster */ > +#define IMX8MP_AIPSTZ_SDMA2 3 /* AUDIOMIX SDMA2 */ > +#define IMX8MP_AIPSTZ_SDMA3 3 /* AUDIOMIX SDMA3 */ > +#define IMX8MP_AIPSTZ_HIFI4 5 /* HIFI4 DSP */ > +#define IMX8MP_AIPSTZ_CM7 6 /* Cortex-M7 */ Could we use tabs to align all these values vertically? Shawn > + > +#endif /* __IMX8MP_AIPSTZ_H */ > diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi > index aa7940c65f2d..ebbc99f9ceba 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi > @@ -12,6 +12,7 @@ > #include > #include > > +#include "imx8mp-aipstz.h" > #include "imx8mp-pinfunc.h" > > / { > -- > 2.34.1 >