Messages in this thread | | | Date | Tue, 28 Feb 2023 11:56:52 +0100 | Subject | Re: Accelerometer lis3lv02d is present on SMBus but its address is unknown, skipping registration | From | Paul Menzel <> |
| |
Dear Wolfram,
Thank you again for the prompt reply.
Am 28.02.23 um 11:50 schrieb Wolfram Sang:
>> So, 29 shows up in the dump. Let’s see if I am going to find the time to >> build a Linux kernel. (I couldn’t find a module parameter to force loading >> at a specific address.) > > We do this via sysfs: > > # echo lis3lv02d 0x29 > /sys/bus/i2c/devices/i2c-6/new_device > > (Depending on your system, you might need to ensure the lis3 driver is > loaded before) > > Hope it works!
It does. After your command, Linux logs:
``` [ 2110.787000] i2c i2c-6: new_device: Instantiated device lis3lv02d at 0x29 [ 2110.791932] lis3lv02d_i2c 6-0029: supply Vdd not found, using dummy regulator [ 2110.791981] lis3lv02d_i2c 6-0029: supply Vdd_IO not found, using dummy regulator [ 2110.809233] lis3lv02d: 8 bits 3DC sensor found [ 2110.900668] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input23 ```
I can cook up a patch, if you want.
Kind regards,
Paul
| |