Path: blob/master/Documentation/devicetree/bindings/iio/pressure/honeywell,mprls0025pa.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/pressure/honeywell,mprls0025pa.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Honeywell mprls0025pa pressure sensor78maintainers:9- Andreas Klinger <ak@it-klinger.de>10- Petre Rodan <petre.rodan@subdimension.ro>1112description: |13Honeywell pressure sensor of model mprls0025pa.1415This sensor has an I2C and SPI interface.1617There are many models with different pressure ranges available. The vendor18calls them "mpr series". All of them have the identical programming model and19differ in the pressure range, unit and transfer function.2021To support different models one need to specify its pressure triplet as well22as the transfer function.2324For custom silicon chips not covered by the Honeywell MPR series datasheet,25the pressure values can be specified manually via honeywell,pmin-pascal and26honeywell,pmax-pascal.27The minimal range value stands for the minimum pressure and the maximum value28also for the maximum pressure with linear relation inside the range.2930The transfer function defines the ranges of numerical values delivered by the31sensor.3233Specifications about the devices can be found at:34https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/35products/sensors/pressure-sensors/board-mount-pressure-sensors/36micropressure-mpr-series/documents/37sps-siot-mpr-series-datasheet-32332628-ciid-172626.pdf3839properties:40compatible:41const: honeywell,mprls0025pa4243reg:44maxItems: 14546interrupts:47description:48Optional interrupt for indicating End-of-conversion.49If not present, the driver loops for a while until the received status50byte indicates correct measurement.51maxItems: 15253reset-gpios:54description:55Optional GPIO for resetting the device.56If not present the device is not reset during the probe.57maxItems: 15859honeywell,transfer-function:60description: |61Transfer function which defines the range of valid values delivered by the62sensor.631 - A, 10% to 90% of 2^24 (1677722 .. 15099494)642 - B, 2.5% to 22.5% of 2^24 (419430 .. 3774874)653 - C, 20% to 80% of 2^24 (3355443 .. 13421773)66enum: [1, 2, 3]67$ref: /schemas/types.yaml#/definitions/uint326869honeywell,pressure-triplet:70description: |71Case-sensitive five character string that defines pressure range, unit72and type as part of the device nomenclature. In the unlikely case of a73custom chip, unset and provide pmin-pascal and pmax-pascal instead.74enum: [0001BA, 01.6BA, 02.5BA, 0060MG, 0100MG, 0160MG, 0250MG, 0400MG,750600MG, 0001BG, 01.6BG, 02.5BG, 0100KA, 0160KA, 0250KA, 0006KG,760010KG, 0016KG, 0025KG, 0040KG, 0060KG, 0100KG, 0160KG, 0250KG,770015PA, 0025PA, 0030PA, 0001PG, 0005PG, 0015PG, 0030PG, 0300YG]78$ref: /schemas/types.yaml#/definitions/string7980honeywell,pmin-pascal:81description:82Minimum pressure value the sensor can measure in pascal.8384honeywell,pmax-pascal:85description:86Maximum pressure value the sensor can measure in pascal.8788spi-max-frequency:89maximum: 8000009091vdd-supply:92description: provide VDD power to the sensor.9394required:95- compatible96- reg97- honeywell,transfer-function98- vdd-supply99100oneOf:101- required:102- honeywell,pressure-triplet103- required:104- honeywell,pmin-pascal105- honeywell,pmax-pascal106107allOf:108- $ref: /schemas/spi/spi-peripheral-props.yaml109- if:110required:111- honeywell,pressure-triplet112then:113properties:114honeywell,pmin-pascal: false115honeywell,pmax-pascal: false116117unevaluatedProperties: false118119examples:120- |121#include <dt-bindings/gpio/gpio.h>122#include <dt-bindings/interrupt-controller/irq.h>123i2c {124#address-cells = <1>;125#size-cells = <0>;126127pressure@18 {128compatible = "honeywell,mprls0025pa";129reg = <0x18>;130reset-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH>;131interrupt-parent = <&gpio3>;132interrupts = <21 IRQ_TYPE_EDGE_RISING>;133134honeywell,pressure-triplet = "0025PA";135honeywell,transfer-function = <1>;136vdd-supply = <&vcc_3v3>;137};138};139- |140spi {141#address-cells = <1>;142#size-cells = <0>;143144pressure@0 {145compatible = "honeywell,mprls0025pa";146reg = <0>;147spi-max-frequency = <800000>;148reset-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;149interrupt-parent = <&gpio0>;150interrupts = <30 IRQ_TYPE_EDGE_RISING>;151152honeywell,pressure-triplet = "0015PA";153honeywell,transfer-function = <1>;154vdd-supply = <&vcc_3v3>;155};156};157...158159160