18d13bc63SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 28d13bc63SEmmanuel Vadot%YAML 1.2 38d13bc63SEmmanuel Vadot--- 48d13bc63SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/pressure/honeywell,hsc030pa.yaml# 58d13bc63SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68d13bc63SEmmanuel Vadot 78d13bc63SEmmanuel Vadottitle: Honeywell TruStability HSC and SSC pressure sensor series 88d13bc63SEmmanuel Vadot 98d13bc63SEmmanuel Vadotdescription: | 108d13bc63SEmmanuel Vadot support for Honeywell TruStability HSC and SSC digital pressure sensor 118d13bc63SEmmanuel Vadot series. 128d13bc63SEmmanuel Vadot 138d13bc63SEmmanuel Vadot These sensors have either an I2C, an SPI or an analog interface. Only the 148d13bc63SEmmanuel Vadot digital versions are supported by this driver. 158d13bc63SEmmanuel Vadot 168d13bc63SEmmanuel Vadot There are 118 models with different pressure ranges available in each family. 178d13bc63SEmmanuel Vadot The vendor calls them "HSC series" and "SSC series". All of them have an 188d13bc63SEmmanuel Vadot identical programming model but differ in pressure range, unit and transfer 198d13bc63SEmmanuel Vadot function. 208d13bc63SEmmanuel Vadot 218d13bc63SEmmanuel Vadot To support different models one needs to specify the pressure range as well 228d13bc63SEmmanuel Vadot as the transfer function. Pressure range can either be provided via 238d13bc63SEmmanuel Vadot pressure-triplet (directly extracted from the part number) or in case it's 248d13bc63SEmmanuel Vadot a custom chip via numerical range limits converted to pascals. 258d13bc63SEmmanuel Vadot 268d13bc63SEmmanuel Vadot The transfer function defines the ranges of raw conversion values delivered 278d13bc63SEmmanuel Vadot by the sensor. pmin-pascal and pmax-pascal corespond to the minimum and 288d13bc63SEmmanuel Vadot maximum pressure that can be measured. 298d13bc63SEmmanuel Vadot 308d13bc63SEmmanuel Vadot Please note that in case of an SPI-based sensor, the clock signal should not 318d13bc63SEmmanuel Vadot exceed 800kHz and the MOSI signal is not required. 328d13bc63SEmmanuel Vadot 338d13bc63SEmmanuel Vadot Specifications about the devices can be found at: 348d13bc63SEmmanuel 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 358d13bc63SEmmanuel 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 368d13bc63SEmmanuel Vadot 378d13bc63SEmmanuel Vadotmaintainers: 388d13bc63SEmmanuel Vadot - Petre Rodan <petre.rodan@subdimension.ro> 398d13bc63SEmmanuel Vadot 408d13bc63SEmmanuel Vadotproperties: 418d13bc63SEmmanuel Vadot compatible: 428d13bc63SEmmanuel Vadot const: honeywell,hsc030pa 438d13bc63SEmmanuel Vadot 448d13bc63SEmmanuel Vadot reg: 458d13bc63SEmmanuel Vadot maxItems: 1 468d13bc63SEmmanuel Vadot 478d13bc63SEmmanuel Vadot honeywell,transfer-function: 488d13bc63SEmmanuel Vadot description: | 498d13bc63SEmmanuel Vadot Transfer function which defines the range of valid values delivered by 508d13bc63SEmmanuel Vadot the sensor. 518d13bc63SEmmanuel Vadot 0 - A, 10% to 90% of 2^14 528d13bc63SEmmanuel Vadot 1 - B, 5% to 95% of 2^14 538d13bc63SEmmanuel Vadot 2 - C, 5% to 85% of 2^14 548d13bc63SEmmanuel Vadot 3 - F, 4% to 94% of 2^14 558d13bc63SEmmanuel Vadot enum: [0, 1, 2, 3] 568d13bc63SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 578d13bc63SEmmanuel Vadot 588d13bc63SEmmanuel Vadot honeywell,pressure-triplet: 598d13bc63SEmmanuel Vadot description: | 608d13bc63SEmmanuel Vadot Case-sensitive five character string that defines pressure range, unit 618d13bc63SEmmanuel Vadot and type as part of the device nomenclature. In the unlikely case of a 628d13bc63SEmmanuel Vadot custom chip, set to "NA" and provide pmin-pascal and pmax-pascal. 638d13bc63SEmmanuel Vadot enum: [001BA, 1.6BA, 2.5BA, 004BA, 006BA, 010BA, 1.6MD, 2.5MD, 004MD, 648d13bc63SEmmanuel Vadot 006MD, 010MD, 016MD, 025MD, 040MD, 060MD, 100MD, 160MD, 250MD, 658d13bc63SEmmanuel Vadot 400MD, 600MD, 001BD, 1.6BD, 2.5BD, 004BD, 2.5MG, 004MG, 006MG, 668d13bc63SEmmanuel Vadot 010MG, 016MG, 025MG, 040MG, 060MG, 100MG, 160MG, 250MG, 400MG, 678d13bc63SEmmanuel Vadot 600MG, 001BG, 1.6BG, 2.5BG, 004BG, 006BG, 010BG, 100KA, 160KA, 688d13bc63SEmmanuel Vadot 250KA, 400KA, 600KA, 001GA, 160LD, 250LD, 400LD, 600LD, 001KD, 698d13bc63SEmmanuel Vadot 1.6KD, 2.5KD, 004KD, 006KD, 010KD, 016KD, 025KD, 040KD, 060KD, 708d13bc63SEmmanuel Vadot 100KD, 160KD, 250KD, 400KD, 250LG, 400LG, 600LG, 001KG, 1.6KG, 718d13bc63SEmmanuel Vadot 2.5KG, 004KG, 006KG, 010KG, 016KG, 025KG, 040KG, 060KG, 100KG, 728d13bc63SEmmanuel Vadot 160KG, 250KG, 400KG, 600KG, 001GG, 015PA, 030PA, 060PA, 100PA, 738d13bc63SEmmanuel Vadot 150PA, 0.5ND, 001ND, 002ND, 004ND, 005ND, 010ND, 020ND, 030ND, 748d13bc63SEmmanuel Vadot 001PD, 005PD, 015PD, 030PD, 060PD, 001NG, 002NG, 004NG, 005NG, 758d13bc63SEmmanuel Vadot 010NG, 020NG, 030NG, 001PG, 005PG, 015PG, 030PG, 060PG, 100PG, 768d13bc63SEmmanuel Vadot 150PG, NA] 778d13bc63SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/string 788d13bc63SEmmanuel Vadot 798d13bc63SEmmanuel Vadot honeywell,pmin-pascal: 808d13bc63SEmmanuel Vadot description: | 818d13bc63SEmmanuel Vadot Minimum pressure value the sensor can measure in pascal. 828d13bc63SEmmanuel Vadot To be specified only if honeywell,pressure-triplet is set to "NA". 838d13bc63SEmmanuel Vadot 848d13bc63SEmmanuel Vadot honeywell,pmax-pascal: 858d13bc63SEmmanuel Vadot description: | 868d13bc63SEmmanuel Vadot Maximum pressure value the sensor can measure in pascal. 878d13bc63SEmmanuel Vadot To be specified only if honeywell,pressure-triplet is set to "NA". 888d13bc63SEmmanuel Vadot 898d13bc63SEmmanuel Vadot vdd-supply: 908d13bc63SEmmanuel Vadot description: 918d13bc63SEmmanuel Vadot Provide VDD power to the sensor (either 3.3V or 5V depending on the chip) 928d13bc63SEmmanuel Vadot 938d13bc63SEmmanuel Vadot spi-max-frequency: 948d13bc63SEmmanuel Vadot maximum: 800000 958d13bc63SEmmanuel Vadot 968d13bc63SEmmanuel Vadotrequired: 978d13bc63SEmmanuel Vadot - compatible 988d13bc63SEmmanuel Vadot - reg 998d13bc63SEmmanuel Vadot - honeywell,transfer-function 1008d13bc63SEmmanuel Vadot - honeywell,pressure-triplet 1018d13bc63SEmmanuel Vadot 102*01950c46SEmmanuel VadotallOf: 103*01950c46SEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml 104*01950c46SEmmanuel Vadot 1058d13bc63SEmmanuel VadotadditionalProperties: false 1068d13bc63SEmmanuel Vadot 1078d13bc63SEmmanuel VadotdependentSchemas: 1088d13bc63SEmmanuel Vadot honeywell,pmin-pascal: 1098d13bc63SEmmanuel Vadot properties: 1108d13bc63SEmmanuel Vadot honeywell,pressure-triplet: 1118d13bc63SEmmanuel Vadot const: NA 1128d13bc63SEmmanuel Vadot honeywell,pmax-pascal: 1138d13bc63SEmmanuel Vadot properties: 1148d13bc63SEmmanuel Vadot honeywell,pressure-triplet: 1158d13bc63SEmmanuel Vadot const: NA 1168d13bc63SEmmanuel Vadot 1178d13bc63SEmmanuel Vadotexamples: 1188d13bc63SEmmanuel Vadot - | 1198d13bc63SEmmanuel Vadot i2c { 1208d13bc63SEmmanuel Vadot #address-cells = <1>; 1218d13bc63SEmmanuel Vadot #size-cells = <0>; 1228d13bc63SEmmanuel Vadot 1238d13bc63SEmmanuel Vadot pressure@28 { 1248d13bc63SEmmanuel Vadot compatible = "honeywell,hsc030pa"; 1258d13bc63SEmmanuel Vadot reg = <0x28>; 1268d13bc63SEmmanuel Vadot honeywell,transfer-function = <0>; 1278d13bc63SEmmanuel Vadot honeywell,pressure-triplet = "030PA"; 1288d13bc63SEmmanuel Vadot }; 1298d13bc63SEmmanuel Vadot }; 1308d13bc63SEmmanuel Vadot - | 1318d13bc63SEmmanuel Vadot spi { 1328d13bc63SEmmanuel Vadot #address-cells = <1>; 1338d13bc63SEmmanuel Vadot #size-cells = <0>; 1348d13bc63SEmmanuel Vadot 1358d13bc63SEmmanuel Vadot pressure@0 { 1368d13bc63SEmmanuel Vadot compatible = "honeywell,hsc030pa"; 1378d13bc63SEmmanuel Vadot reg = <0>; 1388d13bc63SEmmanuel Vadot spi-max-frequency = <800000>; 1398d13bc63SEmmanuel Vadot honeywell,transfer-function = <0>; 1408d13bc63SEmmanuel Vadot honeywell,pressure-triplet = "NA"; 1418d13bc63SEmmanuel Vadot honeywell,pmin-pascal = <0>; 1428d13bc63SEmmanuel Vadot honeywell,pmax-pascal = <200000>; 1438d13bc63SEmmanuel Vadot }; 1448d13bc63SEmmanuel Vadot }; 1458d13bc63SEmmanuel Vadot... 146