Skip to content

Compute Module ignores i2c_arm from either config.txt or dt #1129

Closed

Description

@clivem

dtparam=i2c_arm=on in config.txt on compute module does not result in either i2c0 or i2c1 being enabled. I'd like it to enable i2c1 for compatibility with A+,B+ 2B.

The ignoring of anything referencing i2c_arm on CM also results in the lack of rtc being enabled using the "stock" i2c-rtc overlay definition, (config.txt: dtoverlay=i2c-rtc,ds1307), which references i2c_arm. Which of course can be worked around by specifying either i2c0 or i2c1 in the dts instead, but again, for consistencies sake and to allow the "stock" overlay definition to be used without any mods on all models including CM, it would be nice if either a ref to i2c_arm in either an overlay file or config.txt on CM, caused i2c1 to be enabled on CM.

EDIT: With the benefit of hindsight I should have opened this "issue" under the firmware project, rather than the kernel.... Sorry!!!

Activity

  1. changed the title [-]Compute Module ignores i2c_arm from either confit.txt or dt[/-] [+]Compute Module ignores i2c_arm from either config.txt or dt[/+] on Sep 11, 2015
  2. pelwell commented on Sep 14, 2015

    @pelwell
    Contributor

    This could easily have been a DT/kernel issue, but as you've worked out the arm/vc aliases are created by the firmware. The thinking behind the absence of the aliases was that ownership of the ports is more flexible on the CM, and that CM users are likely to be creating their own .dtbs anyway.

    Having said that, there's probably no harm in having the aliases created anyway. They should appear in a future release.

  3. popcornmix commented on Sep 14, 2015

    @popcornmix
    Collaborator

    @pelwell's change should be in latest rpi-update firmware

  4. clivem commented on Sep 14, 2015

    @clivem
    Author

    Tested using i2c_arm alias on CM with latest firmware. Working! Thank you.

  5. added a commit that references this issue on Feb 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions