From nobody Sun Dec 14 11:20:24 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6637C2F9DA7; Thu, 30 Oct 2025 06:35:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761806142; cv=none; b=ZojvxHuDotCU3UHQYIDQ6vlHB3mKneInsKIUygaZBGv8yo4nZrHg1zAfJTuQXqLzlNL91LFeCCrhLhMUJS3NmNtvzZCn3LGOvepsMP21tSa63/D7iMUsciQOh5J9tQ5pJe81T5HLcZFMioyzChgYx+V9ElXGNxaqG/UN9qIbU+Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761806142; c=relaxed/simple; bh=o/16eEiUMF1CS/Cy2Do7/DAunYqOFHDualISk68dvKc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CmGTuahs2bCfKj0vnoIE7VBZs68e5rUHb4tpKIkEkNtAsP9IiG/+wncEzilxGrAIq92f/9Za56o9N9gdvBHz5O3Dl58GruuG42CnINgL7xA8SToidAtWSpHtjoADJqF83qq1BNv+423QsWjfkz7RSo4pJD1dqaCuLBxLJg1Clkw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oIR4mK1P; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oIR4mK1P" Received: by smtp.kernel.org (Postfix) with ESMTPS id 01076C116C6; Thu, 30 Oct 2025 06:35:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1761806142; bh=o/16eEiUMF1CS/Cy2Do7/DAunYqOFHDualISk68dvKc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=oIR4mK1PE9M7jTQgoP9B4c8F8kXO1lDcbCvTLLzSrs+py5K3lbWqL8NeGQRfTGdtp od35Gl4T9w10KUWGF7fXa6RPr/nil+6JPmuJvC9j4lgf442zcRu7HxQywC+sj4xQ6u 9RjxRXl3gpRDr2qtPIwdDT73TumF9X5pkF5iwJ+TX7BxkNZeWnkG4eBTbjgIXq70+w T2VARi7S5znpB9lAGFuZ2vJ8SlmY8z851rjv2uJHeryToLiYobbd33yzwU3HeFbEwR QIx17HLYZ0a0d9NMQuVNWciCZ10qkpKSEugMhVafNvr7EY1Z7fYsY+nDN5dzZX9byO ts13mX7ewsDhA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E671DCCF9FA; Thu, 30 Oct 2025 06:35:41 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Thu, 30 Oct 2025 07:35:39 +0100 Subject: [PATCH v3 3/6] arm64: dts: imx8mm: Add pinctrl config definitions Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251030-mini_iv-v3-3-ef56c4d9f219@gocontroll.com> References: <20251030-mini_iv-v3-0-ef56c4d9f219@gocontroll.com> In-Reply-To: <20251030-mini_iv-v3-0-ef56c4d9f219@gocontroll.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Liam Girdwood , Mark Brown Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Maud Spierings X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1761806140; l=1757; i=maudspierings@gocontroll.com; s=20250214; h=from:subject:message-id; bh=Y0ox3F+eOcIA5j/xZwqJRea77ZkXXLU4NYh8FXOMxpo=; b=5BN4vkiwGnlRnoqLq2w/r89tFDsNhIQBVok3dwb28HuzV8vw9sBDL9u0ZLS72kQZXqLX4u9ws VW12EJxNVNMDeGsK62t81v6W8oxfA0TjNjIvbBpVpg3w9z1C7uIdItg X-Developer-Key: i=maudspierings@gocontroll.com; a=ed25519; pk=7chUb8XpaTQDvWhzTdHC0YPMkTDloELEC7q94tOUyPg= X-Endpoint-Received: by B4 Relay for maudspierings@gocontroll.com/20250214 with auth_id=341 X-Original-From: Maud Spierings Reply-To: maudspierings@gocontroll.com From: Maud Spierings Currently to configure each IOMUXC_SW_PAD_CTL_PAD the raw value of this register is written in the dts, these values are not obvious. Add defines which describe the fields of this register which can be or-ed together to produce readable settings. Signed-off-by: Maud Spierings --- arch/arm64/boot/dts/freescale/imx8mm-pinfunc.h | 33 ++++++++++++++++++++++= ++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-pinfunc.h b/arch/arm64/bo= ot/dts/freescale/imx8mm-pinfunc.h index b1f11098d248e..31557b7b9ccc1 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-pinfunc.h +++ b/arch/arm64/boot/dts/freescale/imx8mm-pinfunc.h @@ -6,6 +6,39 @@ #ifndef __DTS_IMX8MM_PINFUNC_H #define __DTS_IMX8MM_PINFUNC_H =20 +/* Drive Strength */ +#define MX8MM_DSE_X1 0x0 +#define MX8MM_DSE_X2 0x4 +#define MX8MM_DSE_X4 0x2 +#define MX8MM_DSE_X6 0x6 + +/* Slew Rate */ +#define MX8MM_FSEL_FAST 0x10 +#define MX8MM_FSEL_SLOW 0x0 + +/* Open Drain */ +#define MX8MM_ODE_ENABLE 0x20 +#define MX8MM_ODE_DISABLE 0x0 + +#define MX8MM_PULL_DOWN 0x0 +#define MX8MM_PULL_UP 0x40 + +/* Hysteresis */ +#define MX8MM_HYS_CMOS 0x0 +#define MX8MM_HYS_SCHMITT 0x80 + +#define MX8MM_PULL_ENABLE 0x100 +#define MX8MM_PULL_DISABLE 0x0 + +/* SION force input mode */ +#define MX8MM_SION 0x40000000 + +/* long defaults */ +#define MX8MM_USDHC_DATA_DEFAULT (MX8MM_FSEL_FAST | MX8MM_PULL_UP | \ + MX8MM_HYS_SCHMITT | MX8MM_PULL_ENABLE) +#define MX8MM_I2C_DEFAULT (MX8MM_DSE_X6 | MX8MM_PULL_UP | MX8MM_HYS_SCHMIT= T | \ + MX8MM_PULL_ENABLE | MX8MM_SION) + /* * The pin function ID is a tuple of * --=20 2.51.2