Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8373255ybi; Thu, 6 Jun 2019 11:08:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMIlq1ilc81K3RFbUHYutLA6PJ7xW/ySBbNnMcvKHPlrh5w4IGaVTljKCHsG5lL8iJbZyY X-Received: by 2002:a17:902:8ec3:: with SMTP id x3mr49894055plo.340.1559844520453; Thu, 06 Jun 2019 11:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559844520; cv=none; d=google.com; s=arc-20160816; b=lfjJ8i6en3IiNnc3UAfa6occhRWYlNHCPc8Empn2OLnM7D8jzvXym+j4oJtCVBdX3u DS2+FPZozN9Fc8uMZTv6LbqGVF8IY0Yk0qMwXzB0/vSA5d8VZHnJ1dpYgbPqdQfuG9Na lSeASiadsrOenrOtuDw4l+10zD3ZoGDtHx7hxORh+m2qbKApL/6kfjioBg4arxahYvlc of+vC5hNxpR/t+EeDujkd/HL6agrRrWROw8/iLOZFHM8EIvK9Ta4zwP8DJyB2nwCy7wg qxhDBBNBpDatP6T3hOHK1FY5dEVpDqFIbgrGrBy+3g64dTAL4BH+hGoxdkrIhivpv4jA dfkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=jzreS4x0yIK7IAHFmTqh8h2Y+qkzcycaoNEl2cWwHjc=; b=X6U8dPjRUs3e3Oh3WineH7+EogCT7GZfeeTjJE8kZ4bo3crrET6sQdB/epwDw3eKYG o70HXqiPg7kPNhMhwVcfoUY63WQx98tDBkv22SEa8ZfC97kJclMGnkM+XOyZQ4qi1r/f Dc5BrzYfJ9778TWDz9BaqutVSgRKnq4qwejE9Y9Cwju9biU2xNDoITIejTkHEGWLeghl e/g8C+cQgu4z0Sy+XszKsY0Cd4vN/ujScUCCmYqPyMp4W+MltJ1DMlloqM+tCA8Qa7Is CsGFHpOVD5/iokXeqxd6lDdh/p9TPMHp4a1cT9gZCp1mePc691xoujCsFfNy37c1Gso/ lUpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=AZg1Yd1U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si2357958pfo.12.2019.06.06.11.08.23; Thu, 06 Jun 2019 11:08:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=AZg1Yd1U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729152AbfFFPMK (ORCPT + 99 others); Thu, 6 Jun 2019 11:12:10 -0400 Received: from dc2-smtprelay2.synopsys.com ([198.182.61.142]:50650 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727559AbfFFPMJ (ORCPT ); Thu, 6 Jun 2019 11:12:09 -0400 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 0FA1CC0BA5; Thu, 6 Jun 2019 15:11:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1559833908; bh=0xawz4OatXGzaBqtYj6nS/EfNnp/z+E5VwinuXJDtLQ=; h=From:To:Cc:Subject:Date:From; b=AZg1Yd1UvRb7GN5XhHpGuTWa45lSMBb5oho1rMamz+DMIBTzwL7++qDfU0zRK/ahA GL9HjOsdNcdTlNAkVuCluuUghwxxrgmekwGebFyCrdpFFyyQJOWnWlFEqZwjSXxobr mUh2O0o/TCY6YpLwj4d1ABhXEm58H6PjjJ27rDuUqPUAcu3mo10VKCLQ4mcLs44dNy uPfDqNBjHAqLhdpiFcU4mV1ccs66S84iMhQtdaeeYUmh8CmhsnbM99oJgU4fqZ1l7K LbM9q8e1/1+IFyl3At97an0TMptIBW+3AkKYmTP2gGdH3h0y9HG6uf3p4LB/tc1CWf Ra6x0KQZRT2cg== Received: from de02.synopsys.com (de02.internal.synopsys.com [10.225.17.21]) by mailhost.synopsys.com (Postfix) with ESMTP id AF36DA0057; Thu, 6 Jun 2019 15:12:06 +0000 (UTC) Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by de02.synopsys.com (Postfix) with ESMTP id 9191D3FECC; Thu, 6 Jun 2019 17:12:06 +0200 (CEST) From: Vitor Soares To: linux-iio@vger.kernel.org, linux-i2c@vger.kernel.org, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org Cc: broonie@kernel.org, gregkh@linuxfoundation.org, rafael@kernel.org, bbrezillon@kernel.org, Joao.Pinto@synopsys.com, lorenzo.bianconi83@gmail.com, Vitor Soares Subject: [PATCH v2 0/3] Add ST lsm6dso i3c support Date: Thu, 6 Jun 2019 17:12:01 +0200 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series add i3c support for STM LSM6DSO and LSM6DSR sensors. It is also introduced i3c support on regmap api. Due the lack of i3c devices HDR capables on the market the support for now is only for i3c sdr mode by using i3c_device_do_priv_xfers() method. Changes in v2: Change i3c_get_device_id() to drivers/i3c/device.c Add support for LSM6DSR Vitor Soares (3): regmap: add i3c bus support i3c: Add i3c_get_device_id helper iio: imu: st_lsm6dsx: add i3c basic support for LSM6DSO and LSM6DSR drivers/base/regmap/Kconfig | 6 ++- drivers/base/regmap/Makefile | 1 + drivers/base/regmap/regmap-i3c.c | 60 +++++++++++++++++++++++ drivers/i3c/device.c | 8 +++ drivers/iio/imu/st_lsm6dsx/Kconfig | 8 ++- drivers/iio/imu/st_lsm6dsx/Makefile | 1 + drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i3c.c | 76 +++++++++++++++++++++++++++++ include/linux/i3c/device.h | 1 + include/linux/regmap.h | 20 ++++++++ 9 files changed, 179 insertions(+), 2 deletions(-) create mode 100644 drivers/base/regmap/regmap-i3c.c create mode 100644 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i3c.c -- 2.7.4