Ticket #10829 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

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:
Action Needed: no action Verified: no
Deployments affected: Blocked By:
Blocking:

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

Changed 3 years ago by cjb

  • owner changed from buytenh to saadia

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.

Changed 3 years ago by wmb@…

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

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.

Changed 3 years ago by Quozl

  • next_action 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?

Changed 3 years ago by Quozl

  • status changed from new to closed
  • next_action changed from test in build to no action
  • resolution set to fixed

Surmise that this needs no further testing.

Note: See TracTickets for help on using tickets.