lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220704002602.207024-1-ang.iglesiasg@gmail.com>
Date:   Mon,  4 Jul 2022 02:26:00 +0200
From:   Angel Iglesias <ang.iglesiasg@...il.com>
To:     linux-iio@...r.kernel.org
Cc:     Angel Iglesias <ang.iglesiasg@...il.com>,
        Jonathan Cameron <jic23@...nel.org>,
        Lars-Peter Clausen <lars@...afoo.de>,
        Ulf Hansson <ulf.hansson@...aro.org>,
        Paul Cercueil <paul@...pouillou.net>,
        "Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
        linux-kernel@...r.kernel.org
Subject: [PATCH v2 0/5] Add support for pressure sensor Bosch BMP380

This patchset adds BMP380 variant to the already existing drivers for
the Bosch BMP180/280 pressure sensors.

Patch 1 adds references and sensor id to the devicetree bindings docs.
Patch 2 adds references to the new sensors on the Kconfig file.
Patch 3 is a minor refactoring simplifying driver initialization logic
to facilitate the integration of the new sensor variant extending the
information stored in the "chip_info" struct.

Patch 4 adds the basic logic to initialize and read measurements from
the sensor
Patch 5 adds advanced configurable features such as sampling frequency
and IIR filter through the sysfs API

Changes in v2:
 - Added patch 2 updating Kconfig with references to new sensor
 - Patch 3 adds changes proposed by Jonathan Cameron <jic23@...nel.org>
   to declutter and unify configuration logic for the different sensors
   extending "chip_info" struct with default configuration parameters.
 - Patch 4: store temperature and pressure adc values on 3 byte array
   instead of using the type __le32. Uses function get_unaligned_le24
   to convert the little-endian encoded 3 byte value to an integer.
 - Patch 4: drops custom macro le16_from_bytes and use get_unaligned_le16
 - Patch 4: generate masks using GENMASK macro.
 - Patch 4: use FIELD_PREP to generate bitfields for registries
 - Patch 4: dropped stray formatting change.
 - Patch 5: adds sanity checks in bmp280_read_raw for channel properties
   only available in the BMP380.
 - Patch 5: on bmp280_write_* checks if a problem ocurred committing new
   configuration and tries to restore previous working configuration
   to keep the sensor in a previous working state.
 - Patch 5: refactored bmp380_chip_config to only check for configuration
   errors when a configuration change is detected.
 - Patch 5: improved invalid configuration detection on BMP380 restarting
   measurement loop to force a new measurement after the configuration is
   updated.


Angel Iglesias (5):
  dt-bindings: iio: pressure: bmp085: Add BMP380 compatible string
  iio: pressure: Kconfig: Add references to BMP380
  iio: pressure: bmp280: simplify driver initialization logic
  iio: pressure: bmp280: Add support for BMP380 sensor family
  iio: pressure: bmp280: Adds more tunable config parameters for BMP380

 .../bindings/iio/pressure/bmp085.yaml         |   4 +-
 drivers/iio/pressure/Kconfig                  |   4 +-
 drivers/iio/pressure/bmp280-core.c            | 732 +++++++++++++++++-
 drivers/iio/pressure/bmp280-i2c.c             |   5 +
 drivers/iio/pressure/bmp280-regmap.c          |  55 ++
 drivers/iio/pressure/bmp280-spi.c             |   5 +
 drivers/iio/pressure/bmp280.h                 |  83 ++
 7 files changed, 845 insertions(+), 43 deletions(-)


base-commit: 69cb6c6556ad89620547318439d6be8bb1629a5a
-- 
2.36.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ