public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Andersson <eric.andersson@unixphere.com>
To: linux-kernel@vger.kernel.org
Cc: arnd@arndb.de, gregkh@linuxfoundation.org,
	christoph.mair@gmail.com, stefan.nilsson@unixphere.com,
	zhengguang.guo@bosch-sensortec.com, peter.moeller@cn.bosch.com,
	Eric Andersson <eric.andersson@unixphere.com>
Subject: [PATCH 2/3] Documentation: add sysfs ABI documentation for bmp18x
Date: Wed, 29 Feb 2012 20:58:08 +0100	[thread overview]
Message-ID: <1330545489-31169-3-git-send-email-eric.andersson@unixphere.com> (raw)
In-Reply-To: <1330545489-31169-1-git-send-email-eric.andersson@unixphere.com>

This patch adds sysfs documentation for Bosch Sensortec's BMP18x
pressure sensors.

Reviewed-by: Stefan Nilsson <stefan.nilsson@unixphere.com>
Signed-off-by: Eric Andersson <eric.andersson@unixphere.com>
---
 Documentation/ABI/testing/sysfs-i2c-bmp18x |   31 ++++++++++++++++++++++++++++
 Documentation/ABI/testing/sysfs-spi-bmp18x |   31 ++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-i2c-bmp18x
 create mode 100644 Documentation/ABI/testing/sysfs-spi-bmp18x

diff --git a/Documentation/ABI/testing/sysfs-i2c-bmp18x b/Documentation/ABI/testing/sysfs-i2c-bmp18x
new file mode 100644
index 0000000..f6c5799
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-i2c-bmp18x
@@ -0,0 +1,31 @@
+What:		/sys/bus/i2c/devices/<busnum>-<devaddr>/pressure0_input
+Date:		February 2012
+Contact:	Eric Andersson <eric.andersson@unixphere.com>
+Description:	Start a pressure measurement and read the result. Values
+		represent the ambient air pressure in pascal (0.01 millibar).
+
+		Reading: returns the current air pressure.
+
+
+What:		/sys/bus/i2c/devices/<busnum>-<devaddr>/temp0_input
+Date:		February 2012
+Contact:	Eric Andersson <eric.andersson@unixphere.com>
+Description:	Measure the ambient temperature. The returned value represents
+		the ambient temperature in units of 0.1 degree celsius.
+
+		Reading: returns the current temperature.
+
+
+What:		/sys/bus/i2c/devices/<busnum>-<devaddr>/oversampling
+Date:		February 2012
+Contact:	Eric Andersson <eric.andersson@unixphere.com>
+Description:	Tell the bmp18x to use more samples to calculate a pressure
+		value. When writing to this file the chip will use 2^x samples
+		to calculate the next pressure value with x being the value
+		written. Using this feature will decrease RMS noise and
+		increase the measurement time.
+
+		Reading: returns the current oversampling setting.
+
+		Writing: sets a new oversampling setting.
+		Accepted values: 0..3.
diff --git a/Documentation/ABI/testing/sysfs-spi-bmp18x b/Documentation/ABI/testing/sysfs-spi-bmp18x
new file mode 100644
index 0000000..e3a9be3
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-spi-bmp18x
@@ -0,0 +1,31 @@
+What:		/sys/bus/spi/devices/spi<busnum>.<chipselect>/pressure0_input
+Date:		February 2012
+Contact:	Eric Andersson <eric.andersson@unixphere.com>
+Description:	Start a pressure measurement and read the result. Values
+		represent the ambient air pressure in pascal (0.01 millibar).
+
+		Reading: returns the current air pressure.
+
+
+What:		/sys/bus/spi/devices/spi<busnum>.<chipselect>/temp0_input
+Date:		February 2012
+Contact:	Eric Andersson <eric.andersson@unixphere.com>
+Description:	Measure the ambient temperature. The returned value represents
+		the ambient temperature in units of 0.1 degree celsius.
+
+		Reading: returns the current temperature.
+
+
+What:		/sys/bus/spi/devices/spi<busnum>.<chipselect>/oversampling
+Date:		February 2012
+Contact:	Eric Andersson <eric.andersson@unixphere.com>
+Description:	Tell the bmp18x to use more samples to calculate a pressure
+		value. When writing to this file the chip will use 2^x samples
+		to calculate the next pressure value with x being the value
+		written. Using this feature will decrease RMS noise and
+		increase the measurement time.
+
+		Reading: returns the current oversampling setting.
+
+		Writing: sets a new oversampling setting.
+		Accepted values: 0..3.
-- 
1.7.3.4


  parent reply	other threads:[~2012-02-29 20:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-29 19:58 [PATCH 0/3] Replace bmp085 with bmp18x Eric Andersson
2012-02-29 19:58 ` [PATCH 1/3] drivers/misc: add support for BMP18x pressure sensors Eric Andersson
2012-03-01  0:11   ` Alan Cox
2012-02-29 19:58 ` Eric Andersson [this message]
2012-02-29 19:58 ` [PATCH 3/3] drivers/misc: remove bmp085 driver Eric Andersson
2012-02-29 20:18 ` [PATCH 0/3] Replace bmp085 with bmp18x Arnd Bergmann
2012-02-29 20:37   ` Nick Bowler
2012-02-29 21:26     ` Arnd Bergmann
2012-03-01 13:19       ` Eric Andersson
2012-02-29 21:19   ` Eric Andersson
2012-02-29 23:52   ` Alan Cox
2012-03-02 16:49     ` Arnd Bergmann
2012-03-02 17:04       ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1330545489-31169-3-git-send-email-eric.andersson@unixphere.com \
    --to=eric.andersson@unixphere.com \
    --cc=arnd@arndb.de \
    --cc=christoph.mair@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peter.moeller@cn.bosch.com \
    --cc=stefan.nilsson@unixphere.com \
    --cc=zhengguang.guo@bosch-sensortec.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox