From patchwork Sun Nov 4 14:38:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10666883 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D1964175A for ; Sun, 4 Nov 2018 14:39:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C137A2969B for ; Sun, 4 Nov 2018 14:39:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B480A29906; Sun, 4 Nov 2018 14:39:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6ACCE2969B for ; Sun, 4 Nov 2018 14:39:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729444AbeKDXy2 (ORCPT ); Sun, 4 Nov 2018 18:54:28 -0500 Received: from mail-wm1-f52.google.com ([209.85.128.52]:38640 "EHLO mail-wm1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727834AbeKDXy2 (ORCPT ); Sun, 4 Nov 2018 18:54:28 -0500 Received: by mail-wm1-f52.google.com with SMTP id l2-v6so5655353wmh.3 for ; Sun, 04 Nov 2018 06:39:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CaeVfqYXu2TYDoG2zSuduAOtV1MA3edspEoW5debvDc=; b=mELKye5iAcvpRpR8gbSZ7Frv0I7FFpKhuRhu1gq0Ffa+Nanv98WiopMCQnEWC32il3 zkzsCuV4MAfHnB+LyOt0YZ4QQ0tch7OlvNZLQBHH7DMYGJlPz8io+gMREzRoOXdHCMtC JdUSLXEllyt0wRXWOqRSLIrz0fDdjk7sZ/ccdR+eeJOYwCYBSmaMpyJaS0seRRV3pgnN Gw59JH9fflaawkCvpZdN4LTUlWklIMykhA+sv0yA9iqmAKIpWylBruPQCraZqDBfEHm0 AVQU5P73G6nTN5Rf98ujc0PQahFmcCeY3d2lyPnORZl3NfNtYOGZaHAIafxZWxK7fqVW 7oAQ== X-Gm-Message-State: AGRZ1gIqyCRtXz0W4HDBIM2PNCBYJwarxcpb3AmFsuD47nEgz0uZO134 FWIZrmRWDo8c8RJK93qtCWy7vbP7IjA= X-Google-Smtp-Source: AJdET5dK9q4ocMRJsclwhP2qEky8DazVUElPKrMK1KLG6AwUTfOea2UXbG1LsGZJNGu1xg+f65CRuw== X-Received: by 2002:a1c:ab54:: with SMTP id u81-v6mr3419701wme.45.1541342352630; Sun, 04 Nov 2018 06:39:12 -0800 (PST) Received: from localhost.localdomain ([151.66.25.206]) by smtp.gmail.com with ESMTPSA id w18-v6sm4203591wrn.66.2018.11.04.06.39.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Nov 2018 06:39:12 -0800 (PST) From: Lorenzo Bianconi To: jic23@kernel.org Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 0/7] add i2c controller support to st_lsm6dsx driver Date: Sun, 4 Nov 2018 15:38:59 +0100 Message-Id: X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Introduce i2c controller support to st_lsm6dsx driver for lsm6dso sensor. Add register map for lis2mdl magnetometer sensor. Add hw FIFO support to st_lsm6dsx sensorhub driver. Lorenzo Bianconi (7): iio: imu: st_lsm6dsx: introduce locked read/write utility routines iio: imu: st_lsm6dsx: reboot memory content after reset iio: imu: st_lsm6dsx: remove static from st_lsm6dsx_set_watermark iio: imu: st_lsm6dsx: introduce ST_LSM6DSX_ID_EXT sensor ids iio: imu: st_lsm6dsx: add i2c embedded controller support iio: imu: st_lsm6dsx: add hw FIFO support to i2c controller dt-bindings: iio: imu: st_lsm6dsx: add support to i2c pullup resistors .../bindings/iio/imu/st_lsm6dsx.txt | 1 + drivers/iio/imu/st_lsm6dsx/Makefile | 3 +- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 167 +++- .../iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c | 169 ++-- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 273 +++++-- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c | 753 ++++++++++++++++++ .../linux/platform_data/st_sensors_pdata.h | 2 + 7 files changed, 1226 insertions(+), 142 deletions(-) create mode 100644 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c