Opened 4 years ago

Closed 3 years ago

#10829 closed defect (fixed)

Need compass driver for 1.75

Reported by: cjb Owned by: saadia
Priority: normal Milestone: 1.75-software
Component: kernel Version: not specified
Keywords: Cc:
Blocked By: Blocking:
Deployments affected: Action Needed: no action
Verified: no

Description

Mitch already has support in OFW:

http://tracker.coreboot.org/trac/openfirmware/browser/cpu/arm/olpc/1.75/compass.fth

It needs to be bitbanged with GPIO, it's not on a TWSI. You'll need to ask Wad to populate the compass on to your board; they aren't populated on 1.75s by default.

Change History (6)

comment:1 Changed 3 years ago by cjb

  • Owner changed from buytenh to saadia

comment:2 Changed 3 years ago by wad

In debugging here at twine, I noticed some errors in that OFW code. Specifically, there is an extraneous "5" before smb-data-gpio# in both set-compass-slave and set-sensor-slave. sensor! should call smb-byte! not smb-byte@

But even with these fixes, I'm unable to communicate with the compass. The accelerometer in the same package works OK, but when I try to address the compass, no ACK is received. I'll try soldering another compass down, perhaps the first one was damaged in mounting.

comment:3 Changed 3 years ago by wmb@…

OFW svn 2406 incorporates the fixes suggested by the previous comment.

comment:4 Changed 3 years ago by wad

We have two laptops at twine w. a digital compass mounted. That chip is practically impossible to solder down, and has two sets of I2C pins, so either the compass or the accelerometer may malfunction independently of the other.

comment:5 Changed 3 years ago by Quozl

  • Action Needed changed from never set to test in build

Kernel support added by Saadia.

Someone with a compass to test, or has the lid switch magnet shown that the device is not compatible?

comment:6 Changed 3 years ago by Quozl

  • Action Needed changed from test in build to no action
  • Resolution set to fixed
  • Status changed from new to closed

Surmise that this needs no further testing.

Note: See TracTickets for help on using tickets.