From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=162.62.58.211 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796374578; b=rXj9NpX/kZ1uNIbd47AJykCkd7g3+uO3I/3R3dX0UD4uV7Ujl0V0Gg+e4lrFupNUT8HX jnVeX/+nGmxnHnQIjkaVi5fRNEtT1OY5TBNoqx8+8Kd0F/pS6y9ByvnMUM0rhv2GggSDU LvrMxQfPkxZb9FoCBEsbtBKVTMmVPsNGu+Vs2hqIiskDbNnTCZRLxIcOSmDn2eKM8xYqI LbmXFW+5IEESXe1XJJSgtOqbvcu0OkzxHszZvMZ0Tao6yvn1c7+2LJgJio1E2UN0ot5js rbGhOziv0jIAQuxwJm3ryA0p7uSZ3bk4vFEf/ixiKtj3a6dcAU1EYXyjDUCGQLg2RhQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796374578; h=DMARC-Filter:DKIM-Signature:Received:X-QQ-mid:Message-ID: X-QQ-XMAILINFO:X-QQ-XMRINFO:From:To:Cc:Subject:Date:X-OQ-MSGID: X-Mailer:MIME-Version:Content-Transfer-Encoding; bh=cLcrwpujR40kZXEvH1j7JY+VrToz7qRXLu1+fp8zPm0=; b=0IERkCJ4iNgWy24PuDg3oaObS7rEFvlNBXJpRpOhiRQjdR2lNNHd/1U0drDvOFo7MRkW j48RqIYjLPrWVSTWsIZlFHVFSok0VUbnUvQXr+tHL/f+VsOwAfAV/00khS73eo8I1YRKG xitXAA2vNvO+DvnuA9zTjGp40YjtZ8snaYyc58d29+jx5WgJFhFFgiCaFNHFXuXOsTrfc n8Fkn1yrRgyevFmQRkI1/Dpp0w9Mss/pramsFOej9DlgV2z+dkv+945toggV1XMtplSFF RpqP/ydX6DD2EIGI2R4Ny9+JWZu5DwGB/usE2Yv/yYreIZsL7qEtDFCLRswfm2oZyhA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=yosoro.hk; spf=none smtp.mailfrom=yosoro.hk; dkim=pass header.d=qq.com header.i=@qq.com header.a=rsa-sha256 header.s=s201512 header.b=BDSqinYk; arc=none smtp.remote-ip=162.62.58.211 Received: from out162-62-58-211.mail.qq.com (out162-62-58-211.mail.qq.com [162.62.58.211]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E2CCA606A68B; Fri, 4 Dec 2026 08:56:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E2CCA606A68B Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=yosoro.hk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=yosoro.hk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.a=rsa-sha256 header.s=s201512 header.b=BDSqinYk DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1796374567; bh=cLcrwpujR40kZXEvH1j7JY+VrToz7qRXLu1+fp8zPm0=; h=From:To:Cc:Subject:Date; b=BDSqinYkpv9J21px97a1ctOJcMYVw+M8ieL7AxQ2Aa3NIO60BHBLoR29Vh5dhAxNk o9Q+tY94ktdK0qzLUOpJfKYgDHklLBNtatetnFdxHAb1h5rFMptmmIDpgC4bafw4/J 4nF+qAeIa/g3uvj8xUrE4TrvQWw7MUQyBTyaLiEE= Received: from fedora ([122.191.232.216]) by newxmesmtplogicsvrszb51-1.qq.com (NewEsmtp) with SMTP id DCDAE492; Fri, 04 Dec 2026 16:55:13 +0800 X-QQ-mid: xmsmtpt1796374513tmdu8i4ml Message-ID: X-QQ-XMAILINFO: NzvgoOffVB4jX9VfsAIDUIjF1A2stkmvzGCyrT7mUvZIFtVKkqP4hBBF0zQW6n 2iJ9JS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C9STBZUApmv2gHwuQ0YOqwdaHxPhJDrIc61fGhvYJ1XVBcLs2C4LTYy4j1WYsf EvabTX2apK3hRD2w== X-QQ-XMRINFO: Mp0Kj//9VHAxzExpfF+O8yhSrljjwrznVg== From: NanamiKite To: Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, NanamiKite Subject: [RFC PATCH v1 0/2] iio: imu: Add support for QST QMI8658C Date: Fri, 4 Dec 2026 16:55:02 +0800 X-OQ-MSGID: <20261204085504.184447-1-nanami@yosoro.hk> X-Mailer: git-send-email 2.56.1 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series adds a DT binding and an initial I2C driver for the QST QMI8658C 6-axis IMU (3-axis accelerometer, 3-axis gyroscope, and temperature sensor). Right now it only covers direct sysfs reads, scale/ODR settings, mount-matrix, and vdd/vddio supplies. Triggers, FIFO, interrupts, and runtime PM can come later once the basic layout looks reasonable. A few things I'd like feedback on: - Keeping both accel and gyro enabled for now: the chip uses different ODR tables for the same aODR register values depending on whether the gyro is on or off. Leaving it in 6DOF mode keeps the ODR table simple for an initial driver, or would you rather see separate modes from the start? - Regulator startup delay: the datasheet lists t0 = 150 ms from power up. Should probe() sleep after enabling supplies before reading WHO_AM_I, in case a board actually switches them off? - Chip IDs: my QMI8658C module returns WHO_AM_I = 0x05 and REVISION_ID = 0x7b (rev 0.9 datasheet says 0x79). The driver warns on an unexpected WHO_AM_I rather than failing probe, and only logs REVISION_ID at dbg level. Compile-tested against linux-next (next-20261203) with W=1 C=1 and dt_binding_check (dtschema 2026.9), and tested on a Raspberry Pi 4B (i2c1, 0x6b) running 6.1.21-v8+ with a small local build shim for cleanup.h/array_size.h/.probe_new (driver source itself is untouched). Accel readings give ~9.64 m/s^2 at rest, switching +/-2g to +/-4g halves the raw values as expected, temp reads ~19.2 C, and 3 unbind/bind cycles come back clean (which caught that SensorDisable needs to be cleared before writing RESET, otherwise the reset fires late and wipes CTRL1 back to 0x20). NanamiKite (2): dt-bindings: iio: imu: Add QST QMI8658C iio: imu: Add driver for QST QMI8658C .../bindings/iio/imu/qstcorp,qmi8658c.yaml | 71 ++ MAINTAINERS | 7 + drivers/iio/imu/Kconfig | 12 + drivers/iio/imu/Makefile | 2 + drivers/iio/imu/qmi8658.c | 622 ++++++++++++++++++ 5 files changed, 714 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/imu/qstcorp,qmi8658c.yaml create mode 100644 drivers/iio/imu/qmi8658.c -- 2.56.1