From: Josua Mayer <josua@solid-run.com>
To: Dennis Gilmore <dgilmore@redhat.com>, Tom Rini <trini@konsulko.com>
Cc: Stefan Roese <sr@denx.de>,
u-boot@lists.denx.de, Josua Mayer <josua@solid-run.com>
Subject: [PATCH v2 1/3] arm: dts: armada-38x-solidrun-microsom: configure i2c0 bus
Date: Fri, 02 Feb 2024 16:13:32 +0100 [thread overview]
Message-ID: <20240202-helios4-spi-v2-1-df085461d894@solid-run.com> (raw)
In-Reply-To: <20240202-helios4-spi-v2-0-df085461d894@solid-run.com>
SolidRun Armada-388 SoM has an i2c bus supporting on-som eeprom, and
peripherals on a carrier.
armada-38x.dtsi disables this bus by default, it should be enabled by
som or carrier dts.
Linux has moved i2c0 from helios-4 board dts to som dtsi, including
status, pinctrl and clock speed.
Copy these settings from mainline.
This fixes accessing i2c bus from u-boot commandline.
Signed-off-by: Josua Mayer <josua@solid-run.com>
---
arch/arm/dts/armada-38x-solidrun-microsom.dtsi | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/dts/armada-38x-solidrun-microsom.dtsi b/arch/arm/dts/armada-38x-solidrun-microsom.dtsi
index f6ae784bed..1540162e03 100644
--- a/arch/arm/dts/armada-38x-solidrun-microsom.dtsi
+++ b/arch/arm/dts/armada-38x-solidrun-microsom.dtsi
@@ -99,6 +99,11 @@
};
&i2c0 {
+ clock-frequency = <400000>;
+ pinctrl-0 = <&i2c0_pins>;
+ pinctrl-names = "default";
+ status = "okay";
+
eeprom@53 {
compatible = "atmel,24c02";
reg = <0x53>;
--
2.35.3
next prev parent reply other threads:[~2024-02-02 15:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-02 15:13 [PATCH v2 0/3] arm: mvebu: helios-4: add config fragment for spi booting et al Josua Mayer
2024-02-02 15:13 ` Josua Mayer [this message]
2024-03-05 10:32 ` [PATCH v2 1/3] arm: dts: armada-38x-solidrun-microsom: configure i2c0 bus Stefan Roese
2024-02-02 15:13 ` [PATCH v2 2/3] arm: mvebu: helios4_defconfig: enable setexpr command Josua Mayer
2024-02-12 20:40 ` Dennis Gilmore
2024-02-13 13:07 ` Josua Mayer
2024-03-05 10:32 ` Stefan Roese
2024-02-02 15:13 ` [PATCH v2 3/3] board: helios-4: add config fragment for spi booting Josua Mayer
2024-02-02 16:06 ` Tom Rini
2024-03-05 10:32 ` Stefan Roese
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=20240202-helios4-spi-v2-1-df085461d894@solid-run.com \
--to=josua@solid-run.com \
--cc=dgilmore@redhat.com \
--cc=sr@denx.de \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.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