linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Moving ad2s90 out of staging
@ 2018-03-15  1:29 Tom Lebreux
  2018-03-17 22:20 ` Jonathan Cameron
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Lebreux @ 2018-03-15  1:29 UTC (permalink / raw)
  To: linux-iio

Dear IIO community,

I plan on working on the ad2s90 resolver driver. I understand that we do not
have hardware to test the drivers, so I will not be adding new features. The
work will be mostly about cleaning up the driver.

1. Clean up CHECK (mutex not commented)

2. Sort include alphabetically

3. Reverse christmas tree ordering 
I saw this in David's plan for the ad2s1200 driver as well as a patch for an
accel driver. However, I did not see this mentionned in
Documentation/process/coding-style.rst. Is this necessary, or even wanted ?

4. Return -EINVAL on spi_read error
Currently, on spi_read error, read_raw still returns IIO_VAL_INT. I believe this
should be returning -EINVAL, as does, for example, the adxrs450 gyro driver.

5. Remove indexed property as there is only 1 channel

6. Use a #define for magic number 830000
This sets the maximum clock speed of the spi driver. I am struggling to find
where this number comes from. Is this number coming from the fact that there
needs 600ns between the CS and the first galling edge (mentionned in the 
comment right above the assigment)? The data sheet specifies the max SCLK input
rate as being 2MHz.

Is this a good plan ? Am I missing anything important ?

This was my first time reading a specification document, learning about
resolvers and resolver-to-digital converters.

>From what I understand, the ad2s90 uses the spi interface to output (only) its
absolute position angle. However, it supports many other outputs, such as A, B
encoding, direction of rotation of input (DIR) and angular velocity of input
signals (VEL). What is used to received these numbers ? Or are they only used
to connect directly to other devices ?

Best regards,

Tom Lebreux

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-04-08 15:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-15  1:29 Moving ad2s90 out of staging Tom Lebreux
2018-03-17 22:20 ` Jonathan Cameron
2018-04-02 18:57   ` Tom Lebreux
2018-04-08 15:40     ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).