i2c_class_init problem

Hi Simon
U-Boot SPL 2020.01-rc5-00071-g82f6f6e4e4-dirty (Jan 04 2020 - 13:39:54 +0100) spl_early_init i2c_uclass_init: highest alias id is 2 i2c_post_bind: i2c@30a20000, req_seq=-1 i2c_post_bind: i2c@30a20000, new req_seq=3 i2c_post_bind: i2c@30a40000, req_seq=-1 i2c_post_bind: i2c@30a40000, new req_seq=4
When I try to use usb bus from spl, I have a strange mapping of i2c bus
i2c1 and i2c3 are in use (ok) and defined in uboot.dtsi part. req_seq get the max alias and add 1 so i2c1 is 3 and i2c3 is 4. Now all the function that need to work for reading in my case the eeprom needs to use 3 and 4. Can you explain a bit more how this should work?
Michael

Hi
Never mind. I figure it out
CONFIG_SPL_DM_SEQ_ALIAS=y
Michael
On Sat, Jan 4, 2020 at 1:44 PM Michael Nazzareno Trimarchi michael@amarulasolutions.com wrote:
Hi Simon
U-Boot SPL 2020.01-rc5-00071-g82f6f6e4e4-dirty (Jan 04 2020 - 13:39:54 +0100) spl_early_init i2c_uclass_init: highest alias id is 2 i2c_post_bind: i2c@30a20000, req_seq=-1 i2c_post_bind: i2c@30a20000, new req_seq=3 i2c_post_bind: i2c@30a40000, req_seq=-1 i2c_post_bind: i2c@30a40000, new req_seq=4
When I try to use usb bus from spl, I have a strange mapping of i2c bus
i2c1 and i2c3 are in use (ok) and defined in uboot.dtsi part. req_seq get the max alias and add 1 so i2c1 is 3 and i2c3 is 4. Now all the function that need to work for reading in my case the eeprom needs to use 3 and 4. Can you explain a bit more how this should work?
Michael
-- | Michael Nazzareno Trimarchi Amarula Solutions BV | | COO - Founder Cruquiuskade 47 | | +31(0)851119172 Amsterdam 1018 AM NL | | [`as] http://www.amarulasolutions.com |
participants (1)
-
Michael Nazzareno Trimarchi