From patchwork Thu Sep 19 14:27:18 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: 13807801 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 DC31919EECA for ; Thu, 19 Sep 2024 14:51:49 +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=1726757512; cv=fail; b=i+TIn7IY6Pul3oWyCUFC8+is/s19Sl/CN6NzdKR+B1KrQPNvMu9nHZ6RuzsITMjaE0H9fxSVvNRQscWKJPlNqoDmgPnO+h75Ai91pBydmjZN6eBF3eDEz9cZiaykM1OPWhZWhZt3J8rRnvLQDF4GLQcgWDAjTZkk97Q4NP07HGk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726757512; c=relaxed/simple; bh=+0FiaeFee+RAgY8QAXL92AVcGBseHrHO8TQDNL/+ShU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=JlYUpBWMgsUSWCuZrcySJmVCfZjdjOBaxSS4D2N8eD6R0FslU8chhOUkyYg+04PB25QT4qkRmiO5TlJYic7ULuL2NSJeTBotsk/f3cYHZG4P0apSIephUY+B/xE3/b+78XvCa5OkXKE4evUNZtBMhhYkFm97nr5rAFeUJq+AOuk= 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=NMCi2IwC; 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="NMCi2IwC" 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 48J3Mr0P005832; Thu, 19 Sep 2024 14:27:44 GMT Received: from ty3p286cu002.outbound.protection.outlook.com (mail-japaneastazlp17010005.outbound.protection.outlook.com [40.93.73.5]) by mx0b-00549402.pphosted.com (PPS) with ESMTPS id 41nt89u55c-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Sep 2024 14:27:43 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=q/RyDu7BoTsSueLCbpoMCKRDKFjoqTIg+YI8NggU8W8BEpk2XAd16CgH+nFTtBbqR0c+8K0Bap0fYg40zkt6taa1S33FmZNKgDa9/U/QcViWE6kbfe0bkUiHf5wUTbI5mwA63AuXgQob+qxgoalqudRjgWlfqzhjyAb1BeL9kzfKRjBW7I7PsNXwW9qS14pNEIAdEId1OfJnaKanV8/ii2X1jqEA9wMbQDFUF1j/EClt0eX89ruQhExoA6ohN01t/AssTrICgTIZaEjhsPx+8BdtO5of86XpzOo4RH17L9wJ0ZZ5YV/9WAvN+HEiYoLOXbXXsKJsgcOrPro8mAEVeQ== 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=MoUPpatINo2UNvnz5+Y2WaEc0VfUVriQ6M3mcnxJcydyZfK7/oFRU6O960+CoQULK0UF8S6inKf9Soy7TrGEKcBb7zl5tpv17OHUOf2EazUGM5lpdxn9dERF2DWRXBvOvaDW5mrdeO2ZkCsR50io8suiAU5rwRfyeF8/8g/+sqpYnhPzbadcX+Eqr1176lv6ikzX4T8c6u9mVZ9DEd15DTDzXYFovsfYFk5AW6OpBjniajTP1G7bueoz3L6NdFsbqLW9fogz0SzyZErmN5wNmcxado0nAcwi5/vN365GBL8MpqyCvRT8PL7abIz5mSXdMUN8Q+wIb1Ie2C2lg9d76Q== 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=NMCi2IwC6K46sqYc9nFxv5BTiCv2rgD3IZNRl5FdSlOXOBvD72cKtYKBrdpfzHDw+7ez2+S8QrzdHeqvT2/p/1lhWm9JJ/YCmwk9cqWi1Mn0wI57bG2U6Ei/MHRNCEowmINfnPIBntHgWcyGVlUz6LwBju2d9ndkop3Q3Vny4bm9aupBZvLU9GPX3HleR7ZlS3tJqhI1jVO5zcNR8IgJG4/A4ReYOvdA66t/z2Y5JHTBectU7/Q5XHAHRADIHm+336NK3z9kC/sn55DHuGqS/E9dVuyFg9BOY+6xbXiTWrgluvi2dI+tYHLXmHcGrdkvxEE0KwMefutKitaFTyJb9w== Received: from OSZP286MB1942.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1a7::13) by TYRP286MB4946.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:141::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.24; Thu, 19 Sep 2024 14:27:41 +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; Thu, 19 Sep 2024 14:27:41 +0000 From: inv.git-commit@tdk.com To: jic23@kernel.org Cc: lars@metafoo.de, linux-iio@vger.kernel.org, Jean-Baptiste Maneyrol Subject: [PATCH 1/2] dt-bindings: iio: imu: mpu6050: Add iam20680ht/hp bindings to mpu6050 Date: Thu, 19 Sep 2024 14:27:18 +0000 Message-Id: <20240919142719.162431-2-inv.git-commit@tdk.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240919142719.162431-1-inv.git-commit@tdk.com> References: <20240919142719.162431-1-inv.git-commit@tdk.com> X-ClientProxiedBy: ZR0P278CA0090.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:22::23) To OS3P286MB1950.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:174::14) 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_|TYRP286MB4946:EE_ X-MS-Office365-Filtering-Correlation-Id: 83dcc148-4453-4edc-d73a-08dcd8b73842 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|366016|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: dUhFk+bmOrYbeSBc+Uq5YnzIelf46vIKCkkEzs66kkOI7YCCOXNmqgEocRwRR4ugrNEmsff2EX1O2myoZ6ApWApVCNNc+vruUNOR8C4i+MCQlFR63jE9jxuz4viB/gu9ln2mYrpBu30zIMIYiyRppdUgbl0chAzXzzt++LFZ2QqTIDuoZbImpkBMbuzKbI/Jyh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fZ/B3l+JJg96HKziGjXurq9hUojCEf7O4lEDuY9q0gV/NH1jBaS5patskLofG5PJy60ZRRH50Ge9t2Feqh7La1Bkz3V4WjvRjHABgSQpwfPdjuNNLXjBAiE9o2/ll5/IekEZ71SVuq+JWBAKwPV9Cs6w5EQ== 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)(52116014)(366016)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Vfj5E9CHhiEZMLjs6n9RGHfjoT747jGBTGgM2n9X6/VBueMqzWH5uSJJ79OpG7sMcw6SIBfHNIT7QWSjurmTSggAyMQWV84hIz79wx2wvBh/olkSpE3528y04WYcEXFTGHN6kO2t0mtqByI97jQVw1/Dx/ooII5wuspvrC3H095spo27mJrKMiWvKb0PXg7La1IrJDhbTLaDZ5VSFTOafIDyIsyOQ8n39uZcWNNbunKEuhb4DRqIfrDV4Ffi6LLjYQXeMdBS+KJfZw7/cKJunvFXm90W6DxpCKrGweAX3AGFeqgqWLsEM70T26HIDPoiM5VpP+1idR07jmlItLeqxSfOXxInE666QViQG0AWUOldmbtJzrNb0gORMy8rKj3pXed37GQYcwj/tFUpi+uLIG3qatbUVeJgJM+neuMLtBYXpLgEaF9ZmKW+aLajhM6rsG0+J/0hHNHHLkDjD8oi+NgfMi4MshPLuH0XWX6+WMUQZBErtwwXBAy64HkePVDkR11xoMiTb8vyqxGHVvfaIPdd1sBwF3cpxSPwEpTvMtQyebwtTZKeYbro1oWVxmwKB7egGtpnNis+b3wBg5+Gtp8g7Y2FM0SWtnzfmr2gA5jRlF230K4p+nQuL165kc0Cz6yCRAw8W7iOeRCGywb+wWUr+qq9E2tFML8XQYyFlk5Xf/UcHmuKtK784wogscNmJ84RJPkwiZ+Gcpw5id7sMsdZN9/I7tGjrcJbRSz90M+acSoDCzXJDxvKlMvDdIjmmQbXuZ/Dbx89m3ymdshB1JK9UOzsY3k3RILmtCy2nZmMI4SyjoBuaaK8DcpaSf0MFtCAAkddUex3QUr+0k2dF6N+DeF0GzaOd8y7SLs8J2m5KMj+ZueErBb3kH2HAUTNnHUxv6RGqMqGuf9L2u+TngbaMJraZ6cNJQCw72nO3y62Pfw2CJ55sycvIKok6i+sjxXiGgrxPkaHntsYqHcH7XDqE0CO2nDsiOJbBd7g1pY/gLcckJia1C5fKwTQ4O9jdpQsJUvd+/N6jbq+UWEUQe+AdjbfCQB55JBDoayUtSm947KUVijcBbG0gq2dNslYs+NJ82iLFuM1pRn98as+jauRq56vpe0m0VZN144FUSAAUfNcGfgzMUiI+YeiafViX+JHL8TcbSXV64C9qNSSgHvKev2BxVYEr5h1X5Nl7I7reLfFrVorNjCZlcwpI+6Qawyp7anFYMPlb4BvylSw+1biY/1881yaNCAZ+nXVkUuwKE75usW76dbfY1mXxQ6zxB2m3cnkPh6o6nwhAb9VychcBbSPvpKFqXUSmugBK1dxDRBMotnzWfYYllpn/wKDNzaXx/AulfjUiBbl3RmZx2k3R9jG9Zmqc9TwbJWKuk1QEvgmyrNnapHgkMDor6OvLwgxec9IXMFKqDO0ncJnmMSpMz2p7CWr4AoOvHIGMXvi76+uNpnujGXIsi3g/VTtXQM+CPQ3SINds4bTBBgPd/vqtBanfFi1YgUlOmuW3vx08YEYbCfKL0F2uHFCeRWwSO1t9E3pAuQukFHUvsN8v+AGRM3V5pbxjzJoTcHTHnbXNLeaq8bhiUGkEeUUjMiM X-OriginatorOrg: tdk.com X-MS-Exchange-CrossTenant-Network-Message-Id: 83dcc148-4453-4edc-d73a-08dcd8b73842 X-MS-Exchange-CrossTenant-AuthSource: OS3P286MB1950.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2024 14:27:41.8367 (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: q6vuoqGpXPJYIpmvcxTATyLWRN2q6s3jy+O052HsYM7txHU1XvhJ2mSLFSFcpiJtp1wekdTaVXtIgLHZMnUdDw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYRP286MB4946 X-Proofpoint-ORIG-GUID: j6pkrvXxlMcYghD-YAiCFx4wEi7Eg3jI X-Proofpoint-GUID: j6pkrvXxlMcYghD-YAiCFx4wEi7Eg3jI 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-2409190095 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 Thu Sep 19 14:27:19 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: 13807820 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 104F91EA85 for ; Thu, 19 Sep 2024 15:27:29 +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=1726759652; cv=fail; b=G2biKbCc2SwovkzwT/RXxe5n08tNVZMuE0Z/EjwYtGeSzRIV0m+UXLQufHALetathAb8vMeOb75dgUxM9tEvEW9cEAj6xPm47CLaWxr5+05FHRcfrkLywXuebDEsLcgz4qDLT37666M/IB2orUgXa23i77znhnl9RdM7dWTWEOY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726759652; c=relaxed/simple; bh=+a9Z2hu5Mo1AL7p+LEPZflOHQjL2mlmv4N+7bwP4FH4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=XV3hwVK3yOL+r54zZfzWpzwkrSXgnOu6ZuVTywFhZKWDBLCI82rLsij55vg0XpRusqlyn7gQi+mHP9HVHh/TN2pWBIjh7mW6/M0FlnIi5Q85eBe0Tv+IX3nyVg1QS5++eFYSE3VLHvyhXHW2DRW6b2Lls8R0X96q7SqwGmz4EVM= 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=UpVsDlmg; 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="UpVsDlmg" 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 48IMmljM015343; Thu, 19 Sep 2024 14:27:48 GMT Received: from ty3p286cu002.outbound.protection.outlook.com (mail-japaneastazlp17010001.outbound.protection.outlook.com [40.93.73.1]) by mx0b-00549402.pphosted.com (PPS) with ESMTPS id 41nt89u55f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Sep 2024 14:27:47 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZXpGbXB3lVtMMJs8vUuDV9iIypnaSP53JBGjT9DRI4VcNd9vr6KVsmdVIT7eypRJHOVIqWAOOXSMI8c4ED0yXqPxX7jsEOn4ORl8uhTtUhcRJ+WP6MJXz1noc60rwEtOmNfzkhiUt1gVj8nUnZWprHornzK0O4F2I9yH8PlcDtTGADqj7xXIo6U262Uz55mH/5PNWQw0uLvEtFJTjZaSlsMk4lsriAi8NLMc+YSpjAAd3JIwYUgZkfJrtUqHoyts23GscDli/cIy70AZcibJXd5oMQADzx8m6yV1WgCrZQDjd7lWIHCwqJA0wV1zJJigYJOwRJIBjWsaVG92YSNgvQ== 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=c0+B305GWIDKE+yiQ2BPTYeTpg2ZzpGYfeXdp0LyG34DvDNmOHEk3XjN6vumbAH/PZwTxcPDl+CF9LCgoALxSZOrURh1oUtCbjRsw759zo+5syfGEEYE7X7i9hOdO+8sLolO8hPgvqh1Z+fagvcmCcsLXs83ZgqU+cZb6Xy5LE+Qk1pNXOGO8NLjdHZdHZjxvR3a9kbj0gIuIhl7lNhfK1bw3ctbX4QA1Cv4kyrkSi6BaDs3YHTI8jLoErRzzAp/4s9d9nU1Nnlykmb3yMMN9oKCz8FMIg/Qhbm9YITv7DCU0HoFVtIQvW32XQitsbfu9t4WajKoH7yK3rad7ay1kg== 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=UpVsDlmgC1oOk445LtzLwyAYo+ttZhGbPwn5Q9eBSHcbPyMdW6D2PocqXuOp0vRVCb6zhqugXWw2KSRKr0wS42n6jQ1jdjAMISwBf3/CxYWvinHxJU5lDHrzzhEMT6KW1tPgRvvNayRZF0gY7xspZdljkPANYhSTgGvIrBwxqfUStOv18K8IAa/wU9d831M5/TOsFSh6/fCF0VTpyP4TWPNK8DTgypFsXaJiwD8hxahKVTJ7ZYSB5bJhxgjIOz7uHOkyCQHQhkdruvIevGlIHGIJQ+VJAzZuHyotgj9q347LzeVIog7/DSbXnCzyrmSqAUlKFZowqAgq2SUCAfECTA== Received: from OSZP286MB1942.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1a7::13) by TYRP286MB4946.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:141::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.24; Thu, 19 Sep 2024 14:27:45 +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; Thu, 19 Sep 2024 14:27:45 +0000 From: inv.git-commit@tdk.com To: jic23@kernel.org Cc: lars@metafoo.de, linux-iio@vger.kernel.org, Jean-Baptiste Maneyrol Subject: [PATCH 2/2] iio: imu: inv_mpu6050: add support for IAM-20680HT/HP Date: Thu, 19 Sep 2024 14:27:19 +0000 Message-Id: <20240919142719.162431-3-inv.git-commit@tdk.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240919142719.162431-1-inv.git-commit@tdk.com> References: <20240919142719.162431-1-inv.git-commit@tdk.com> X-ClientProxiedBy: ZR0P278CA0090.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:22::23) To OS3P286MB1950.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:174::14) 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_|TYRP286MB4946:EE_ X-MS-Office365-Filtering-Correlation-Id: b4e0461b-e826-448a-cf55-08dcd8b73a6b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|366016|376014|1800799024|3613699012|38350700014; X-Microsoft-Antispam-Message-Info: Vt/Wq4raWf8gu0Xdq+Vd3qCeg1clYAFILa1vEuhzbGvssLAcitlpy3rtB3lz6NeV8QgnCjgL6Ge4m68/CLDZpch/210h4H+sCL6CkexH0J+IwqLRx/bZnvtSSrJ3Pe8daBUM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wpfLmxnShWZFN9aItc8zvpGFk99G/fHYb9eMyPc/8SXn6HbWwulUoljp27mYBNWks69/5IbB2FP2zzM66taMV3oYB2abjvOv4QpyMZLonphJ+AfHPkRDaqHehPCQnaV5/ziLIwM9bkLuLCpVtFp35hjmQ3EcpsQdb44kX2uEshsVIcYmMKVjIIrinSV+uHPNBPEuQe3fXWk7bJKszOBLM2vsTfBC50TNPrQjnjE/j4jc= 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)(52116014)(366016)(376014)(1800799024)(3613699012)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: EpXZxXm+DredwsWx24Eq5NWNsqRIqjvxVFLzdNMlPMD1ebM/U/qjRXgqIR74hypxZ7tObjU1XAhTU2KXisB76im0zaj/IjFYF0BdPMD58z/U49Kvk93y3DutMrz7mdsHiR4ONav/2efEZ/Zyo6/Ujw5/SHHu01UZQbN/8tK+XwYiSRi4BHZHc5RwJcpp5ennwj80EtzJtlrmtPlhQI3vGv9971mCjnsHNEhiLRSLpmP89IueDx6JaJdqxTN8lg6BPRuCZhj7CuR3a+8dRRbA1adBu6wgVuxdbrzsGe6NbrW6pX48SmiFjRrbeE/YQvwQL66uOfRhPsp8V9lpDP4XfsMvzGa9jM7nEkpslBn3xZPaLc0eK13R2VK9LVdVZJ0Enz6Ldsz3qXTo+YucURvyOGy3aRt/zfm8TiUMgyJOsJBVHLaZD2m/fDGl3DG53rq4Mgz7kl0qNHIkVeh5iuKw8Xa4fgYQG6ccaPd1T1K+oDqJruF//T/geAeN0D9XOWYpXzpymz9/XHSObObmVJRw4cLTIU6MxRS5xFuo14Yph2hH1MP+K7zoEui4xyJJJo1gc8zZP1Vn5V8Q29gUwXKYRfOOzdsMZQzL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enant-AuthSource: OS3P286MB1950.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2024 14:27:45.2090 (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: V2wOTHJp0eGHR0GFev4p/jw+mKZ2VXwppinh5dvyhgWN/dWNsx4qOI7lk7ok8Lx02JXoWiCz3c17DQbY90FQhw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYRP286MB4946 X-Proofpoint-ORIG-GUID: Hn7Y6d2uKH_MBOUKxs9tUqDap0SYZ3jB X-Proofpoint-GUID: Hn7Y6d2uKH_MBOUKxs9tUqDap0SYZ3jB 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-2409190095 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);