[PATCH v2 1/3] arm: dts: armada-38x-solidrun-microsom: configure i2c0 bus
Stefan Roese
sr at denx.de
Tue Mar 5 11:32:08 CET 2024
On 2/2/24 16:13, Josua Mayer wrote:
> 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 at solid-run.com>
Applied to u-boot-marvell/master
Thanks,
Stefan
> ---
> 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 at 53 {
> compatible = "atmel,24c02";
> reg = <0x53>;
>
Viele Grüße,
Stefan Roese
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
More information about the U-Boot
mailing list