]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: armada-38x-solidrun-microsom: configure i2c0 bus
authorJosua Mayer <josua@solid-run.com>
Fri, 2 Feb 2024 15:13:32 +0000 (16:13 +0100)
committerStefan Roese <sr@denx.de>
Tue, 5 Mar 2024 07:27:59 +0000 (08:27 +0100)
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

index f6ae784bed4e7f5cb43b813b1d8ad76753686839..1540162e03880b2395c18f82a866d3a48bb82360 100644 (file)
 };
 
 &i2c0 {
+       clock-frequency = <400000>;
+       pinctrl-0 = <&i2c0_pins>;
+       pinctrl-names = "default";
+       status = "okay";
+
        eeprom@53 {
                compatible = "atmel,24c02";
                reg = <0x53>;