public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Justin Weiss <justin@justinweiss.com>
To: Jonathan Cameron <jic23@kernel.org>
Cc: "Alex Lanzano" <lanzano.alex@gmail.com>,
	"Lars-Peter Clausen" <lars@metafoo.de>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
	"Derek J . Clark" <derekjohn.clark@gmail.com>,
	"Philip Müller" <philm@manjaro.org>
Subject: Re: [PATCH 1/3] iio: imu: Add i2c driver for bmi260 imu
Date: Sun, 13 Oct 2024 13:36:51 -0700	[thread overview]
Message-ID: <87jzeboi3g.fsf@justinweiss.com> (raw)
In-Reply-To: <20241013161457.506c2296@jic23-huawei> (Jonathan Cameron's message of "Sun, 13 Oct 2024 16:14:57 +0100")

Jonathan Cameron <jic23@kernel.org> writes:

>> >> +static const struct acpi_device_id bmi270_acpi_match[] = {
>> >> +	{ "BOSC0260", (kernel_ulong_t)&bmi270_chip_info[BMI260] },
>> >> +	{ "BMI0260",  (kernel_ulong_t)&bmi270_chip_info[BMI260] },
>> >> +	{ "BOSC0160", (kernel_ulong_t)&bmi270_chip_info[BMI260] },
>> >> +	{ "BMI0160",  (kernel_ulong_t)&bmi270_chip_info[BMI260] },  
>> >
>> > Sigh.  That's not a valid ACPI ID or PNP ID.
>> > (Well technically it is, but it belongs to the Benson Instrument Company
>> > not Bosch)
>> >
>> > Which of these have been seen in the wild?
>> > For any that are not of the BOSC0160 type form add a comment giving
>> > a device on which they are in use.  
>> 
>> I know of the BMI0160 (this seems to be the most common way the BMI260
>> is identified on handheld PCs), and the 10EC5280 has been seen in the
>> wild, as described here:
>> https://lore.kernel.org/all/CAFqHKTm2WRNkcSoBEE=oNbfu_9d9RagQHLydmv6q1=snO_MXyA@mail.gmail.com/
>> 
>> I have not personally seen any devices using BMI0260, but I'll add
>> comments to the BMI0160 and 10EC5280 entries with some examples of
>> devices that use those IDs.
>
> Drop any we don't have evidence are out there.
>
> Do we have any confirmation from Bosch (or products in the wild) for
> the structurally correct BOSC0160 etc?  Those would normally have
> to be tracked by Bosch as allocated for this purpose.
>

I haven't seen any reported, but the Windows driver INF has all five of
these entries listed. I don't see any evidence of the BOSC0160 or
BOSC0260 being used other than that Windows driver file.

BMI0160 seems by far the most common, with some appearances of 10EC5280
(some AYANEO devices, possibly some GPD Win Max 2 devices) and BMI0260
(OrangePi NEO).

>> 
>> >> +	{ "10EC5280", (kernel_ulong_t)&bmi270_chip_info[BMI260] },  
>> >
>> > What's this one?  There is no such vendor ID.
>> >  
>>
> ...
>
>> >>  
>> >>  static const struct of_device_id bmi270_of_match[] = {
>> >> -	{ .compatible = "bosch,bmi270" },
>> >> +	{ .compatible = "bosch,bmi270", .data = &bmi270_chip_info[BMI270] },  
>> >
>> > If the bmi260 supports SPI, should be added here as well. (I've no idea if it does!)
>> >
>> > Or is this because you can't test it?  
>> 
>> Yeah, it was because I can't test it, the BMI260 does support SPI. I can
>> add entries here, though.
>> 
>> Should the ACPI match entries from I2C also go here? All of the devices
>> with mismatched IDs seem to use I2C so there might not be as much of a
>> problem here.
> We want the incorrect formatted ones to be as hard to use as possible to discourage
> them going into new products.  Can't do anything to solve the i2c cases
> but definitely don't want to allow them for SPI as well if no evidence
> of products where it yet matters.
>
> If we have confirmation from Bosch of the BOSC forms, then those I would like
> in the SPI drivers as well (to point to the correct option for anyone using
> this in future!)
>
> Jonathan
>  

Agreed. Since we don't have confirmation of the correct values here or
any that are in use, I would be OK either adding the single BOSC0260
entry (as a guess, which may or may not be used) or leaving it out
entirely until an entry is needed.

Justin

>> 
>> >>  	{ }
>> >>  };
>> >>    
>> 
>> Thanks again,
>> Justin

  reply	other threads:[~2024-10-13 20:36 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-11 15:37 [PATCH 0/3] Add i2c driver for Bosch BMI260 IMU Justin Weiss
2024-10-11 15:37 ` [PATCH 1/3] iio: imu: Add i2c driver for bmi260 imu Justin Weiss
2024-10-12 11:08   ` Jonathan Cameron
2024-10-13  2:41     ` Justin Weiss
2024-10-13 15:14       ` Jonathan Cameron
2024-10-13 20:36         ` Justin Weiss [this message]
2024-10-14 18:50           ` Jonathan Cameron
2024-10-11 15:37 ` [PATCH 2/3] iio: imu: Add triggered buffer for Bosch BMI270 IMU Justin Weiss
2024-10-12 11:18   ` Jonathan Cameron
2024-10-13  2:43     ` Justin Weiss
2024-10-13 15:17       ` Jonathan Cameron
2024-10-13 20:54         ` Justin Weiss
2024-10-14 19:01           ` Jonathan Cameron
2024-10-11 15:37 ` [PATCH 3/3] iio: imu: Add scale and sampling frequency to " Justin Weiss
2024-10-12 11:35   ` Jonathan Cameron
2024-10-13  2:45     ` Justin Weiss
2024-10-13 15:40       ` Jonathan Cameron
2024-10-13 20:55         ` Justin Weiss
2024-10-14 19:11           ` Jonathan Cameron
2024-10-16  1:20             ` Justin Weiss
2024-10-18 18:02               ` Jonathan Cameron
2024-10-12 10:57 ` [PATCH 0/3] Add i2c driver for Bosch BMI260 IMU Jonathan Cameron
2024-10-13  2:36   ` Justin Weiss

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=87jzeboi3g.fsf@justinweiss.com \
    --to=justin@justinweiss.com \
    --cc=derekjohn.clark@gmail.com \
    --cc=jic23@kernel.org \
    --cc=lanzano.alex@gmail.com \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=philm@manjaro.org \
    /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