From patchwork Mon Oct 31 10:51:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 910 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2238128wru; Mon, 31 Oct 2022 03:54:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4qg7RIEmys1WIQVskkrijBPeaj4ORkAhFba1oKLR+MqEF8HA0UT6O6/68cOloUedr8XKLz X-Received: by 2002:a63:354e:0:b0:439:837:692f with SMTP id c75-20020a63354e000000b004390837692fmr12264149pga.74.1667213670870; Mon, 31 Oct 2022 03:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667213670; cv=none; d=google.com; s=arc-20160816; b=V+klj3mneuJblVAdcbrGMUotOGrvrTHR1aMA82dBXVNV9R4oXwsVqe3RQGRujD7vBS odacAKAjm21WIpGxh4k9YnIURJyEmjH0jooATvHzMMM+qt8GGm6kgSt3r9nvI9IuaxV5 jFee0gO8YaCTBhFMjTKqc1HMYcO0+s0dpd6RfOrjdlfjLlsqTWYHVrrPVBsE+jBWFjdM ALWLS3otZU+/TEQ7GlXBnYNOvNAdKw5Gxwu/UwZS64h8nq28poPCwZrGM9evIZ65VWTZ 92h4Ceu3u41xaBuAVbrukNK0qs6qPmzwL5sOpbS3o38Knq46XpBskR62oF9DVZxPqlgu AVIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=iBjJ4WEX4UUo6jloFtekbcYSjb2JFuGEXyQmQwzxHs4=; b=OxXf9YpeccH1f6CgRwyND51xqoSkOj1gx2XWvI4oZJMOAAQd4ngzqu8EsqhnXP2DxS FlxTK6lrIFoxaXiTs/mr0MngkwJxpIiQuOa8at5QxzYusUr4Jva7ThhiJqNIJ1Je7H7h eXq9uDi1RCQL6DY7yO1nQ2JNIr+GqQXli36/66IVvnRyOcvwAlqoP8qNS2lMrj17Ln6V 8H4IT4rLjTuoJ/MPRlZglk9yneoqxfAzlDItnJe7DuIgyG0MchoUZ/s1rNDzsAaTrV7b ZaIteH0Go/H1Q2WNgr2dtQscbNyjiQ2gwSnrueuPRqqFNMVr2+xseeF9/dU8W4DNc/C3 I0aw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp8-20020a17090b190800b001f31da6b2d2si6309117pjb.154.2022.10.31.03.54.16; Mon, 31 Oct 2022 03:54:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230140AbiJaKwh (ORCPT + 99 others); Mon, 31 Oct 2022 06:52:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229707AbiJaKwd (ORCPT ); Mon, 31 Oct 2022 06:52:33 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBD022AD0; Mon, 31 Oct 2022 03:52:32 -0700 (PDT) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 29V7eQQ0013391; Mon, 31 Oct 2022 06:52:23 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kj6ghhtaa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 31 Oct 2022 06:52:23 -0400 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 29VAqMnY050436 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 31 Oct 2022 06:52:22 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Mon, 31 Oct 2022 06:52:21 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Mon, 31 Oct 2022 06:52:21 -0400 Received: from rbolboac.ad.analog.com ([10.48.65.139]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 29VAq8wU021417; Mon, 31 Oct 2022 06:52:11 -0400 From: Ramona Bolboaca To: , , , , , CC: Ramona Bolboaca Subject: [PATCH v2 0/3] Add ADXL359 support Date: Mon, 31 Oct 2022 12:51:26 +0200 Message-ID: <20221031105129.47740-1-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: CQhmixAvpqOYPlI6OXi-NrKm49wTObUQ X-Proofpoint-ORIG-GUID: CQhmixAvpqOYPlI6OXi-NrKm49wTObUQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-31_06,2022-10-31_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 mlxscore=0 impostorscore=0 phishscore=0 mlxlogscore=999 suspectscore=0 priorityscore=1501 spamscore=0 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2210310068 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748200242000512284?= X-GMAIL-MSGID: =?utf-8?q?1748200242000512284?= Add support for ADXL359 device in existing ADXL355 driver. The digital output ADXL359 is a low noise density, low 0 g offset drift, low power, 3-axis microelectromechanical system (MEMS) accelerometer with selectable measurement ranges. The ADXL359 supports the ±10 g, ±20 g, and ±40 g ranges. Ramona Bolboaca (3): drivers: iio: accel: Use warning if invalid device id is detected dt-bindings: iio: accel: Add docs for ADXL359 drivers: iio: accel: Add support for ADXL359 device .../bindings/iio/accel/adi,adxl355.yaml | 8 +- drivers/iio/accel/adxl355.h | 21 ++++- drivers/iio/accel/adxl355_core.c | 91 ++++++++++++++----- drivers/iio/accel/adxl355_i2c.c | 22 ++++- drivers/iio/accel/adxl355_spi.c | 19 +++- 5 files changed, 127 insertions(+), 34 deletions(-)