From patchwork Sat Dec 14 16:52:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 11292337 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5230113B6 for ; Sat, 14 Dec 2019 16:53:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 27E7B24676 for ; Sat, 14 Dec 2019 16:53:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576342397; bh=CvoUsLnSJWvSvoJF2OxzSaBJ0cz178+fg54oFeJIZ+E=; h=From:To:Cc:Subject:Date:List-ID:From; b=rhXQrcg85yE8dg0enIfPrwIl9nm6Eo3l+u0ILRHSn6BMEwRgfQKRT9uPzab2a3rna AuZJZ5QAP7sqClt1O01shtYq2z4xj7egkil5+rTohZbceCsYhjXJtgm+V+d30SDeZz eE6W1GPxXh3vgQoqykTp6vbN1wbjMcSiBSVJExxA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725970AbfLNQxQ (ORCPT ); Sat, 14 Dec 2019 11:53:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:54470 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725943AbfLNQxQ (ORCPT ); Sat, 14 Dec 2019 11:53:16 -0500 Received: from localhost.localdomain (209-213-91-242.bos.ma.meganet.net [209.213.91.242]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7FE4E2465B; Sat, 14 Dec 2019 16:53:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576342395; bh=CvoUsLnSJWvSvoJF2OxzSaBJ0cz178+fg54oFeJIZ+E=; h=From:To:Cc:Subject:Date:From; b=XgvtMQ8B1bXpjspMPyGi9hkV8/sEkeegH3K4aVmtv1i6QX7lGc1XFQtEtU7ijhDA3 n3e8HHTBG74VEJo/AaIu6xJF8qbQVouNiT+C2OA1VD8MwzxszkTmjmlDfKq+yiF/5a NAXAgPPP7UYOnIsPOnq0q1u9OWAZux/pP+T0cxZM= From: Lorenzo Bianconi To: jic23@kernel.org Cc: linux-iio@vger.kernel.org, lorenzo.bianconi@redhat.com Subject: [PATCH 0/6] introduce i2c master controller support for LSM6DSM Date: Sat, 14 Dec 2019 17:52:53 +0100 Message-Id: X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Enabled i2c master controller support for LSM6DSM devices. Enable ext_sensor0 for lsm6dsm (currently just one external sensor is supported). This series has been tested using LIS2MDL as slave device connected to the i2c controller of the LSM6DSM Lorenzo Bianconi (6): iio: imu: st_lsm6dsx: export max num of slave devices in st_lsm6dsx_shub_settings iio: imu: st_lsm6dsx: check if master_enable is located in primary page iio: imu: st_lsm6dsx: check if pull_up is located in primary page iio: imu: st_lsm6dsx: check if shub_output reg is located in primary page iio: imu: st_lsm6dsx: rename st_lsm6dsx_shub_read_reg in st_lsm6dsx_shub_read_output iio: imu: st_lsm6dsx: enable sensor-hub support for lsm6dsm drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 23 +++++- .../iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c | 27 +++++-- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 74 ++++++++++++++++-- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c | 76 ++++++++++++------- 4 files changed, 157 insertions(+), 43 deletions(-)