From: Maud Spierings <maudspierings@gocontroll.com>
To: Daniel Baluta <daniel.baluta@nxp.com>, Frank.Li@nxp.com
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
s.hauer@pengutronix.de, kernel@pengutronix.de,
festevam@gmail.com, devicetree@vger.kernel.org,
imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH 1/2] arm64: dts: imx8mp: Make MX8MP_I2C_DEFAULT independent on drive strength
Date: Fri, 27 Feb 2026 14:31:48 +0100 [thread overview]
Message-ID: <fd765ddd-9124-4add-a6e1-d11d8b5f3d06@gocontroll.com> (raw)
In-Reply-To: <20260227130242.1702329-2-daniel.baluta@nxp.com>
Hi Daniel,
Glad to see others using them :)
Reviewed-by: Maud Spierings <maudspierings@gocontroll.com>
On 2/27/26 14:02, Daniel Baluta wrote:
> Currently MX8MP_I2C_DEFAULT macro includes a fixed drive
> strength (MX8MP_DSE_X6) thus limiting its use to only I2C
> pins that require X6 drive.
>
> There are many pinctrl configurations for I2C that use different
> drive strength while still using the common I2C default configurations
> (pull-up, Schmitt input, pull enable, SION).
>
> So make the MX8MP_I2C_DEFAULT macro more flexible and reusable by removing
> DSE_X6 drive strength from it's definition but add it in all places
> it is necessary.
>
> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
> ---
> arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h | 2 +-
> .../imx8mp-tx8p-ml81-moduline-display-106.dts | 16 ++++++++--------
> .../boot/dts/freescale/imx8mp-tx8p-ml81.dtsi | 8 ++++----
> 3 files changed, 13 insertions(+), 13 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h b/arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h
> index 16f5899de4152..26e7a9428c4c7 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h
> +++ b/arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h
> @@ -36,7 +36,7 @@
> /* long defaults */
> #define MX8MP_USDHC_DATA_DEFAULT (MX8MP_FSEL_FAST | MX8MP_PULL_UP | \
> MX8MP_HYS_SCHMITT | MX8MP_PULL_ENABLE)
> -#define MX8MP_I2C_DEFAULT (MX8MP_DSE_X6 | MX8MP_PULL_UP | MX8MP_HYS_SCHMITT | \
> +#define MX8MP_I2C_DEFAULT (MX8MP_PULL_UP | MX8MP_HYS_SCHMITT | \
> MX8MP_PULL_ENABLE | MX8MP_SION)
>
> /*
> diff --git a/arch/arm64/boot/dts/freescale/imx8mp-tx8p-ml81-moduline-display-106.dts b/arch/arm64/boot/dts/freescale/imx8mp-tx8p-ml81-moduline-display-106.dts
> index 399230144ce39..87b20b8564583 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mp-tx8p-ml81-moduline-display-106.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8mp-tx8p-ml81-moduline-display-106.dts
> @@ -302,36 +302,36 @@ MX8MP_IOMUXC_ECSPI1_SS0__GPIO5_IO09
> pinctrl_i2c2: i2c2grp {
> fsl,pins = <
> MX8MP_IOMUXC_I2C2_SCL__I2C2_SCL
> - MX8MP_I2C_DEFAULT
> + (MX8MP_DSE_X6 | MX8MP_I2C_DEFAULT)
> MX8MP_IOMUXC_I2C2_SDA__I2C2_SDA
> - MX8MP_I2C_DEFAULT
> + (MX8MP_DSE_X6 | MX8MP_I2C_DEFAULT)
> >;
> };
>
> pinctrl_i2c2_gpio: i2c2-gpiogrp {
> fsl,pins = <
> MX8MP_IOMUXC_I2C2_SCL__GPIO5_IO16
> - MX8MP_I2C_DEFAULT
> + (MX8MP_DSE_X6 | MX8MP_I2C_DEFAULT)
> MX8MP_IOMUXC_I2C2_SDA__GPIO5_IO17
> - MX8MP_I2C_DEFAULT
> + (MX8MP_DSE_X6 | MX8MP_I2C_DEFAULT)
> >;
> };
>
> pinctrl_i2c4: i2c4grp {
> fsl,pins = <
> MX8MP_IOMUXC_ECSPI2_MISO__I2C4_SCL
> - MX8MP_I2C_DEFAULT
> + (MX8MP_DSE_X6 | MX8MP_I2C_DEFAULT)
> MX8MP_IOMUXC_ECSPI2_SS0__I2C4_SDA
> - MX8MP_I2C_DEFAULT
> + (MX8MP_DSE_X6 | MX8MP_I2C_DEFAULT)
> >;
> };
>
> pinctrl_i2c4_gpio: i2c4-gpiogrp {
> fsl,pins = <
> MX8MP_IOMUXC_ECSPI2_MISO__GPIO5_IO12
> - MX8MP_I2C_DEFAULT
> + (MX8MP_DSE_X6 | MX8MP_I2C_DEFAULT)
> MX8MP_IOMUXC_ECSPI2_SS0__GPIO5_IO13
> - MX8MP_I2C_DEFAULT
> + (MX8MP_DSE_X6 | MX8MP_I2C_DEFAULT)
> >;
> };
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mp-tx8p-ml81.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-tx8p-ml81.dtsi
> index 761ee046eb72e..bf49ae942d411 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mp-tx8p-ml81.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mp-tx8p-ml81.dtsi
> @@ -425,18 +425,18 @@ MX8MP_IOMUXC_SAI2_RXC__GPIO4_IO22
> pinctrl_i2c1: i2c1grp {
> fsl,pins = <
> MX8MP_IOMUXC_I2C1_SCL__I2C1_SCL
> - MX8MP_I2C_DEFAULT
> + (MX8MP_DSE_X6 | MX8MP_I2C_DEFAULT)
> MX8MP_IOMUXC_I2C1_SDA__I2C1_SDA
> - MX8MP_I2C_DEFAULT
> + (MX8MP_DSE_X6 | MX8MP_I2C_DEFAULT)
> >;
> };
>
> pinctrl_i2c1_gpio: i2c1-gpiogrp {
> fsl,pins = <
> MX8MP_IOMUXC_I2C1_SCL__GPIO5_IO14
> - MX8MP_I2C_DEFAULT
> + (MX8MP_DSE_X6 | MX8MP_I2C_DEFAULT)
> MX8MP_IOMUXC_I2C1_SDA__GPIO5_IO15
> - MX8MP_I2C_DEFAULT
> + (MX8MP_DSE_X6 | MX8MP_I2C_DEFAULT)
> >;
> };
>
next prev parent reply other threads:[~2026-02-27 13:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-27 13:02 [RFC PATCH 0/2] imx8mp-frdm: Enhance code readability Daniel Baluta
2026-02-27 13:02 ` [RFC PATCH 1/2] arm64: dts: imx8mp: Make MX8MP_I2C_DEFAULT independent on drive strength Daniel Baluta
2026-02-27 13:31 ` Maud Spierings [this message]
2026-02-27 13:02 ` [RFC PATCH 2/2] arm64: dts: imx8mp-frdm: Use symbolic macros for IOMUXC_SW_PAD_CTL_PAD Daniel Baluta
2026-02-27 13:33 ` Maud Spierings
2026-02-27 15:09 ` Frank Li
2026-03-02 10:30 ` Daniel Baluta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fd765ddd-9124-4add-a6e1-d11d8b5f3d06@gocontroll.com \
--to=maudspierings@gocontroll.com \
--cc=Frank.Li@nxp.com \
--cc=conor+dt@kernel.org \
--cc=daniel.baluta@nxp.com \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®