Devicetree
 help / color / mirror / Atom feed
* [PATCH 1/2] arm64: Select HAVE_SHARED_GPIOS for ARCH_MXC
@ 2026-08-10 21:34 Marek Vasut
  2026-08-10 21:34 ` [PATCH 2/2] arm64: dts: imx8mn: Expand EEPROM description on ifm VHIP4 EvalBoard Marek Vasut
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Marek Vasut @ 2026-08-10 21:34 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Marek Vasut, Bartosz Golaszewski, Catalin Marinas, Conor Dooley,
	Fabio Estevam, Fedor Ross, Frank Li, Krzysztof Kozlowski,
	Linus Walleij, Mark Rutland, Rob Herring, Will Deacon, devicetree,
	imx, linux-kernel

Some NXP i.MX platforms use shared GPIOs. Enable support for them by
selecting the Kconfig switch provided by GPIOLIB.

Signed-off-by: Marek Vasut <marex@nabladev.com>
---
Cc: Bartosz Golaszewski <brgl@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Conor Dooley <conor+dt@kernel.org>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Fedor Ross <fedor.ross@ifm.com>
Cc: Frank Li <Frank.Li@nxp.com>
Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Will Deacon <will@kernel.org>
Cc: devicetree@vger.kernel.org
Cc: imx@lists.linux.dev
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
---
 arch/arm64/Kconfig.platforms | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index d2acfac730037..bc279b864d3cb 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -275,6 +275,7 @@ config ARCH_MXC
 	bool "NXP i.MX SoC family"
 	select ARM64_ERRATUM_843419
 	select ARM64_ERRATUM_845719 if COMPAT
+	select HAVE_SHARED_GPIOS
 	select IMX_GPCV2
 	select IMX_GPCV2_PM_DOMAINS
 	select PM
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] arm64: dts: imx8mn: Expand EEPROM description on ifm VHIP4 EvalBoard
  2026-08-10 21:34 [PATCH 1/2] arm64: Select HAVE_SHARED_GPIOS for ARCH_MXC Marek Vasut
@ 2026-08-10 21:34 ` Marek Vasut
  2026-08-11  7:30   ` Bartosz Golaszewski
  2026-08-10 21:44 ` [PATCH 1/2] arm64: Select HAVE_SHARED_GPIOS for ARCH_MXC Frank Li
  2026-08-11  7:29 ` Bartosz Golaszewski
  2 siblings, 1 reply; 6+ messages in thread
From: Marek Vasut @ 2026-08-10 21:34 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Marek Vasut, Bartosz Golaszewski, Catalin Marinas, Conor Dooley,
	Fabio Estevam, Fedor Ross, Frank Li, Krzysztof Kozlowski,
	Linus Walleij, Mark Rutland, Rob Herring, Will Deacon, devicetree,
	imx, linux-kernel

Describe the EEPROM write protect GPIOs and labels on VHIP4 EvalBoard.

Signed-off-by: Marek Vasut <marex@nabladev.com>
---
Cc: Bartosz Golaszewski <brgl@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Conor Dooley <conor+dt@kernel.org>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Fedor Ross <fedor.ross@ifm.com>
Cc: Frank Li <Frank.Li@nxp.com>
Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Will Deacon <will@kernel.org>
Cc: devicetree@vger.kernel.org
Cc: imx@lists.linux.dev
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
---
 .../imx8mn-vhip4-evalboard-common.dtsi        |  3 +-
 .../freescale/imx8mn-vhip4-evalboard-v1.dts   |  8 ++++++
 .../freescale/imx8mn-vhip4-evalboard-v2.dts   | 28 ++++++++++++++++---
 3 files changed, 34 insertions(+), 5 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8mn-vhip4-evalboard-common.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-vhip4-evalboard-common.dtsi
index aaf9761703aaf..73b1ed2632a39 100644
--- a/arch/arm64/boot/dts/freescale/imx8mn-vhip4-evalboard-common.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mn-vhip4-evalboard-common.dtsi
@@ -142,8 +142,9 @@ &i2c1 {
 	pinctrl-0 = <&pinctrl_i2c1>;
 	pinctrl-1 = <&pinctrl_i2c1_gpio>;
 
-	eeprom@51 {
+	cfg_eeprom: eeprom@51 {
 		compatible = "atmel,24c128";
+		label = "ifm-deviceinfo";
 		reg = <0x51>;
 	};
 
diff --git a/arch/arm64/boot/dts/freescale/imx8mn-vhip4-evalboard-v1.dts b/arch/arm64/boot/dts/freescale/imx8mn-vhip4-evalboard-v1.dts
index a8f7c226a61f8..98dd241a9d5ce 100644
--- a/arch/arm64/boot/dts/freescale/imx8mn-vhip4-evalboard-v1.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mn-vhip4-evalboard-v1.dts
@@ -13,6 +13,11 @@ / {
 		     "ifm,imx8mn-vhip4", "fsl,imx8mn";
 };
 
+&cfg_eeprom {
+	/* Shared with logging EEPROM on v1 hardware */
+	wp-gpios = <&gpio5 20 GPIO_ACTIVE_HIGH>;
+};
+
 &ifm_led {
 	pinctrl-1 = <&pinctrl_gpio_led_v1>;
 
@@ -90,7 +95,10 @@ temperature-sensor@48 {
 
 	eeprom@50 {
 		compatible = "atmel,24c128";
+		label = "ifm-logging";
 		reg = <0x50>;
+		/* Shared with configuration EEPROM on v1 hardware */
+		wp-gpios = <&gpio5 20 GPIO_ACTIVE_HIGH>;
 	};
 };
 
diff --git a/arch/arm64/boot/dts/freescale/imx8mn-vhip4-evalboard-v2.dts b/arch/arm64/boot/dts/freescale/imx8mn-vhip4-evalboard-v2.dts
index 43fd4d0041ef3..04fa43b12d2b5 100644
--- a/arch/arm64/boot/dts/freescale/imx8mn-vhip4-evalboard-v2.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mn-vhip4-evalboard-v2.dts
@@ -20,6 +20,12 @@ multi-led {
 	};
 };
 
+&cfg_eeprom {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_cfgeeprom>;
+	wp-gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
+};
+
 &ifm_led {
 	pinctrl-1 = <&pinctrl_gpio_led_v2>;
 
@@ -87,7 +93,11 @@ temperature-sensor@48 {
 
 	eeprom@54 {
 		compatible = "atmel,24c128";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_logeeprom>;
+		label = "ifm-logging";
 		reg = <0x54>;
+		wp-gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>;
 	};
 };
 
@@ -103,6 +113,13 @@ &ifm_pmic {
 };
 
 &iomuxc {
+	pinctrl_cfgeeprom: cfgeeprom-grp {
+		fsl,pins = <
+			/* CFG_EEPROM_WP */
+			MX8MN_IOMUXC_SD1_STROBE_GPIO2_IO11		0x140
+		>;
+	};
+
 	pinctrl_ecspi1_cs: ecspi1-cs-grp {
 		fsl,pins = <
 			/* KS8794 nCS */
@@ -143,12 +160,8 @@ pinctrl_i2c1_gpio: i2c1-gpio-grp {
 		fsl,pins = <
 			MX8MN_IOMUXC_SD1_DATA4_GPIO2_IO6		0x56
 			MX8MN_IOMUXC_SD1_DATA5_GPIO2_IO7		0xd6
-			/* CFG_EEPROM_WP */
-			MX8MN_IOMUXC_SD1_STROBE_GPIO2_IO11		0x140
 			/* RTC_nIRQ */
 			MX8MN_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5		0x116
-			/* LOG_EE_WP */
-			MX8MN_IOMUXC_SPDIF_TX_GPIO5_IO3			0x140
 		>;
 	};
 
@@ -166,6 +179,13 @@ MX8MN_IOMUXC_I2C3_SDA_GPIO5_IO19		0xd6
 		>;
 	};
 
+	pinctrl_logeeprom: logeeprom-grp {
+		fsl,pins = <
+			/* LOG_EE_WP */
+			MX8MN_IOMUXC_SPDIF_TX_GPIO5_IO3			0x140
+		>;
+	};
+
 	pinctrl_mcp2518: mcp2518-grp {
 		fsl,pins = <
 			/* CAN0_CLKO */
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] arm64: Select HAVE_SHARED_GPIOS for ARCH_MXC
  2026-08-10 21:34 [PATCH 1/2] arm64: Select HAVE_SHARED_GPIOS for ARCH_MXC Marek Vasut
  2026-08-10 21:34 ` [PATCH 2/2] arm64: dts: imx8mn: Expand EEPROM description on ifm VHIP4 EvalBoard Marek Vasut
@ 2026-08-10 21:44 ` Frank Li
  2026-08-10 21:54   ` Marek Vasut
  2026-08-11  7:29 ` Bartosz Golaszewski
  2 siblings, 1 reply; 6+ messages in thread
From: Frank Li @ 2026-08-10 21:44 UTC (permalink / raw)
  To: Marek Vasut
  Cc: linux-arm-kernel, Bartosz Golaszewski, Catalin Marinas,
	Conor Dooley, Fabio Estevam, Fedor Ross, Frank Li,
	Krzysztof Kozlowski, Linus Walleij, Mark Rutland, Rob Herring,
	Will Deacon, devicetree, imx, linux-kernel

On Mon, Aug 10, 2026 at 11:34:38PM +0200, Marek Vasut wrote:
> Some NXP i.MX platforms use shared GPIOs. Enable support for them by
> selecting the Kconfig switch provided by GPIOLIB.
>
> Signed-off-by: Marek Vasut <marex@nabladev.com>
> ---

Haibo have similar patch
https://lore.kernel.org/imx/20260730-can-share-silent-v1-2-63fd603f943d@nxp.com/

But I hope the SoC maintainer provide review/ack-by tags

Frank

> Cc: Bartosz Golaszewski <brgl@kernel.org>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Conor Dooley <conor+dt@kernel.org>
> Cc: Fabio Estevam <festevam@gmail.com>
> Cc: Fedor Ross <fedor.ross@ifm.com>
> Cc: Frank Li <Frank.Li@nxp.com>
> Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Cc: Rob Herring <robh@kernel.org>
> Cc: Will Deacon <will@kernel.org>
> Cc: devicetree@vger.kernel.org
> Cc: imx@lists.linux.dev
> Cc: linux-arm-kernel@lists.infradead.org
> Cc: linux-kernel@vger.kernel.org
> ---
>  arch/arm64/Kconfig.platforms | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
> index d2acfac730037..bc279b864d3cb 100644
> --- a/arch/arm64/Kconfig.platforms
> +++ b/arch/arm64/Kconfig.platforms
> @@ -275,6 +275,7 @@ config ARCH_MXC
>  	bool "NXP i.MX SoC family"
>  	select ARM64_ERRATUM_843419
>  	select ARM64_ERRATUM_845719 if COMPAT
> +	select HAVE_SHARED_GPIOS
>  	select IMX_GPCV2
>  	select IMX_GPCV2_PM_DOMAINS
>  	select PM
> --
> 2.53.0
>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] arm64: Select HAVE_SHARED_GPIOS for ARCH_MXC
  2026-08-10 21:44 ` [PATCH 1/2] arm64: Select HAVE_SHARED_GPIOS for ARCH_MXC Frank Li
@ 2026-08-10 21:54   ` Marek Vasut
  0 siblings, 0 replies; 6+ messages in thread
From: Marek Vasut @ 2026-08-10 21:54 UTC (permalink / raw)
  To: Frank Li
  Cc: linux-arm-kernel, Bartosz Golaszewski, Catalin Marinas,
	Conor Dooley, Fabio Estevam, Fedor Ross, Frank Li,
	Krzysztof Kozlowski, Linus Walleij, Mark Rutland, Rob Herring,
	Will Deacon, devicetree, imx, linux-kernel

On 8/10/26 11:44 PM, Frank Li wrote:
> On Mon, Aug 10, 2026 at 11:34:38PM +0200, Marek Vasut wrote:
>> Some NXP i.MX platforms use shared GPIOs. Enable support for them by
>> selecting the Kconfig switch provided by GPIOLIB.
>>
>> Signed-off-by: Marek Vasut <marex@nabladev.com>
>> ---
> 
> Haibo have similar patch
> https://lore.kernel.org/imx/20260730-can-share-silent-v1-2-63fd603f943d@nxp.com/
> 
> But I hope the SoC maintainer provide review/ack-by tags
This patch keeps the list of select-ed Kconfig symbols sorted, the one 
from Haibo does not. But with that fixed, the patches are equivalent.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] arm64: Select HAVE_SHARED_GPIOS for ARCH_MXC
  2026-08-10 21:34 [PATCH 1/2] arm64: Select HAVE_SHARED_GPIOS for ARCH_MXC Marek Vasut
  2026-08-10 21:34 ` [PATCH 2/2] arm64: dts: imx8mn: Expand EEPROM description on ifm VHIP4 EvalBoard Marek Vasut
  2026-08-10 21:44 ` [PATCH 1/2] arm64: Select HAVE_SHARED_GPIOS for ARCH_MXC Frank Li
@ 2026-08-11  7:29 ` Bartosz Golaszewski
  2 siblings, 0 replies; 6+ messages in thread
From: Bartosz Golaszewski @ 2026-08-11  7:29 UTC (permalink / raw)
  To: Marek Vasut
  Cc: Bartosz Golaszewski, Catalin Marinas, Conor Dooley, Fabio Estevam,
	Fedor Ross, Frank Li, Krzysztof Kozlowski, Linus Walleij,
	Mark Rutland, Rob Herring, Will Deacon, devicetree, imx,
	linux-kernel, linux-arm-kernel

On Mon, 10 Aug 2026 23:34:38 +0200, Marek Vasut <marex@nabladev.com> said:
> Some NXP i.MX platforms use shared GPIOs. Enable support for them by
> selecting the Kconfig switch provided by GPIOLIB.
>
> Signed-off-by: Marek Vasut <marex@nabladev.com>
> ---
> Cc: Bartosz Golaszewski <brgl@kernel.org>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Conor Dooley <conor+dt@kernel.org>
> Cc: Fabio Estevam <festevam@gmail.com>
> Cc: Fedor Ross <fedor.ross@ifm.com>
> Cc: Frank Li <Frank.Li@nxp.com>
> Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Cc: Rob Herring <robh@kernel.org>
> Cc: Will Deacon <will@kernel.org>
> Cc: devicetree@vger.kernel.org
> Cc: imx@lists.linux.dev
> Cc: linux-arm-kernel@lists.infradead.org
> Cc: linux-kernel@vger.kernel.org
> ---
>  arch/arm64/Kconfig.platforms | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
> index d2acfac730037..bc279b864d3cb 100644
> --- a/arch/arm64/Kconfig.platforms
> +++ b/arch/arm64/Kconfig.platforms
> @@ -275,6 +275,7 @@ config ARCH_MXC
>  	bool "NXP i.MX SoC family"
>  	select ARM64_ERRATUM_843419
>  	select ARM64_ERRATUM_845719 if COMPAT
> +	select HAVE_SHARED_GPIOS
>  	select IMX_GPCV2
>  	select IMX_GPCV2_PM_DOMAINS
>  	select PM
> --
> 2.53.0
>
>

Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] arm64: dts: imx8mn: Expand EEPROM description on ifm VHIP4 EvalBoard
  2026-08-10 21:34 ` [PATCH 2/2] arm64: dts: imx8mn: Expand EEPROM description on ifm VHIP4 EvalBoard Marek Vasut
@ 2026-08-11  7:30   ` Bartosz Golaszewski
  0 siblings, 0 replies; 6+ messages in thread
From: Bartosz Golaszewski @ 2026-08-11  7:30 UTC (permalink / raw)
  To: Marek Vasut
  Cc: Bartosz Golaszewski, Catalin Marinas, Conor Dooley, Fabio Estevam,
	Fedor Ross, Frank Li, Krzysztof Kozlowski, Linus Walleij,
	Mark Rutland, Rob Herring, Will Deacon, devicetree, imx,
	linux-kernel, linux-arm-kernel

On Mon, 10 Aug 2026 23:34:39 +0200, Marek Vasut <marex@nabladev.com> said:
> Describe the EEPROM write protect GPIOs and labels on VHIP4 EvalBoard.
>
> Signed-off-by: Marek Vasut <marex@nabladev.com>
> ---

Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-08-11  7:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-10 21:34 [PATCH 1/2] arm64: Select HAVE_SHARED_GPIOS for ARCH_MXC Marek Vasut
2026-08-10 21:34 ` [PATCH 2/2] arm64: dts: imx8mn: Expand EEPROM description on ifm VHIP4 EvalBoard Marek Vasut
2026-08-11  7:30   ` Bartosz Golaszewski
2026-08-10 21:44 ` [PATCH 1/2] arm64: Select HAVE_SHARED_GPIOS for ARCH_MXC Frank Li
2026-08-10 21:54   ` Marek Vasut
2026-08-11  7:29 ` Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox