[U-Boot] am335x: i2c: bus 2 issue

Hello, Recently I've found a problem with I2C bus 2 on AM335X based devices. Executing the command "i2c dev 2" in the u-boot CLI causes CPU reset. The issue is found on v2013.10, v2014.01 and v2014.04-rc1 and appears on BeagleBone and CM-T335 devices. Please see the log taken from BeagleBone:
U-Boot SPL 2014.01 (Mar 26 2014 - 10:13:48) No AC power, disabling frequency switch reading args spl: error reading image args, err - -1 reading u-boot.img reading u-boot.img
U-Boot 2014.01 (Mar 26 2014 - 10:13:48)
I2C: ready DRAM: 256 MiB NAND: 0 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 *** Warning - readenv() failed, using default environment
Net: <ethaddr> not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot: 0
mmc0 is current device
SD/MMC found on device 0
reading uEnv.txt
** Unable to read file uEnv.txt **
** File not found /boot/zImage **
Card did not respond to voltage select!
mmc1(part 0) is current device
Card did not respond to voltage select!
Booting from nand ...
no devices available
no devices available Bad Linux ARM zImage magic! U-Boot# U-Boot# i2c dev 0 Setting bus to 0 U-Boot# i2c dev 1 Setting bus to 1 U-Boot# i2c dev 2 Setting bus to 2 data abort
MAYBE you should read doc/README.arm-unaligned-accesses
pc : [<8f769b58>] lr : [<8f769b34>] sp : 8f62ddb0 ip : 00b41640 fp : 00000000 r10: 00000003 r9 : 8f62df28 r8 : 00000036 r7 : 00000001 r6 : 000186a0 r5 : 4819c000 r4 : 8f7a35f4 r3 : 00000000 r2 : 0000004b r1 : 00030d40 r0 : 0000003c Flags: Nzcv IRQs off FIQs on Mode SVC_32 Resetting CPU ...
resetting ...
Best regards, Ilya.

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 03/26/2014 07:10 AM, Ilya Ledvich wrote:
Hello, Recently I've found a problem with I2C bus 2 on AM335X based devices. Executing the command "i2c dev 2" in the u-boot CLI causes CPU reset. The issue is found on v2013.10, v2014.01 and v2014.04-rc1 and appears on BeagleBone and CM-T335 devices. Please see the log taken from BeagleBone:
The clocks aren't being enabled for i2c2 and at least on beaglebone/etc neither is the pinmux, just i2c0/i2c1.
- -- Tom

On 03/26/2014 02:00 PM, Tom Rini wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 03/26/2014 07:10 AM, Ilya Ledvich wrote:
Hello, Recently I've found a problem with I2C bus 2 on AM335X based devices. Executing the command "i2c dev 2" in the u-boot CLI causes CPU reset. The issue is found on v2013.10, v2014.01 and v2014.04-rc1 and appears on BeagleBone and CM-T335 devices. Please see the log taken from BeagleBone:
The clocks aren't being enabled for i2c2 and at least on beaglebone/etc neither is the pinmux, just i2c0/i2c1.
Thank you for the input, Tom!
Tom -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJTMsFrAAoJENk4IS6UOR1WNXsP/Rz9tLZbw91SBfSVWrf6Fjvk hQf5OS6zYPAbPXO9L81ZeARXPsNmsC5tn7UANrr+AFwTw+7nUKjALNu5bygE4JRy QxSn8JHaMounLgXy1Gp5VLQYY0dqqq6C8EuLCWbYsg8l0fIdciJae4br8+pHYcnh /4wLigMuP4hbihLw7Zx3BYofgzlM/KNqF/Csrqy/UXPn9vKVzyimZRAOdSeLrEkP rEO1In5s1hu6QkGepIb1pwIOdDYYZKJnAhhHFPZdb8U/sYFr5znEV6KtFQk3MrKy QpUC4H0mdl1u87C+z071OX63Ubiclve455CGA94JtFoBAMLJIXGrY7mgu9o+Invz a4lrfbrLeduhPtTpMO3ht0k833as/ok7jSgdz4xtzI8r5SoJOb9cO3Oj/gtFhbwu 29DWSGCfQWjWNspMncTbH9bcb/aXOjbRPbyYiv5af5hY0qIexi2Zn1cnPvsst+qh SCZda5DSRbc9sGLl/xVhWoWfe6eFFUZbDD40RQk9LI6oQdYWeJp/MdCVhg8ukQwo lJgUIyadbGG/HQ6hcZtapErhXRpBSB1nvc4t4UDihMFBbMZe5Q1O75mF0xbKe2xi aH/rnrYomSBmnChm+3DVatheSLill06x01gExGfqySQHhm+ASBKltVmR3pjpLf9/ seu0MaggJ+KimuhOLSYL =1b6v -----END PGP SIGNATURE-----
participants (2)
-
Ilya Ledvich
-
Tom Rini