Message ID | 20230421071630.524822-3-chenhuiz@axis.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp882506vqo; Fri, 21 Apr 2023 00:28:19 -0700 (PDT) X-Google-Smtp-Source: AKy350Zzu75ect6D1PFrfExby+hrF+TBia6Ch+sfJQLsp5qh78DEONsjo3wx5UN4Cor8j0gcSi1q X-Received: by 2002:a17:90a:d994:b0:23f:83de:7e4a with SMTP id d20-20020a17090ad99400b0023f83de7e4amr4275236pjv.7.1682062099237; Fri, 21 Apr 2023 00:28:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682062099; cv=none; d=google.com; s=arc-20160816; b=rnBxVFWJXW2Bd7CjIzTia2Wwva5u4UplzMkzJdX+OS5aD+Gs4cyyXzWUdPIPQu3G0A jWQDb7EDDcksTn57HyxG9uXV+cfPLQOXqnJwlP8M2LXybycHXuL2jUEZoUrp+Zevz3Kz pEMfXOpsKJuK/iKlbCtWcxspnrU8Z5Z4+sdO3HgHJl3W5UMr4a8U+WHXjnW34xmdwzCd hZy516b+sJhfRS4oCgqWYUWEHSYudHYHVAZIOyTVKTYBfyA0A/F8yt0db0fwiJDcWHNa pKd+xdExS14TNTs2W7m2eTjzdMHaKdzjN+H1VhoMacrQ0yGBUDhYAD6XYrgmYkFbGZGo BLUg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NCdrh6crw/OWqv2/q77cIZCMSofFpJzwyXynpdc8ASs=; b=F1FWdzmmLCpb24UyB8JuMdV01+0U/sB1QJhY0JU56/XcjuiMpAaG+zSN4keERzMSdi tfhDUJrYXem2NqgUGuFbwq/VUJaFlaHX4tIaAdrPcc16iA2CXiSAf76xPHFopmtnhywR tXPycSNVEp/8meq+yskm4K1GG4rddC7hWWR0iV5cYZYgwyYXfljcHQOOWzJrr82tNR7s nyPE/o443nzHc4vFEyBPwjz78V8z6AkDfRQkHfbzCIWEfYJAJdASL0JP06NUsLLk7drX ZUKGkU2LEWaWiLzhr5Enlf0NXkHxkwjfhb+rlbWiebRt8N4/PDno1j21O9PttO1QnfAN pxsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=D7aY8kB6; 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 b11-20020a17090a12cb00b00246dc4bd520si3890645pjg.132.2023.04.21.00.28.03; Fri, 21 Apr 2023 00:28:19 -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=D7aY8kB6; 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 S230377AbjDUHSD (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Fri, 21 Apr 2023 03:18:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230207AbjDUHR7 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 21 Apr 2023 03:17:59 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F06FABC; Fri, 21 Apr 2023 00:17:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1682061451; x=1713597451; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=NCdrh6crw/OWqv2/q77cIZCMSofFpJzwyXynpdc8ASs=; b=D7aY8kB6qeqXpVgoWG5O7pPkvmNleygVF4SbvdVRxuEP+r7ssXYUOmbM 6DziiifFhvxWqw9/8IDy7wxXmmEYbu5b4McqojVbjCRqBziaDjG3yTSmW K0fDeJtpROBTuq5j/awYd7burRbuWYmDxo5LKqVSvMvUEy1iWNK1I981P h+Q6ONWe6o7xF522MRiANegvPi8qSaYb+Nzjm31/IsT4mCT8qLNk0ompv kWGUksRnqwfzzFrwcYvicgZhtiGHhBFfbv77LlqDR+rTcdCfXTgs/hGGO M2xlrwTI/213lZ9mmeEhTtliv8IG+Uvyx+ygFnv0ioomwVl0cDuW+Eq3X Q==; From: Hermes Zhang <chenhuiz@axis.com> To: <jic23@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <robh+dt@kernel.org>, Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> CC: <linux-iio@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <kernel@axis.com>, Hermes Zhang <chenhuiz@axis.com>, Lars-Peter Clausen <lars@metafoo.de>, <devicetree@vger.kernel.org> Subject: [PATCH 2/2] dt-bindings: iio: imu: mpu6050: Add icm20600 bindings to mpu6050 Date: Fri, 21 Apr 2023 15:16:30 +0800 Message-ID: <20230421071630.524822-3-chenhuiz@axis.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230421071630.524822-1-chenhuiz@axis.com> References: <20230421071630.524822-1-chenhuiz@axis.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763769947463202900?= X-GMAIL-MSGID: =?utf-8?q?1763769947463202900?= |
Series |
Add support for the ICM 20600 IMU
|
|
Commit Message
Hermes Zhang
April 21, 2023, 7:16 a.m. UTC
Adding the invensense ICM-20600 to the compatible list of the mpu6050
driver
Signed-off-by: Hermes Zhang <chenhuiz@axis.com>
---
.../devicetree/bindings/iio/imu/invensense,mpu6050.yaml | 1 +
1 file changed, 1 insertion(+)
Comments
On 21/04/2023 09:16, Hermes Zhang wrote: > Adding the invensense ICM-20600 to the compatible list of the mpu6050 > driver > > Signed-off-by: Hermes Zhang <chenhuiz@axis.com> > --- > .../devicetree/bindings/iio/imu/invensense,mpu6050.yaml | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml > index ec64d7877fe5..67711bc0ee6c 100644 > --- a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml > +++ b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml > @@ -20,6 +20,7 @@ properties: > - invensense,icm20608 > - invensense,icm20609 > - invensense,icm20689 > + - invensense,icm20600 > - invensense,icm20602 Didn't we start switching to compatible groups of devices? This looks compatible with 20602. Best regards, Krzysztof
在 2023/4/21 16:23, Krzysztof Kozlowski 写道: > Didn't we start switching to compatible groups of devices? This looks > compatible with 20602. Hi Krzysztof, Sorry, I may not aware of this. Could you give some more info about the compatible groups? Yes, the icm20602 is quite similar as icm20600. Thanks & Best Regards, Hermes
On Sat, 22 Apr 2023 14:14:49 +0800 Hermes Zhang <chenhuiz@axis.com> wrote: > 在 2023/4/21 16:23, Krzysztof Kozlowski 写道: > > Didn't we start switching to compatible groups of devices? This looks > > compatible with 20602. > > Hi Krzysztof, > > Sorry, I may not aware of this. Could you give some more info about the > compatible groups? Yes, the icm20602 is quite similar as icm20600. If it's compatible enough that a device tree that lists compatible = "invensense,icm20600", "invensense,icm20602" would work correctly with an old kernel by first checking for invensense,icm20600 then falling back to invense,icm20602 then it should be listed with that fallback. See the existing block that covers the fallback form icm20608d to icm20608 - items: - const: invensense,icm20608d - const: invensense,icm20608 Note it is fine if the driver 'warns' that it's found a WHOAMI value it doesn't know as long as it then goes on and works correctly. Thus there can't be any incompatibilities between the two parts when we consider the functionality the driver implements today. If we add features in future that aren't compatible, that's fine because we will be matching against the more specific compatible you are adding here. Jonathan > > Thanks & Best Regards, > > Hermes >
diff --git a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml index ec64d7877fe5..67711bc0ee6c 100644 --- a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml +++ b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml @@ -20,6 +20,7 @@ properties: - invensense,icm20608 - invensense,icm20609 - invensense,icm20689 + - invensense,icm20600 - invensense,icm20602 - invensense,icm20690 - invensense,mpu6000