From patchwork Wed Nov 13 16:05:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13873980 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 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-iio@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?q?N6RZz9MTSOH8AJmGsaJX1iUDm19XXO6?= =?utf-8?q?PKW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CrpqDr5SaS2RgBDLoQDiPFdTFUMF2ZMwltrR60rBvxG3imhtq5K6md?= =?utf-8?q?q9p/6PyDeXe/isndq//DHRL6RswlpsYoGxBeYVrDk4MhfkcdV6V0Azh+gOUEV6as5?= =?utf-8?q?QiDW9BwoU9NvBWBlDrNB6JoI6v/sCeGHRiplxXlbBAN2u8XQEL+1v8AVR54UCRKTN?= =?utf-8?q?mWAyxXr2TqORNaWuIeuZBHgTTIdQNhzEbnDTn+HTwjUfrB3PccUALymHGnpkVihzD?= =?utf-8?q?dapICWm9FlPjP3DsL/i/DJ4QQ8CO+kndP/lUHlEGQlztlmGQIo17Hfqg811AI+Iyu?= =?utf-8?q?NhHVO0+Q/M/LkSDwHl6qRg/0eJ7XJSaiT1y+WWjQPweu0OfFFXA4VRi4K+i5VtqsQ?= =?utf-8?q?/YtE45TJm0bcnfGjsJwi72EG1irVuHm4W5QUMIvjMEF9qqYWjSDRO3ec=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?q?/GJWvivwhxZ50B15Dwckw9ELkc2U?= =?utf-8?q?GejN+z95GgNs0UTErfKPqTcYWOCLL3bnkj/04PYZws73hbxqPD/z2hdqUvf6cMgXH?= =?utf-8?q?kalNIPlxyHP5qTYGLOIVlzBUZ/+H3XyYg1hAcvOUm0mLiqGnmhxygR+EJKlYcMz9Z?= =?utf-8?q?OQbSiuxbwhUC1Rwj33IBNl0fE6v1AcSA1CnKQ5yxtRPznif1FAVxQMAH46sR1xgfJ?= =?utf-8?q?u1B51z1doNYEWTz3Av2bBsjAPI18THSL27ebVWWCgGAIGztPyjYsn6k8L+yqakznT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qS?= =?utf-8?q?NzrjKUsN6S1oIKhTZPQWRE+6VBL7j9+lUOdnDyYI497EnCMiCr1e++Ty6H60a1A9V?= =?utf-8?q?gVffGUJj798w4/BBn8Lc7dwZ7AiLTcwHJ8dKphLvpnCH9wdE1nqwoGvsVGxYIWPR4?= =?utf-8?q?4FsRswKC0MmLfzHz+/RP/+GLebyGgI9HPWcb9PubwOO8BUHl0y0BsownQx7HdS7vD?= =?utf-8?q?OAFTJDFd/vpNvJSMvRCnAahZ115nQWaENvd8L+Ygrt20VhvHGNE/sMPuMz0kovzY2?= =?utf-8?q?WsiMAxndo2+RuTZX7AtKQCOYXCrWpunQLbv/hnK1Nbbdvg8KyQQrrWxUnU84VBEcq?= =?utf-8?q?nJiC+0wZxwYXMhkkrEDIZQpmCx8uuHYi4fasTSuwAolP4c1+04KCxkGDhwoEneGkC?= =?utf-8?q?hB+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.yaml 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 From patchwork Wed Nov 13 16:05:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13873981 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 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-iio@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?q?w5Mcz8Yi6xcmS5w750pnQhDvYzDnrD4?= =?utf-8?q?F7/Z3Q35GyQlemPrliSheVu5XpiysHV44unkEfN88PeNayEMNwbK6dhycU6+atKlA?= =?utf-8?q?fuEmzDm+FZpEN4WGlY0ZEVUAW9vii0Y/+JiBD6yFn/gIpr28EsiROmyl8qaE1Rm5+?= =?utf-8?q?XN0S3noSmeGilqZn+LOlbzvKx36GOpas/yUjibfM+2OWjmdbqTHj41ZlpNV/qVE1x?= =?utf-8?q?L6Ac64AztztgpeHxxBwB54S+8lFyI0dNI+9qEL6KzBXc4LFhex6BvrKpwjyibiPgO?= =?utf-8?q?VCkZtAHbxyPphDAg2Ls7B97OeUPqtgf+p9BszM1xcuImNqpW8+Q0nyF3fO08mK3Fs?= =?utf-8?q?j5Vg1JuBsYEOmy+82v622Inay/uQyCd7e3dom6EOUlnmsJFd8kG4OBH/Bno7O+xSj?= =?utf-8?q?iGi+9eJ+xw+2S59mcPiokfP6aWUP2kl0MVjMg5sJkedCHWpGbe9OLyCsH8pvFDp3r?= =?utf-8?q?xOCygnL6604sK9oUS8lJEZbm9eqUQqj+QClK+mmy35dI2pSHeY7CVsFTAbDtIMOYI?= =?utf-8?q?38zABjRuVe2Vw7OHWYzKy6l9lG0MKpPUTpofjHA0DbjIliDXbUj0AYW/LJX0ZyxJH?= =?utf-8?q?2sF7CqU5Awd0V/Pyn7HnQE4AHhZ+yyCrl3Iy9c0V4RH6RkCML93ZSq/lcxTa8VUcQ?= =?utf-8?q?1ezQfbS+v9W8XXulFEBEpZOTRwa9q6KURdk/brWAZHS76Sfnfpyex+Qk+lqXVw1dR?= =?utf-8?q?sHLrIwoFM/vhRn5ax4SqW50Tv1wPdO7VzhwBGprW+IadVeHoXrUNXF5Kkqyl1Yr5Y?= =?utf-8?q?ZBrP4EYnrihB8egvQCfyHTgg21w1NekVSksywx4Qv5FRjM+MLd9VlttuLCNn0T1TJ?= =?utf-8?q?IFchjKIwcjQt7UUDPpthqharlgRaI99X5ctAgY3xWeA8EheaejXdLfcYlsa7+21RY?= =?utf-8?q?8P/lNCgK5XET2eIvMboLZ6F2uOQKPtf0+ImOjxp4veLKmEXWRtZfEsiNOjrkf+ipb?= =?utf-8?q?tH+vMyqwBdAxSZQc0s7Uj+lcVKWK26eRKUSADUAKYaxallBqW7Fw70GcxNwpkFdHe?= =?utf-8?q?BDWCSZAwmEEM4uT4vjYMNXxRdIkWyYsp+7vYngu1X1W4Cgb2GpLP7s5sL1bLeRsNB?= =?utf-8?q?XHS0igYmUUEGRaJBs6i4rUmEfIaiiDmpEL8VyaNaOWYrXteAXbKvdVPDIdKYu/44R?= =?utf-8?q?WZaWeLAh+j1PiI5xBBYnh209zSjXwGcrRp7XTnQnB0/UX5598p1td2FV9F5RnwAew?= =?utf-8?q?TrwABNIkOkBLnGy7RQuG1k0mY9RgswTl60WhddaoY0bNszIRmFkgUq/yiH1YtLe29?= =?utf-8?q?zPksjsJFPcHyRwo1QWlkLoznN28Zk88YIuafCceUkcGXpA3JFPh02lbY=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?q?kr7Ankvs6cwJF77JHSf+Xg8TK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=?utf-8?q?R06JT/gQ5Jik/VVI76aT5ERaA2JWpuITh3GLVF7YJidOKqMeyZ3ieLw0KROXSIJTn?= =?utf-8?q?DSMu1Zs3AE6fK4/XAjNo91+lRry27q1vW4zRoFed75Kv8MIKrOlnVls1dkpSI9crS?= =?utf-8?q?z6HyRMCt0Re3kjONGU4ATrA4w87a2KIA0dH3BxkXC4hBE6C6VVPxlPIvxn9W9nlQn?= =?utf-8?q?OJ5OFi9H1f7twRsJ3EBTnPCVlipC5vORUnOZ15s7CWS+QGVg+ZqtUEbQiahYFPhrO?= =?utf-8?q?JRjlJoVhM3ajQQMvrQ0p+ozqpzTMaxX2OsIYFdI/zJHmFrg1C3spP3WpabDyftOZT?= =?utf-8?q?JOT2aRVTIJu0+qtNCqIxlGQExwp2DaXTXpIx9NLPdWbsmz9xYu2TbcJcgeOv8+31W?= =?utf-8?q?CXPAYkhKBy15qnI8gvAVTxwuhxJu6mgS+aLHlCU/Q6gYV5xs6mhzzQ3+4X5T+nVjy?= =?utf-8?q?IkIU1dWDntHaZG1geiNCNGJ7vzyI8/TE8O2SRGRRP0u3sDGNH0KueJfty81HhHgFk?= =?utf-8?q?wkbaEx6nLizblS9FF0qNYLxa4TBXx0LfuEFbfN9eSFmpJWnR361uft+0fKF6/RA3w?= =?utf-8?q?b+4R7XK3Qh4uK4TPZCUkHZRF4z+BmvD818fQZHXIew4oMknH1vZCAvnoUah4UvjnD?= =?utf-8?q?nfssunUqF47E?= 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/inv_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_config_6500 = { .user_ctrl = 0, }; +static const struct inv_mpu6050_chip_config chip_config_6500_gyro = { + .clk = INV_CLK_PLL, + .fsr = INV_MPU6050_FSR_2000DPS, + .lpf = INV_MPU6050_FILTER_20HZ, + .divider = INV_MPU6050_FIFO_RATE_TO_DIVIDER(50), + .gyro_en = true, + .accl_en = false, + .temp_en = false, + .magn_en = false, + .gyro_fifo_enable = false, + .accl_fifo_enable = false, + .temp_fifo_enable = false, + .magn_fifo_enable = false, + .accl_fs = INV_MPU6050_FS_02G, + .user_ctrl = 0, +}; + /* Indexed by enum inv_devices */ static const struct inv_mpu6050_hw hw_info[] = { { @@ -277,6 +294,14 @@ static const struct inv_mpu6050_hw hw_info[] = { .temp = {INV_ICM20608_TEMP_OFFSET, INV_ICM20608_TEMP_SCALE}, .startup_time = {INV_ICM20690_GYRO_STARTUP_TIME, INV_ICM20690_ACCEL_STARTUP_TIME}, }, + { .whoami = INV_IAM20380_WHOAMI_VALUE, + .name = "IAM20380", + .reg = ®_set_6500, + .config = &chip_config_6500_gyro, + .fifo_size = 512, + .temp = {INV_ICM20608_TEMP_OFFSET, INV_ICM20608_TEMP_SCALE}, + .startup_time = {INV_MPU6500_GYRO_STARTUP_TIME, INV_MPU6500_ACCEL_STARTUP_TIME}, + }, { .whoami = INV_IAM20680_WHOAMI_VALUE, .name = "IAM20680", diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c b/drivers/iio/imu/inv_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[] = { {"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[] = { .compatible = "invensense,icm20690", .data = (void *)INV_ICM20690 }, + { + .compatible = "invensense,iam20380", + .data = (void *)INV_IAM20380 + }, { .compatible = "invensense,iam20680", .data = (void *)INV_IAM20680 diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h b/drivers/iio/imu/inv_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