Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp40765pxb; Tue, 9 Mar 2021 15:14:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbv7SDYf1Dd5Yjn+GnTwv7FPjslhIsexc0ne8mKKhYrJlMR62LU7H+AfvFzqFoKXd09xrf X-Received: by 2002:a05:6402:104c:: with SMTP id e12mr85610edu.108.1615331681950; Tue, 09 Mar 2021 15:14:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615331681; cv=none; d=google.com; s=arc-20160816; b=s3iks3/Xit3Mnb9L8sFkFFBLZ3UEEfNWiHR+z2L+vJecMfDcMEl+QCZc6lFNuBObgO eib3hM9LT7YWYJQmZ+FfTWbnA/l9hFQpqJhrQ0E5Wgc0XouQlSU39iYXOnkG3N4yppAq PRsO1Bp+VBh/zQXayTw1PFJ4y09VJm5Q5BvYf1cxhIP4y7wErVyS15tuhVidvekEnSu9 SUwIcrbMtC/YpdCB3LUHXF7LA1yBq2Gfi1HHTqQyCt0HE/yRQWAEvT3K0Eh7rFAD3FXt J87GcWO9jnWaryizZhGQ94MMIiLgujrPjV10q9hUvWlYCmmMUVZtL1sdE+6cs2KnPINz YKJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=CQRMAIOvqBs8kZZqo+ZLWXcUVnOj5R3ECqdWM5F4gPE=; b=Vnst38SCLH81g16diwhVQx1mx/LayWLl9uXLwuqKtaQ/8JXGQWXhH6lDKo12hD7z7i oh6atYvH+blyz6uAc4WaNM+ufa3ld5bpXSAnsv2lJ7wdIMhr4rDl7BgGL3g9+/uSeBl3 VRREMSHR0EGxWWlEes7Ajr1CXmea1LPj54sco6LvEQ2egZ8HH4h0oifqJ4QzHSUR8LiU KTWUmvfoUtX1csu8+SHoQRPyw70YA4m8Jo3fQXVzFnPKJP/bt8+v/+5w7D57Ljsff0nw MM8AsB0qe5TUvlCIHm2HpmRdZ/8kNFMXzMZoI6eTob6e2keLAy8fddbGz/y4QAONrsnN x6dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UYNyZvVn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si9936336ejr.490.2021.03.09.15.14.18; Tue, 09 Mar 2021 15:14:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UYNyZvVn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231904AbhCIXNT (ORCPT + 99 others); Tue, 9 Mar 2021 18:13:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230473AbhCIXNE (ORCPT ); Tue, 9 Mar 2021 18:13:04 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91CB0C06174A for ; Tue, 9 Mar 2021 15:13:04 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id o9so18919939yba.18 for ; Tue, 09 Mar 2021 15:13:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=CQRMAIOvqBs8kZZqo+ZLWXcUVnOj5R3ECqdWM5F4gPE=; b=UYNyZvVncul7Pst5XhlG8JZRtQZq7IMynBgZ+sQoPXaZmfjWQMLRwKLmDaeCYZFaoT QkzRGaBVXGCoW4vl8vdDADcS+LbZjxg6ANCU0g/REbx2s5NFQg/ZocI886W3ojQXjl/9 6fzla7DZuo9OaetwEGm/lxQ/RjrOnAx+9NcLFORHzy+rR616uUk4Gu0HYNswZjx6SOqg TnNK6tfeg19t9QgKaIqLA7l0mGjdxCyfAovzUlsjJAhfpT+xQ8cc9i+0UqsDd8vQuMZE 6HRxeTOROeqz3BEnEahU5/hJxbZ5S5OFJBwoleCw0qY1t4TxFWGQdWnlhw9eoMvKpbRW EveQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=CQRMAIOvqBs8kZZqo+ZLWXcUVnOj5R3ECqdWM5F4gPE=; b=AFYpG7MJO49Am4ANMZ9xUYiVFqH7hjJ6dAprkfYUyMmUzPqy16aMzmW6EIx7BXxiJI Wgxz2ZejnREftZuKhnp4M4WO+/GeDavYHfOcmG+Okf7ZJJuMYHkpvAsqBhnnS3fJynlS Kr+cLbwImYi41N8ZSLFadEbclEFudkt45/Ds1+UXrsybUJcEBpxAAF8Acq7esafXc1n9 tep3F6cHDBFBAkdS7tMojrcfC3Tg+vDRAKBNWujOYtz8GvIu4Qrjod0FAaJl1P46/a2g ugrDgLl2Lfc2qgdoCk4BJxClsic2T61HcTEYlE6ilJ+XaskgwTkyLkwzuf4hkW9ygnTp PEPA== X-Gm-Message-State: AOAM53107qJZZMOhS6iToMssskYs58Mudchh7/Ml9XXZeTcVvMDUIpSZ DB89KfDCimst9mvsPPyzl556edcOZ916RQ== X-Received: from jbhayana.c.googlers.com ([fda3:e722:ac3:10:24:72f4:c0a8:42b2]) (user=jbhayana job=sendgmr) by 2002:a25:ace7:: with SMTP id x39mr271843ybd.400.1615331583814; Tue, 09 Mar 2021 15:13:03 -0800 (PST) Date: Tue, 9 Mar 2021 23:12:58 +0000 Message-Id: <20210309231259.78050-1-jbhayana@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.30.1.766.gb4fecdf3b7-goog Subject: [PATCH v7 0/1] Adding support for IIO SCMI based sensors From: Jyoti Bhayana To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Jyoti Bhayana , Mauro Carvalho Chehab , "David S. Miller" , Rob Herring , Lukas Bulwahn Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, cristian.marussi@arm.com, sudeep.holla@arm.com, egranata@google.com, mikhail.golubev@opensynergy.com, Igor.Skalkin@opensynergy.com, Peter.hilber@opensynergy.com, ankitarora@google.com, gurunagarajan@google.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This series adds support for ARM SCMI Protocol based IIO Device. This driver provides support for Accelerometer and Gyroscope sensor using SCMI Sensor Protocol extensions added in the SCMIv3.0 ARM specification, which is available at https://developer.arm.com/documentation/den0056/c/ This version of the patch series has been tested using version 5.4.21 branch of Android common kernel. Any feedback welcome, Thanks, Jyoti Bhayana v6 --> v7 - Fixed the error reported by kernel test robot v5 --> v6 - Fixed the warning by kernel test robot - Incorporated the feedback comments from v5 - Fixed the bug found in scmi_iio_set_odr_val for calculating the multiplier v4 --> v5 - Dropped the RFC tag - Added channel ext_info for raw_available - Incorporated the feedback comments from v4 review of the patch v3 --> v4 - Incorporated the feedback comments from v3 review of the patch v2 --> v3 - Incorporated the feedback comments from v2 review of the patch v1 --> v2 - Incorporated the feedback comments from v1 review of the patch - Regarding the new ABI for sensor_power,sensor_max_range, and sensor_resolution, these are some of the sensor attributes which Android passes to the apps. If there is any other way of getting those values, please let us know Jyoti Bhayana (1): iio/scmi: Adding support for IIO SCMI Based Sensors MAINTAINERS | 6 + drivers/firmware/arm_scmi/driver.c | 2 +- drivers/iio/common/Kconfig | 1 + drivers/iio/common/Makefile | 1 + drivers/iio/common/scmi_sensors/Kconfig | 18 + drivers/iio/common/scmi_sensors/Makefile | 5 + drivers/iio/common/scmi_sensors/scmi_iio.c | 683 +++++++++++++++++++++ 7 files changed, 715 insertions(+), 1 deletion(-) create mode 100644 drivers/iio/common/scmi_sensors/Kconfig create mode 100644 drivers/iio/common/scmi_sensors/Makefile create mode 100644 drivers/iio/common/scmi_sensors/scmi_iio.c -- 2.30.1.766.gb4fecdf3b7-goog