Other Parts Discussed in Thread: PMP
Tool/software: Linux
Hi,
I have pmic over i2c bus 1 and eeprom on i2c bus 3 in am5708 based board. I'm selecting my eeprom i2c bus as 2 with CONFIG_EEPROM_BUS_ADDRESS parameter from my code for the function,
rc = ti_i2c_eeprom_am_get(CONFIG_EEPROM_BUS_ADDRESS,
CONFIG_EEPROM_CHIP_ADDRESS);
in do_board_detect.
I'm getting following logs at uboot,
U-Boot SPL EDGE
DRA722-GP ES2.0
### i2c_init called spped = 100000, slave = 1 bus = 2
ERROR: Timeout in soft-reset
Trying to boot from MMC1
Timed out in wait_for_event: status=0000
Check if pads/pull-ups of bus are properly configured
i2c_write: error waiting for addr ACK (status=0x0)
lp873x: could not set LDO1 voltage.
reading args
reading u-boot.img
reading u-boot.img
reading u-boot.img
reading u-boot.img
U-Boot 2016.05-g30a12b3 (Jul 21 2017 - 11:48:14 +0530)
CPU : DRA722-GP ES2.0
Model: TI AM5708 EDGE
Board: AM570x EDGE REV
DRAM: hwinit dram_init
>>sdram_init()
1 GiB
MMC: no pinctrl for sdr104
no pinctrl for ddr50
no pinctrl for sdr50
no pinctrl for sdr25
no pinctrl for sdr12
no pinctrl for hs200_1_8v
OMAP SD/MMC: 0, OMAP SD/MMC: 1
lp873x: could not set LDO1 voltage.
reading uboot.env
** Unable to read "uboot.env" from mmc0:1 **
Using default environment
### ti_i2c_eeprom_init in board_detect, bus = 2
### in i2c uclass compat set i2c_bus = 2
flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst
scanning bus for devices...
Found 0 device(s).
Net:
Warning: ethernet@48484000 using MAC address from ROM
eth0: ethernet@48484000
Hit any key to stop autoboot: 0
And, on uboot console i2c bus is selected 0 by default when I'm trying to select i2c bus as 2 by "i2c bus 2" command, it showing,
Invalid bus 2: err=-19
Can you tell me how can I select my eeprom i2c bus ?