Received: by 2002:a05:7412:d024:b0:f9:90c9:de9f with SMTP id bd36csp140087rdb; Wed, 20 Dec 2023 08:15:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjYTxyP561bdsv+uctepLV+/rFOoDx2jGAt7irg4lUfgTt9urIvR3bCW2f6aqBa2Y7NcKv X-Received: by 2002:a17:906:4917:b0:a26:8804:c6fc with SMTP id b23-20020a170906491700b00a268804c6fcmr1210396ejq.122.1703088903521; Wed, 20 Dec 2023 08:15:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703088903; cv=none; d=google.com; s=arc-20160816; b=TBbNwa4rJxpihqUkJab80gzndRTCuFrrtIYDbmT91E60N2uxnEUv4ImVXH4UUf0UpY kPFi+HxGW+zyUBgvkdQuID4ZGRpXyzFz2x0CZfU+i3zRt5JNfMQt4hsNkrh9+1Q035A2 KW9Wz8ei1VBxxJSI7sF309pfULmAqFVf7b+sclvrgYTV4JkolKjDkqyFyztEc1ukZ77B hgvBfZnSIl8hI8A+OEEtib1Jrr4BeV/7ZXeamO40hQ6lV0AcNZPA4D+GCBq6+p/08qbL ByAiaJDQxR8hvXpRVl/NR/6lj0o2TLVMQilRdOg4MkOoN6qoMt0W0X6WhxqNKQXgGEIc G03g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=axxUbu+ejVwIfNOq7yStMkGgX3Eg8YksLOU6LS4di+Q=; fh=5eOiFFRgewsS2VFvInN05uR+1kGwHnRooaYQdKWUW/w=; b=h0mNiACW8sy/otiLHgOmoA8SMmS2D4lxn3FFOv3hVxSwR1+9+J7FCl97TbsuWeXqlX ChRMvyjTx0Uscv/XwuhfHkNJQXVg9ykd3q498KMNjwMfoETquMLdz9d88wQripAbmnO3 zqfhOB+X2nOvxHQWeALOQweKMdIE+ZrkzBOUc8W6WUVV8X+8fnLVMftdhtJdh2HhQp6Q HW+/BQwmsPtCRd37A0uHoPz8zIFkbXYH6yN0YZW6YiEj0/3wf9qbXfC0U8U/G4R4d6Ey sHfh1BNLT2XBvLjaZDvELVURLdUyfzi+E5WLzzAHEnxLgvF4eindEfLr9BBLjwlX1ZMn chRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-7264-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7264-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m24-20020a1709066d1800b00a2357313a06si2850695ejr.73.2023.12.20.08.15.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 08:15:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7264-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-7264-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7264-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 45F701F24B91 for ; Wed, 20 Dec 2023 16:15:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7456246B99; Wed, 20 Dec 2023 16:10:47 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA62A3FB33; Wed, 20 Dec 2023 16:10:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=molgen.mpg.de Received: from abreu.molgen.mpg.de (g40.guest.molgen.mpg.de [141.14.220.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 753F161E5FE01; Wed, 20 Dec 2023 17:10:14 +0100 (CET) From: Paul Menzel To: Jean Delvare , Andi Shyti Cc: =?UTF-8?q?Pali=20Roh=C3=A1r?= , Paul Menzel , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] =?UTF-8?q?i2c:=20i801:=20Add=200x29=20as=20I=C2=B2C?= =?UTF-8?q?=20address=20for=20lis3lv02d=20in=20Dell=20Precision=203540?= Date: Wed, 20 Dec 2023 17:10:01 +0100 Message-ID: <20231220161003.68310-1-pmenzel@molgen.mpg.de> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 I²C bus 6 at address 0x29 was successful. $ cd /sys/bus/pci/drivers/i801_smbus/0000:00:1f.4 $ ls -d i2c-? i2c-6 $ sudo i2cdetect 6 WARNING! This program can confuse your I2C bus, cause data loss and worse! I will probe file /dev/i2c-6. I will probe address range 0x08-0x77. Continue? [Y/n] Y 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: 08 -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- 29 -- -- -- -- -- -- 30: 30 -- -- -- -- 35 UU UU -- -- -- -- -- -- -- -- 40: -- -- -- -- 44 -- -- -- -- -- -- -- -- -- -- -- 50: UU -- 52 -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- $ echo lis3lv02d 0x29 | sudo tee /sys/bus/i2c/devices/i2c-6/new_device $ sudo dmesg […] [ 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/97708c11-ac85-fb62-2c8e-d37739ca826f@molgen.mpg.de/ Signed-off-by: Paul Menzel --- drivers/i2c/busses/i2c-i801.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index 070999139c6d..cb9660f84117 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c @@ -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 }, }; -- 2.43.0