From ad11483b437377af920b2928b88193b3186ab562 Mon Sep 17 00:00:00 2001 From: Toxpox Date: Tue, 11 Aug 2026 16:26:37 +0300 Subject: [PATCH] fix: bind the onboard barometer to the LPS22DF driver Update only the onboard barometer, which is an ST LPS22DFTR rather than a BMP390-compatible spidev device. Bind it to the LPS22DF IIO driver and limit its SPI clock to 8 MHz, as recommended for output data rates up to 50 Hz. Signed-off-by: Toxpox --- arch/arm64/boot/dts/ti/k3-am67a-t3-gem-o1.dts | 4 ++-- drivers/spi/spidev.c | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-am67a-t3-gem-o1.dts b/arch/arm64/boot/dts/ti/k3-am67a-t3-gem-o1.dts index e27a066eba6e4..b7b7da00a4842 100644 --- a/arch/arm64/boot/dts/ti/k3-am67a-t3-gem-o1.dts +++ b/arch/arm64/boot/dts/ti/k3-am67a-t3-gem-o1.dts @@ -887,9 +887,9 @@ #size-cells = <0>; pressure@1 { - spi-max-frequency = <50000000>; + spi-max-frequency = <8000000>; reg = <1>; - compatible = "bosch,bmp390-spidev"; + compatible = "st,lps22df"; }; imu@3 { diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 3ded4f188055f..b568481e9c3a2 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -709,7 +709,6 @@ static const struct spi_device_id spidev_spi_ids[] = { { .name = "m53cpld" }, { .name = "spi-petra" }, { .name = "spi-authenta" }, - { .name = "bmp390-spidev" }, { .name = "icm20948-spidev" }, { .name = "em3581" }, { .name = "si3210" }, @@ -738,7 +737,6 @@ static const struct of_device_id spidev_dt_ids[] = { { .compatible = "lwn,bk4", .data = &spidev_of_check }, { .compatible = "menlo,m53cpld", .data = &spidev_of_check }, { .compatible = "micron,spi-authenta", .data = &spidev_of_check }, - { .compatible = "bosch,bmp390-spidev", .data = &spidev_of_check }, { .compatible = "invensense,icm20948-spidev", .data = &spidev_of_check }, { .compatible = "rohm,bh2228fv", .data = &spidev_of_check }, { .compatible = "rohm,dh2228fv", .data = &spidev_of_check },