From: E Shattow <e@freeshell.de>
To: u-boot@lists.u-boot-project.org,
Sumit Garg <sumit.garg@kernel.org>, Yixun Lan <dlan@kernel.org>,
Tom Rini <trini@konsulko.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Subject: [PATCH 1/4] riscv: dts: spacemit: enable the i2c2 adapter on K3 Pico-ITX board
Date: Sun, 18 Oct 2026 18:40:18 -0700 [thread overview]
Message-ID: <20261019014044.698294-2-e@freeshell.de> (raw)
In-Reply-To: <20261019014044.698294-1-e@freeshell.de>
From: Aurelien Jarno <aurelien@aurel32.net>
Define I2C2 pinctrl properties, and enable it on the K3 Pico-ITX board.
It will be used by the 24c02 eeprom.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Yixun Lan <dlan@kernel.org>
Link: https://patch.msgid.link/20260623204431.498700-3-aurelien@aurel32.net
Signed-off-by: Yixun Lan <dlan@kernel.org>
[ upstream commit: 48dd3d020528e05795dfa46308ba5b59a1835bba ]
(cherry picked from commit 5b8d10184a9e7fb8b31d279e09e3673b8d69f690)
---
dts/upstream/src/riscv/spacemit/k3-pico-itx.dts | 6 ++++++
dts/upstream/src/riscv/spacemit/k3-pinctrl.dtsi | 11 +++++++++++
2 files changed, 17 insertions(+)
diff --git a/dts/upstream/src/riscv/spacemit/k3-pico-itx.dts b/dts/upstream/src/riscv/spacemit/k3-pico-itx.dts
index b89c1521e664..dde6028a5ef3 100644
--- a/dts/upstream/src/riscv/spacemit/k3-pico-itx.dts
+++ b/dts/upstream/src/riscv/spacemit/k3-pico-itx.dts
@@ -43,6 +43,12 @@
};
};
+&i2c2 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c2_1_cfg>;
+ status = "okay";
+};
+
&i2c8 {
pinctrl-names = "default";
pinctrl-0 = <&i2c8_cfg>;
diff --git a/dts/upstream/src/riscv/spacemit/k3-pinctrl.dtsi b/dts/upstream/src/riscv/spacemit/k3-pinctrl.dtsi
index 3ee1471f3798..50dc124c097f 100644
--- a/dts/upstream/src/riscv/spacemit/k3-pinctrl.dtsi
+++ b/dts/upstream/src/riscv/spacemit/k3-pinctrl.dtsi
@@ -78,6 +78,17 @@
};
};
+ /omit-if-no-ref/
+ i2c2_1_cfg: i2c2-1-cfg {
+ i2c2-1-pins {
+ pinmux = <K3_PADCONF(46, 5)>, /* i2c2 scl */
+ <K3_PADCONF(47, 5)>; /* i2c2 sda */
+
+ bias-pull-up = <0>;
+ drive-strength = <25>;
+ };
+ };
+
/omit-if-no-ref/
i2c8_cfg: i2c8-cfg {
i2c8-pins {
--
2.53.0
next prev parent reply other threads:[~2026-10-19 1:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-19 1:40 [PATCH 0/4] Enable eeprom tlv command for SpacemiT K3 in main app E Shattow
2026-10-19 1:40 ` E Shattow [this message]
2026-10-20 17:39 ` [PATCH 1/4] riscv: dts: spacemit: enable the i2c2 adapter on K3 Pico-ITX board E Shattow
2026-10-19 1:40 ` [PATCH 2/4] riscv: dts: spacemit: add 24c02 eeprom " E Shattow
2026-10-20 17:39 ` E Shattow
2026-10-19 1:40 ` [PATCH 3/4] riscv: dts: spacemit: add i2c aliases " E Shattow
2026-10-20 17:40 ` E Shattow
2026-10-19 1:40 ` [PATCH 4/4] configs: spacemit: k3: enable eeprom tlv command in main app E Shattow
2026-10-20 17:41 ` E Shattow
2026-10-21 6:28 ` Yixun Lan
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=20261019014044.698294-2-e@freeshell.de \
--to=e@freeshell.de \
--cc=aurelien@aurel32.net \
--cc=dlan@kernel.org \
--cc=sumit.garg@kernel.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.u-boot-project.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