Re: [PATCH 1/2] iio: magn: DT bindings for AK8974

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Fri, Jun 24, 2016 at 7:19 PM, Rob Herring <robh@xxxxxxxxxx> wrote:
> On Wed, Jun 22, 2016 at 05:11:16PM +0200, Linus Walleij wrote:
>> This adds device tree bindings for the AK8974 magnetometer, similar
>> to those for the AK8975.
>
> Seems like they should be shared, but there don't appear to be any
> datasheets for 8974 to really tell. Really only matters if the
> programming models are similar.

I have schematics of the component mounted, so I know what the
pins are named. Apart from that only the opaque driver from Samu.
(Found his new mail and mailed him, also requested the datasheet
from AKM, no response so far.)

>> +- avdd-supply: regulator supply for the analog voltage
>> +  (see regulator/regulator.txt)
>> +- dvdd-supply: regulator supply for the digital voltage
>> +  (see regulator/regulator.txt)
>
> This is probably more correct than single vdd-supply for 8975 which in
> fact has 2 supplies.

Yes. But they did change the names. AK8974 is avdd and dvdd
whereas AK8975 has vdd (same as avdd) and vid (same as dvdd).
I have no idea why this arbitrary naming is happening :/

>> +- interrupts: data ready (DRDY) and interrupt (INT1) lines
>> +  from the chip, the DRDY interrupt must be placed first.
>> +  The interrupts can be triggered on rising or falling
>> +  edges alike.
>
> The ak8975 probably should be an interrupt instead of gpio, too...

Yes. Or well. "data ready" is usually used as interrupt but to the
circuit designers it's just a signal which tells when the state machine
has finished.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux