[U-Boot] [PATCH 1/2] sunxi: fix i2c support for sunxi H3/H5
Nuno Gonçalves
nunojpg at gmail.com
Mon Jan 22 09:18:14 UTC 2018
On Fri, Jan 19, 2018 at 9:35 PM, Jernej Škrabec <jernej.skrabec at siol.net> wrote:
> Hi,
>
> Dne petek, 19. januar 2018 ob 19:38:52 CET je Nuno Gonçalves napisal(a):
>> Sorry, there is only 1 patch in this series.
>>
>> I would like comments regarding removing DM_I2C for MACH_SUNXI_H3_H5,
>> as I didn't found a reason for it to be defined.
>
> there is good reason to be there. When H3/H5 board has DE2/HDMI enabled,
> warning is shown when configuring, if DM_I2C is not selected. Since there
> should be no warning, DM_I2C has to stay.
>
> This means that whatever you want to have attached to I2C, you have to have an
> entry in DT for it. Since there is no DM pinctrl driver, you have to put code
> somewhere, like you already done.
>
> Besides, U-Boot wants to migrate towards DM drivers, no other way around. Last
> time I checked, DM I2C driver for H3/H5 should work, although it wasn't
> thoroughly tested from my side. So if there are issues with DM I2C driver, you
> have to fix it.
>
> Best regards,
> Jernej
>
Thanks Jernej. In fact I didn't manage to get it working with DM_I2C,
even after adding the devices to the DT.
Maybe you can give me some hints to bring it to work, as I am a uboot ousider.
Is DM_I2C_COMPAT supposed to be defined?
The i2c device should be in the DT but since there is no pinctrl
driver I must also include the "sunxi_gpio_set_cfgpin()" already in
my patch?
Thanks,
Nuno
More information about the U-Boot
mailing list