Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp6257370pxu; Wed, 23 Dec 2020 19:20:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxbcvaCYJ0jieTe5P2o+VqVoQnVBSDJGHZ0SZBqGmi0TJeufLNqtBxJ+xiPRHJzQTpjvlrk X-Received: by 2002:a17:907:3312:: with SMTP id ym18mr26738486ejb.437.1608780035735; Wed, 23 Dec 2020 19:20:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608780035; cv=none; d=google.com; s=arc-20160816; b=hxyYs2I+NCmsG2AqS8ePJFm1CSVdld1Wm3Co6nJ0p6SRCmeoCiPsEaSyctUFoVg0a2 Q03suFxZ/JpvBOBM6rB3jTC2C57odZqeXSeTFwV0Si4DbF+3tOtogMQj7XFCt197XLfs 1xrCEN/63qBkfFj/Y1so6MpPMMCTaqISeUKW3919RjI0xl7W5x0m4bT5wmem8vy9SVCW KvaHYTvsB+mFffv0OIszKBsifHimPnUEYrrhL/hJiqje0uNGlLDRkwf1tNVQ+jlO+1XF ++JNlJeBMB/p2LnejSv7gOGGRXyuuVMBbH5WF2s3tPoIsZTP7Z8TBNmBAyQgV3UWTkCO OtBQ== 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 :sender:dkim-signature; bh=mk3IEUt06sDvVA1clSFII49sZH3UPqks6XPQtfaaM2A=; b=Yx9e1nCtgz7V9AK9Luodcbagy4KnP53BmQTLZcRRdf5Bb7qOIiW9Ow1S7DelU9tJum 7shglqm5q+8xFfhTIWxZA5aqk8DutKGWytUdhPoygBsuYI+LMthUgc57cKXvxbyJpI+i XdiACVozkWQCCxMGJ98kJZwmID3SvFm2saNpD/tz0EuibGb4Hq3Zk8Kswwq5jnZvFpWm txRwcmA5apJo5fUB+mSGY18qh/ICCo/AlC/fZ8LjFMu0mCw09gtbQp1PuSpg76k4PZtD nlF8uHbuiSisdIspbp7hPXRYJ7ziHQUYMHRvu5o+skS6pfP+yuDgpUxc3NHwgloisr0b 4cFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=nTV78gIa; 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 g11si8055010ejx.428.2020.12.23.19.20.13; Wed, 23 Dec 2020 19:20:35 -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=nTV78gIa; 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 S1728686AbgLXDUG (ORCPT + 99 others); Wed, 23 Dec 2020 22:20:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728631AbgLXDUF (ORCPT ); Wed, 23 Dec 2020 22:20:05 -0500 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 320F9C061794 for ; Wed, 23 Dec 2020 19:19:25 -0800 (PST) Received: by mail-yb1-xb4a.google.com with SMTP id h75so1728444ybg.18 for ; Wed, 23 Dec 2020 19:19:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=mk3IEUt06sDvVA1clSFII49sZH3UPqks6XPQtfaaM2A=; b=nTV78gIaL2c1ZyNCGPBOg2SWKiC13WVID59PHts0exX7WQ4CGqfP1Xi6lqwipMSskr jCdyMtscbgUlWGxR4FhLXEpnYWwNdQYN8hNoq3Ftvz/6eglQ6JEXXLvtRliPENpXl9kx bT7qEq8PqKD32mA90xOxPFa6mGYH8lsVYCNyCbMToB3lIqMXGIHqs/4RmGcJ9Flv/V7R WbKFbwoL33J4U6NQ5ucZN6dWLpGyi9NTydTFVKihZmn5UIAIG0EncuLP3bUwrdudjNBO RR1RL5lttfqXS38dCxSjRXocZFm2JJqlJMGmPWUXtc8jGdENRrMa6ePAvNBNDrEWhyVS Ak2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=mk3IEUt06sDvVA1clSFII49sZH3UPqks6XPQtfaaM2A=; b=AXa2HXoxpvgYUR36VMCpFjDgErEi5fMyG1WqLhVcgjfLjbjAaGUNUnyR73/C1hnUH9 tOu40O7aLMB7SWe4D6a/duBi7TCI/mpYGpI42+UQWwfdlygwbwYvN2hBO7+5M+2i6LIj 4WhkvwgZJ2DHMKA8qYSDKC3UK8nJKuQIFlCJdjd2uPU5KOHTFgcZ08R4GrOoRvvPA5/m UlQACbqW7yVovODfgyJu5ZVQ8po3kxd8XthhAhcCGpwBh6v6jOx1nzNiZou7dRjiw/TQ D06QbwEWPzU4JR7nNQTcA1sLT0v1Phsm80zZukM3UWsJy5EkItHsyIaEZlIwwGAo9sSN V6Zw== X-Gm-Message-State: AOAM530SHCPINPHKeGURDgVubQe7+ifNrwcZM5jHhsVZToL1jnxPzBWr XqRFZvtBf5Nu7z+opSDHt/oSi3X0iUAE/A== Sender: "jbhayana via sendgmr" X-Received: from jbhayana.c.googlers.com ([fda3:e722:ac3:10:24:72f4:c0a8:42b2]) (user=jbhayana job=sendgmr) by 2002:a25:9c07:: with SMTP id c7mr41070666ybo.21.1608779964260; Wed, 23 Dec 2020 19:19:24 -0800 (PST) Date: Thu, 24 Dec 2020 03:19:20 +0000 Message-Id: <20201224031921.1547519-1-jbhayana@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.29.2.729.g45daf8777d-goog Subject: [RFC PATCH v2 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 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 new SCMI Sensor Protocol defined by the upcoming SCMIv3.0 ARM specification, which is available at https://developer.arm.com/documentation/den0056/c/ The series is currently based on top of: commit f83eb664cdb4 ("Merge tag 'scmi-voltage-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux into for-next/scmi") in Sudeep for-next/scmi branch: https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/\ linux.git/log/?h=for-next/scmi 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 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/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 | 693 +++++++++++++++++++++ 6 files changed, 724 insertions(+) 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.29.2.729.g45daf8777d-goog