From patchwork Wed Sep 27 12:55:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 13400763 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 EB52EE810DD for ; Wed, 27 Sep 2023 12:56:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231737AbjI0M4L (ORCPT ); Wed, 27 Sep 2023 08:56:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231689AbjI0M4K (ORCPT ); Wed, 27 Sep 2023 08:56:10 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34147F3; Wed, 27 Sep 2023 05:56:05 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-5046bf37ec1so8419627e87.1; Wed, 27 Sep 2023 05:56:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695819363; x=1696424163; 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=0x06RSY7/Vq9q7hdrauvpq/UhEcx6nGlRRG9za9o8+M=; b=IGDCJPmVLdoyvSZrUqrf5D0Y3w48BRbk9FonVkX9GJHbQ5IfHIO4VP923JVRK4mCNz iEXYId7AXeAxWrLc3RbpX2whYir8qXI2lNXYNlmHJ3umgZWlU5Ctr8KsDbEtJ3MACWA0 U5Y8lMaNt9sUq6yLMJvuErq/d+GKIPJRXvH1sOeK4HO5ZL3jRbjCNytTd4Pi9dMogAUd Vg2AMyP8N/wfkWLaSQQXVzX1pKvxB65+ORkB5lWiDh29hCl1jG3ygKfIelK0Gapc4sK+ gepZzv2HXQN4Qmq0R51O7+0pasxB64GMMy0vsm/yANMq5jfpF/vJF9zK//kV/blxpxCN g7Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695819363; x=1696424163; 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=0x06RSY7/Vq9q7hdrauvpq/UhEcx6nGlRRG9za9o8+M=; b=RcrhFY3nG9vTisl+rOMZ5XqnfKPTVzrponNoSIbMLD3SzNeKw5pmYopoIQid1q/DMp jSAWepVeN1R+8NUi/fQixm/Z49akyL3wIF2d3YYVarTUdi+xpglD9HQoMGnvfhiaarGl s3rCo52q0IkThDJh69XI6MbhvLnGiU56s6HENfW5bzlCyenMnvm3NEHoWcVi2vvf5Wf7 y3QZurTwQYOyOz0JWWRnaPTlrvgAJ+6w6Djitfr2kolbomAi1h8xTe2d2uLSzh1GKt1/ qRTjVHdQJ/vQa+SNJxdN0wTFYKZZ0EpzgkT5UeOP8lZ+k9ntbPFmGbwh1qeSeUJvou9b VHbw== X-Gm-Message-State: AOJu0YyT9PyXyxjzq9zqUZVqz8Du/v2SlTm2NzECckgHfsnR+QtEqIL4 ZhhaIdwmBqIyo8Q/vvdFR9E= X-Google-Smtp-Source: AGHT+IH82iz5fs1Vc/NcXc83wSQz61KS+Jr/dykoPfkqok0zfupCFLdGpDbALC5enYwAj7hhFZ6LdA== X-Received: by 2002:ac2:5315:0:b0:503:385c:4319 with SMTP id c21-20020ac25315000000b00503385c4319mr1631981lfh.19.1695819362778; Wed, 27 Sep 2023 05:56:02 -0700 (PDT) Received: from fedora ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id v4-20020ac25924000000b004fdde1db756sm48045lfi.26.2023.09.27.05.56.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 05:56:01 -0700 (PDT) Date: Wed, 27 Sep 2023 15:55:45 +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 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. 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/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 ++ 5 files changed, 47 insertions(+), 7 deletions(-) base-commit: 5e99f692d4e32e3250ab18d511894ca797407aec