From nobody Sun Feb 8 21:12:28 2026 Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1CA41F541E for ; Tue, 23 Dec 2025 02:55:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766458533; cv=none; b=F+ut5+DGhJwsSapyttWLAd5X2TkPJCFv1XcQSdz6fIXIM6CfmZIBsOZ/HEUBobZ9+Chy1SXoE9hA9Em5wu8oBf+ELx9kcXUHm7fPj3VXPb3DeYQ35hUCY1Xn990o9gRRTZDltjCKMd/KkkLRlquzlK4vokrrsrW1Z1VMxJl0Rcw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766458533; c=relaxed/simple; bh=ku3ZBVETifjeQ0o3DDEB1EmddF0OrNMWr7Ng1VwkBe4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uwiRtfnl/dfAwk19uOQA+tKHMPoAnGf8ld2wL5DjfRkT3UUt5iD7nYehx/Fl+QDK3wZgc94qZo3PjaSbf/GvR+/jtFH3sfrRUl3MGAZPUtiBCT/jxO7Hc+ECGKKtt4JtVgWc/0rakbarXEqHiGxXeM0ohCuKdIcHsCofyGR5aWg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dionne-riel.com; spf=pass smtp.mailfrom=dionne-riel.com; dkim=pass (2048-bit key) header.d=dionne-riel-com.20230601.gappssmtp.com header.i=@dionne-riel-com.20230601.gappssmtp.com header.b=yGgzIu4R; arc=none smtp.client-ip=209.85.222.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dionne-riel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dionne-riel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dionne-riel-com.20230601.gappssmtp.com header.i=@dionne-riel-com.20230601.gappssmtp.com header.b="yGgzIu4R" Received: by mail-qk1-f169.google.com with SMTP id af79cd13be357-8b2d6df99c5so535620585a.1 for ; Mon, 22 Dec 2025 18:55:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dionne-riel-com.20230601.gappssmtp.com; s=20230601; t=1766458531; x=1767063331; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7ZosNXC7a/oy6bIWG7fweMBXN4zVwQCtuYGLBNLI7q8=; b=yGgzIu4ROT9alF55yJUoDGOaeH+5t05REtxg7gXRyLErH5cqYO+vk8li4M0vbBrDk/ pCZJhIOsIMAB6QVOpIvmsAytFstttq00H1lKqH7tWpAbAOgNX+xI5BqDrXf0InTv0XpW HxN+W6Nyf4n3NXzs4vCRYsQBm+5Bu2MId4n6CgkjaoExbjwa+k7CZna3O5+qsGxMYNJh /yUbu+L2NFeJz6RtEBfDfIkXhpJw7AIKnBvwoMWgZyzK9JSEi8RjSgTGSkeDSEeYTdeK eaVHxIrxKDXP1iZO/MLhYMEcxTz8MD2lh3Yv6EPyKDYf3UgaTGxRpRuhtHHcbyw6xo+2 CntQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766458531; x=1767063331; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=7ZosNXC7a/oy6bIWG7fweMBXN4zVwQCtuYGLBNLI7q8=; b=CWDsuNjk2nhyDjJUBzofkRW9cma9qtAPKQSn8/L21c7whnRSlaKDACGeAAFWP9kFpn FV2I0bQ+e3AS+54cujmTc27ge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IxHu+87lh3Uzmv992YLlYYkIgYyg7HuuB+Jt0EGAMWtlnPKOw== X-Received: by 2002:a05:620a:2685:b0:8a2:bff5:40e3 with SMTP id af79cd13be357-8c0906f7484mr2008264085a.38.1766458530683; Mon, 22 Dec 2025 18:55:30 -0800 (PST) Received: from frankgrimes.elk-nominal.ts.net (135-23-195-66.cpe.pppoe.ca. [135.23.195.66]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8c0970f8572sm952775585a.25.2025.12.22.18.55.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Dec 2025 18:55:30 -0800 (PST) From: Samuel Dionne-Riel To: Lorenzo Bianconi , Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko Cc: Samuel Dionne-Riel , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] iio: imu: lsm6dsx: Support SMOCF05 ACPI ID for LSM6DS3TR-C Date: Mon, 22 Dec 2025 21:53:50 -0500 Message-ID: <20251223025351.3099978-3-samuel@dionne-riel.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251223025351.3099978-2-samuel@dionne-riel.com> References: <20251223025351.3099978-2-samuel@dionne-riel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Same device (LSM6DS3TR-C), different integration with the firmware. The integration differs in that the firmware provides the SLA0 and SLG0 mounting matrices. They are assumed to be Accelerometer and Gyroscope. Observations were made against the Windows driver, version `12/06/2023,1.0.4.3`. This driver supports both identifiers, but expose the device in different ways. Signed-off-by: Samuel Dionne-Riel --- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c b/drivers/iio/imu/= st_lsm6dsx/st_lsm6dsx_i2c.c index 7c933218036b8..86a9ed648aa24 100644 --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c @@ -144,6 +144,7 @@ MODULE_DEVICE_TABLE(of, st_lsm6dsx_i2c_of_match); =20 static const struct acpi_device_id st_lsm6dsx_i2c_acpi_match[] =3D { { "SMO8B30", ST_LSM6DS3TRC_ID, }, + { "SMOCF05", ST_LSM6DS3TRC_ID, }, { } }; MODULE_DEVICE_TABLE(acpi, st_lsm6dsx_i2c_acpi_match); --=20 2.51.0 From nobody Sun Feb 8 21:12:28 2026 Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 41EF12BCF4A for ; Tue, 23 Dec 2025 02:55:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766458534; cv=none; b=Whj24cVf7cWaG/9ow9SrhUX9JNtHmIDc2oDxNCRulAGetTtJI/Rz1fhPza1eeUlk2dxvA7VYtWHaH0ELu00OsDiiw28LyX5I+X5dfjmk2FczhhAToktNLIab9nxdQAu3TfVZknS5vDwn3Nq1Ccn5zSZOWIoMjRNjl8R7UrWNSYQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766458534; c=relaxed/simple; bh=R/pyaDy3Q7zpGfMK7jtEmQplZlnmXe5j1vpWw+kfDUk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=o6dW2gh0PZdL/r04aCXnrGMuKX2WpBR7uCyB6NQXTxtOVzTwfLqZeV83N29eoJ4qRq7yhwSvxyUUW1zrnUHRlxkmoLV14yujZEajbtZMeUKqsZ8mUkULOuGox6FlIEoIb+azAzsQBhIBA/4izrQL7Byh9MFULAzK4sMzY2ex6AI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dionne-riel.com; spf=pass smtp.mailfrom=dionne-riel.com; dkim=pass (2048-bit key) header.d=dionne-riel-com.20230601.gappssmtp.com header.i=@dionne-riel-com.20230601.gappssmtp.com header.b=b5UZXv97; arc=none smtp.client-ip=209.85.222.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dionne-riel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dionne-riel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dionne-riel-com.20230601.gappssmtp.com header.i=@dionne-riel-com.20230601.gappssmtp.com header.b="b5UZXv97" Received: by mail-qk1-f178.google.com with SMTP id af79cd13be357-8b602811a01so508557385a.2 for ; Mon, 22 Dec 2025 18:55:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dionne-riel-com.20230601.gappssmtp.com; s=20230601; t=1766458532; x=1767063332; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4byC3Mn7IdIEYarlTV3BJ0tOgTi1ifeHJj4YTWnTDNM=; b=b5UZXv974ITY1VPlleMISySbVlroR4+dBogTFdyYjLxhZ/OZkrCiwTuNxSxhnmOUpv +tgr+AeEWf0fBw/2ySX2egES22Wva55vNiE7SkaM4e820VmUsq7y6QSytmjUX6L2yf03 MihrKFBf/frCDJMHJNT4W9HCjGyepCKmSNuBlc62MIUYglqeuQjvFyeYOo+Z1uvpXADC eTTecHZaVYmJrtVGusA9wXwJ6aDeVBr0QiMUQAteKUF0V1xqSg6kfexSInH9QqkEJ8Ex 9INSDRgbFP/1nYaDxjAXKE3f7D6nvs+8Ljd29rXT2A8ICixxs+2BYObNli5Aaqoh8hMW Dfeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766458532; x=1767063332; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=4byC3Mn7IdIEYarlTV3BJ0tOgTi1ifeHJj4YTWnTDNM=; b=dOBtcNsoz5nKrf6HZYnFzZDTdUgL3hEnid4TbW8KGdCGIaQWcCTYpGExuvdDnwNotq ZFkF7qZoZGpik2mI9J8crag75YWwnLO/dmhV/H34+Ux4lDDq3ZphQMcKxbXhV3ja+4ds t71Pz7Su6/IrdxCUjWoV+t7wTlG3PXGOycBdoWvWGtJpK5FZpVlJAdwgiK2q8Fiw0loN Ws2nWHhvut437yodwg2il2y8WwUmnsrj6SZVrL/iOIQpBC3MxXkeD4m5zy56HNe3ubga DeQdtuxFL4qGcUoWRV+EDfjw5E3vRppBtdKyiAR7msF5rfR4QB/WcculjpFSXcK7XN5G ATXA== X-Forwarded-Encrypted: i=1; AJvYcCWJ0y2ugAki6vsCHldVN63+861GdUBuOJYGLpPeuK1hJBRbbEKLmLQDWd647K3c5SAWP0AC7CfxK1wPJ9w=@vger.kernel.org X-Gm-Message-State: AOJu0YzHuwXRXntK/GvOQB61qibnbvpooO3nXjIuh2/0ZW++FajRTE+e Gr1N7jsFqAFyKtX+ZO9d6xMBd9NQrRlV//0hVG3YL4J6PCZKEZ8bVcLoTvTcbnbpAg== X-Gm-Gg: AY/fxX7sTfjLr5UUgBcHpWLEJb2IGopluIU1ssVnPGvceMwktv5tQx29+DPbjMABPhT KDizkFpf3eqN9qFzAogUGVjbWEiqtWDa5knUfSQg3vBXSBt1Oicm2T2mP1R68qHMvWk+QaB98We ETp3+ooHzUq45wgTzoK85ETUV8P4pniutB2F2aGy92z9GF/YVIQqMtIF47522wW47SeQ6do9Pb+ N1qgUaE2RmJ5/59Hzt/3/nMkuZpWmxFjoaYrE4smXmRH7+D3hHfCfSu94HF9/Que626rcZOtXES gJ7zVJz4JD7Zq1upT3kdPBuELox18LaMYUTy/+Zrd/7XnaGRTDV4yKVAuCUy0Ca0xVE5ZyIDUpC neUdvES1C5OBES0ke7a6qxV/dJU95qv7X32zGmtqhLhpSPK4D23q9lblQF6bUpJneuMYvqdE2v5 8DerlpETl7DdMPwbrm/cxxoa2FZJFE3Ywy3zJYHcLq6r3ATbhQ2rS4kB8XW2Ryyy6KYmwGsRbBM nsx X-Google-Smtp-Source: AGHT+IE7uWWD/9WJtJidhv9TOoiEsH6kL22XXd7ZcKB4XxyaFlTJGguqeEdNjR/eFBcTx0vexKnYqw== X-Received: by 2002:a05:620a:4484:b0:8b2:ec00:784f with SMTP id af79cd13be357-8c08fbb9c47mr2108884385a.82.1766458532150; Mon, 22 Dec 2025 18:55:32 -0800 (PST) Received: from frankgrimes.elk-nominal.ts.net (135-23-195-66.cpe.pppoe.ca. [135.23.195.66]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8c0970f8572sm952775585a.25.2025.12.22.18.55.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Dec 2025 18:55:31 -0800 (PST) From: Samuel Dionne-Riel To: Lorenzo Bianconi , Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko Cc: Samuel Dionne-Riel , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] iio: imu: lsm6dsx: Add alternative ACPI mount matrix retrieval Date: Mon, 22 Dec 2025 21:53:51 -0500 Message-ID: <20251223025351.3099978-4-samuel@dionne-riel.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251223025351.3099978-2-samuel@dionne-riel.com> References: <20251223025351.3099978-2-samuel@dionne-riel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This uses the SLA0 matrix, which is how the SMOCF05 configuration exposes the mounting information for the accelerometer. On a limited sample size of one (1) unit, the SLG0 matrix is the identity matrix. It is unknown how the SLG0 mounting matrix would logically affect the data, if it differed from the identity matrix. After all, the IMU is mounted as one single unit, its mounting can't differ on the gyroscope compared to the accelerometer. Signed-off-by: Samuel Dionne-Riel --- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c b/drivers/iio/imu= /st_lsm6dsx/st_lsm6dsx_core.c index 49ac17806e720..4bf1f7f7552d1 100644 --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c @@ -2707,6 +2707,12 @@ int st_lsm6dsx_probe(struct device *dev, int irq, in= t hw_id, return err; } =20 + if (!iio_read_acpi_mount_matrix(hw->dev, &hw->orientation, "SLA0")) { + err =3D iio_read_mount_matrix(hw->dev, &hw->orientation); + if (err) + return err; + } + for (i =3D 0; i < ST_LSM6DSX_ID_MAX; i++) { if (!hw->iio_devs[i]) continue; --=20 2.51.0