]> Git Repo - linux.git/commitdiff
i2c: i801: Add lis3lv02d for Dell Precision 3540
authorPaul Menzel <[email protected]>
Wed, 20 Dec 2023 16:10:01 +0000 (17:10 +0100)
committerWolfram Sang <[email protected]>
Thu, 18 Jan 2024 20:10:43 +0000 (21:10 +0100)
On the Dell Precision 3540/0M14W7, BIOS 1.7.4 05/12/2020, Linux prints
the warning below.

    i801_smbus 0000:00:1f.4: Accelerometer lis3lv02d is present on SMBus but its address is unknown, skipping registration

With the help of Wolfram Sang, the test to probe it on I2C bus 6 at address
0x29 was successful.

    $ echo lis3lv02d 0x29 | sudo tee /sys/bus/i2c/devices/i2c-6/new_device
    [ 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

So, the device has that accelerometer. Add the I2C address to the
mapping list.

Link: https://lore.kernel.org/linux-i2c/[email protected]/
Signed-off-by: Paul Menzel <[email protected]>
Acked-by: Pali Rohár <[email protected]>
Reviewed-by: Andi Shyti <[email protected]>
[wsa: shortened commit message a little]
Signed-off-by: Wolfram Sang <[email protected]>
drivers/i2c/busses/i2c-i801.c

index 070999139c6dcbe24ddde994543cf1ec9df74e82..cb9660f841171dc2fff72b637c9c225563cb9082 100644 (file)
@@ -1230,6 +1230,7 @@ static const struct {
         * Additional individual entries were added after verification.
         */
        { "Latitude 5480",      0x29 },
+       { "Precision 3540",     0x29 },
        { "Vostro V131",        0x1d },
        { "Vostro 5568",        0x29 },
 };
This page took 0.057452 seconds and 4 git commands to generate.