I2C Buses Changed in 4.1.x

57 views
Skip to first unread message

Bit Pusher

unread,
Dec 31, 2015, 6:31:41 PM12/31/15
to BeagleBoard
Under 3.8.13:
> uname -r
3.8.13-bone77
> sudo i2cdetect -l
i2c-0 i2c       OMAP I2C adapter                 I2C adapter
i2c-1 i2c       OMAP I2C adapter                 I2C adapter
Under 4.1.115:
 >  uname -r
4.1.15-bone17
>  sudo i2cdetect -l
i2c-0 i2c       OMAP I2C adapter                 I2C adapter
i2c-2 i2c       OMAP I2C adapter                 I2C adapter

Has the I2C smbus at address 1 changed to address 2 as indicated by the second '2' in i2c-2i2c? I'm assuming this is the second I2C bus at
pins P9_19 and P9_20? If so, would anyone know why?

Back in 4.1.15 with a cape attached:
> sudo i2cdetect -y -r 2
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: 20 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 
50: -- -- -- -- UU UU UU UU -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- -- 
70: 70 -- -- -- -- -- -- --                         

and in 3.8.13 with no cape:
> sudo i2cdetect -y -r 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- UU UU UU UU -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
The similarity is enough to make me think the bus address has changed?

Robert Nelson

unread,
Dec 31, 2015, 7:06:59 PM12/31/15
to Beagle Board
See commit:

ARM: dts: AM33xx+: Add i2c aliases
Provide alias to allow ordering the i2c devices correctly.

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6a96867844895008558810853c7838af39dd317c

Consider 4.1.x to be the 'correct' way 3.8 should have been done..

Regards,

--
Robert Nelson
https://rcn-ee.com/

Dries Steenhouwer

unread,
Oct 18, 2016, 8:57:03 AM10/18/16
to BeagleBoard
Is it possible to change the ordering so that is acting like in 3.8?

Op vrijdag 1 januari 2016 01:06:59 UTC+1 schreef RobertCNelson:
Reply all
Reply to author
Forward
0 new messages