From: Dinh Nguyen <dinguyen@kernel.org>
To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org
Cc: dinguyen@kernel.org, devicetree@vger.kernel.org
Subject: [PATCH 2/3] arm64: dts: agilex5: define the i2c0 pins for pinctrl
Date: Thu, 29 Oct 2026 16:32:00 -0500 [thread overview]
Message-ID: <20261029213201.718625-2-dinguyen@kernel.org> (raw)
In-Reply-To: <20261029213201.718625-1-dinguyen@kernel.org>
Add the I2C pins definition to the Agilex5 SoCDK NAND daughter card. This
allows the I2C driver to use pinctrl on the pins to perform I2C recovery.
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
---
.../dts/altera/socfpga_agilex5_socdk_nand.dts | 20 +++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/arm64/boot/dts/altera/socfpga_agilex5_socdk_nand.dts b/arch/arm64/boot/dts/altera/socfpga_agilex5_socdk_nand.dts
index 81443096cf991..346a4ee22f95b 100644
--- a/arch/arm64/boot/dts/altera/socfpga_agilex5_socdk_nand.dts
+++ b/arch/arm64/boot/dts/altera/socfpga_agilex5_socdk_nand.dts
@@ -39,6 +39,22 @@ memory@80000000 {
};
};
+&pinctrl0 {
+ i2c0_pmx_func: i2c0-pmx-func-pins {
+ pinctrl-single,pins = <
+ 0x10 0x4 /* I2C0_SDA (IOA4) PIN4SEL) */
+ 0x14 0x4 /* I2C0_SCL (IOA5) PIN5SEL */
+ >;
+ };
+
+ i2c0_pmx_func_gpio: i2c0-pmx-func-gpio-pins {
+ pinctrl-single,pins = <
+ 0x10 0x8 /* I2C0_SDA (IOA4) PIN4SEL) */
+ 0x14 0x8 /* I2C0_SCL (IOA5) PIN5SEL */
+ >;
+ };
+};
+
&gmac0 {
status = "okay";
phy-mode = "rgmii"; /* TX/RX clock delays provided by Agilex5 I/O hardware */
@@ -66,6 +82,10 @@ &gpio1 {
&i2c0 {
status = "okay";
+
+ pinctrl-names = "default", "gpio";
+ pinctrl-0 = <&i2c0_pmx_func>;
+ pinctrl-1 = <&i2c0_pmx_func_gpio>;
};
&i3c0 {
--
2.42.0.411.g813d9a9188
next prev parent reply other threads:[~2026-10-29 21:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-29 21:31 [PATCH 1/3] arm64: dts: socfpga: agilex5: add the pinctrl node Dinh Nguyen
2026-10-29 21:32 ` Dinh Nguyen [this message]
2026-10-29 21:50 ` [PATCH 2/3] arm64: dts: agilex5: define the i2c0 pins for pinctrl sashiko-bot
2026-10-29 21:32 ` [PATCH 3/3] arm64: dts: stratix10: define the i2c1 " Dinh Nguyen
2026-10-29 22:02 ` sashiko-bot
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=20261029213201.718625-2-dinguyen@kernel.org \
--to=dinguyen@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=robh@kernel.org \
/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