1*8d13bc63SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*8d13bc63SEmmanuel Vadot%YAML 1.2 3*8d13bc63SEmmanuel Vadot--- 4*8d13bc63SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/pressure/honeywell,hsc030pa.yaml# 5*8d13bc63SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*8d13bc63SEmmanuel Vadot 7*8d13bc63SEmmanuel Vadottitle: Honeywell TruStability HSC and SSC pressure sensor series 8*8d13bc63SEmmanuel Vadot 9*8d13bc63SEmmanuel Vadotdescription: | 10*8d13bc63SEmmanuel Vadot support for Honeywell TruStability HSC and SSC digital pressure sensor 11*8d13bc63SEmmanuel Vadot series. 12*8d13bc63SEmmanuel Vadot 13*8d13bc63SEmmanuel Vadot These sensors have either an I2C, an SPI or an analog interface. Only the 14*8d13bc63SEmmanuel Vadot digital versions are supported by this driver. 15*8d13bc63SEmmanuel Vadot 16*8d13bc63SEmmanuel Vadot There are 118 models with different pressure ranges available in each family. 17*8d13bc63SEmmanuel Vadot The vendor calls them "HSC series" and "SSC series". All of them have an 18*8d13bc63SEmmanuel Vadot identical programming model but differ in pressure range, unit and transfer 19*8d13bc63SEmmanuel Vadot function. 20*8d13bc63SEmmanuel Vadot 21*8d13bc63SEmmanuel Vadot To support different models one needs to specify the pressure range as well 22*8d13bc63SEmmanuel Vadot as the transfer function. Pressure range can either be provided via 23*8d13bc63SEmmanuel Vadot pressure-triplet (directly extracted from the part number) or in case it's 24*8d13bc63SEmmanuel Vadot a custom chip via numerical range limits converted to pascals. 25*8d13bc63SEmmanuel Vadot 26*8d13bc63SEmmanuel Vadot The transfer function defines the ranges of raw conversion values delivered 27*8d13bc63SEmmanuel Vadot by the sensor. pmin-pascal and pmax-pascal corespond to the minimum and 28*8d13bc63SEmmanuel Vadot maximum pressure that can be measured. 29*8d13bc63SEmmanuel Vadot 30*8d13bc63SEmmanuel Vadot Please note that in case of an SPI-based sensor, the clock signal should not 31*8d13bc63SEmmanuel Vadot exceed 800kHz and the MOSI signal is not required. 32*8d13bc63SEmmanuel Vadot 33*8d13bc63SEmmanuel Vadot Specifications about the devices can be found at: 34*8d13bc63SEmmanuel Vadot https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/board-mount-pressure-sensors/trustability-hsc-series/documents/sps-siot-trustability-hsc-series-high-accuracy-board-mount-pressure-sensors-50099148-a-en-ciid-151133.pdf 35*8d13bc63SEmmanuel Vadot https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/board-mount-pressure-sensors/trustability-ssc-series/documents/sps-siot-trustability-ssc-series-standard-accuracy-board-mount-pressure-sensors-50099533-a-en-ciid-151134.pdf 36*8d13bc63SEmmanuel Vadot 37*8d13bc63SEmmanuel Vadotmaintainers: 38*8d13bc63SEmmanuel Vadot - Petre Rodan <petre.rodan@subdimension.ro> 39*8d13bc63SEmmanuel Vadot 40*8d13bc63SEmmanuel Vadotproperties: 41*8d13bc63SEmmanuel Vadot compatible: 42*8d13bc63SEmmanuel Vadot const: honeywell,hsc030pa 43*8d13bc63SEmmanuel Vadot 44*8d13bc63SEmmanuel Vadot reg: 45*8d13bc63SEmmanuel Vadot maxItems: 1 46*8d13bc63SEmmanuel Vadot 47*8d13bc63SEmmanuel Vadot honeywell,transfer-function: 48*8d13bc63SEmmanuel Vadot description: | 49*8d13bc63SEmmanuel Vadot Transfer function which defines the range of valid values delivered by 50*8d13bc63SEmmanuel Vadot the sensor. 51*8d13bc63SEmmanuel Vadot 0 - A, 10% to 90% of 2^14 52*8d13bc63SEmmanuel Vadot 1 - B, 5% to 95% of 2^14 53*8d13bc63SEmmanuel Vadot 2 - C, 5% to 85% of 2^14 54*8d13bc63SEmmanuel Vadot 3 - F, 4% to 94% of 2^14 55*8d13bc63SEmmanuel Vadot enum: [0, 1, 2, 3] 56*8d13bc63SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 57*8d13bc63SEmmanuel Vadot 58*8d13bc63SEmmanuel Vadot honeywell,pressure-triplet: 59*8d13bc63SEmmanuel Vadot description: | 60*8d13bc63SEmmanuel Vadot Case-sensitive five character string that defines pressure range, unit 61*8d13bc63SEmmanuel Vadot and type as part of the device nomenclature. In the unlikely case of a 62*8d13bc63SEmmanuel Vadot custom chip, set to "NA" and provide pmin-pascal and pmax-pascal. 63*8d13bc63SEmmanuel Vadot enum: [001BA, 1.6BA, 2.5BA, 004BA, 006BA, 010BA, 1.6MD, 2.5MD, 004MD, 64*8d13bc63SEmmanuel Vadot 006MD, 010MD, 016MD, 025MD, 040MD, 060MD, 100MD, 160MD, 250MD, 65*8d13bc63SEmmanuel Vadot 400MD, 600MD, 001BD, 1.6BD, 2.5BD, 004BD, 2.5MG, 004MG, 006MG, 66*8d13bc63SEmmanuel Vadot 010MG, 016MG, 025MG, 040MG, 060MG, 100MG, 160MG, 250MG, 400MG, 67*8d13bc63SEmmanuel Vadot 600MG, 001BG, 1.6BG, 2.5BG, 004BG, 006BG, 010BG, 100KA, 160KA, 68*8d13bc63SEmmanuel Vadot 250KA, 400KA, 600KA, 001GA, 160LD, 250LD, 400LD, 600LD, 001KD, 69*8d13bc63SEmmanuel Vadot 1.6KD, 2.5KD, 004KD, 006KD, 010KD, 016KD, 025KD, 040KD, 060KD, 70*8d13bc63SEmmanuel Vadot 100KD, 160KD, 250KD, 400KD, 250LG, 400LG, 600LG, 001KG, 1.6KG, 71*8d13bc63SEmmanuel Vadot 2.5KG, 004KG, 006KG, 010KG, 016KG, 025KG, 040KG, 060KG, 100KG, 72*8d13bc63SEmmanuel Vadot 160KG, 250KG, 400KG, 600KG, 001GG, 015PA, 030PA, 060PA, 100PA, 73*8d13bc63SEmmanuel Vadot 150PA, 0.5ND, 001ND, 002ND, 004ND, 005ND, 010ND, 020ND, 030ND, 74*8d13bc63SEmmanuel Vadot 001PD, 005PD, 015PD, 030PD, 060PD, 001NG, 002NG, 004NG, 005NG, 75*8d13bc63SEmmanuel Vadot 010NG, 020NG, 030NG, 001PG, 005PG, 015PG, 030PG, 060PG, 100PG, 76*8d13bc63SEmmanuel Vadot 150PG, NA] 77*8d13bc63SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/string 78*8d13bc63SEmmanuel Vadot 79*8d13bc63SEmmanuel Vadot honeywell,pmin-pascal: 80*8d13bc63SEmmanuel Vadot description: | 81*8d13bc63SEmmanuel Vadot Minimum pressure value the sensor can measure in pascal. 82*8d13bc63SEmmanuel Vadot To be specified only if honeywell,pressure-triplet is set to "NA". 83*8d13bc63SEmmanuel Vadot 84*8d13bc63SEmmanuel Vadot honeywell,pmax-pascal: 85*8d13bc63SEmmanuel Vadot description: | 86*8d13bc63SEmmanuel Vadot Maximum pressure value the sensor can measure in pascal. 87*8d13bc63SEmmanuel Vadot To be specified only if honeywell,pressure-triplet is set to "NA". 88*8d13bc63SEmmanuel Vadot 89*8d13bc63SEmmanuel Vadot vdd-supply: 90*8d13bc63SEmmanuel Vadot description: 91*8d13bc63SEmmanuel Vadot Provide VDD power to the sensor (either 3.3V or 5V depending on the chip) 92*8d13bc63SEmmanuel Vadot 93*8d13bc63SEmmanuel Vadot spi-max-frequency: 94*8d13bc63SEmmanuel Vadot maximum: 800000 95*8d13bc63SEmmanuel Vadot 96*8d13bc63SEmmanuel Vadotrequired: 97*8d13bc63SEmmanuel Vadot - compatible 98*8d13bc63SEmmanuel Vadot - reg 99*8d13bc63SEmmanuel Vadot - honeywell,transfer-function 100*8d13bc63SEmmanuel Vadot - honeywell,pressure-triplet 101*8d13bc63SEmmanuel Vadot 102*8d13bc63SEmmanuel VadotadditionalProperties: false 103*8d13bc63SEmmanuel Vadot 104*8d13bc63SEmmanuel VadotdependentSchemas: 105*8d13bc63SEmmanuel Vadot honeywell,pmin-pascal: 106*8d13bc63SEmmanuel Vadot properties: 107*8d13bc63SEmmanuel Vadot honeywell,pressure-triplet: 108*8d13bc63SEmmanuel Vadot const: NA 109*8d13bc63SEmmanuel Vadot honeywell,pmax-pascal: 110*8d13bc63SEmmanuel Vadot properties: 111*8d13bc63SEmmanuel Vadot honeywell,pressure-triplet: 112*8d13bc63SEmmanuel Vadot const: NA 113*8d13bc63SEmmanuel Vadot 114*8d13bc63SEmmanuel Vadotexamples: 115*8d13bc63SEmmanuel Vadot - | 116*8d13bc63SEmmanuel Vadot i2c { 117*8d13bc63SEmmanuel Vadot #address-cells = <1>; 118*8d13bc63SEmmanuel Vadot #size-cells = <0>; 119*8d13bc63SEmmanuel Vadot 120*8d13bc63SEmmanuel Vadot pressure@28 { 121*8d13bc63SEmmanuel Vadot compatible = "honeywell,hsc030pa"; 122*8d13bc63SEmmanuel Vadot reg = <0x28>; 123*8d13bc63SEmmanuel Vadot honeywell,transfer-function = <0>; 124*8d13bc63SEmmanuel Vadot honeywell,pressure-triplet = "030PA"; 125*8d13bc63SEmmanuel Vadot }; 126*8d13bc63SEmmanuel Vadot }; 127*8d13bc63SEmmanuel Vadot - | 128*8d13bc63SEmmanuel Vadot spi { 129*8d13bc63SEmmanuel Vadot #address-cells = <1>; 130*8d13bc63SEmmanuel Vadot #size-cells = <0>; 131*8d13bc63SEmmanuel Vadot 132*8d13bc63SEmmanuel Vadot pressure@0 { 133*8d13bc63SEmmanuel Vadot compatible = "honeywell,hsc030pa"; 134*8d13bc63SEmmanuel Vadot reg = <0>; 135*8d13bc63SEmmanuel Vadot spi-max-frequency = <800000>; 136*8d13bc63SEmmanuel Vadot honeywell,transfer-function = <0>; 137*8d13bc63SEmmanuel Vadot honeywell,pressure-triplet = "NA"; 138*8d13bc63SEmmanuel Vadot honeywell,pmin-pascal = <0>; 139*8d13bc63SEmmanuel Vadot honeywell,pmax-pascal = <200000>; 140*8d13bc63SEmmanuel Vadot }; 141*8d13bc63SEmmanuel Vadot }; 142*8d13bc63SEmmanuel Vadot... 143