From: Dennis Gilmore Date: Wed, 28 Nov 2018 13:04:49 -0600 Subject: [U-Boot] [PATCH 3/7] arm: mvebu: helios4: Enable I2C In-Reply-To: References: <1543395576-84384-1-git-send-email-aditya@kobol.io> <1543395576-84384-4-git-send-email-aditya@kobol.io> Message-ID: <0b3f183ae5b29202586da1d1ddf3e42b6576579d.camel@redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de El jue, 29-11-2018 a las 00:42 +0700, Aditya Prayoga escribi=C3=B3: > On Wed, Nov 28, 2018 at 8:44 PM Dennis Gilmore > wrote: > > On Wed, 2018-11-28 at 16:59 +0800, Aditya Prayoga wrote: > > > Enable Marvell I2C driver and set default bus to external I2C > > > bus. > > > Define I2C aliases in device tree so it can be recognized by the > > > driver. > > >=20 > > > Signed-off-by: Aditya Prayoga > > > --- > > > arch/arm/dts/armada-388-helios4.dts | 2 ++ > > > configs/helios4_defconfig | 3 +++ > > > 2 files changed, 5 insertions(+) > > >=20 > > > diff --git a/arch/arm/dts/armada-388-helios4.dts > > > b/arch/arm/dts/armada-388-helios4.dts > > > index a154e0f..711fc22 100644 > > > --- a/arch/arm/dts/armada-388-helios4.dts > > > +++ b/arch/arm/dts/armada-388-helios4.dts > > > @@ -24,6 +24,8 @@ > > > aliases { > > > /* So that mvebu u-boot can update the MAC > > > addresses */ > > > ethernet1 =3D ð0; > > > + i2c0 =3D &i2c0; > > > + i2c1 =3D &i2c1; > >=20 > > have you sent the dts changes to the linux kernel also? >=20 > No, I haven't. Should I also send it to Linux kernel? WIthout those > aliases, Linux > can detect the i2c buses. we should put them in -u-boot.dtsi files if they are not needed then.=20 u-boot has been trying to make sure that they can sync devicetree files from the kernel without modification. Dennis > Aditya >=20 > > Dennis > > > }; > > >=20 > > > chosen { > > > diff --git a/configs/helios4_defconfig > > > b/configs/helios4_defconfig > > > index e30eb3d..8ac8978 100644 > > > --- a/configs/helios4_defconfig > > > +++ b/configs/helios4_defconfig > > > @@ -39,6 +39,9 @@ CONFIG_NET_RANDOM_ETHADDR=3Dy > > > CONFIG_SPL_OF_TRANSLATE=3Dy > > > CONFIG_SCSI_AHCI=3Dy > > > CONFIG_DM_I2C=3Dy > > > +CONFIG_SYS_I2C_MVTWSI=3Dy > > > +CONFIG_I2C_SET_DEFAULT_BUS_NUM=3Dy > > > +CONFIG_I2C_DEFAULT_BUS_NUMBER=3D0x1 > > > CONFIG_MMC_SDHCI=3Dy > > > CONFIG_MMC_SDHCI_SDMA=3Dy > > > CONFIG_MMC_SDHCI_MV=3Dy