Path: blob/master/Documentation/devicetree/bindings/iio/pressure/honeywell,abp2030pa.yaml
121848 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,abp2030pa.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Honeywell abp2030pa pressure sensor78maintainers:9- Petre Rodan <petre.rodan@subdimension.ro>1011description: |12Honeywell pressure sensor of model abp2030pa.1314This sensor has an I2C and SPI interface.1516There are many models with different pressure ranges available. The vendor17calls them "ABP2 series". All of them have an identical programming model and18differ in the pressure range and measurement unit.1920To support different models one needs to specify its pressure triplet.2122For custom silicon chips not covered by the Honeywell ABP2 series datasheet,23the pressure values can be specified manually via honeywell,pmin-pascal and24honeywell,pmax-pascal.2526Specifications about the devices can be found at:27https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/board-mount-pressure-sensors/basic-abp2-series/documents/sps-siot-abp2-series-datasheet-32350268-en.pdf2829properties:30compatible:31const: honeywell,abp2030pa3233reg:34maxItems: 13536interrupts:37description:38Optional interrupt for indicating end of conversion.39SPI variants of ABP2 chips do not provide this feature.40maxItems: 14142honeywell,pressure-triplet:43description: |44Case-sensitive five character string that defines pressure range, unit45and type as part of the device nomenclature. In the unlikely case of a46custom chip, unset and provide pmin-pascal and pmax-pascal instead.47enum: [001BA, 1.6BA, 2.5BA, 004BA, 006BA, 008BA, 010BA, 012BA, 001BD,481.6BD, 2.5BD, 004BD, 001BG, 1.6BG, 2.5BG, 004BG, 006BG, 008BG,49010BG, 012BG, 001GG, 1.2GG, 100KA, 160KA, 250KA, 001KD, 1.6KD,502.5KD, 004KD, 006KD, 010KD, 016KD, 025KD, 040KD, 060KD, 100KD,51160KD, 250KD, 400KD, 001KG, 1.6KG, 2.5KG, 004KG, 006KG, 010KG,52016KG, 025KG, 040KG, 060KG, 100KG, 160KG, 250KG, 400KG, 600KG,53800KG, 250LD, 600LD, 600LG, 2.5MD, 006MD, 010MD, 016MD, 025MD,54040MD, 060MD, 100MD, 160MD, 250MD, 400MD, 600MD, 006MG, 010MG,55016MG, 025MG, 040MG, 060MG, 100MG, 160MG, 250MG, 400MG, 600MG,56001ND, 002ND, 004ND, 005ND, 010ND, 020ND, 030ND, 002NG, 004NG,57005NG, 010NG, 020NG, 030NG, 015PA, 030PA, 060PA, 100PA, 150PA,58175PA, 001PD, 005PD, 015PD, 030PD, 060PD, 001PG, 005PG, 015PG,59030PG, 060PG, 100PG, 150PG, 175PG]60$ref: /schemas/types.yaml#/definitions/string6162honeywell,pmin-pascal:63description:64Minimum pressure value the sensor can measure in pascal.6566honeywell,pmax-pascal:67description:68Maximum pressure value the sensor can measure in pascal.6970spi-max-frequency:71maximum: 8000007273vdd-supply: true7475required:76- compatible77- reg78- vdd-supply7980oneOf:81- required:82- honeywell,pressure-triplet83- required:84- honeywell,pmin-pascal85- honeywell,pmax-pascal8687allOf:88- $ref: /schemas/spi/spi-peripheral-props.yaml89- if:90required:91- honeywell,pressure-triplet92then:93properties:94honeywell,pmin-pascal: false95honeywell,pmax-pascal: false9697additionalProperties: false9899examples:100- |101#include <dt-bindings/gpio/gpio.h>102#include <dt-bindings/interrupt-controller/irq.h>103i2c {104#address-cells = <1>;105#size-cells = <0>;106107pressure@18 {108compatible = "honeywell,abp2030pa";109reg = <0x18>;110interrupt-parent = <&gpio3>;111interrupts = <21 IRQ_TYPE_EDGE_RISING>;112113honeywell,pressure-triplet = "001BA";114vdd-supply = <&vcc_3v3>;115};116};117- |118spi {119#address-cells = <1>;120#size-cells = <0>;121122pressure@0 {123compatible = "honeywell,abp2030pa";124reg = <0>;125spi-max-frequency = <800000>;126127honeywell,pressure-triplet = "001PD";128vdd-supply = <&vcc_3v3>;129};130};131...132133134