Re: [PATCH] IIO: Added iio magn_north ABI documentation

2014-05-31 Thread Jonathan Cameron

On 27/05/14 16:27, Srinivas Pandruvada wrote:

On 05/26/2014 08:20 PM, Reyad Attiyat wrote:

Added documentation for HID magnometer true/magnetic north sensor.
---
  Documentation/ABI/testing/sysfs-bus-iio | 76 +
  1 file changed, 76 insertions(+)

diff --git a/Documentation/ABI/testing/sysfs-bus-iio 
b/Documentation/ABI/testing/sysfs-bus-iio
index 6e02c50..3305fe8 100644
--- a/Documentation/ABI/testing/sysfs-bus-iio
+++ b/Documentation/ABI/testing/sysfs-bus-iio
@@ -165,6 +165,10 @@ Description:
  What:/sys/bus/iio/devices/iio:deviceX/in_magn_x_raw
  What:/sys/bus/iio/devices/iio:deviceX/in_magn_y_raw
  What:/sys/bus/iio/devices/iio:deviceX/in_magn_z_raw
+What:/sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_raw
+What:/sys/bus/iio/devices/iio:deviceX/in_magn_north_true_raw
+What:
/sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_tilt_compensated_raw
+What:
/sys/bus/iio/devices/iio:deviceX/in_magn_north_true_tilt_compensated_raw

These names are very long. May be we remove work "magnetic" as there attributes 
only apply to magnetometer.

Not necessarily true - could be a gps bearing.  I'd actually argue that these 
are rotation measures and userspace doesn't
care where they come from.  See other thread for my suggestions on that.  Also, 
I'd much rather have  along
and clear name for the attribute than the possibility of any confusion.  Hence 
I've just asked Reyad to
put the magnetic back in the first one ;) (in other thread).  Sorry for the 
slow response
been travelling and working nights for the last week...

We might even want to introduce a 'bearing' base type.  Whilst these are 
rotations they are referenced
to a very particular location.

  KernelVersion:2.6.35
  Contact:linux-...@vger.kernel.org
  Description:
@@ -249,6 +253,10 @@ What:/sys/bus/iio/devices/iio:deviceX/in_magn_scale
  What:/sys/bus/iio/devices/iio:deviceX/in_magn_x_scale
  What:/sys/bus/iio/devices/iio:deviceX/in_magn_y_scale
  What:/sys/bus/iio/devices/iio:deviceX/in_magn_z_scale
+What:/sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_scale
+What:/sys/bus/iio/devices/iio:deviceX/in_magn_north_true_scale
+What:
/sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_tilt_compensated_scale
+What:
/sys/bus/iio/devices/iio:deviceX/in_magn_north_true_tilt_compensated_scale
  What:/sys/bus/iio/devices/iio:deviceX/in_pressureY_scale
  What:/sys/bus/iio/devices/iio:deviceX/in_pressure_scale
  KernelVersion:2.6.35
@@ -436,6 +444,14 @@ What:
/sys/.../iio:deviceX/events/in_magn_y_thresh_rising_en
  What:/sys/.../iio:deviceX/events/in_magn_y_thresh_falling_en
  What:/sys/.../iio:deviceX/events/in_magn_z_thresh_rising_en
  What:/sys/.../iio:deviceX/events/in_magn_z_thresh_falling_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_magnetic_thresh_rising_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_magnetic_thresh_falling_en
+What:/sys/.../iio:deviceX/events/in_magn_north_true_thresh_rising_en
+What:/sys/.../iio:deviceX/events/in_magn_north_true_thresh_falling_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_thresh_rising_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_thresh_falling_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_thresh_rising_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_thresh_falling_en
  What:/sys/.../iio:deviceX/events/in_voltageY_supply_thresh_rising_en
  What:/sys/.../iio:deviceX/events/in_voltageY_supply_thresh_falling_en
  What:/sys/.../iio:deviceX/events/in_voltageY_thresh_rising_en
@@ -481,6 +497,14 @@ What:
/sys/.../iio:deviceX/events/in_magn_y_roc_rising_en
  What:/sys/.../iio:deviceX/events/in_magn_y_roc_falling_en
  What:/sys/.../iio:deviceX/events/in_magn_z_roc_rising_en
  What:/sys/.../iio:deviceX/events/in_magn_z_roc_falling_en
+What:/sys/.../iio:deviceX/events/in_magn_north_magnetic_roc_rising_en
+What:/sys/.../iio:deviceX/events/in_magn_north_magnetic_roc_falling_en
+What:/sys/.../iio:deviceX/events/in_magn_north_true_roc_rising_en
+What:/sys/.../iio:deviceX/events/in_magn_north_true_roc_falling_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_roc_rising_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_roc_falling_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_roc_rising_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_roc_falling_en

Same as above. Names are very long.

Thanks,
Srinivas

  What:/sys/.../iio:deviceX/events/in_voltageY_supply_roc_rising_en
  What:

Re: [PATCH] IIO: Added iio magn_north ABI documentation

2014-05-31 Thread Jonathan Cameron

On 27/05/14 16:27, Srinivas Pandruvada wrote:

On 05/26/2014 08:20 PM, Reyad Attiyat wrote:

Added documentation for HID magnometer true/magnetic north sensor.
---
  Documentation/ABI/testing/sysfs-bus-iio | 76 +
  1 file changed, 76 insertions(+)

diff --git a/Documentation/ABI/testing/sysfs-bus-iio 
b/Documentation/ABI/testing/sysfs-bus-iio
index 6e02c50..3305fe8 100644
--- a/Documentation/ABI/testing/sysfs-bus-iio
+++ b/Documentation/ABI/testing/sysfs-bus-iio
@@ -165,6 +165,10 @@ Description:
  What:/sys/bus/iio/devices/iio:deviceX/in_magn_x_raw
  What:/sys/bus/iio/devices/iio:deviceX/in_magn_y_raw
  What:/sys/bus/iio/devices/iio:deviceX/in_magn_z_raw
+What:/sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_raw
+What:/sys/bus/iio/devices/iio:deviceX/in_magn_north_true_raw
+What:
/sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_tilt_compensated_raw
+What:
/sys/bus/iio/devices/iio:deviceX/in_magn_north_true_tilt_compensated_raw

These names are very long. May be we remove work magnetic as there attributes 
only apply to magnetometer.

Not necessarily true - could be a gps bearing.  I'd actually argue that these 
are rotation measures and userspace doesn't
care where they come from.  See other thread for my suggestions on that.  Also, 
I'd much rather have  along
and clear name for the attribute than the possibility of any confusion.  Hence 
I've just asked Reyad to
put the magnetic back in the first one ;) (in other thread).  Sorry for the 
slow response
been travelling and working nights for the last week...

We might even want to introduce a 'bearing' base type.  Whilst these are 
rotations they are referenced
to a very particular location.

  KernelVersion:2.6.35
  Contact:linux-...@vger.kernel.org
  Description:
@@ -249,6 +253,10 @@ What:/sys/bus/iio/devices/iio:deviceX/in_magn_scale
  What:/sys/bus/iio/devices/iio:deviceX/in_magn_x_scale
  What:/sys/bus/iio/devices/iio:deviceX/in_magn_y_scale
  What:/sys/bus/iio/devices/iio:deviceX/in_magn_z_scale
+What:/sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_scale
+What:/sys/bus/iio/devices/iio:deviceX/in_magn_north_true_scale
+What:
/sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_tilt_compensated_scale
+What:
/sys/bus/iio/devices/iio:deviceX/in_magn_north_true_tilt_compensated_scale
  What:/sys/bus/iio/devices/iio:deviceX/in_pressureY_scale
  What:/sys/bus/iio/devices/iio:deviceX/in_pressure_scale
  KernelVersion:2.6.35
@@ -436,6 +444,14 @@ What:
/sys/.../iio:deviceX/events/in_magn_y_thresh_rising_en
  What:/sys/.../iio:deviceX/events/in_magn_y_thresh_falling_en
  What:/sys/.../iio:deviceX/events/in_magn_z_thresh_rising_en
  What:/sys/.../iio:deviceX/events/in_magn_z_thresh_falling_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_magnetic_thresh_rising_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_magnetic_thresh_falling_en
+What:/sys/.../iio:deviceX/events/in_magn_north_true_thresh_rising_en
+What:/sys/.../iio:deviceX/events/in_magn_north_true_thresh_falling_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_thresh_rising_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_thresh_falling_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_thresh_rising_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_thresh_falling_en
  What:/sys/.../iio:deviceX/events/in_voltageY_supply_thresh_rising_en
  What:/sys/.../iio:deviceX/events/in_voltageY_supply_thresh_falling_en
  What:/sys/.../iio:deviceX/events/in_voltageY_thresh_rising_en
@@ -481,6 +497,14 @@ What:
/sys/.../iio:deviceX/events/in_magn_y_roc_rising_en
  What:/sys/.../iio:deviceX/events/in_magn_y_roc_falling_en
  What:/sys/.../iio:deviceX/events/in_magn_z_roc_rising_en
  What:/sys/.../iio:deviceX/events/in_magn_z_roc_falling_en
+What:/sys/.../iio:deviceX/events/in_magn_north_magnetic_roc_rising_en
+What:/sys/.../iio:deviceX/events/in_magn_north_magnetic_roc_falling_en
+What:/sys/.../iio:deviceX/events/in_magn_north_true_roc_rising_en
+What:/sys/.../iio:deviceX/events/in_magn_north_true_roc_falling_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_roc_rising_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_roc_falling_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_roc_rising_en
+What:
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_roc_falling_en

Same as above. Names are very long.

Thanks,
Srinivas

  What:/sys/.../iio:deviceX/events/in_voltageY_supply_roc_rising_en
  What:  

Re: [PATCH] IIO: Added iio magn_north ABI documentation

2014-05-27 Thread Srinivas Pandruvada

On 05/26/2014 08:20 PM, Reyad Attiyat wrote:

Added documentation for HID magnometer true/magnetic north sensor.
---
  Documentation/ABI/testing/sysfs-bus-iio | 76 +
  1 file changed, 76 insertions(+)

diff --git a/Documentation/ABI/testing/sysfs-bus-iio 
b/Documentation/ABI/testing/sysfs-bus-iio
index 6e02c50..3305fe8 100644
--- a/Documentation/ABI/testing/sysfs-bus-iio
+++ b/Documentation/ABI/testing/sysfs-bus-iio
@@ -165,6 +165,10 @@ Description:
  What: /sys/bus/iio/devices/iio:deviceX/in_magn_x_raw
  What: /sys/bus/iio/devices/iio:deviceX/in_magn_y_raw
  What: /sys/bus/iio/devices/iio:deviceX/in_magn_z_raw
+What:  /sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_raw
+What:  /sys/bus/iio/devices/iio:deviceX/in_magn_north_true_raw
+What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_tilt_compensated_raw
+What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_north_true_tilt_compensated_raw
These names are very long. May be we remove work "magnetic" as there 
attributes only apply to magnetometer.

  KernelVersion:2.6.35
  Contact:  linux-...@vger.kernel.org
  Description:
@@ -249,6 +253,10 @@ What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_scale
  What: /sys/bus/iio/devices/iio:deviceX/in_magn_x_scale
  What: /sys/bus/iio/devices/iio:deviceX/in_magn_y_scale
  What: /sys/bus/iio/devices/iio:deviceX/in_magn_z_scale
+What:  /sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_scale
+What:  /sys/bus/iio/devices/iio:deviceX/in_magn_north_true_scale
+What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_tilt_compensated_scale
+What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_north_true_tilt_compensated_scale
  What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_scale
  What: /sys/bus/iio/devices/iio:deviceX/in_pressure_scale
  KernelVersion:2.6.35
@@ -436,6 +444,14 @@ What:  
/sys/.../iio:deviceX/events/in_magn_y_thresh_rising_en
  What: /sys/.../iio:deviceX/events/in_magn_y_thresh_falling_en
  What: /sys/.../iio:deviceX/events/in_magn_z_thresh_rising_en
  What: /sys/.../iio:deviceX/events/in_magn_z_thresh_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_thresh_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_thresh_falling_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_true_thresh_rising_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_true_thresh_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_thresh_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_thresh_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_thresh_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_thresh_falling_en
  What: /sys/.../iio:deviceX/events/in_voltageY_supply_thresh_rising_en
  What: /sys/.../iio:deviceX/events/in_voltageY_supply_thresh_falling_en
  What: /sys/.../iio:deviceX/events/in_voltageY_thresh_rising_en
@@ -481,6 +497,14 @@ What:  
/sys/.../iio:deviceX/events/in_magn_y_roc_rising_en
  What: /sys/.../iio:deviceX/events/in_magn_y_roc_falling_en
  What: /sys/.../iio:deviceX/events/in_magn_z_roc_rising_en
  What: /sys/.../iio:deviceX/events/in_magn_z_roc_falling_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_magnetic_roc_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_roc_falling_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_true_roc_rising_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_true_roc_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_roc_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_roc_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_roc_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_roc_falling_en

Same as above. Names are very long.

Thanks,
Srinivas

  What: /sys/.../iio:deviceX/events/in_voltageY_supply_roc_rising_en
  What: /sys/.../iio:deviceX/events/in_voltageY_supply_roc_falling_en
  What: /sys/.../iio:deviceX/events/in_voltageY_roc_rising_en
@@ -527,6 +551,14 @@ What:  
/sys/.../events/in_magn_y_raw_thresh_rising_value
  What: /sys/.../events/in_magn_y_raw_thresh_falling_value
  What: /sys/.../events/in_magn_z_raw_thresh_rising_value
  What: /sys/.../events/in_magn_z_raw_thresh_falling_value
+What:  /sys/.../events/in_magn_north_magnetic_raw_thresh_rising_value
+What:  

Re: [PATCH] IIO: Added iio magn_north ABI documentation

2014-05-27 Thread Srinivas Pandruvada

On 05/26/2014 08:20 PM, Reyad Attiyat wrote:

Added documentation for HID magnometer true/magnetic north sensor.
---
  Documentation/ABI/testing/sysfs-bus-iio | 76 +
  1 file changed, 76 insertions(+)

diff --git a/Documentation/ABI/testing/sysfs-bus-iio 
b/Documentation/ABI/testing/sysfs-bus-iio
index 6e02c50..3305fe8 100644
--- a/Documentation/ABI/testing/sysfs-bus-iio
+++ b/Documentation/ABI/testing/sysfs-bus-iio
@@ -165,6 +165,10 @@ Description:
  What: /sys/bus/iio/devices/iio:deviceX/in_magn_x_raw
  What: /sys/bus/iio/devices/iio:deviceX/in_magn_y_raw
  What: /sys/bus/iio/devices/iio:deviceX/in_magn_z_raw
+What:  /sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_raw
+What:  /sys/bus/iio/devices/iio:deviceX/in_magn_north_true_raw
+What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_tilt_compensated_raw
+What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_north_true_tilt_compensated_raw
These names are very long. May be we remove work magnetic as there 
attributes only apply to magnetometer.

  KernelVersion:2.6.35
  Contact:  linux-...@vger.kernel.org
  Description:
@@ -249,6 +253,10 @@ What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_scale
  What: /sys/bus/iio/devices/iio:deviceX/in_magn_x_scale
  What: /sys/bus/iio/devices/iio:deviceX/in_magn_y_scale
  What: /sys/bus/iio/devices/iio:deviceX/in_magn_z_scale
+What:  /sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_scale
+What:  /sys/bus/iio/devices/iio:deviceX/in_magn_north_true_scale
+What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_tilt_compensated_scale
+What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_north_true_tilt_compensated_scale
  What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_scale
  What: /sys/bus/iio/devices/iio:deviceX/in_pressure_scale
  KernelVersion:2.6.35
@@ -436,6 +444,14 @@ What:  
/sys/.../iio:deviceX/events/in_magn_y_thresh_rising_en
  What: /sys/.../iio:deviceX/events/in_magn_y_thresh_falling_en
  What: /sys/.../iio:deviceX/events/in_magn_z_thresh_rising_en
  What: /sys/.../iio:deviceX/events/in_magn_z_thresh_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_thresh_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_thresh_falling_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_true_thresh_rising_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_true_thresh_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_thresh_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_thresh_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_thresh_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_thresh_falling_en
  What: /sys/.../iio:deviceX/events/in_voltageY_supply_thresh_rising_en
  What: /sys/.../iio:deviceX/events/in_voltageY_supply_thresh_falling_en
  What: /sys/.../iio:deviceX/events/in_voltageY_thresh_rising_en
@@ -481,6 +497,14 @@ What:  
/sys/.../iio:deviceX/events/in_magn_y_roc_rising_en
  What: /sys/.../iio:deviceX/events/in_magn_y_roc_falling_en
  What: /sys/.../iio:deviceX/events/in_magn_z_roc_rising_en
  What: /sys/.../iio:deviceX/events/in_magn_z_roc_falling_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_magnetic_roc_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_roc_falling_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_true_roc_rising_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_true_roc_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_roc_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_roc_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_roc_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_roc_falling_en

Same as above. Names are very long.

Thanks,
Srinivas

  What: /sys/.../iio:deviceX/events/in_voltageY_supply_roc_rising_en
  What: /sys/.../iio:deviceX/events/in_voltageY_supply_roc_falling_en
  What: /sys/.../iio:deviceX/events/in_voltageY_roc_rising_en
@@ -527,6 +551,14 @@ What:  
/sys/.../events/in_magn_y_raw_thresh_rising_value
  What: /sys/.../events/in_magn_y_raw_thresh_falling_value
  What: /sys/.../events/in_magn_z_raw_thresh_rising_value
  What: /sys/.../events/in_magn_z_raw_thresh_falling_value
+What:  /sys/.../events/in_magn_north_magnetic_raw_thresh_rising_value
+What:  

[PATCH] IIO: Added iio magn_north ABI documentation

2014-05-26 Thread Reyad Attiyat
Added documentation for HID magnometer true/magnetic north sensor.
---
 Documentation/ABI/testing/sysfs-bus-iio | 76 +
 1 file changed, 76 insertions(+)

diff --git a/Documentation/ABI/testing/sysfs-bus-iio 
b/Documentation/ABI/testing/sysfs-bus-iio
index 6e02c50..3305fe8 100644
--- a/Documentation/ABI/testing/sysfs-bus-iio
+++ b/Documentation/ABI/testing/sysfs-bus-iio
@@ -165,6 +165,10 @@ Description:
 What:  /sys/bus/iio/devices/iio:deviceX/in_magn_x_raw
 What:  /sys/bus/iio/devices/iio:deviceX/in_magn_y_raw
 What:  /sys/bus/iio/devices/iio:deviceX/in_magn_z_raw
+What:  /sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_raw
+What:  /sys/bus/iio/devices/iio:deviceX/in_magn_north_true_raw
+What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_tilt_compensated_raw
+What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_north_true_tilt_compensated_raw
 KernelVersion: 2.6.35
 Contact:   linux-...@vger.kernel.org
 Description:
@@ -249,6 +253,10 @@ What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_scale
 What:  /sys/bus/iio/devices/iio:deviceX/in_magn_x_scale
 What:  /sys/bus/iio/devices/iio:deviceX/in_magn_y_scale
 What:  /sys/bus/iio/devices/iio:deviceX/in_magn_z_scale
+What:  /sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_scale
+What:  /sys/bus/iio/devices/iio:deviceX/in_magn_north_true_scale
+What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_tilt_compensated_scale
+What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_north_true_tilt_compensated_scale
 What:  /sys/bus/iio/devices/iio:deviceX/in_pressureY_scale
 What:  /sys/bus/iio/devices/iio:deviceX/in_pressure_scale
 KernelVersion: 2.6.35
@@ -436,6 +444,14 @@ What:  
/sys/.../iio:deviceX/events/in_magn_y_thresh_rising_en
 What:  /sys/.../iio:deviceX/events/in_magn_y_thresh_falling_en
 What:  /sys/.../iio:deviceX/events/in_magn_z_thresh_rising_en
 What:  /sys/.../iio:deviceX/events/in_magn_z_thresh_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_thresh_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_thresh_falling_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_true_thresh_rising_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_true_thresh_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_thresh_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_thresh_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_thresh_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_thresh_falling_en
 What:  /sys/.../iio:deviceX/events/in_voltageY_supply_thresh_rising_en
 What:  /sys/.../iio:deviceX/events/in_voltageY_supply_thresh_falling_en
 What:  /sys/.../iio:deviceX/events/in_voltageY_thresh_rising_en
@@ -481,6 +497,14 @@ What:  
/sys/.../iio:deviceX/events/in_magn_y_roc_rising_en
 What:  /sys/.../iio:deviceX/events/in_magn_y_roc_falling_en
 What:  /sys/.../iio:deviceX/events/in_magn_z_roc_rising_en
 What:  /sys/.../iio:deviceX/events/in_magn_z_roc_falling_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_magnetic_roc_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_roc_falling_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_true_roc_rising_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_true_roc_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_roc_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_roc_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_roc_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_roc_falling_en
 What:  /sys/.../iio:deviceX/events/in_voltageY_supply_roc_rising_en
 What:  /sys/.../iio:deviceX/events/in_voltageY_supply_roc_falling_en
 What:  /sys/.../iio:deviceX/events/in_voltageY_roc_rising_en
@@ -527,6 +551,14 @@ What:  
/sys/.../events/in_magn_y_raw_thresh_rising_value
 What:  /sys/.../events/in_magn_y_raw_thresh_falling_value
 What:  /sys/.../events/in_magn_z_raw_thresh_rising_value
 What:  /sys/.../events/in_magn_z_raw_thresh_falling_value
+What:  /sys/.../events/in_magn_north_magnetic_raw_thresh_rising_value
+What:  /sys/.../events/in_magn_north_magnetic_raw_thresh_falling_value
+What:  /sys/.../events/in_magn_north_true_raw_thresh_rising_value
+What:  /sys/.../events/in_magn_north_true_raw_thresh_falling_value
+What:  

[PATCH] IIO: Added iio magn_north ABI documentation

2014-05-26 Thread Reyad Attiyat
Added documentation for HID magnometer true/magnetic north sensor.
---
 Documentation/ABI/testing/sysfs-bus-iio | 76 +
 1 file changed, 76 insertions(+)

diff --git a/Documentation/ABI/testing/sysfs-bus-iio 
b/Documentation/ABI/testing/sysfs-bus-iio
index 6e02c50..3305fe8 100644
--- a/Documentation/ABI/testing/sysfs-bus-iio
+++ b/Documentation/ABI/testing/sysfs-bus-iio
@@ -165,6 +165,10 @@ Description:
 What:  /sys/bus/iio/devices/iio:deviceX/in_magn_x_raw
 What:  /sys/bus/iio/devices/iio:deviceX/in_magn_y_raw
 What:  /sys/bus/iio/devices/iio:deviceX/in_magn_z_raw
+What:  /sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_raw
+What:  /sys/bus/iio/devices/iio:deviceX/in_magn_north_true_raw
+What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_tilt_compensated_raw
+What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_north_true_tilt_compensated_raw
 KernelVersion: 2.6.35
 Contact:   linux-...@vger.kernel.org
 Description:
@@ -249,6 +253,10 @@ What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_scale
 What:  /sys/bus/iio/devices/iio:deviceX/in_magn_x_scale
 What:  /sys/bus/iio/devices/iio:deviceX/in_magn_y_scale
 What:  /sys/bus/iio/devices/iio:deviceX/in_magn_z_scale
+What:  /sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_scale
+What:  /sys/bus/iio/devices/iio:deviceX/in_magn_north_true_scale
+What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_north_magnetic_tilt_compensated_scale
+What:  
/sys/bus/iio/devices/iio:deviceX/in_magn_north_true_tilt_compensated_scale
 What:  /sys/bus/iio/devices/iio:deviceX/in_pressureY_scale
 What:  /sys/bus/iio/devices/iio:deviceX/in_pressure_scale
 KernelVersion: 2.6.35
@@ -436,6 +444,14 @@ What:  
/sys/.../iio:deviceX/events/in_magn_y_thresh_rising_en
 What:  /sys/.../iio:deviceX/events/in_magn_y_thresh_falling_en
 What:  /sys/.../iio:deviceX/events/in_magn_z_thresh_rising_en
 What:  /sys/.../iio:deviceX/events/in_magn_z_thresh_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_thresh_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_thresh_falling_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_true_thresh_rising_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_true_thresh_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_thresh_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_thresh_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_thresh_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_thresh_falling_en
 What:  /sys/.../iio:deviceX/events/in_voltageY_supply_thresh_rising_en
 What:  /sys/.../iio:deviceX/events/in_voltageY_supply_thresh_falling_en
 What:  /sys/.../iio:deviceX/events/in_voltageY_thresh_rising_en
@@ -481,6 +497,14 @@ What:  
/sys/.../iio:deviceX/events/in_magn_y_roc_rising_en
 What:  /sys/.../iio:deviceX/events/in_magn_y_roc_falling_en
 What:  /sys/.../iio:deviceX/events/in_magn_z_roc_rising_en
 What:  /sys/.../iio:deviceX/events/in_magn_z_roc_falling_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_magnetic_roc_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_roc_falling_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_true_roc_rising_en
+What:  /sys/.../iio:deviceX/events/in_magn_north_true_roc_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_roc_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_magnetic_tilt_compensated_roc_falling_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_roc_rising_en
+What:  
/sys/.../iio:deviceX/events/in_magn_north_true_tilt_compensated_roc_falling_en
 What:  /sys/.../iio:deviceX/events/in_voltageY_supply_roc_rising_en
 What:  /sys/.../iio:deviceX/events/in_voltageY_supply_roc_falling_en
 What:  /sys/.../iio:deviceX/events/in_voltageY_roc_rising_en
@@ -527,6 +551,14 @@ What:  
/sys/.../events/in_magn_y_raw_thresh_rising_value
 What:  /sys/.../events/in_magn_y_raw_thresh_falling_value
 What:  /sys/.../events/in_magn_z_raw_thresh_rising_value
 What:  /sys/.../events/in_magn_z_raw_thresh_falling_value
+What:  /sys/.../events/in_magn_north_magnetic_raw_thresh_rising_value
+What:  /sys/.../events/in_magn_north_magnetic_raw_thresh_falling_value
+What:  /sys/.../events/in_magn_north_true_raw_thresh_rising_value
+What:  /sys/.../events/in_magn_north_true_raw_thresh_falling_value
+What: