# SPDX-License-Identifier: Apache-2.0 # # SPL06-001 / DPS310 气压计 binding(I2C)。两芯片为同一 die, # 寄存器/系数/补偿公式一致。 # # DPS310 节点直接使用上游 "infineon,dps310" compatible(binding 位于 # zephyr/dts/bindings/sensor/infineon,dps310.yaml);本模块不再自带同名 # binding,否则 edtlib 会因 compatible 重复报错。驱动通过 CONFIG_DPS310=n # 让本模块代码接管该节点,属性缺失时使用代码内默认值(16x)。 # # Example: # # &i2c1 { # spl06: spl06@77 { # compatible = "misaki,spl06"; # reg = <0x77>; # press-osr = <16>; # temp-osr = <16>; # status = "okay"; # }; # }; description: Goertek SPL06-001 / Infineon DPS310 barometric pressure sensor (I2C, same die) compatible: "misaki,spl06" include: [sensor-device.yaml, i2c-device.yaml] properties: reg: required: true description: | I2C address: 0x77 when SDO is high/floating, 0x76 when SDO is pulled down to GND. Both chips share ID 0x10 — the chip cannot identify itself; bus/address is the only discriminator. press-osr: type: int default: 16 enum: [1, 2, 4, 8, 16, 32, 64, 128] description: | Pressure oversampling ratio. Higher OSR gives lower noise at the cost of longer conversion time (16x ~ 28 ms, 128x ~ 207 ms). The compensation scale factor kP is selected from this value. Betaflight uses 16x. temp-osr: type: int default: 16 enum: [8, 16, 32] description: | Temperature oversampling ratio. Must be 8/16/32 whenever press-osr > 8. Temperature source (TMP_CFG bit7): SPL06-001 always uses the MEMS element source; DPS310 follows the chip's COEF_SRCE flag at runtime (Betaflight behaviour). Betaflight uses 16x.