From patchwork Fri Sep 20 13:36:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: inv.git-commit@tdk.com X-Patchwork-Id: 13808518 Received: from mx0a-00549402.pphosted.com (mx0a-00549402.pphosted.com [205.220.166.134]) (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 5665217839C; Fri, 20 Sep 2024 13:36:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.166.134 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726839413; cv=fail; b=puJtXuVCuXwtp1JRpdP4eUqz7q1WW4o7O0hpAA4HhIOKMM8tRwjEGub4rDxiadpUodTAB2njcXeRWAhg/bE3sHtTB1GuEBOtiP4/ILFniIj1HL9ElPrrL47Rm6O6RWsnZse/B52AR+SR+Eh+20Put4yn7n6g6xGdG7LuuAkxoUY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726839413; c=relaxed/simple; bh=+0FiaeFee+RAgY8QAXL92AVcGBseHrHO8TQDNL/+ShU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=tLMisn9D1oAzQeEKIAiH4DvxKQNh/PqimLDS8ANfaHp0bbCW9VyGJLawvSEHPONJ8/W90rkVKoztUHfzwprp5K4l96ik625OQDsbZfciWp8AxeHNqn6aozrfir0YnpDFoxnqas4xbfz4uvXFUtvYuSvmKhqq1dwQ5gsHv7h1izE= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tdk.com; spf=pass smtp.mailfrom=tdk.com; dkim=pass (2048-bit key) header.d=tdk.com header.i=@tdk.com header.b=bivuE3S7; arc=fail smtp.client-ip=205.220.166.134 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tdk.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tdk.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tdk.com header.i=@tdk.com header.b="bivuE3S7" Received: from pps.filterd (m0233778.ppops.net [127.0.0.1]) by mx0b-00549402.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48JMQRsn019950; Fri, 20 Sep 2024 13:36:38 GMT Received: from tyvp286cu001.outbound.protection.outlook.com (mail-japaneastazlp17011024.outbound.protection.outlook.com [40.93.73.24]) by mx0b-00549402.pphosted.com (PPS) with ESMTPS id 41nt89v1cj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Sep 2024 13:36:37 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WqG1C+CCpXPXzbIPQjmN5UCqMX/WpKHa+JB1FJFhWC+EnasJ/cdbcHD79XkD/eAtDfOLZKw/kSVH+1XV6PF1zJ8ALq6LfWWfnwE874CdX4OCiwd8FvSxaWJEDUvBg3wtMIZ6zIzq0uqYhNXD9SbaubVRhuPSkloC4jltw1rV5QurMmI/dKznxdG+F1Y446OMRUwCuqcgBec1/D4kk4fUvdfOeBidqa5NNwWJdJKO/IoTCYhcWrKYYuf6X7k1DNNEKUUXU7eZUkxnsI3z9Xey7egQSaDOE+rCywNuXB4ZFsMA/ZSgSc2VFcA45mtBK3C3RGMemViXP+HqmaWNzk/BsQ== 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=zCCVlqCmKS20FaZW2s3SpLr9LN838VsxgGFd4RrX0Ww=; b=Y0ns/DcFsS2ufBxIT/u8rUUZkSaX6OqiJUve4SWUGp7hrODMktKEd+l3RHilBdKYZ3K1J+HINViA+CZiqpNmnEGlw7sPiOJ3yXtgrjPu/4dPzwU6BFFeBiBMs2Xg8dc2ROG2DNQ6S1ZeKKuRjMRgX69UYt/SFqtP+h+vHEVEFM+rBKKaWT5kXUawKsyN7OZPt7VMCr56QQ3WYrPJD0p8S5jAnxVnrY5IPTcrnGQu8MxvGCo7R57EPLct8dwjK15Mis5TXuJVF8UxDwmbE43NiHx2OZXNq8gC5sWwE7Abvu7L7yznntx41+8ATOjR/aIrxpHTGYaHtv5Zebn1chZANg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=tdk.com; dmarc=pass action=none header.from=tdk.com; dkim=pass header.d=tdk.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tdk.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zCCVlqCmKS20FaZW2s3SpLr9LN838VsxgGFd4RrX0Ww=; b=bivuE3S7pHOKIiAF9il2aF3nn58nJ32F5DpOxpzENwjaOz53BJt2crOmL7j7t2K1R7P23Id8BBE614cdX/ArkHQC+kgpSwP9XCHtorkxRdKABMlnfS1fCJxB/xhjMVNA5K98yorWJD02wv6qWe+EePDrHTVr5SuMpFLAt+s3mYfoIKpV8BlD33lFnKz3v7QrYBxWYVqvbKNIbYzm0NsMSWY9L9pyYN6agjMec0mTwBTzwr7GDEaOrlPz275VplHZTTJ+it5DuZLMLp83hh2dmmC1wosndcO3GBN8RBw30am1sEHciluCBeWF31aSAHcVKl38xrR2GPuhj6gsoSqBXA== Received: from OSZP286MB1942.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1a7::13) by OS9P286MB5256.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:310::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.22; Fri, 20 Sep 2024 13:36:35 +0000 Received: from OSZP286MB1942.JPNP286.PROD.OUTLOOK.COM ([fe80::ff9:b41:1fa8:f60b]) by OSZP286MB1942.JPNP286.PROD.OUTLOOK.COM ([fe80::ff9:b41:1fa8:f60b%4]) with mapi id 15.20.7982.018; Fri, 20 Sep 2024 13:36:35 +0000 From: inv.git-commit@tdk.com To: jic23@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: lars@metafoo.de, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Jean-Baptiste Maneyrol Subject: [PATCH 1/2] dt-bindings: iio: imu: mpu6050: Add iam20680ht/hp bindings to mpu6050 Date: Fri, 20 Sep 2024 13:36:14 +0000 Message-Id: <20240920133615.167726-2-inv.git-commit@tdk.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240920133615.167726-1-inv.git-commit@tdk.com> References: <20240920133615.167726-1-inv.git-commit@tdk.com> X-ClientProxiedBy: ZR0P278CA0136.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:40::15) To OSZP286MB1942.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1a7::13) 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: OSZP286MB1942:EE_|OS9P286MB5256:EE_ X-MS-Office365-Filtering-Correlation-Id: d3c2b119-61cb-4160-17e3-08dcd9793ee1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|52116014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: 09zQIDC9rFZ/usgRQcQ9/d06JaraHImlcYwfI8baHWTbvBWrm1mnhP5KWv9LvlTUFScwyJfXMvwVMk37EMB7mcHlXDN28WuNsI1aB8nsr1kxxHlltw4Zl8amuah42N0iSJh4NQVRZ3vdkeu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5d57eMw/xJH7+lUuziTr8kXkCfAo7NNcvRMt6q1nhhmNbIY7gvSLiSPSYmzP+paDwMvt58c0FWDxZDBeZMm7r/fnISJ/RKPQfGdxaCWdsx40Sq86j2Rz3+LJ1C+3U0OG/QX1S/yH5PVW1EQIMPndL7s6UWhQZJu5AyRVqT8Nf4SM+iUNbuQgJHKUBgDAhLKM68ewVhsk+cNNRzOqVg6NIhW7aNmfcw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OSZP286MB1942.JPNP286.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(376014)(366016)(52116014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: wL5oxqJnYrrTcSj/E1IpW3mLdaDN21ZNeANFEjKet7sHyqJxkngMcL3HKeJpA0ogxzjF1rvRliatRqK3WDqytzRDAlouPMO5mL4a3ES/oSLmN84izjJhl7IdXBgbeBqRdWaxCV3bj3RIeEaCEelJzQ/pQ1YoIjxz0Bs87ZTV8X4TIVChNjoIPHQoWRa7nUYp15yog0iPlKiLZuSiF59onR2Go1QtuVYflVzmuTHFtJ6/rw5mgE1Evl8ldzB0L+EVy0XfDAfgSUQkrhnNucXrk1wOxWQ0ye4W/1yTdK98tFQARssaVKHTvCNxXo+JfFt/BbLO4NbcluLISQ7w7JUfHmtlTHFjGtxsMT5TVK0w5RaBEcs6TfuK9jNv7t3JYK63WJOAc9xqpfwI5ViH7kOMD1aWk/ZvYnjQXtk0PjaZnr8orlUxa0sgkdirxbo5jWJiUkoZ1V9WvJegCvt5oYCS86PfecOs5ShdFztT3y09+uFYApuHRfTIq8mIxETqZjLg0qeh2L9kRILp9zZnhja+qTwp3wEiG+kgUOgWoOAL/IHJciwFUQM87oURmcCOdVTIPhHtqNslx4DYqfZ3PsPQiivxGqNzks+iv/SqOCAhxN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enant-AuthSource: OSZP286MB1942.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2024 13:36:35.3029 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 7e452255-946f-4f17-800a-a0fb6835dc6c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3fYg78fJgsbOUvOMnDN+s6FzrR1c9UIEKhKgsOV/ZbSRH1mlMhKDu1PciryH5WvIq3+MLpWFbui9XwTfe4cp3g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS9P286MB5256 X-Proofpoint-ORIG-GUID: 1lmyxK7QvR3vBKV3xXLqPgzTzzbtApS6 X-Proofpoint-GUID: 1lmyxK7QvR3vBKV3xXLqPgzTzzbtApS6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 phishscore=0 mlxlogscore=999 clxscore=1015 adultscore=0 mlxscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 spamscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2408220000 definitions=main-2409200098 From: Jean-Baptiste Maneyrol IAM-20680HT & HP are 2 variants of IAM-20680 fully compatible. They just have better specs, temperature range and a bigger FIFO. Signed-off-by: Jean-Baptiste Maneyrol --- .../devicetree/bindings/iio/imu/invensense,mpu6050.yaml | 5 +++++ 1 file changed, 5 insertions(+) -- 2.34.1 diff --git a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml index 587ff2bced2d..a8d30ef015fa 100644 --- a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml +++ b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml @@ -36,6 +36,11 @@ properties: - items: - const: invensense,icm20608d - const: invensense,icm20608 + - items: + - enum: + - invensense,iam20680hp + - invensense,iam20680ht + - const: invensense,iam20680 reg: maxItems: 1 From patchwork Fri Sep 20 13:36:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: inv.git-commit@tdk.com X-Patchwork-Id: 13808519 Received: from mx0a-00549402.pphosted.com (mx0a-00549402.pphosted.com [205.220.166.134]) (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 0862D178399; Fri, 20 Sep 2024 13:36:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.166.134 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726839417; cv=fail; b=R/3YBTVgxrYAlSgF99FX+X/oANYC09iwlooe9NH9TYynvZOsVOhXU0FHhkcllWk+bKhKmxW0n7d4nPHWBo8OCpV/sJqYI5nE9ys0YB1LfVTKqW5xpg8nLhr8/l1vGo7XJ5ehUq7U91klXWRWZi5SVmNI1Xt33oFFVfQ5fnD/wvg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726839417; c=relaxed/simple; bh=+a9Z2hu5Mo1AL7p+LEPZflOHQjL2mlmv4N+7bwP4FH4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=ATHV8CwGBAN89+weAtmTshGGoSZcaGz2hp51XyF37FF8O6akqcSPMqxb1xKhOn8QHcg54oo42QbVrhP48womu+Ixf92hsOBrVJpOemRechRU8jmhu+P9+F5ZgXJ2jVFCopTQuk9SUBvVhBHlFyw6xdIN8zPS6TeGaRx+K5VHi2o= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tdk.com; spf=pass smtp.mailfrom=tdk.com; dkim=pass (2048-bit key) header.d=tdk.com header.i=@tdk.com header.b=cYdfyDwj; arc=fail smtp.client-ip=205.220.166.134 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tdk.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tdk.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tdk.com header.i=@tdk.com header.b="cYdfyDwj" Received: from pps.filterd (m0233778.ppops.net [127.0.0.1]) by mx0b-00549402.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48KBJ94Y030372; Fri, 20 Sep 2024 13:36:42 GMT Received: from tyvp286cu001.outbound.protection.outlook.com (mail-japaneastazlp17011026.outbound.protection.outlook.com [40.93.73.26]) by mx0b-00549402.pphosted.com (PPS) with ESMTPS id 41nt89v1ck-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Sep 2024 13:36:41 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CmxxjRfFWWHdn4lzsIiH2Did7/EePBVAr4hVWob2WOgt9mK24yqIpIqo9ymGK3cPHrlzPZyg9sTZ4e/nEyWLY0Hk0o5e9E1WINRWtT5dFRscSWc2pDQqtdHZqBg+fvkNEgjJJNoqjxVIAjQQRICxANTaSYV7d2mnsLyyZ4zxAwYOtelmYG70ipnAPD52eL+MqJ1nDnuWoQqNy2us4zIGSiBh1sXL12MPxTp06bTfIvkNkFqU0A9wLRePgbuTLFhrGk73pcqNyfF466ocbUVF7YParaUHdCBsYbGBEWtr0g9rogrmEsU+CF7ou1hxetqPQXGMeLmecTAGZDFW0GtpSA== 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=wUvhriuD7Xj2+Ado0Pe71smU+9eGVd08YzI2njhokuc=; b=c5hk7iEeQHfWkPOMkGg+Qgst6Wr0ZMPalZw2/HyezrVYEevrk+2NrLPxrIaP9y3/PjljLvVzF5Z2wy+an+xhWETPkwk4BKPeQw/BReFJUy8fWX04zHnsWxpsdB3FtQEXsJPUnHDC4olwyk5GmQfO73O/gNuCLz3iV6/K7X7NttcxTU+5sNTyNDXZbfF/KRzQbAN8nLjAPe/g7FEZRZIg8k1D4lfylenwG22P+LGTDX6pWzCbvtOmjd1eYbgIasWUK4OTEl54alBYAdd2HgKe5Qe5EqXMsbjM11QN/3Y3L7Ha8iQgpclmsv0yPDy4m5ZRe6qZTaXTtL4HzyVfN58ZEw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=tdk.com; dmarc=pass action=none header.from=tdk.com; dkim=pass header.d=tdk.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tdk.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wUvhriuD7Xj2+Ado0Pe71smU+9eGVd08YzI2njhokuc=; b=cYdfyDwjcCf3n81iCM+uLAn0LJk8Yufcbi6CVUOV/p0vSiGDKtrciroNRTHA2/eXkOAcDODHPw/6jKVANXgjudatBx5royWWw1NS3aLSHR1ZuLEvFtR8sAM2PYMF01irZryf8ssKYN8pDMPUlwjvipHfyrsw3JiPzmQINA25TBwwJtKAU2lqTWtwRbpj3D4kYvdDLeF4mnSP+y6CVZmweciY7htoXakXNtcNLuP5vtgWH6VJPsB5myeUXE3AHgHj2QT4zPvTKs4vZY/t30GY2jWODnu5t0IVp2Wk2+1DFV4FT8u4rR2Wlu7Br/q0thind636/BcwY0NcJSaMKy7Jfg== Received: from OSZP286MB1942.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1a7::13) by OS9P286MB5256.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:310::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.22; Fri, 20 Sep 2024 13:36:39 +0000 Received: from OSZP286MB1942.JPNP286.PROD.OUTLOOK.COM ([fe80::ff9:b41:1fa8:f60b]) by OSZP286MB1942.JPNP286.PROD.OUTLOOK.COM ([fe80::ff9:b41:1fa8:f60b%4]) with mapi id 15.20.7982.018; Fri, 20 Sep 2024 13:36:39 +0000 From: inv.git-commit@tdk.com To: jic23@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: lars@metafoo.de, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Jean-Baptiste Maneyrol Subject: [PATCH 2/2] iio: imu: inv_mpu6050: add support for IAM-20680HT/HP Date: Fri, 20 Sep 2024 13:36:15 +0000 Message-Id: <20240920133615.167726-3-inv.git-commit@tdk.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240920133615.167726-1-inv.git-commit@tdk.com> References: <20240920133615.167726-1-inv.git-commit@tdk.com> X-ClientProxiedBy: ZR0P278CA0136.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:40::15) To OSZP286MB1942.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1a7::13) 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: OSZP286MB1942:EE_|OS9P286MB5256:EE_ X-MS-Office365-Filtering-Correlation-Id: 933a6ca8-72c8-4c9b-ba60-08dcd979414a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|52116014|1800799024|38350700014|3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1nosHiAce+wCFzAwD95oq/XmOZjTFS5LfCvUjXjo1C8ld1rx2IOpJg0xqzxr0a5RfDoSnTFicy3rKf2azDGus7iA2Lk2adT7q9oxyEuoGAOddV+dILA71hgniPd17wpVLko+xVuv7pZxyqFx2CHCDH6n8lyVqRb3JAHKBvI4NZkWwT1WjsZRM2HqwMUpHNnqjv5uxF2g3mHe9yCz1+Bp1uVu+G83YiDkjyrSuqcV6S3ShYBHYyMua8T5VbmoqZ9/C6JoIDMNom6IWMZxpZfucDGMxEO+Oc/NkH8Nt6l8qB//9sKv0k9sWO6D8j3tweL8L9dr8pJRsaDR4OL8cOPiQt8+IYZGQL4yQlsku0qvF3L5+PyOcNaMQ3/CpE2dURqVEGaiHYhlN3RamTrnctZ2o= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OSZP286MB1942.JPNP286.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(376014)(366016)(52116014)(1800799024)(38350700014)(3613699012);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: u5Dz9yOtC5wFK9EaUqIQo0ysIJI68/sqGSssHYMldfvAm4HB5GsshZoqqFV5GpFUzSqh8P9RDPCxDXTMPQP+QY05dElihYchWulPDGGe/JRzZDriYDFqZru+9nQwv6hh5dWk1/HlhBdtY5oL7HlU/ItfJojcovHDfURCQpbbtSI1IBXLLSrcJ/XSkMSfLuf+k27Q//QxCI9skL5AEZAzjXAjpUCv+RoII0TUtV4T1P4rdb4wYbcn7PswIyJfLyrsL3sy9k5y60Uzjw5j57Tdtgrg9xOhs+c36Kc9W3PTdB5jIAEg1HDgrxJj1yKvc7rvSZhLqfSKUcEZFDVgWexdGE88EiWa3GWu4Iboi9NsqqqAeoSROpiGXnmzADz8JSV748EmdRnvQj593930WFPOUEocySF5Ut80UMnMYNRAm/GFF15nCXy1eBR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H20768WOcDQfJBn7IYkkt+knGxdD06jmAMK5ouc7fAClT6X2G8PyrjY3/YJkofoBeOqBc6VnBmfx X-OriginatorOrg: tdk.com X-MS-Exchange-CrossTenant-Network-Message-Id: 933a6ca8-72c8-4c9b-ba60-08dcd979414a X-MS-Exchange-CrossTenant-AuthSource: OSZP286MB1942.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2024 13:36:39.1231 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 7e452255-946f-4f17-800a-a0fb6835dc6c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: loCwl3xNGNsoYbJvm3YknN78UR1eHOiWjwodkQoGXGp7LqqWnFu6/+9VnE0DcMv43Wr9RVPSCnpRDINMN1iGiw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS9P286MB5256 X-Proofpoint-ORIG-GUID: J58JEOggp1TFm7soE_Xd4aADfkYVLFYQ X-Proofpoint-GUID: J58JEOggp1TFm7soE_Xd4aADfkYVLFYQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 phishscore=0 mlxlogscore=999 clxscore=1015 adultscore=0 mlxscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 spamscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2408220000 definitions=main-2409200098 From: Jean-Baptiste Maneyrol IAM-20680HT & HP are 2 variants of IAM-20680 with better specs, wider temperature range, and a bigger FIFO (4k). Fully compatible with IAM-20680, FIFO is 512 bytes by default and with correct register setting we expand it to full 4k. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 20 ++++++++++++++++++++ drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c | 10 ++++++++++ drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h | 4 ++++ drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c | 10 ++++++++++ 4 files changed, 44 insertions(+) -- 2.34.1 diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c index 14d95f34e981..6b0adb7f9ae3 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c @@ -286,6 +286,24 @@ static const struct inv_mpu6050_hw hw_info[] = { .temp = {INV_ICM20608_TEMP_OFFSET, INV_ICM20608_TEMP_SCALE}, .startup_time = {INV_MPU6500_GYRO_STARTUP_TIME, INV_MPU6500_ACCEL_STARTUP_TIME}, }, + { + .whoami = INV_IAM20680HP_WHOAMI_VALUE, + .name = "IAM20680HP", + .reg = ®_set_6500, + .config = &chip_config_6500, + .fifo_size = 4 * 1024, + .temp = {INV_ICM20608_TEMP_OFFSET, INV_ICM20608_TEMP_SCALE}, + .startup_time = {INV_MPU6500_GYRO_STARTUP_TIME, INV_MPU6500_ACCEL_STARTUP_TIME}, + }, + { + .whoami = INV_IAM20680HT_WHOAMI_VALUE, + .name = "IAM20680HT", + .reg = ®_set_6500, + .config = &chip_config_6500, + .fifo_size = 4 * 1024, + .temp = {INV_ICM20608_TEMP_OFFSET, INV_ICM20608_TEMP_SCALE}, + .startup_time = {INV_MPU6500_GYRO_STARTUP_TIME, INV_MPU6500_ACCEL_STARTUP_TIME}, + }, }; static int inv_mpu6050_pwr_mgmt_1_write(struct inv_mpu6050_state *st, bool sleep, @@ -510,6 +528,8 @@ static int inv_mpu6050_set_accel_lpf_regs(struct inv_mpu6050_state *st, return 0; case INV_ICM20689: case INV_ICM20690: + case INV_IAM20680HT: + case INV_IAM20680HP: /* set FIFO size to maximum value */ val |= INV_ICM20689_BITS_FIFO_SIZE_MAX; break; diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c index 0e03137fb3d4..7a5926ba6b97 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c @@ -188,6 +188,8 @@ static const struct i2c_device_id inv_mpu_id[] = { {"icm20602", INV_ICM20602}, {"icm20690", INV_ICM20690}, {"iam20680", INV_IAM20680}, + {"iam20680hp", INV_IAM20680HP}, + {"iam20680ht", INV_IAM20680HT}, {} }; @@ -254,6 +256,14 @@ static const struct of_device_id inv_of_match[] = { .compatible = "invensense,iam20680", .data = (void *)INV_IAM20680 }, + { + .compatible = "invensense,iam20680hp", + .data = (void *)INV_IAM20680HP + }, + { + .compatible = "invensense,iam20680ht", + .data = (void *)INV_IAM20680HT + }, { } }; MODULE_DEVICE_TABLE(of, inv_of_match); diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h b/drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h index e1c0c5146876..a6862cf42639 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h @@ -85,6 +85,8 @@ enum inv_devices { INV_ICM20602, INV_ICM20690, INV_IAM20680, + INV_IAM20680HP, + INV_IAM20680HT, INV_NUM_PARTS }; @@ -424,6 +426,8 @@ struct inv_mpu6050_state { #define INV_ICM20602_WHOAMI_VALUE 0x12 #define INV_ICM20690_WHOAMI_VALUE 0x20 #define INV_IAM20680_WHOAMI_VALUE 0xA9 +#define INV_IAM20680HP_WHOAMI_VALUE 0xF8 +#define INV_IAM20680HT_WHOAMI_VALUE 0xFA /* scan element definition for generic MPU6xxx devices */ enum inv_mpu6050_scan { diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c index 05451ca1580b..e6a291fcda95 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c @@ -80,6 +80,8 @@ static const struct spi_device_id inv_mpu_id[] = { {"icm20602", INV_ICM20602}, {"icm20690", INV_ICM20690}, {"iam20680", INV_IAM20680}, + {"iam20680hp", INV_IAM20680HP}, + {"iam20680ht", INV_IAM20680HT}, {} }; @@ -142,6 +144,14 @@ static const struct of_device_id inv_of_match[] = { .compatible = "invensense,iam20680", .data = (void *)INV_IAM20680 }, + { + .compatible = "invensense,iam20680hp", + .data = (void *)INV_IAM20680HP + }, + { + .compatible = "invensense,iam20680ht", + .data = (void *)INV_IAM20680HT + }, { } }; MODULE_DEVICE_TABLE(of, inv_of_match);