Re: [PATCH 3/3] iio: pressure: dps310: add Goermicro SPL07-003 support

From: Jonathan Cameron

Date: Sat Nov 21 2026 - 20:42:01 EST


On Tue, 17 Nov 2026 09:39:54 +0100
Jorijn van der Graaf <jorijnvdgraaf@xxxxxxxxxxxxx> wrote:

> The Goermicro SPL07-003 needs what the ZTS8032 chip data already
> describes: c31 and c40 in the pressure polynomial, and TMP_CFG bit 7, a
> rate bit on this chip too, left clear. Its TMP_EXT is MEAS_CFG bit 3 and
> stays at the reset value, the internal sensor the datasheet recommends.
>
> Its c31 and c40 are 12 bit values packed into 0x22-0x24, where the
> ZTS8032 has 16 bit values in 0x22-0x25, so the coefficient block is 21
> bytes. Add a chip flag for that layout, the chip data and the I2C and OF
> IDs.
>
> Tested on a Fairphone (Gen. 6). The DPS310 temperature workaround skips
> this unit: bit 1 of register 0x32 is set.
>
> Datasheet: https://media.digikey.com/pdf/Data%20Sheets/Goertek%20Microelectronics%20PDFs/SPL07-003.pdf
> Signed-off-by: Jorijn van der Graaf <jorijnvdgraaf@xxxxxxxxxxxxx>

Applied with one minor tweak to the testing branch of iio.git. That means
they are queued up for the next merge window.

thanks,

Jonathan

> @@ -1495,12 +1517,14 @@ static int dps310_probe(struct i2c_client *client)
>
> static const struct i2c_device_id dps310_id[] = {
> { .name = "dps310", .driver_data = (kernel_ulong_t)&dps310_chip_info },
> + { .name = "spl07-003", .driver_data = (kernel_ulong_t)&spl07_chip_info },

Only thing I tweaked was to swap the two above around so we are in the same order
in both tables. The reasoning being that all sorts of bugs are a result
of mismatched entrees and having them on same order makes that less likely.

> { .name = "zts8032", .driver_data = (kernel_ulong_t)&zts8032_chip_info },
> { }
> };
> MODULE_DEVICE_TABLE(i2c, dps310_id);
>
> static const struct of_device_id dps310_of_match[] = {
> + { .compatible = "goermicro,spl07-003", .data = &spl07_chip_info },
> { .compatible = "infineon,dps310", .data = &dps310_chip_info },
> { .compatible = "zilltek,zts8032", .data = &zts8032_chip_info },
> { }