From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 7573F1E5201 for ; Fri, 9 Jan 2026 18:15:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767982536; cv=none; b=k4DBvnWDI+kYWgztVk90fZyMoKiUx5cKhdjbmiRoMcSkwwEQ2S0pL0VpMP6W/GJ/iTmCYnYDriX465oDJ4hQ76rkcqtCuKXiApmeSZM/F0HPL3mhVK3byfy62BiwyJSSIdU6PKNTcfUc39dJjr1+rJXnK7SD5Bg7bFIw1V66eQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767982536; c=relaxed/simple; bh=Rzu46KxvulxHtFTeqNQrxawp5cJcOzu7sDnlEvvPnas=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=gXcLCjhnbtWFQg52NZyvkLIlRdeXvJNGjqskEFWx28AIQlplvrwREKdmPZQbW/bZSZHyRcE4C7GVzwLtRI+5kw5Crak5r8AM69/vg/YmoqmkeV93B+y81jyW7oSeVpeZPCM5DRipVT0RzhLfpmjsfEKKKwp46L7h2IR6v2plnnE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=jZtxaFQC; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="jZtxaFQC" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-b83122f9d78so754010166b.0 for ; Fri, 09 Jan 2026 10:15:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1767982532; x=1768587332; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=8KJcoxKNGI5ophIhKupAa0bc/5AP4ZQrV8vwxlDCe94=; b=jZtxaFQCtztg14LTGk1NAEq5USPXJlOrpw9ChH+EtlJzbDCKm3bx66wntKF4uwWjAu ZG3+b0XIepD2A7v2diNZHaBoBsnKLAP2gT/gaPVNV9enlJ9TOhkulxk/3k/TIroaV5Ll GXF6WoQHsnqMixv6yDtM/88K8esrOEW43HtPCW/T8D+yxbWyUP54BcK0AYQDqU44YdkS XFtDdOjNMEHMcMcJ6TxXnSlJImw+K9V2szltvMBJ7YWv0p8n4genTQUmE9rpmANsG1gI AVEt3+OAayzHyIeNsSOEVZAUDwVDt3vzMm74krlZsLt9syzcOubpr24Nz4Qa9i+xuaXS qQ5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767982532; x=1768587332; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8KJcoxKNGI5ophIhKupAa0bc/5AP4ZQrV8vwxlDCe94=; b=EhrsXYsZhbPQfcoUd7acN4ZJuFfIIOna27BxvPmGCVpZxsY9TRQ2Pj3OTVyYChkSnO xg4OSN6wL69SWEkDfwcyO7sEvZq//80ug5ttFxLDbvdMsTbffx6pXfzqSaP9v7BVDVQZ OR5qlbctc4vpgxcphKet/nuywDyBClHiP77Zy+PhvYqTPm8B6Bk3PiSo+VkjYnLIhNcT k31JMktPn16qIl+syo17Zzi8MOVjyzZhgWQ9QBBf+yM2rqoeplf9t7zlR52OVNDn1gud d1l8yp898gxdBVKD23BOQelHUB6TtbasCbqZaFu0X28YzLOcOBbfOz6FUf15N1RhQq8f +oog== X-Forwarded-Encrypted: i=1; AJvYcCX8j7/H5mRB8zwB9AxaQK0F0nbshrIZ7boes5ahEY5zzD4dWXrUDqVQQxftrJmToVj6RkMLLIVeunBjXj4=@vger.kernel.org X-Gm-Message-State: AOJu0YzH5BZosFOUY+DeGxKNaZsNLrv/mWa2yA8xsxABuivmKTfP/hic Z1HTwCKnIdIFLK+EuI1CbNgGofsfww4jOKlbIz7eDIfNEACl0Vb2THPgQczMVHi+caU= X-Gm-Gg: AY/fxX52PaTCjq1n5ZwsRg7JdnAbhphZ+20fprrkERdzEISt1j7c1RnQi4jIgoYHreW u9FNXl1EITm6UJfEAPK08WURS/gL5kqEL5I9w/rYSR3ElLtNnkrLuwSQ/URkGgUjwd7UiZsafrB J+akhddkZ6lVKjPV8t2gR24FBYCuhvaiENveY1Cea/T7XnGx/62mqD38nzhG8vKYf1jLQiCvKIK x4GjErQojJyus2pz7/qo5w16SIRvQ5nPbEqsmm65E4lWQ22z8d6XkNjXxnL9voHVvdx6nRFS5u8 2Mc1/nIp9RDXFh4sUaJ+6S6VoE/+oPzFtAsCQ/mPSducWMXsR9qxoK7UoBPZaxI/wS4zQ4YRbwO rS1m/0Zc1K3CJpMnTjQfWvpwz+auwmbMZlKucqaFDvyZTAijhk5Ie7VxxydgJV9uGtnFV X-Google-Smtp-Source: AGHT+IEHCqEAU88Vgf7Lnan3mHRz/qSw02C7bEKuveNX5PaBWUr61WmiE2YT0N77Ub807kMhGe21PA== X-Received: by 2002:a17:907:3e83:b0:b7a:32:3d60 with SMTP id a640c23a62f3a-b844518a88dmr1069157866b.11.1767982531461; Fri, 09 Jan 2026 10:15:31 -0800 (PST) Received: from localhost ([151.47.174.220]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b842a27bfcasm1208191866b.21.2026.01.09.10.15.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jan 2026 10:15:30 -0800 (PST) From: Francesco Lavra To: Lorenzo Bianconi , Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] imu: st_lsm6dsx: Add support for rotation sensor Date: Fri, 9 Jan 2026 19:15:25 +0100 Message-Id: <20260109181528.154127-1-flavra@baylibre.com> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1118; i=flavra@baylibre.com; h=from:subject; bh=Rzu46KxvulxHtFTeqNQrxawp5cJcOzu7sDnlEvvPnas=; b=owEB7QES/pANAwAKAe3xO3POlDZfAcsmYgBpYUWBX50qy43YLQ7CvypW721dszisXEmexPfmK bwsbsDEKfCJAbMEAAEKAB0WIQSGV4VPlTvcox7DFObt8TtzzpQ2XwUCaWFFgQAKCRDt8TtzzpQ2 X7gSC/9n6igFOzWuUDOwnY9SkRtgE48lyS3QFGwlY0hKZejYZMdbXZZFlWxIviKmVlyH0NwZPvG IyuyHQb/E+y2bAe0w0Kel2w+HczhIRATLbkvA3w4XG6W61jFRe+uA4z6ya8R/ao75D84gMQw7KN gG7XOtMC2yfYMXiOc1fRO0nJksrpFvJasrGpIy5L+9oI9Cs59SqkQtEko4TiExPYiiZ6V1SMI9r dSLsUk6FJcZd1F3gllhItr9SJFohCu+wfekmNP9miFhL+SyYs2if07shhvjIfd4ffNP/0LYDqz5 zVkqnqq0EUyJfkiqsGRZnV0S2Y6/5Ams3deLufCjAZnIc3Vs87i44vQ54EbYUrc1Lj5GBwDRKXJ dqSjBw+622QUwUoN8jBxggP/gdbahpGJGD5bui4+/oZ8Xpa02PJM4FyTN7Z3oyuTnpkAW/tUmfg Dk4Ev2VnOVH5m4pZCFlArqkPt9Hd8TmsOULC0S5HdOIA/CDsr5T0whczw+AZjfSSYrP1s= X-Developer-Key: i=flavra@baylibre.com; a=openpgp; fpr=8657854F953BDCA31EC314E6EDF13B73CE94365F Content-Transfer-Encoding: 8bit This series adds support for the rotation sensor functionality present in some chips from the ST LSM6DSX IMU family. The first commit is a fix to a previous commit of mine [1] which made it to 6.19-rcX; the fix technically changes userspace, but this should be OK as long as it goes in during this release cycle. Tested on LSM6DSV16X. [1] https://lore.kernel.org/linux-iio/20251017164255.1251060-3-flavra@baylibre.com/ Francesco Lavra (3): iio: imu: st_lsm6dsx: set buffer sampling frequency for accelerometer only iio: imu: st_lsm6dsx: set FIFO ODR for accelerometer and magnetometer only iio: imu: st_lsm6dsx: add support for rotation sensor drivers/iio/imu/st_lsm6dsx/Makefile | 2 +- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 26 +- .../iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c | 28 ++- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 58 +++++ .../iio/imu/st_lsm6dsx/st_lsm6dsx_fusion.c | 224 ++++++++++++++++++ 5 files changed, 331 insertions(+), 7 deletions(-) create mode 100644 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_fusion.c -- 2.39.5