From patchwork Fri Nov 15 22:37:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13877376 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2057.outbound.protection.outlook.com [40.107.20.57]) (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 D792F18BBB0; Fri, 15 Nov 2024 22:37:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.57 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731710265; cv=fail; b=p+fS3Z3WJvmAvxBNW6DykCEtrOTB7cMraH5fLHuHeq1CVnNMwzqncyk6dgMKdtO6JF/BQvJ06bdde78rsCFIw7FAvzZAoNLZcwZKosybt9yrZaC7oBYE8GdbOeL02fG5U8Avt4Zo8SxHoEh/tXCNU4kG7O9OBUAzhvEXwAYBT0A= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731710265; c=relaxed/simple; bh=kjMCDYqZ8Q0GKM+6wh4PKvoyFeb6qTn8RV62c3ajxqk=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=amhaz74iPdRmxz1ymiT8kJcYyYRQH5+reeNxYf5XrTnZk6u2kH9ekRNtJ7Tms/OwAMCvyd08r3/RvcoCWeOMNaviAENKN0xmiQm0p8NGN81TPrNRfMhQGLpaI9M09qmnGed0sWVYncXhLp62qMt1/9uof+OjrEZr3GapRQ0l7GY= 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=Mc/5LrvS; arc=fail smtp.client-ip=40.107.20.57 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="Mc/5LrvS" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=V14cvxb1RIknOXGj7d5YOCerPYTLfL0irfetNS2tnWLXNKfwoRLXID43PNCFoPk5pXBgKStdaYFjcuPo8U7tgxYr8arWKOAT6hHQmgFiiAYHy/K5gGgSm7rRySPuQ98DGzhJjrDNPFbJ6JQPjybyGYKhvBihCChTF87b/ltaOPhg/HcTx522SCZf3Ij/BBMAuy1pvws5EQsh54YbZhEptpXpR1LmFEQLvex2fZlu3unXTgkbcJmgZ5StQgt9hwdmziMqrM+qAPHEiFiref2FrA5+p/JKzjFaQeY7tFyZ4Mw3+Z1hQ+rGS410vOisjLrJPRy6c0hyXSHGYTaIXUun4A== 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=BbFh9Rvq3cjKOYLuJ6VMD22mWj7frmXHQlqgQep/QlA=; b=ov6DNViKhjZXrnKJSRoDfGlxHNFuLwAwmDbQ83v7OdEqJT8w7Rn3xJl4Om/1XP3bf9F3IGho1/Zoxl+5Jq0nSIZ1y6PDJfPc+24g3a1yOxN9HdjcrPbdt4galnx0xTGw8hwRRnIeTTltfRfo3BDCYcpuHzTNCAX/vMkRntHoVMS8tlaTXeXHkOsYRc/x/oFxyoL+ic8I1l9uZCOy5fa1mPBfWb7j/ElCt08XYiqTbonpluWtodkJO4lYDiEnIR/dwHdHM6EBOwA5+nA6kCmjqBRy4nIb1h5fHMkiluuD2Cfa7jswWM6hb0oNKNzmt5kDxx0AcdXmqHijzwCmlEu/aw== 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=BbFh9Rvq3cjKOYLuJ6VMD22mWj7frmXHQlqgQep/QlA=; b=Mc/5LrvSGtg9ZbrLiDtTqicA0/jkjiVaI9t5Q11dWQKwJHjJfsI79h7CnPYOytscbvcTEAngWnLzGZ+4XLWmL9XhnYcAmnq/ojnMniBhZ8qjM/So8TkCjxAq9QalirdICuZMSEiKOQ7IjH98EFpDxgPZ7LLJ1me2umaS4TcpX3Y81FzUSIM5/xnp9e4ab58DZCi9j6mtz1jFsc04p4U7TzgS2K81zPneB2BYGUEI+m2ethaGNymWRgrYxFPyBSvLl+hZ7jGXPMZ5HJVAW9UEBJl4L7Fd8l+mUVJsQPWhYMUp55RIofoSM1p6Eh/bXn129l/Hicll1RubOIh3RRYDOQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PR3PR04MB7259.eurprd04.prod.outlook.com (2603:10a6:102:8a::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.19; Fri, 15 Nov 2024 22:37:40 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8158.017; Fri, 15 Nov 2024 22:37:39 +0000 From: Frank Li Subject: [PATCH v2 0/2] iio: gyro: Add support for iam20380 sensor Date: Fri, 15 Nov 2024 17:37:21 -0500 Message-Id: <20241115-iam20380-v2-0-d8d9dc6891f5@nxp.com> X-B4-Tracking: v=1; b=H4sIACHNN2cC/0XMQQ7CIBCF4as0sxYzUIKtK+9hukCY2lmUNmBIT cPdxSbG5f/y8u2QKDIluDY7RMqceAk11KkBN9nwJMG+NihUWkqpBNtZYduh8LZH9B2ax6ih3td II28HdR9qT5xeS3wfcpbf9Ye0fyRLgcJZMj06bS7a38K2nt0yw1BK+QDf0POOngAAAA== 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 , Conor Dooley X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1731710256; l=1139; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=kjMCDYqZ8Q0GKM+6wh4PKvoyFeb6qTn8RV62c3ajxqk=; b=QPvgQiNuNuNnWknHqB07zUFogtiqJnmswYIZAmgWnA2XuPlVolA9ZA6vrfD5lSmYKPHnBd2g5 Fk/bJaWRJUZCeCjmoQs6scRxQpIY2JocSJxNNMQNCoDN8xJMEnVnaKY X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR11CA0053.namprd11.prod.outlook.com (2603:10b6:a03:80::30) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::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: PAXPR04MB9642:EE_|PR3PR04MB7259:EE_ X-MS-Office365-Filtering-Correlation-Id: b0496884-c07f-4803-a5ea-08dd05c61c91 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|7416014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?qxUXEPw5WFxvGhWtZmA94duj7dbGN1H?= =?utf-8?q?1jtOaJ66zmXXVLHBdz2CZn0DcG5RmNYN3dUYPyDqYQsiJyiRxVemH2rtQVX6mI0xh?= =?utf-8?q?+r1NNC1igsrjPKqHFO6bWKCBgQbRLephRUGm9trw3yVQLGKDBXeRxUeOzO8SNL64B?= =?utf-8?q?6oExUuTfo/PRNSxnDXis9J9jwrhW0Q119Dm7M5KJXuRxcWVH26QM/Sp8+ZPrx/scd?= =?utf-8?q?uyzObygBuOnrvpUCrjvAa+j+HMaUUuP49HTXSEC61Co21Ib4TAiTLNf1o5TtSrN7T?= =?utf-8?q?3NlrBIB0y7xrIegy+ual0ST6LSHiim7q4l7iTktm/VwiQcsObdy0rlud0hK/O/3LA?= =?utf-8?q?2DtEM4ZJRSeB87p+KTvvrQ9U10sis777dGgJglOu/ykTBEOyEi1biGB1fNsrxc2fF?= =?utf-8?q?bx9Lr/aOUU6D0Fzf/uG/ICr92TCD34G55mfSpOiYd8wVMJZz1TgKw/HgI+VzHp1F1?= =?utf-8?q?Fq9DpnT2YWdnYydJEew2tlEScrwOuwVtlQjUr/fy+8RYsTCulltDIPN1Fc6QwXW+S?= =?utf-8?q?ZaW7uOEPgHzbJIvmTRYrVIUOSiTd/vKdQKhQopIuQLje+DgHh3/O4kOpINNL0zwnl?= =?utf-8?q?qh/BR2ETYdz8yzyl+hBNa5+CfUw7lVzie6Ilqfbq4q7kR3Zmn40R+CfWmrjZL3TL0?= =?utf-8?q?0E3nHfYz4rUR3iskzgAXE7GF3yflKKmVSkQilWyHRSCXyBWg33+GfSFtOHDHW9+Eh?= =?utf-8?q?BigkMBbP4Sk+c6Jmnfrt5O3Lhl03ycpG2UE4jiROrmTFluV8jtRnL1cO5fW74h5Oj?= =?utf-8?q?KxzLGtJ34iuPGDTsJE2caRgcmNmWWZZZU8I4EMmL4Fv0xxvPAAcvyDUvVH39BZd4l?= =?utf-8?q?KhzXQLIlLhgtdzw+G//OVmm6Um9Sn00MfGgZeIIXYam4ltcfKL/ivOREYIeyoT1R7?= =?utf-8?q?UqUpjHmJVZIe6biPOLU6SoKWMbMJn579vNaOLlmcfPNjSBDniBSpPjL89GVRN+xJr?= =?utf-8?q?qqxD/+cL4i2uhUbl++EYhYUaDfSTti2gvtT3tXD6uh5k5ZDdxokXABwXwtjTGtxGe?= =?utf-8?q?yk9pexudVrf6tnevz335tsX5mQ88RXJMBTDLIAIG84eesgv5Pt7XHHSVA6hAwFSMp?= =?utf-8?q?cvRxLDAYrsU6AN3ivWCmNZRLa+lPtqLw98g7LRWnGivpvGSz0IXYM+k0csetvtayU?= =?utf-8?q?mxRZSkJRdTIYPKKvxm41YqpORSjk8/ILalOdW3aJp1Zx9x82bqOZjINvq0M1PRWb5?= =?utf-8?q?C0AvcyT34drcKovy0HXTdyCQGUU61UxmMc9qVTSTe1BPKgWG9I5wrNSzLiyXG/1wn?= =?utf-8?q?fwb/qwVYcg3nT3nXtk1c9BOf4NFcNooowY1VPzC+jqgpaYNr+YAB2TF1D/gai56aq?= =?utf-8?q?Bl7q8e2Z7MGd?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(7416014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Y4UU52U5sunQ0ids8z04IUmbILLY?= =?utf-8?q?FWRpFfy+XLvkymgNO17Tmx5b22tV30wEOY1XkyAkCOQwonWPjIxll+v298PPaTONy?= =?utf-8?q?tOmFJMVBcZNvbsypeKny6PMnHbsx8oG2PoguKm52+KkKiajc06nH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?= =?utf-8?q?vPlYbMexYiv/aG3kNZP11F6ahQxZbDdGHX8tleGMK9gjkNoW5n4S+d0ETN7lnPZnO?= =?utf-8?q?o1LVh11ZLoNDwiTc3LDKwFdPw6LPbqAWj14B3gX2SsXrfhJ19YMbeAcd6uiQL9KtX?= =?utf-8?q?hvpTHVW0QC0Arren1mqvMfgK1J+cev59wrKbAMFDfL6gGLFF3qh+vHJ63cPglpsIM?= =?utf-8?q?1o0SnjSDCrGJCag7pwlvZxWLw9VWtfUKtyRmWPZNEY2iGxPx72UBsgTkLcpf0q2hn?= =?utf-8?q?vHrDumly6nBvMDnpzcIC1w8ul9lxRgIabbmO3dcALQcpEg7wDND1w0+Ifoxm19b3+?= =?utf-8?q?GHKnJp35X9BCq7MtKI3CJAHNhj41g4/xoVEbTY2hSy/V4HlI/wpvL76lacnTUZQ6e?= =?utf-8?q?NDVn2aYQLpYmxL2CSL3q7/Jo5Xgcob4CIRX0xS6aCLcJ9kGwxsSYX/puIsXSlNK99?= =?utf-8?q?08pIdccA9tLX+NnGMZvT5vCnWd1cHkNSRjFnzlJDxRewU8LE+vSeAB3LcL883ttdA?= =?utf-8?q?psd03dLPHgQl?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0496884-c07f-4803-a5ea-08dd05c61c91 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Nov 2024 22:37:39.8694 (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: XZ419vmhK2l76ZPq6aXmzwjB6ygPdC3n9S7bJy+3FQ+45ma8omej7FSF2elQhA78/Or03FCQEePGBSxabCcLeQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7259 Add iam20380 sensor support. - add binding doc - 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: Frank Li --- Changes in v2: - Add Conor Dooley's ack tag for binding doc - use iio_chan_spec - Add spi part - Link to v1: https://lore.kernel.org/r/20241113-iam20380-v1-0-cae690c4674d@nxp.com --- Han Xu (2): dt-bindings: iio: imu: mpu6050: Add invensense,iam20380 compatible string iio: gyro: Add support for iam20380 sensor .../bindings/iio/imu/invensense,mpu6050.yaml | 1 + 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 ++ drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c | 5 +++++ 5 files changed, 39 insertions(+) --- base-commit: 28955f4fa2823e39f1ecfb3a37a364563527afbc change-id: 20241112-iam20380-da900d806bf4 Best regards, --- Frank Li