Skip to content

Commit

Permalink
Changing the default i2c bus for the CHIP as the 4.4 kernel CHIPs rem…
Browse files Browse the repository at this point in the history
…ove i2c-1 in the stock dts
  • Loading branch information
xtacocorex committed Jul 11, 2016
1 parent e7f703b commit 43a23ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Adafruit_GPIO/I2C.py
Expand Up @@ -54,8 +54,10 @@ def get_default_bus():
# Beaglebone Black has multiple I2C buses, default to 1 (P9_19 and P9_20).
return 1
elif plat == Platform.CHIP:
# CHIP has 2 user accessible I2C busses, default to 1 (U13_9 and U13_11)
return 1
# CHIP has 2 user accessible I2C busses, default to 2 (U1425 and U14_26)
# The 4.4 Kernel CHIPs remove i2c-1 for the ability to set with a dtb overlay
# and therefore isn't accessible without one
return 2
else:
raise RuntimeError('Could not determine default I2C bus for platform.')

Expand Down

0 comments on commit 43a23ec

Please sign in to comment.