From: Vasileios Amoiridis <vassilisamir@gmail.com>
To: "Mereena Mathai Liquancin (MS/EHM4-BST)"
<liquancin.mereenamathai@in.bosch.com>
Cc: Andy Shevchenko <andriy.shevchenko@intel.com>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"jic23@kernel.org" <jic23@kernel.org>,
"dlechner@baylibre.com" <dlechner@baylibre.com>,
"nuno.sa@analog.com" <nuno.sa@analog.com>,
"andy@kernel.org" <andy@kernel.org>,
"marcelo.schmitt1@gmail.com" <marcelo.schmitt1@gmail.com>,
"javier.carrasco.cruz@gmail.com" <javier.carrasco.cruz@gmail.com>,
"ZHANG Xu (BST/ESA2)" <Xu.Zhang@cn.bosch.com>,
"BIAN Maoting (BST/ESA2)" <Maoting.Bian@cn.bosch.com>
Subject: Re: [PATCH v1 0/2] Add BMP390 IIO driver, device tree bindings and support
Date: Mon, 23 Jun 2025 23:59:45 +0200 [thread overview]
Message-ID: <aFnOUVOE8LseQ0xm@vamoirid-laptop> (raw)
In-Reply-To: <DB9PR10MB64516B74B8FE3077E1CCE622C079A@DB9PR10MB6451.EURPRD10.PROD.OUTLOOK.COM>
On Mon, Jun 23, 2025 at 07:37:51AM +0000, Mereena Mathai Liquancin (MS/EHM4-BST) wrote:
> Hi All,
>
> I apologize for submitting such a large code patch earlier. I am currently reworking the driver to simplify the implementation and make the code easier to review and maintain.
>
> Regarding the BMP2 and BMP3 devices, there are significant differences at the register level, so direct reuse of code is not feasible. However, I will carefully consider all the valuable feedback provided by the team to ensure the next version addresses the concerns raised.
>
Hi Liquacin,
Probably I didn't explain enough in my previous message.
The driver I mentioned under driver/iio/pressure/bmp280-core.c
is driving all the BMP085, BMP18x, BMP28x, BME28x, BMP38x, BMP58x.
Even though it is called "bmp280-core". Since the BMP39x is 100%
(or almost 100%) reg compatible with the BMP38x, you can use the
existing driver to control your device.
While writing this message I went to the code to give you some
guidelines on how to add support for the chip but I noticed that
the BMP390 is already supported here [1] since
Commit b19ac45bfe50 ("iio: pressure: bmp280: Add support for BMP390").
This commit does not add a specific compatible for the BMP390 device,
but it looks like if you use the compatible = "bosch,bmp380" on your
device-tree it should work with your sensor.
I hope the situation is more clear now.
Cheers,
Vasilis
[1]: https://github.com/torvalds/linux/blob/master/drivers/iio/pressure/bmp280-core.c#L1958
> I also plan to remove some unnecessary device tree nodes and redundant logic to streamline the driver further.
>
> Thank you for taking the time to verify and review the patch. I appreciate the constructive comments and will incorporate them into the revised submission.
>
> Best regards,
>
> Liquancin Mereena Mathai
>
> BST Projects (MS/EHM3-BST)
> Bosch Global Software Technologies Private Limited
> (CIN: U72400KA1997PTC023164) | KGISL Infrastructures Private Ltd - SEZ Keeranatham Village | Coimbatore | Tamil Nadu - 641035 | INDIA | www.bosch-softwaretechnologies.com
> Liquancin.MereenaMathai@in.bosch.com
>
> Registered Office: Bosch Global Software Technologies Private Limited - (CIN: U72400KA1997PTC023164)
> (Formerly known as Robert Bosch Engineering and Business Solutions Pvt. Ltd.)
> 123, Industrial Layout, Hosur Road, Koramangala, Bengaluru - 560095, India
> Managing Director: Mr. Dattatri Salagame
>
> -----Original Message-----
> From: Andy Shevchenko <andriy.shevchenko@intel.com>
> Sent: Monday, June 23, 2025 12:37 PM
> To: Mereena Mathai Liquancin (MS/EHM4-BST) <liquancin.mereenamathai@in.bosch.com>
> Cc: linux-iio@vger.kernel.org; linux-kernel@vger.kernel.org; jic23@kernel.org; dlechner@baylibre.com; nuno.sa@analog.com; andy@kernel.org; vassilisamir@gmail.com; marcelo.schmitt1@gmail.com; javier.carrasco.cruz@gmail.com; ZHANG Xu (BST/ESA2) <Xu.Zhang@cn.bosch.com>; BIAN Maoting (BST/ESA2) <Maoting.Bian@cn.bosch.com>
> Subject: Re: [PATCH v1 0/2] Add BMP390 IIO driver, device tree bindings and support
>
> On Fri, Jun 20, 2025 at 10:24:53AM +0530, liquancin.mereenamathai@in.bosch.com wrote:
> > From: Liquancin Mereena Mathai <liquancin.mereenamathai@in.bosch.com>
> >
> > This patch series adds support for the Bosch BMP390 pressure sensor to
> > the Linux IIO subsystem. It includes the main driver implementation as
> > well as the necessary device tree bindings for integration on supported platforms.
> >
> > Patch 1 adds the IIO driver for the BMP390 pressure sensor.
> > Patch 2 introduces the device tree bindings documentation.
>
> > 16 files changed, 7296 insertions(+)
>
> You are kidding me.
> Please, take your time to start with something really basic.
> Also, can you explain how this driver is not duplicate of the (any of the) existing ones in IIO?
>
>
> --
> With Best Regards,
> Andy Shevchenko
>
>
prev parent reply other threads:[~2025-06-23 21:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-20 4:54 [PATCH v1 0/2] Add BMP390 IIO driver, device tree bindings and support liquancin.mereenamathai
2025-06-20 4:54 ` [PATCH v1 1/2] Add the iio driver for bosch pressure sensor bmp390. The bmp390 is a pressure sensor module. It will support SPI and I2C protocol based on configuration liquancin.mereenamathai
2025-06-20 5:49 ` Krzysztof Kozlowski
2025-06-20 13:19 ` David Lechner
2025-06-21 8:55 ` kernel test robot
2025-06-22 16:08 ` Jonathan Cameron
2025-06-20 4:54 ` [PATCH v1 2/2] dt-bindings: iio driver: Add BMP390 pressure sensor device tree binding liquancin.mereenamathai
2025-06-20 5:45 ` Krzysztof Kozlowski
2025-06-22 15:06 ` [PATCH v1 0/2] Add BMP390 IIO driver, device tree bindings and support Jonathan Cameron
2025-06-22 22:34 ` Vasileios Amoiridis
2025-06-23 7:07 ` Andy Shevchenko
2025-06-23 7:37 ` Mereena Mathai Liquancin (MS/EHM4-BST)
2025-06-23 21:59 ` Vasileios Amoiridis [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aFnOUVOE8LseQ0xm@vamoirid-laptop \
--to=vassilisamir@gmail.com \
--cc=Maoting.Bian@cn.bosch.com \
--cc=Xu.Zhang@cn.bosch.com \
--cc=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=javier.carrasco.cruz@gmail.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liquancin.mereenamathai@in.bosch.com \
--cc=marcelo.schmitt1@gmail.com \
--cc=nuno.sa@analog.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox