From patchwork Fri Apr 21 07:16:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hermes Zhang X-Patchwork-Id: 8513 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp878082vqo; Fri, 21 Apr 2023 00:17:35 -0700 (PDT) X-Google-Smtp-Source: AKy350Y4yVngaWq7Fc/O4Az2HBXflF4GCaUovheiAksDSZQN9aum3/A/r5AzWwzrNQ/lgpYpNw9l X-Received: by 2002:a05:6a20:1610:b0:ef:d242:34f6 with SMTP id l16-20020a056a20161000b000efd24234f6mr4163872pzj.56.1682061455059; Fri, 21 Apr 2023 00:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682061455; cv=none; d=google.com; s=arc-20160816; b=fPtxKHGTX9S2QVoBnO23WDp9DBlQybXx7t16KGwIynhKzRuDFtd4qyvffcPDJRR90d tDzcn8E6BuX+lrPdklnacDFTHg1AA+axpALmjf0QsKf9MnHqzPvgUTHbLjY73+KPNxi9 BN5jEquXUdc5t/vxZinGN3KfBNP/XqPtQ40cfRe5sh4njSYf/aW/0NX3iykmlgyBgPZG WWVfo5SwLcErIGZZfaCHDryQuAqtSh99kpmpuldNpf0TvFXFVWolw95ZZg+8gV+G7lo9 KBBe0Ob7sX535mt+VZOV+u5g6t92WwqrB21cdmQZGprizPHdO6AR+PMOlnq4mzHdYSqT mW+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3wSLvUjoBxKRsjb8nuSXO7SpGcSgWBk04cvadMpAu3k=; b=F5DEjnVzS9QK1+DZWXamXkFmFegZtY+3UegtMh/W8q5xkMsUf5p2vtWWssv27NdSJ+ NhU9uGBGnmmJWWf30sWorEyVh5C8vBZDOwsAVV7f0JfJ8i2a5lWYHJY+CEFLd1FCBn4s aqlR6MbZfZtxnOQRFUWft8tjyyzjX6+FPktvhevOkOUr5E61NndGsbw7AmJNQ9xGGMsn sset6S1kxvuKHyQOnQwP8nU3p0zUlDoBQ8rPSgYtFpNmHrMhApHbBl0lqW2TwKzn/ZeS 3KrRXMjKjABgvQGqOEAJ5m7suN/XXYbqmHKPDFDtT4pH4n0aJRbkvgnwp8+1/E7AgbLz hvjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b="f2yvT/gX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j191-20020a638bc8000000b0051f8b655dfcsi3691173pge.19.2023.04.21.00.17.18; Fri, 21 Apr 2023 00:17:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b="f2yvT/gX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229744AbjDUHQw (ORCPT + 99 others); Fri, 21 Apr 2023 03:16:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbjDUHQu (ORCPT ); Fri, 21 Apr 2023 03:16:50 -0400 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11B02DC; Fri, 21 Apr 2023 00:16:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1682061409; x=1713597409; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=3wSLvUjoBxKRsjb8nuSXO7SpGcSgWBk04cvadMpAu3k=; b=f2yvT/gXKb5jghwPPJWz5CTpimmX1w3dSVERseofW+vn66RWCKGyeDrJ OwlOIMS+ee2Yce7q4yAPsABUo1oyAGNz2U1Ent6cBBULZbNdHnq9H96PV EUBXZC6KmlUwHrT5eJgVnkhuI9caf5wiXdS2F4TyFDKX4sGOPoxcYqNAm 0EQ2vtXNvt9d1LQaNqxL1f9eVMsAWyof1UTyWyGAOD3+WPnPOpIGc/t62 DTPAyTOGn6hzm4+OilCN6XtRAkh6mQYmjo7QwORn6jb8HDklRGshpPziM GwsrU6E7rO8zwvWzpU6z/HyNvZiTJfkPMP8lmZWRGqEkPG0pHI/ctYJjg Q==; From: Hermes Zhang To: , , CC: , , , , Hermes Zhang Subject: [PATCH 0/2] Add support for the ICM 20600 IMU Date: Fri, 21 Apr 2023 15:16:28 +0800 Message-ID: <20230421071630.524822-1-chenhuiz@axis.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763769272421071080?= X-GMAIL-MSGID: =?utf-8?q?1763769272421071080?= The Invensense ICM-20600 is a 6-axis MotionTracking device that combines a 3-axis gyroscope and an 3-axis accelerometer. It is very similar to the ICM20602 imu which is already supported by the mpu6050 driver. The main difference is that the ICM-20600 has a different WHOAMI value. Hermes Zhang (2): iio: imu: mpu6050: Add support for the ICM 20600 IMU dt-bindings: iio: imu: mpu6050: Add icm20600 bindings to mpu6050 .../bindings/iio/imu/invensense,mpu6050.yaml | 1 + drivers/iio/imu/inv_mpu6050/Kconfig | 4 ++-- drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 10 ++++++++++ drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c | 6 ++++++ drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h | 2 ++ drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c | 5 +++++ 6 files changed, 26 insertions(+), 2 deletions(-)