From patchwork Thu Sep 28 08:45:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 13402272 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5622ACE7B10 for ; Thu, 28 Sep 2023 08:45:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231327AbjI1IpQ (ORCPT ); Thu, 28 Sep 2023 04:45:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbjI1IpP (ORCPT ); Thu, 28 Sep 2023 04:45:15 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32606191; Thu, 28 Sep 2023 01:45:13 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-50337b43ee6so21007016e87.3; Thu, 28 Sep 2023 01:45:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695890711; x=1696495511; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=wXRzbOod1k29U08n2WanP1cWUIg2W+KT9BSDqPF5dHk=; b=WqWNPS35F8oCvT4LsJVKMOl5EMg1JNwYVXQB7K31Q2cP4jTtrVgyO2Q4JBvbcwvmRz wlzbngIfzoGW0T2BeZof/4R3jCg4w4FNSCoxsZtUYccHq0EwnZI2HUSE//azIJ815SaQ osdDn3K80r13J4q/VZ6N6w7tDKHZ9r6tpx+3AyeuvxZGy4muq8u5JenWjITh8inRtYqC SvuCaPLQZkIkj/Oq5JMpXMBvJ2pFAzlAV7CrYc6sNNIbfkftpHjljN+qZd8dK8Z8ALkm OI0nooVfaBV/pm+WYvLkEnxfYjYwD2lPJ2HU5Ka24w1h7HaK0KxUoYfyRBcReJuBIepv HCgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695890711; x=1696495511; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wXRzbOod1k29U08n2WanP1cWUIg2W+KT9BSDqPF5dHk=; b=glw2PU1R8MQbiYvDcKiHD/TFS43bYjVDgkBfZiWCwyZZBFv3Bzq8vGfjHXS05RHN/V kyeNIaPph5Uu1fxz36ThsFdStLnbB+LbT35j5pb4Jf3Aadt6jJ0tzkxo7pqvmJKgxQr/ wUjVDkBOjlx2psqZN+Pl/qpypTMVfcgjrWh4KMFo1bt0yPwHy5ffY/+hvW5k+hjdQ8hb 1PMaW+Mw69LomHPAmW9WR76n75SV73lVQfxw4vVXZaVQjZMyyH1rRWYFVOr+dcWbdq7c +41ZB5RG9kXpwXRpXH2Zu8aYTsvhhb8RZO3cEtD+w5S3yvZez2m7PzDRNhvuDzQ4A7dW ZNwg== X-Gm-Message-State: AOJu0YzXUQ6hH/faKQbghjsK+qSFIdQqjkkqPKILR9WXFFRLmFWxSV5q bLAn9zvCsBAyk4TPJfWQxnSrL6aU6Zk= X-Google-Smtp-Source: AGHT+IEakEU7gR4hrb3rL3XoYibY+UWcnP5aQelDicRTRsAlzLhyA2QX0J/aEPGteRE3ptj4w7ATDg== X-Received: by 2002:a05:6512:3e14:b0:503:446:c7b1 with SMTP id i20-20020a0565123e1400b005030446c7b1mr725623lfv.40.1695890711050; Thu, 28 Sep 2023 01:45:11 -0700 (PDT) Received: from dc78bmyyyyyyyyyyyyydt-3.rev.dnainternet.fi (dc78bmyyyyyyyyyyyyydt-3.rev.dnainternet.fi. [2001:14ba:16f8:1500::7]) by smtp.gmail.com with ESMTPSA id br36-20020a056512402400b005048f11892dsm352438lfb.171.2023.09.28.01.45.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 01:45:09 -0700 (PDT) Date: Thu, 28 Sep 2023 11:45:00 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matti Vaittinen , Mehdi Djait , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] Support ROHM KX132ACR-LBZ Accelerometer Message-ID: MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The ROHM KX132ACR-LBZ is an accelerometer for industrial applications. It has a subset of KX022A (NOTE: Not KX132-1211) functionalities, dropping support for tap, free fall and tilt detection engines. Also, the register interface is an exact subset of what is found on KX022A (except the WHO_AM_I register value). This series adds own DT compatible for the KX132ACR-LBZ and also own chip-info in driver to allow handling the different 'WHO_AM_I' value. The separation of the Kionix KX022A and ROHM KX132ACR-LBZ does also allow adding support for the KX022A tilt/free fall/tap engines which are not present on KX132ACR-LBZ. Revision history: v1 => v2: - Add KX132ACR-LBZ into list of the supported ICs in Kconfig Matti Vaittinen (2): dt-bindings: iio: Add KX132ACR-LBZ accelerometer iio: kx022a: Support ROHM KX132ACR-LBZ .../bindings/iio/accel/kionix,kx022a.yaml | 10 +++--- drivers/iio/accel/Kconfig | 4 +-- drivers/iio/accel/kionix-kx022a-i2c.c | 4 ++- drivers/iio/accel/kionix-kx022a-spi.c | 4 ++- drivers/iio/accel/kionix-kx022a.c | 34 ++++++++++++++++++- drivers/iio/accel/kionix-kx022a.h | 2 ++ 6 files changed, 49 insertions(+), 9 deletions(-) base-commit: 5e99f692d4e32e3250ab18d511894ca797407aec