From patchwork Sun Sep 17 15:20:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 9954897 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 10F796028A for ; Sun, 17 Sep 2017 15:20:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0117D28B03 for ; Sun, 17 Sep 2017 15:20:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E873D28B0A; Sun, 17 Sep 2017 15:20:57 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 D94A228B03 for ; Sun, 17 Sep 2017 15:20:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751562AbdIQPUx (ORCPT ); Sun, 17 Sep 2017 11:20:53 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:37589 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751391AbdIQPUw (ORCPT ); Sun, 17 Sep 2017 11:20:52 -0400 Received: by mail-wr0-f194.google.com with SMTP id u48so3755386wrf.4 for ; Sun, 17 Sep 2017 08:20:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DBReElBBmdMvomEzlxAthpFXGCCHgweo13uNR0jd8U4=; b=fGCrzeAVl/TUmh3gTIk4p+Vp7Bnql24cVvEtiIjxeKuI1H4NtZWN4W8EsknLTOr5JY 9Y8f0ieAknAfiwOjE+gZXSDL3kyHhHdIA+0RUWVLIHcnOCVXpMAMkrRxK9WoWffRHBHG YtDaFPXAGqPMifR3RnGQK9WrU8MuUkGFCo0yM/ub4UaUqo1VD419WzpLsXwG2s3kd6+F kzQH+/upeuY3k6Pw9L1xpPpcZyGfKW6Yy35+XBJ+q61nVj+j71rHCLNINFRp+NDeleD5 1s6X81VeiA5gNdkkmhwUt/BR9gjqwy3zc1yGmOVUrHbgq3IfIWbEPmTC/a56CrYOwj1F lp3Q== 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:in-reply-to :references; bh=DBReElBBmdMvomEzlxAthpFXGCCHgweo13uNR0jd8U4=; b=LCoQWjue64VYiPfMKILzlB3ejoWW47qE93Jj4WXi1JziRuh96q/PLp+nYdlAmsGu9K Y/0euVX0ZXtjVVFJrjtG/nZBGRaxqf3HoD2NghyKSchMf7Fk4ffLxrwgni/lLCBsPvqA Exl4YDSp3az0vOvWIv8OdymYRz1gjeT6h1q6IlSeY4uNBHQepYjuBpQZscRVS+B4loYH zJckkyhadoB+RkZhesvwANnwmWU2vH243RTg5qsNp9cWwv6E4pN6NsY4WZjjPN9/OeKX AWDUSjmywOld691YqZBK3Zgz+81XnuOvjZxKvg26gTqJUR9bdgsZ+vL5K+XJ5RTdgBds ftoQ== X-Gm-Message-State: AHPjjUjpN2KrpdIXU0nIFyWBDGsgQdWQj1znp20r1PXiH5nfWD03IkZ4 1oetlWWNkwARGw== X-Google-Smtp-Source: ADKCNb7uBMeMwK0IR6bFWUZO+S8649TuufWkG8jGRq5pLTcnDl7G7uIns/UyuDwoEV80pNVTYlslXQ== X-Received: by 10.223.173.242 with SMTP id w105mr28152833wrc.111.1505661651452; Sun, 17 Sep 2017 08:20:51 -0700 (PDT) Received: from localhost.localdomain ([151.66.56.134]) by smtp.gmail.com with ESMTPSA id c126sm5154966wmh.38.2017.09.17.08.20.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 17 Sep 2017 08:20:50 -0700 (PDT) From: Lorenzo Bianconi X-Google-Original-From: Lorenzo Bianconi To: jic23@kernel.org Cc: linux-iio@vger.kernel.org, lorenzo.bianconi@st.com Subject: [PATCH 1/3] iio: gyro: st_gyro: add SPI-3wire support to st_gyro framework Date: Sun, 17 Sep 2017 17:20:45 +0200 Message-Id: <20170917152047.12631-2-lorenzo.bianconi@st.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170917152047.12631-1-lorenzo.bianconi@st.com> References: <20170917152047.12631-1-lorenzo.bianconi@st.com> 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 Add SPI Serial Interface Mode (SIM) register information to STM gyroscope framework Signed-off-by: Lorenzo Bianconi --- drivers/iio/gyro/st_gyro_core.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/iio/gyro/st_gyro_core.c b/drivers/iio/gyro/st_gyro_core.c index 46991f7131d1..b31064ba37b9 100644 --- a/drivers/iio/gyro/st_gyro_core.c +++ b/drivers/iio/gyro/st_gyro_core.c @@ -125,6 +125,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = { .mask = 0x07, }, }, + .sim = { + .addr = 0x23, + .value = BIT(0), + }, .multi_read_bit = true, .bootime = 2, }, @@ -200,6 +204,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = { .mask = 0x07, }, }, + .sim = { + .addr = 0x23, + .value = BIT(0), + }, .multi_read_bit = true, .bootime = 2, }, @@ -270,6 +278,10 @@ static const struct st_sensor_settings st_gyro_sensors_settings[] = { .mask = 0x07, }, }, + .sim = { + .addr = 0x23, + .value = BIT(0), + }, .multi_read_bit = true, .bootime = 2, },