On Tue, Apr 28, 2015 at 12:57 AM, sathyanarayanan kuppuswamySince your main issue is, device tree lacking ABI to specify location
<sathyanarayanan.kuppuswamy@xxxxxxxxxxxxxxx> wrote:
HiIMO the mounting matrix is more consistent with the IIO ABIs. Although
On 04/27/2015 08:54 AM, Octavian Purdila wrote:
On Mon, Apr 27, 2015 at 6:42 PM, Kuppuswamy SathyanarayananIf the main reason for implementing a new ABI is to support DT platforms,
<sathyanarayanan.kuppuswamy@xxxxxxxxxxxxxxx> wrote:
Since Acpi framework already exports this info to user space, Why not doThe ABI was added in the previous patch so that we can present the
this derivation in user space code ? Why do we need new ABI, if the same
can be derived from existing one.
sensor orientation information to userspace even in the case of device
tree.
Why not implement a version of _PLD for device tree ? Don't you think it
would be much better than adding a new ABI to export redundant information ?
I have no issue with repicating _PLD for device tree if people agree
that it is better.
I agree that location information is used differently at different
Also the location information of the device is not just specific to iioThe upstream standard for those sensors where the orientation matters
drivers. You should consider that we would have similar requirements for
devices implemented as input or platform drivers.
(accelerometer, gyro, compass) is IIO.
Granted, there are other device types for which the orientation
information may be useful (e.g. camera). However the actual
interpretation and action to be taken is different for each subsystem
(e.g. in the camera case do the correction via V4L2_CID_HFLIP /
V4L2_CID_VFLIP) so I think it is better to expose it at the subsystem
level in a way consistent with the subsystem's ABIs.