Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9298990ybi; Wed, 10 Jul 2019 07:59:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4EoEQUJljLkt2dR5hLO+ZvjkTwUiW52V8ZHmSejn0mXrQs6R9TpnWofBQLmLaXrvigQ4p X-Received: by 2002:a17:90a:8a0b:: with SMTP id w11mr7402684pjn.125.1562770795663; Wed, 10 Jul 2019 07:59:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562770795; cv=none; d=google.com; s=arc-20160816; b=UZSsGEtoH/i9dXqc9msMSHQZPLcOzV/qe161sN48RRg9cgbnSuCZxkEUuxSI7UV7Id sq2ucBULs1Vc7w30kkBfDBb2ra88O8T89OIIyegYzjUGszytw8d+s0xNpHFrKpQeyw6K SfPnfrsOG/nFfC6AMEiD78ehk4yYVGCRLBFkugZscsDjY0YEpRtggXXtYy0H0xRh+bjp L4hARf7QGsEWLf/l/zEqrJbu1N+uCg87s8krUPp+4ZLFhhEXDgdXqWEz2jKcz4wsqWAu OtuHf56Qp7K2lTHCllezdm2E9yLNYKKfSckwaiVNTADruUVgeMoCl6pNWXMO6AAkQqdp AJwQ== 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=/3uNmB/FG64KZmFyrnw33djsJbHpUfRhD7l4WKCtqP0=; b=dVLkgzBn/32IaWEGlzloCzpkgYfJ7qPZJgBKOlqyae+T1ZrLPXn5ZCDqLTP+1PUlW9 ft/lA0Kq6zLutL/5+iRvF/EJoctvh1oFES+TZJuMJYWriKLvtQBMcj1RagUajZvtF2n/ p/E9e7d+vzbnejSuuHqLBjUwR/ONRlAZXeP4tgGEeZyR6bg/eQv55O1QmnxiwlYoPV47 DSkjzKfGiitBogc16YrPHnPkVtrfjRgZIahuYUWTYiSRSrjYa5EvSedLGEe9HnjYZqZS RvzmlhR8ht/1w5NE9C6kXLDd8Xe1luXM84l0bQCTokcq/egwzjy8fgeiL/kD4vZm6/DY +Hvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=OjpWs0Y4; 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 f26si2666176pga.117.2019.07.10.07.59.38; Wed, 10 Jul 2019 07:59:55 -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=OjpWs0Y4; 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 S1727830AbfGJO4p (ORCPT + 99 others); Wed, 10 Jul 2019 10:56:45 -0400 Received: from dc2-smtprelay2.synopsys.com ([198.182.61.142]:36960 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727281AbfGJO4o (ORCPT ); Wed, 10 Jul 2019 10:56:44 -0400 Received: from mailhost.synopsys.com (mdc-mailhost2.synopsys.com [10.225.0.210]) (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 64173C1C7F; Wed, 10 Jul 2019 14:56:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1562770604; bh=wlZvgrVT1cnhuSHx1zID1cemmfpVHJ+ubZIZzKEp5eM=; h=From:To:Cc:Subject:Date:From; b=OjpWs0Y4Qg+BBOtqLlD7heYkPssrjR3AOfFSvw9SX4JRMwIF0Yka8UKgEIEoqore7 5jJi8Vg++vwsHFQDIlEbnSILEoF1EEDIeXVZiLgbV5hmydzP3YPLlV7PEoWQpAf83N 4UG65yGR2yyUOHLPaoiAW0KlVZfStCUArPW6ORmF0sx+ywz/WObRDK8ELSXXwCDE2y 8ZrablIAkPrUUZFO7AEUdHxRjfe3khI1L66YlanQZBE8zH9bM5ghaYhAOtu4PWhPu6 tLVyytJVFLfb0RnkNdaKG6CGh8VMLjIGxjUq4tP+Jd2L6hYJ0B7pPrbJOweX3IPyli nO2AncxBoKeOg== Received: from de02.synopsys.com (de02.internal.synopsys.com [10.225.17.21]) by mailhost.synopsys.com (Postfix) with ESMTP id E6898A0057; Wed, 10 Jul 2019 14:56:41 +0000 (UTC) Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by de02.synopsys.com (Postfix) with ESMTP id BCB503FA2F; Wed, 10 Jul 2019 16:56:41 +0200 (CEST) From: Vitor Soares To: linux-iio@vger.kernel.org, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lorenzo@kernel.org, gregkh@linuxfoundation.org, rafael@kernel.org, bbrezillon@knernel.org, Joao.Pinto@synopsys.com, Vitor Soares Subject: [PATCH v3 0/3] Add ST lsm6dso i3c support Date: Wed, 10 Jul 2019 16:56:36 +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. The i3c regmap api is already available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git tags/regmap-i3c Change in v3: Update st_lsm6dsx_probe() call Remove i3c_get_device_id() and use i3c_device_match_id() 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 | 46 ++++++++++++++++++++++ drivers/i3c/master.c | 45 --------------------- drivers/iio/imu/st_lsm6dsx/Kconfig | 8 +++- drivers/iio/imu/st_lsm6dsx/Makefile | 1 + drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i3c.c | 61 +++++++++++++++++++++++++++++ include/linux/i3c/device.h | 4 ++ include/linux/regmap.h | 20 ++++++++++ 10 files changed, 205 insertions(+), 47 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