Bug 219418 - BOSC0200 Accelerometer Invalid chip 12 initialization error
Summary: BOSC0200 Accelerometer Invalid chip 12 initialization error
Status: RESOLVED INSUFFICIENT_DATA
Alias: None
Product: Drivers
Classification: Unclassified
Component: IIO (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: Virtual Assignee for Drivers/IIO
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-22 13:17 UTC by Camera Phone
Modified: 2024-12-12 01:48 UTC (History)
0 users

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments
lspci output (3.20 MB, text/plain)
2024-10-22 13:17 UTC, Camera Phone
Details
dmesg output (100.33 KB, text/plain)
2024-10-22 13:17 UTC, Camera Phone
Details
lspci output (27.45 KB, text/plain)
2024-10-22 13:17 UTC, Camera Phone
Details

Description Camera Phone 2024-10-22 13:17:20 UTC
Created attachment 307035 [details]
lspci output

Hardware: Acer aspire spin 3 A3SP14-31PT-38YA

One line summary of the problem:
BOSC0200 Accelerometer Invalid chip 12 initialization error

Full description of the problem/report:
The Accelerometer is not detected by iio and does not function

Kernel version (from /proc/version):
Linux version 6.11.4-arch2-1 (linux@archlinux) (gcc (GCC) 14.2.1 20240910, GNU ld (GNU Binutils) 2.43.0) #1 SMP PREEMPT_DYNAMIC Sun, 20 Oct 2024 18:20:12 +0000


sudo /usr/lib/iio-sensor-proxy -v
** (iio-sensor-proxy:2007): DEBUG: 22:33:10.952: Starting iio-sensor-proxy version 3.5
(iio-sensor-proxy:2007): GLib-GIO-DEBUG: 22:33:10.954: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
** (iio-sensor-proxy:2007): DEBUG: 22:33:10.991: No sensors or missing kernel drivers for the sensors
Comment 1 Camera Phone 2024-10-22 13:17:39 UTC
Created attachment 307036 [details]
dmesg output
Comment 2 Camera Phone 2024-10-22 13:17:59 UTC
Created attachment 307037 [details]
lspci output
Comment 3 Jonathan Cameron 2024-10-26 14:49:40 UTC
On Tue, 22 Oct 2024 13:17:20 +0000
bugzilla-daemon@kernel.org wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=219418
> 
>             Bug ID: 219418
>            Summary: BOSC0200 Accelerometer Invalid chip 12 initialization
>                     error
>            Product: Drivers
>            Version: 2.5
>           Hardware: All
>                 OS: Linux
>             Status: NEW
>           Severity: normal
>           Priority: P3
>          Component: IIO
>           Assignee: drivers_iio@kernel-bugs.kernel.org
>           Reporter: cameraphone77@gmail.com
>         Regression: No
> 
> Created attachment 307035 [details]
>   --> https://bugzilla.kernel.org/attachment.cgi?id=307035&action=edit  
> lspci output
> 
> Hardware: Acer aspire spin 3 A3SP14-31PT-38YA
> 
> One line summary of the problem:
> BOSC0200 Accelerometer Invalid chip 12 initialization error

Unfortunately that ID is used by the windows Bosch drivers for numerous
completely incompatible devices.  So we can't do soft matching on this one.
We need to know what the device actually is and add explicit support for
it.

So it's going to take some detective work to find a device with ID 12.

Any other information on what device this might be?

Jonathan
> 
> Full description of the problem/report:
> The Accelerometer is not detected by iio and does not function
> 
> Kernel version (from /proc/version):
> Linux version 6.11.4-arch2-1 (linux@archlinux) (gcc (GCC) 14.2.1 20240910,
> GNU
> ld (GNU Binutils) 2.43.0) #1 SMP PREEMPT_DYNAMIC Sun, 20 Oct 2024 18:20:12
> +0000
> 
> 
> sudo /usr/lib/iio-sensor-proxy -v
> ** (iio-sensor-proxy:2007): DEBUG: 22:33:10.952: Starting iio-sensor-proxy
> version 3.5
> (iio-sensor-proxy:2007): GLib-GIO-DEBUG: 22:33:10.954: Using cross-namespace
> EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
> ** (iio-sensor-proxy:2007): DEBUG: 22:33:10.991: No sensors or missing kernel
> drivers for the sensors
>
Comment 4 Camera Phone 2024-10-26 17:06:36 UTC
(In reply to Jonathan Cameron from comment #3)
> On Tue, 22 Oct 2024 13:17:20 +0000
> bugzilla-daemon@kernel.org wrote:
> 
> > https://bugzilla.kernel.org/show_bug.cgi?id=219418
> > 
> >             Bug ID: 219418
> >            Summary: BOSC0200 Accelerometer Invalid chip 12 initialization
> >                     error
> >            Product: Drivers
> >            Version: 2.5
> >           Hardware: All
> >                 OS: Linux
> >             Status: NEW
> >           Severity: normal
> >           Priority: P3
> >          Component: IIO
> >           Assignee: drivers_iio@kernel-bugs.kernel.org
> >           Reporter: cameraphone77@gmail.com
> >         Regression: No
> > 
> > Created attachment 307035 [details]
> >   --> https://bugzilla.kernel.org/attachment.cgi?id=307035&action=edit  
> > lspci output
> > 
> > Hardware: Acer aspire spin 3 A3SP14-31PT-38YA
> > 
> > One line summary of the problem:
> > BOSC0200 Accelerometer Invalid chip 12 initialization error
> 
> Unfortunately that ID is used by the windows Bosch drivers for numerous
> completely incompatible devices.  So we can't do soft matching on this one.
> We need to know what the device actually is and add explicit support for
> it.
> 
> So it's going to take some detective work to find a device with ID 12.
> 
> Any other information on what device this might be?
> 
> Jonathan

I looked through all the bosch accelerator datasheets I could find and the closest i could get was:

CHIP     chip_id
BMA423 - 0x13
BMA456 - 0x16

I'm thinking it may be the BMA422 but that datasheet isn't available for some reason.   I did also ask in their forums but no responses.  Unfortunately, I don't think it's an easy task to disassemble the screen.
Comment 5 Jonathan Cameron 2024-10-27 10:34:30 UTC
On Sat, 26 Oct 2024 17:06:36 +0000
bugzilla-daemon@kernel.org wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=219418
> 
> --- Comment #4 from Camera Phone (cameraphone77@gmail.com) ---
> (In reply to Jonathan Cameron from comment #3)
> > On Tue, 22 Oct 2024 13:17:20 +0000
> > bugzilla-daemon@kernel.org wrote:
> >   
> > > https://bugzilla.kernel.org/show_bug.cgi?id=219418
> > > 
> > >             Bug ID: 219418
> > >            Summary: BOSC0200 Accelerometer Invalid chip 12 initialization
> > >                     error
> > >            Product: Drivers
> > >            Version: 2.5
> > >           Hardware: All
> > >                 OS: Linux
> > >             Status: NEW
> > >           Severity: normal
> > >           Priority: P3
> > >          Component: IIO
> > >           Assignee: drivers_iio@kernel-bugs.kernel.org
> > >           Reporter: cameraphone77@gmail.com
> > >         Regression: No
> > > 
> > > Created attachment 307035 [details]  
> > >   --> https://bugzilla.kernel.org/attachment.cgi?id=307035&action=edit    
> > > lspci output
> > > 
> > > Hardware: Acer aspire spin 3 A3SP14-31PT-38YA
> > > 
> > > One line summary of the problem:
> > > BOSC0200 Accelerometer Invalid chip 12 initialization error  
> > 
> > Unfortunately that ID is used by the windows Bosch drivers for numerous
> > completely incompatible devices.  So we can't do soft matching on this one.
> > We need to know what the device actually is and add explicit support for
> > it.
> > 
> > So it's going to take some detective work to find a device with ID 12.
> > 
> > Any other information on what device this might be?
> > 
> > Jonathan  
> 
> I looked through all the bosch accelerator datasheets I could find and the
> closest i could get was:
> 
> CHIP     chip_id
> BMA423 - 0x13
> BMA456 - 0x16
> 
> I'm thinking it may be the BMA422 but that datasheet isn't available for some
> reason.   I did also ask in their forums but no responses.  Unfortunately, I
> don't think it's an easy task to disassemble the screen.
> 
Without a datasheet this is hard, but you 'could' try just hacking in the
ID in the driver and see what works?  Particularly if scales match up with the
stuff on the flyer that is available for the BMA422.

Jonathan
Comment 6 Camera Phone 2024-10-27 19:43:25 UTC
(In reply to Jonathan Cameron from comment #5)
> On Sat, 26 Oct 2024 17:06:36 +0000
> bugzilla-daemon@kernel.org wrote:
> 
> Without a datasheet this is hard, but you 'could' try just hacking in the
> ID in the driver and see what works?  Particularly if scales match up with
> the
> stuff on the flyer that is available for the BMA422.
> 
> Jonathan

I did try hard-coding each of the 5 chip_ids from bmc150_accel_chip_info_tbl in bmc150-accel-core.c, unfortunately none of them worked.  monitor-sensor would not register any changes when moving the display panel.

I did find this which does confirm it is a BMA422 chip based on the 0x12 chip_id:

https://git.15h.org/mrothfuss/chrome-ec/src/commit/003ec08f8c67845ae8481d3fb4124555213b04c4/driver/accel_bma422.h
Comment 7 Camera Phone 2024-12-12 01:48:40 UTC
I'm going to mark this as resolved as we Bosch will not provide the datasheet for this chip.

Note You need to log in before you can comment on or make changes to this bug.