Skip to content

Commit 145e9bd

Browse files
committed
i2c: i801: Add lis3lv02d for Dell Precision M6800
JIRA: https://issues.redhat.com/browse/RHEL-47426 Conflicts: out of order upstream commits, upstream cc0809b moved the lis3lv02d functionality. Accordingly, this RHEL commit has been refactored and applied to the correct location. commit fd4e930 Author: Patrick Höhn <[email protected]> Date: Tue Mar 12 20:31:31 2024 +0100 i2c: i801: Add lis3lv02d for Dell Precision M6800 On the Dell Precision M6800/OXD1M5, BIOS A26 06/13/2029, Linux prints the warning below. i801_smbus 0000:00:1f.4: Accelerometer lis3lv02d is present on SMBus but its address is unknown, skipping registration Following the same suggestions by Wolfram Sang as for the Dell Precision 3540 [1], the accelerometer can be successfully found on I2C bus 0 at address 0x29. $ echo lis3lv02d 0x29 | sudo tee /sys/bus/i2c/devices/i2c-0/new_device lis3lv02d 0x29 $ dmesg | tail -5 [1185.385204] lis3lv02d_i2c 0-0029: supply Vdd not found, using dummy regulator [1185.385235] lis3lv02d_i2c 0-0029: supply Vdd_IO not found, using dummy regulator [1185.399689] lis3lv02d: 8 bits 3DC sensor found [1185.449391] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input371 [1185.449577] i2c i2c-0: new_device: Instantiated device lis3lv02d at 0x29 So, the device has that accelerometer. Add the I2C address to the mapping list, and test it successfully on the device. [1]: https://lore.kernel.org/linux-i2c/[email protected]/ Signed-off-by: Patrick Höhn <[email protected]> Acked-by: Pali Rohár <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andi Shyti <[email protected]> Signed-off-by: David Arcari <[email protected]>
1 parent 65d03f1 commit 145e9bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/platform/x86/dell/dell-lis3lv02d.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ static const struct dmi_system_id lis3lv02d_devices[] __initconst = {
4848
DELL_LIS3LV02D_DMI_ENTRY("Latitude E6330", 0x29),
4949
DELL_LIS3LV02D_DMI_ENTRY("Latitude E6430", 0x29),
5050
DELL_LIS3LV02D_DMI_ENTRY("Precision 3540", 0x29),
51+
DELL_LIS3LV02D_DMI_ENTRY("Precision M6800", 0x29),
5152
DELL_LIS3LV02D_DMI_ENTRY("Vostro V131", 0x1d),
5253
DELL_LIS3LV02D_DMI_ENTRY("Vostro 5568", 0x29),
5354
DELL_LIS3LV02D_DMI_ENTRY("XPS 15 7590", 0x29),

0 commit comments

Comments
 (0)