From nobody Sat Nov 23 08:30:15 2024 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2061.outbound.protection.outlook.com [40.107.241.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3DCD15AAC1; Wed, 13 Nov 2024 16:06:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.241.61 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731513974; cv=fail; b=p7FxC3SL1veuZW9K/2yYNy0QGa8FxHUQhS+ZfwH5ZzqGKk5igHN5v4vfEEwnvYdVl9+o5Xzo58XfjFdzNRu2wKibdLU/2UFFDIsqsAv4aOUyjm1dC2aGDc23VceRVc92gT/k0XUcJiS2ZE9ik3oyyIJwqfheJfv0tMj8NsiiFLI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731513974; c=relaxed/simple; bh=2GIglc2YRUNBiUOAdgC38eW+xKyjgXnkl5eInQ+r8TY=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=AzZ5H/n/u+C8IKXvEXBROyQ3DXZFPZsteC3jeTJw95sAeReoz1wIMJt63I5H856LEehvl6cl6Cza45n5X+gTI4BBeajx9jH6UW2566mh/AaOLLIV5Kdit7tN7GWNunptkTl64vSRVT1DKuD070MjHU/ApfJhuB+Pq9qjDtaN1ZA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=isExRsj+; arc=fail smtp.client-ip=40.107.241.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="isExRsj+" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Yj/Tu/71pFSfSXqxA7XE2AgGVVM38YMnOBiUbx5bDKM7us2HAl2wqzUP63fQHu7KnPUQvdBZz2g+m+R5HGXW7nzuOm9ntoT/emdjAgpNFwpiRUR8uBIZf7d9/FO4m5Ewpp5oqZhine/WQPbJYN2EV9YXcvKdxIAi9XivR0F6XcvvK5283HunjYEURpdb/ZXWBcesNJnJ9eNjq5vj2RvtJCs9J/GRMtLxWst0fyxJ22xL/G6D7uY6o1Fc8PsOLOq+q0Li0GwSx7a83DK6ewj+/mRoVU1HYHyoUOWr2ItMB3nWXx0dKQLbugP0IQlkNk/HzjB9JSX2UqgyERorbDxrcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rD2YT29Dl+fFYJOLSPRlz+RUWDUIDHD46InX/O8WC0s=; b=U1kQKLo8nfe+sb9aQwhOtXiUP07ZTtdmAD4St3wIRN6L1e5Fe3CZ72EnBXaaBYRVRQMKA6mtoYR9MJQqPH4P14O2Ca2NRsKNtAk3il2li/NwQtXbAbKt3OikLSU916DmFVCscoTelcN1RzxxFpEvtx1CoZyEO+sfO0U3Zf5RjyApuGa7UOIpygWA9nWwyUw2rKuXTPtBTt5+fIr4h3LPu3G++VyTJh+52qAJaUnSj6xeQDHjPwnGJuHdQQc29lIvo3n9hYIpQPIggjShOaWZ2tfYLdTmVGFdVovS38xhORTjQaJtO5eqOIeTJ2hg+udhDtDUfFLvnO3d2bPztYtDZQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rD2YT29Dl+fFYJOLSPRlz+RUWDUIDHD46InX/O8WC0s=; b=isExRsj+43IoylLSeQjzoW2H7CyMJEumpkYkB0K1M3QZgupXF1t96Nuc8stInlM4ITi6Zz/3a8bRtYq2RzEVj+SQqmWRE7FBrS2RrUGheZhoE3KEb84bc6qPJE0LBbnNYmdoOuaPOlo+LKw/xQQVv8nbalfkdydM65mt4BIfjI0S0ImYRD8u1sbEjxwesBoBHuz+uiY9KQI+5FlORmXp16ZAEzsyRxPbwOqpTlgzcueYYaWiFngvmV9Pa7GPlAwyYRp3nbW52zB8h8gAsT1BftyhUVbpB7qex3CcVJO2GanmeUMJJFkdomaHgZy2IU0iHGYtjV++zoTRlli6y5yvLQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB9626.eurprd04.prod.outlook.com (2603:10a6:10:309::18) by DBAPR04MB7400.eurprd04.prod.outlook.com (2603:10a6:10:1b3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.17; Wed, 13 Nov 2024 16:06:10 +0000 Received: from DB9PR04MB9626.eurprd04.prod.outlook.com ([fe80::e81:b393:ebc5:bc3d]) by DB9PR04MB9626.eurprd04.prod.outlook.com ([fe80::e81:b393:ebc5:bc3d%3]) with mapi id 15.20.8137.027; Wed, 13 Nov 2024 16:06:10 +0000 From: Frank Li Date: Wed, 13 Nov 2024 11:05:56 -0500 Subject: [PATCH 1/2] dt-bindings: iio: imu: mpu6050: Add invensense,iam20380 compatible string Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241113-iam20380-v1-1-cae690c4674d@nxp.com> References: <20241113-iam20380-v1-0-cae690c4674d@nxp.com> In-Reply-To: <20241113-iam20380-v1-0-cae690c4674d@nxp.com> To: Jean-Baptiste Maneyrol , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Frank Li , Han Xu X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1731513964; l=911; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=y/SLDHvonML6ftv90FsRHjUfTdAiylXC+GFSzJIAgKc=; b=Jh/4IJkb5k6a8E8pv6OFnJ+W/3D/GPNkYqgTktn54VOGMEWwWWrRM/Hc94U3vIfGHR7xv9l/X RkmdK02FCx+CwEClKvsN8qWzbx3cXOe5Yg+vbnMsF0VmgpcFDpQVG1Q X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR21CA0014.namprd21.prod.outlook.com (2603:10b6:a03:114::24) To DB9PR04MB9626.eurprd04.prod.outlook.com (2603:10a6:10:309::18) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR04MB9626:EE_|DBAPR04MB7400:EE_ X-MS-Office365-Filtering-Correlation-Id: c6b786dc-8d16-495b-209f-08dd03fd1711 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?TjZSWno5TVRTT0g4QUptR3NhSlgxaVVEbTE5WFhPNlBLV0QzRnM2czJjMnV0?= =?utf-8?B?bnNLWmJzYkhiblFBNFRPa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255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB9626.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?L0dKV3ZpdndoeFo1MEIxNUR3Y2t3OUVMa2MyVUdlak4rejk1R2dOczBVVEVy?= =?utf-8?B?ZktQcVRjWVdPQ0xMM2Jua2ovMDRQWVp3czczaGJ4cVBEL3oyaGRxVXZmNmNN?= =?utf-8?B?Z1hIa2FsTklQbHh5SFA1cVRZR0xPSVZsekJVWi8rSDNYeVlnMWhBY3ZPVW0w?= =?utf-8?B?bUxpcUdubWh4eWdSK0VKS2xZY016OVpPUWJTaXV4YndoVUMxUndqMzNJQk5s?= =?utf-8?B?MGZFNnYxQWNTQTFDbktRNXl4dFJQem5pZjFGQVZ4UU1BSDQ2c1IxeGdmSnUx?= =?utf-8?B?QjUxejFkb05ZRVdUejNBdjJiQnNqQVBJMThUSFNMMjdlYlZXV0NnR0FJR3p0?= =?utf-8?B?UHlqWXNuNms4TCt5cWFrem5UMXlYSjhYYVZZSUVVY2RZWHo4YkVXc2Z4ZExy?= =?utf-8?B?SHcvMXRaR0xMMUhHeDRiU3lhY2dIK3FsTG5OeFFtWi9hOGJueXBxT1hyKytt?= =?utf-8?B?aTIwRDZGenR3RnU5Zk9mbG9naXZMMkxvOElsL0lyYXlQTTlvSk4rRXVLbmlQ?= =?utf-8?B?QUczbld4VEhGc0NmUURlajl2TkxBNnRJdjVOZHdrc3p3eS9DSGE3M2JFaXV1?= =?utf-8?B?ZmJ0YjZ3WGVQaEJ1VjlqaDFmMzV0WWIyTS9qRk92NmdIME1wMWlWb3Uxa2FR?= =?utf-8?B?YzA5dWNGc0x4dXVFSFlwZURaWThYVFRtSWVqaysxdkQvQ002V0VGa1hja3dx?= =?utf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pLVXNONlMxb0lLaFRa?= =?utf-8?B?UFFXUkUrNlZCTDdqOStsVU9kbkR5WUk0OTdFbkNNaUNyMWUrK1R5Nkg2MGEx?= =?utf-8?B?QTlWZ1ZmZkdVSmo3OTh3NC9CQm44TGM3ZHdaN0FpTFRjd0hKOGRLcGhMdnBu?= =?utf-8?B?Q0g5d2RFMW5xd29HdnNWR3hZSVdQUjQ0RnNSc3dLQzBNbUxmekh6Ky9SUC8r?= =?utf-8?B?R0xlYnlHZ0k5SFBXY2I5UHVid09POEJVSGwweTBCc293blF4N0hkUzd2RE9B?= =?utf-8?B?RlRKREZkL3ZwTnZKU012UkNuQWFoWjExNW5RV2FFTnZkOEwrWWdydDIwVmh2?= =?utf-8?B?SEdORS9zTVB1TXowa292elkyV3NpTUF4bmRvMitSdVRaWDdBdEtRQ09ZWENy?= =?utf-8?B?V3B1blFMYnYvaG5LMU5iYmR2ZzhLeVFRcnJXeFVuVTg0VkJFY3FuSmlDKzB3?= =?utf-8?B?Wnh3WVhNaGtrckVESVpRcG1DeDh1dUhZaTRmYXNUU3V3QW9sUDRjMSswNEtD?= =?utf-8?Q?xkGDhwoEneGkChB+dyx4jH3Q3?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c6b786dc-8d16-495b-209f-08dd03fd1711 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9626.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Nov 2024 16:06:10.6369 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /tUOToh4ULcCwVhS2lfb0X6LWVTzPC99FF34pLkN07WdfbhJ/Xjwo5kP2FhL4itZ8GT1u43zBFykDGK3QCsf2w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7400 From: Han Xu Add compatible string "invensense,iam20380" for the Invensense IAM20380 sensor. The IAM20380 is similar to the IAM20680, but only supports gyro. Signed-off-by: Han Xu Signed-off-by: Frank Li Acked-by: Conor Dooley --- Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.y= aml b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml index f91954870a44c..0bce71529e34c 100644 --- a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml +++ b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml @@ -16,6 +16,7 @@ properties: compatible: oneOf: - enum: + - invensense,iam20380 - invensense,iam20680 - invensense,icm20608 - invensense,icm20609 --=20 2.34.1 From nobody Sat Nov 23 08:30:15 2024 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2061.outbound.protection.outlook.com [40.107.241.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F3191632D0; Wed, 13 Nov 2024 16:06:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.241.61 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731513977; cv=fail; b=bN7Jpq4L4PTZGdmEvnphkLUvX8kRn8Zzu0gv6rrf7ajjS7dgYNRSPWd2FpRRcdD3wxDbIkpYnBJgFQR+mRPRNB5+8sqwpGPQay63f/XTl6DjgTof6ezGFNbllLfMgcYyZ/Jw5WYOIFcBcwMcwrs47BLXVmlrfaw8UGHL/465gBk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731513977; c=relaxed/simple; bh=xgMh5Ow4MAANt+x7pQjRGyvIfWQySqtH8BIylWkoCrU=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=lwQS++mkzzHbdKM/I+euif+XdDZytlwZaZvPkzv1I2w5g1Se0iYCPvCkjAq0ypc942yDgWI2KI7t5TCmES9t+5YRC8WlBKJskXZGbHGw4upvdjIZMJ0bKqrp1IIVM1G0h2FkgOzjAqVp/6ogdL6XKsmI0ImzuqdkICoQbAzJqTU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=aKrHhScx; arc=fail smtp.client-ip=40.107.241.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="aKrHhScx" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gQ/xYKH/PV3aA4yk3Qdz/LeLJNMP7a0iWjjeqGlG6G22tNB5V0/VIgd+gU5rbPZwKQReopUbDiqoSnq2gOXbbvrUmaH0y509tBVoz9oQcQP0QBSIrRH8dwU23EdCqF8Hx8TbxL0LeLNy7Q5Ao0V5pX0HgoMMWWyy0vmCVQTYzjlxL5ZhfSqd+fGjVqCbyoG0j6C1PH3m0nNoAR5et4Qy50SUgVpEAc8xN0Fvw1tHWj+H2EhXvRzzegEtgoLORsyTX1M7Lt2sty4TxsUSdeIOg5pBiVULrIvCJiTC3aFalgQ1bv5UcjG0hsyuDO0+QFwydMIyxCBh5Xv0kK7EH1Y6UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=L704wqlL4YmUm4LsqlOXOJFCTqezjrPsi4Gf73CJntY=; b=Ki7247rvjdy2tYC1kX7FIsqqEzD7chLr0uxRQzCU2AHL3m2AFbpT7QJLow/ex7eMMoXmvoGFFaXWmOSaDpYQQaaGVRAZ+8PSDnc/a0DbFEQ+yGWnnkOTQeNZsW+Esvw4Vgaezx7E4vdfJjyozCh5/JlIEa+hgjf/+oxyHnoY4fesMrKCLnIr15Nr6gjUjbkqYDsuAORZ+wYYxxhMcOK/16m6q8QLijF54EmF8/OhiENWshmy6oBttUTg+SPfUNzckTqmFXUnSs6AYpajyOpmH9ovDCFcPZNwEmM78t8HI8Zh6velnSR0f4/QaT/lb6PUO0p6uLJgqYvkGwSjtlcXbg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L704wqlL4YmUm4LsqlOXOJFCTqezjrPsi4Gf73CJntY=; b=aKrHhScxzAk84DYrDnyKip+357UjrvWEPoYvd6f4K6kktu/uq1lc54Xfr7WqLcZu9QbFHM3wNG6EXHGcnWiW+qaSdNRu0+e185HFmHf5MkMjLXmATUqP03Dl8FRgS1oU98wySIDP06RLuvq3kZo9UWyrYpkkhMhh+dNSsKKBX3iS6K8rKGM8jVs6O/L8B2s0wkgdI2XVWMaCJsa+jV0+Z4NuO6yWRb3xYJu2qL4wjuSB6rgYmw7l5wchlfSFC2Ce+DYAJ6cAiazZ5nTGBEJnkRyqW73AYN47cELw5oEWCDPIEsh2R6yVT1pShI3n6O2somllwj5VngPeBrbSqqd5Vw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB9626.eurprd04.prod.outlook.com (2603:10a6:10:309::18) by DBAPR04MB7400.eurprd04.prod.outlook.com (2603:10a6:10:1b3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.17; Wed, 13 Nov 2024 16:06:13 +0000 Received: from DB9PR04MB9626.eurprd04.prod.outlook.com ([fe80::e81:b393:ebc5:bc3d]) by DB9PR04MB9626.eurprd04.prod.outlook.com ([fe80::e81:b393:ebc5:bc3d%3]) with mapi id 15.20.8137.027; Wed, 13 Nov 2024 16:06:13 +0000 From: Frank Li Date: Wed, 13 Nov 2024 11:05:57 -0500 Subject: [PATCH 2/2] iio: gyro: Add support for iam20380 sensor Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241113-iam20380-v1-2-cae690c4674d@nxp.com> References: <20241113-iam20380-v1-0-cae690c4674d@nxp.com> In-Reply-To: <20241113-iam20380-v1-0-cae690c4674d@nxp.com> To: Jean-Baptiste Maneyrol , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Frank Li , Han Xu X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1731513964; l=3891; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=wSn8B8m+6BGKzfDd5sU8egsmJ9Wbw+zQUectE0S8luc=; b=KbWctX6f4+Vrx6Sa2OZltKGt8WZITlPGTSXQAuCmJQCa1aSTYvS6C+D+fudrx9Z3neCt6inBK GjShCtc3seFCQsIhwsx76YaELHZ92eQhZjK3qFLPJlE/c+J8gPb/FXi X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR21CA0014.namprd21.prod.outlook.com (2603:10b6:a03:114::24) To DB9PR04MB9626.eurprd04.prod.outlook.com (2603:10a6:10:309::18) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR04MB9626:EE_|DBAPR04MB7400:EE_ X-MS-Office365-Filtering-Correlation-Id: 26e8f19a-2090-4736-3294-08dd03fd18f3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?dzVNY3o4WWk2eGNtUzV3NzUwcG5RaER2WXpEbnJENEY3L1ozUTM1R3lRbGVt?= =?utf-8?B?UHJsaVNoZVZ1NVhwaXlzSFY0NHVua0VmTjg4UGVOYXlFTU53Yks2ZGh5Y1U2?= =?utf-8?B?K2F0S2xBZnVFbXpEbStGWnBFTjRXR2xZMFpFVlVBVzl2aWkwWS8rSmlCRDZ5?= =?utf-8?B?Rm4vZ0lwcjI4RXNpUk9teWw4cWFFMVJtNStYTjBTM25vU21lR2lscVpuK0xP?= =?utf-8?B?bGJ6dkt4MzZHT3Bhcy95VWppYmZNKzJPV2ptZGJxVEhqNDFabHBOVi9xVkUx?= =?utf-8?B?eEw2QWM2NEF6dHp0Z3BlSHh4QndCNTRTKzhsRnlJMGROSSs5cUVMNkt6Qlhj?= =?utf-8?B?NExGaGV4NkJ2cktwd2p5aWJpUGdPVkNrWnRBSGJ4eVBwaERBZzJMczdCOTdP?= =?utf-8?B?ZVVQcXRnZitwOUJzek0xeGN1SW1OcXBXOCtRMG55RjNmTzA4bUszRnNqNVZn?= =?utf-8?B?MUp1QnNZRU9teSs4MnY2MjJJbmF5L3VReUNkN2UzZG9tNkVPVWxubXNKRmQ4?= =?utf-8?B?a0c0T0JIL0JubzdPK3hTamlHaSs5ZUoreHcrMlM1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1OWHhSZElrV3lZc3ArN3ZZbmd1MVgxVzRDZ2IyR3BMUDdz?= =?utf-8?B?NXNMMWJMZVJzTkJYSFMwaWdZbVVVRUdSYUpCczZpNHJVbUVmSWFpaURtcEVM?= =?utf-8?B?OFZ5YU5hT1dZclh0ZUFYYkt2ZFZQRElkS1l1LzQ0UldaYVdlTEFoK2oxUGlJ?= =?utf-8?B?NXhCQlluaDIwOXpTalh3R2NyUnA3WFRuUW5CMC9VWDU1OThwMXRkMkZWOUY1?= =?utf-8?B?Um53QWV3VHJ3QUJOSWtPa0JMbkd5N1JRdUcxazBtWTlSZ3N3VGw2MFdoZGRh?= =?utf-8?B?b1kwYk5zeklSbUZrZ1VxL3lpSDFZdExlMjl6UGtzanNKRlBjSHlSd28xUVds?= =?utf-8?Q?kLoznN28Zk88YIuafCceUkcGXpA3JFPh02lbY=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB9626.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?a3I3QW5rdnM2Y3dKRjc3SkhTZitYZzhUS0RPdU5QMkc2eUNXR1JkdVMvemoz?= =?utf-8?B?ZzViL0lBR2VCd2wzR0hMU2h2QWxXdlk3MGZYM0IyMUpyQk1WM1R3bUdjSG9R?= =?utf-8?B?d2pabzIwRFhUaWZBWlVndDl3bXh5TUVrZzB6QzNsbi9FenZpSmZOLzBLa0xS?= =?utf-8?B?UzljYUxMWFNCSnU0UE9pS1padW5SQTlYY2JuYUlmemVnQWdmMENnVlJ0Y2xt?= =?utf-8?B?OTJLRVBVSzVGN2NCVGpoWkN1MDNMWlFkdko1SDB1N2REZS8reXRiV3I5WTlu?= =?utf-8?B?Qk1vZHpLaFVx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E4ZlFaSFhJZXc0b01rbkgxdlpD?= =?utf-8?Q?AvnoUah4UvjnDnfssunUqF47E?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26e8f19a-2090-4736-3294-08dd03fd18f3 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9626.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Nov 2024 16:06:13.8073 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cNiJHtVIRvR3P0tdNOxi+opq5EQkVdaHFLI/61e0Oj/oP1j7aop5yq8/gWT504cjtVySSpSdum9+KVg/zMcfQw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7400 From: Han Xu Add support for the Invensense IAM20380 sensor to the MPU6050 driver. It is similar to the IAM20680. But IAM20380 only supports gyro and WHOAMI register data is difference. Signed-off-by: Han Xu Signed-off-by: Frank Li --- drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 25 +++++++++++++++++++++++++ drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c | 6 ++++++ drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h | 2 ++ 3 files changed, 33 insertions(+) diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c b/drivers/iio/imu/i= nv_mpu6050/inv_mpu_core.c index 40271352b02cf..f6e41ee14298a 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c @@ -140,6 +140,23 @@ static const struct inv_mpu6050_chip_config chip_confi= g_6500 =3D { .user_ctrl =3D 0, }; =20 +static const struct inv_mpu6050_chip_config chip_config_6500_gyro =3D { + .clk =3D INV_CLK_PLL, + .fsr =3D INV_MPU6050_FSR_2000DPS, + .lpf =3D INV_MPU6050_FILTER_20HZ, + .divider =3D INV_MPU6050_FIFO_RATE_TO_DIVIDER(50), + .gyro_en =3D true, + .accl_en =3D false, + .temp_en =3D false, + .magn_en =3D false, + .gyro_fifo_enable =3D false, + .accl_fifo_enable =3D false, + .temp_fifo_enable =3D false, + .magn_fifo_enable =3D false, + .accl_fs =3D INV_MPU6050_FS_02G, + .user_ctrl =3D 0, +}; + /* Indexed by enum inv_devices */ static const struct inv_mpu6050_hw hw_info[] =3D { { @@ -277,6 +294,14 @@ static const struct inv_mpu6050_hw hw_info[] =3D { .temp =3D {INV_ICM20608_TEMP_OFFSET, INV_ICM20608_TEMP_SCALE}, .startup_time =3D {INV_ICM20690_GYRO_STARTUP_TIME, INV_ICM20690_ACCEL_ST= ARTUP_TIME}, }, + { .whoami =3D INV_IAM20380_WHOAMI_VALUE, + .name =3D "IAM20380", + .reg =3D ®_set_6500, + .config =3D &chip_config_6500_gyro, + .fifo_size =3D 512, + .temp =3D {INV_ICM20608_TEMP_OFFSET, INV_ICM20608_TEMP_SCALE}, + .startup_time =3D {INV_MPU6500_GYRO_STARTUP_TIME, INV_MPU6500_ACCEL_STAR= TUP_TIME}, + }, { .whoami =3D INV_IAM20680_WHOAMI_VALUE, .name =3D "IAM20680", diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c b/drivers/iio/imu/in= v_mpu6050/inv_mpu_i2c.c index 7a5926ba6b97d..62f7d16c2ddcb 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c @@ -34,6 +34,7 @@ static bool inv_mpu_i2c_aux_bus(struct device *dev) case INV_ICM20689: case INV_ICM20600: case INV_ICM20602: + case INV_IAM20380: case INV_IAM20680: /* no i2c auxiliary bus on the chip */ return false; @@ -187,6 +188,7 @@ static const struct i2c_device_id inv_mpu_id[] =3D { {"icm20600", INV_ICM20600}, {"icm20602", INV_ICM20602}, {"icm20690", INV_ICM20690}, + {"iam20380", INV_IAM20380}, {"iam20680", INV_IAM20680}, {"iam20680hp", INV_IAM20680HP}, {"iam20680ht", INV_IAM20680HT}, @@ -252,6 +254,10 @@ static const struct of_device_id inv_of_match[] =3D { .compatible =3D "invensense,icm20690", .data =3D (void *)INV_ICM20690 }, + { + .compatible =3D "invensense,iam20380", + .data =3D (void *)INV_IAM20380 + }, { .compatible =3D "invensense,iam20680", .data =3D (void *)INV_IAM20680 diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h b/drivers/iio/imu/in= v_mpu6050/inv_mpu_iio.h index a6862cf426396..211901f8b8eb6 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h @@ -84,6 +84,7 @@ enum inv_devices { INV_ICM20600, INV_ICM20602, INV_ICM20690, + INV_IAM20380, INV_IAM20680, INV_IAM20680HP, INV_IAM20680HT, @@ -425,6 +426,7 @@ struct inv_mpu6050_state { #define INV_ICM20600_WHOAMI_VALUE 0x11 #define INV_ICM20602_WHOAMI_VALUE 0x12 #define INV_ICM20690_WHOAMI_VALUE 0x20 +#define INV_IAM20380_WHOAMI_VALUE 0xB5 #define INV_IAM20680_WHOAMI_VALUE 0xA9 #define INV_IAM20680HP_WHOAMI_VALUE 0xF8 #define INV_IAM20680HT_WHOAMI_VALUE 0xFA --=20 2.34.1