forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio: add IIO_MASSCONCENTRATION channel type
Measuring particulate matter in ug / m3 (micro-grams per cubic meter) is de facto standard. Existing air quality sensors usually follow this convention and are capable of returning measurements using this unit. IIO currently does not offer suitable channel type for this type of measurements hence this patch adds this. In addition, extra modifiers are introduced used for distinguishing between fine pm1, pm2p5 and coarse pm4, pm10 particle measurements, i.e IIO_MOD_PM1, IIO_MOD_PM25 and IIO_MOD_PM4, IIO_MOD_PM10. pmX consists of particles with aerodynamic diameter less or equal to X micrometers. Signed-off-by: Tomasz Duszynski <[email protected]> Acked-by: Matt Ranostay <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
- Loading branch information
1 parent
f1b753a
commit 17abc9e
Showing
4 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1684,4 +1684,19 @@ KernelVersion: 4.18 | |
Contact: [email protected] | ||
Description: | ||
Raw (unscaled) phase difference reading from channel Y | ||
that can be processed to radians. | ||
that can be processed to radians. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/in_massconcentration_pm1_input | ||
What: /sys/bus/iio/devices/iio:deviceX/in_massconcentrationY_pm1_input | ||
What: /sys/bus/iio/devices/iio:deviceX/in_massconcentration_pm2p5_input | ||
What: /sys/bus/iio/devices/iio:deviceX/in_massconcentrationY_pm2p5_input | ||
What: /sys/bus/iio/devices/iio:deviceX/in_massconcentration_pm4_input | ||
What: /sys/bus/iio/devices/iio:deviceX/in_massconcentrationY_pm4_input | ||
What: /sys/bus/iio/devices/iio:deviceX/in_massconcentration_pm10_input | ||
What: /sys/bus/iio/devices/iio:deviceX/in_massconcentrationY_pm10_input | ||
KernelVersion: 4.22 | ||
Contact: [email protected] | ||
Description: | ||
Mass concentration reading of particulate matter in ug / m3. | ||
pmX consists of particles with aerodynamic diameter less or | ||
equal to X micrometers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters