Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3113508pxb; Fri, 12 Feb 2021 09:27:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJx9jb+d8BwU57IFNwHhm4eKinu6/Uf4ml4EtVHHoXBYF/LP9r6zIgFW8z/+9tUZuJk5Ro5Z X-Received: by 2002:a17:906:1457:: with SMTP id q23mr2255464ejc.43.1613150860698; Fri, 12 Feb 2021 09:27:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613150860; cv=none; d=google.com; s=arc-20160816; b=KSwb4YhJPColrghGDT+oytSxT8GUAw+Aef65D2F0CzvHL1uKaQjGkpoYdB6//mWx+d 9g7duuXMRO9+8Y93ePoTCsT/LrNMoXyspcL6XWfE25ut4DmSotQy6gDOUhuV65JJlFY+ 19ySn5DTvhkTwuhXdKdy+VKJSZaD9rIMUVtn55wv3cUw5i20Nq+5N1oOrC1I7bjTcsuC JR9ovYynQ40OgHKHRyj42zvSkt2bQUky8UItynpPoiXi8gmJRgMZ/B7p3hb2XcEU82ou VDmuM8eLo97oCkgihIafF+7/pYo0ZO2WUPrxAQ0auP8F/oplO+ZfooIofW3fzFuQdh8Z FV4w== 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=aroeJSyNxu0+JeuMKne8ORfmBNS+7h3YYPDPke6aLMA=; b=c8AHxUYOEsknfuwIvdm/3QnDIsF8pTIXbMIWmpWn14niNOjtEigjrCMn0xeG2srdx9 Pqt+6qQoDmwkyZDfv3ny/8cw5qxdg/39JzbKpzImESRsMtyPUm3LnecCPClvAZ3ltWrk YYr79FfNyV8el0/ETdHMhvnvLJP1W+ogotWckECenJNGOX3jG0v7NGmpXVjQSUkzZwIz lZrtRCDjDgQB73QimWgOSSVBtNQZcnPQ2UZ8lfqKW7/xwy85OBNfPM+wMbHsIS69TBzI Dxv86lGb/29os1SPsYMP47+bF4iyRoOwl+pOu5YY96R9xV2bgFDkqJTCn+K+5fTCJWAG Zwxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="IX/1JTBd"; 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 qc23si6528789ejb.467.2021.02.12.09.27.17; Fri, 12 Feb 2021 09:27:40 -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="IX/1JTBd"; 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 S230018AbhBLRXk (ORCPT + 99 others); Fri, 12 Feb 2021 12:23:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230489AbhBLRXV (ORCPT ); Fri, 12 Feb 2021 12:23:21 -0500 Received: from mail-pf1-x44a.google.com (mail-pf1-x44a.google.com [IPv6:2607:f8b0:4864:20::44a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48413C061574 for ; Fri, 12 Feb 2021 09:22:41 -0800 (PST) Received: by mail-pf1-x44a.google.com with SMTP id o14so7938546pfp.16 for ; Fri, 12 Feb 2021 09:22:41 -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=aroeJSyNxu0+JeuMKne8ORfmBNS+7h3YYPDPke6aLMA=; b=IX/1JTBdvMenAORdbmNvdhxNDH2c26vW8FC+ioe/JRtYG3Xeyp7graKc0aITIDuLZC Iy6F4QCtlwaCokB+rwIb2Xpas5WeRwhKqqkPhe7czQV1C4aOh46SiaxKGUOAFFSJ/VGD K+80oIU53BmM8j3gi8m2P/0TWxFYQECJsHaBBQABcIbhYplxDZL0ZoKufRrstoujgn5I DeP5LwRnOX6U1whiqROSfolcRAJDeGClSsXbHqzh2OEz3HJC3MCLyT770+iIxsUq1NZg bkIoJnXbBlvkDb1gh7FMm1AYu+L6TvK4XrJJ1M984KlNTRnsaiRqJ0BB12dKOR5sN5QV 5IzA== 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=aroeJSyNxu0+JeuMKne8ORfmBNS+7h3YYPDPke6aLMA=; b=issMTmpkAVT/h/b0YeLb/cg685FpcoQQV9g1IIcDssd9iUEG3SSaS6DKT9Hz1H0sge RX0Qdv1V4F3XdZVgIWAId5oRWiMMIOqy7aOwDQJR14vznmK/mngZZJaWyxtwYJzzo017 kfZH3jIDDk+ffUCM/EJX/Qywk9BzJQZg+F4eJLMDi1/QkWsdlfT/BTQ8uGqXvk7ivZKf x+RmBiKtrUPRUjgX7NLBMXtQR/k1LAzkESX/1GS5c1PF3LXdZsJCSEG7UO2IM0BTDm0I cjfMizSQ4AmrjMnToj688SarPNvIA988D2hv8OBIf8NQzL7XXmMBfsO/ch3E5QQtPXdO xaUw== X-Gm-Message-State: AOAM531uOnwEwfmhgvfL2O1hIY7WzWaWT0hO+7NchH7d/k+U2x1DPDl8 G/XWlIseWMVOy2YsHPYW5GdlcpVNNpDR9Q== 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:a17:902:b410:b029:e3:284e:4e0b with SMTP id x16-20020a170902b410b02900e3284e4e0bmr1943431plr.33.1613150560558; Fri, 12 Feb 2021 09:22:40 -0800 (PST) Date: Fri, 12 Feb 2021 17:22:34 +0000 Message-Id: <20210212172235.507028-1-jbhayana@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.30.0.478.g8a0d178c01-goog Subject: [PATCH v6 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 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 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 | 678 +++++++++++++++++++++ 7 files changed, 710 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.0.478.g8a0d178c01-goog