From patchwork Sun Sep 17 15:20:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 9954899 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 1C4266028A for ; Sun, 17 Sep 2017 15:20:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C91828B03 for ; Sun, 17 Sep 2017 15:20:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 01BE428B09; Sun, 17 Sep 2017 15:20:58 +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 E998F28B04 for ; Sun, 17 Sep 2017 15:20:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751581AbdIQPUy (ORCPT ); Sun, 17 Sep 2017 11:20:54 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:38606 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751575AbdIQPUy (ORCPT ); Sun, 17 Sep 2017 11:20:54 -0400 Received: by mail-wm0-f68.google.com with SMTP id x17so6621502wmd.5 for ; Sun, 17 Sep 2017 08:20:53 -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=SzsLaCq48YVGo3C2hFiXzuSlD7UpLhvOTwZ2eRNags4=; b=r9jM8PdO3UuozR/4nQbN7J4ctU5XPQ80jFz6HzEkCAOvUcvAHvcF7obl06sf8Pr7JE YnEo30ZKmmfTz5sFd66i3AWXz0qCDZAOdd/C8ApY1AN7UFRnxmUoo+tEnyjloCwkSRTu xxMrCxxVtXrxfdUS9dsBJgeQgFyR/fW8WQ1kLtixENeeVPl2Cd4jXjlQf2hJtxmY3UK/ yg9vJVxS7ESTGpOIASjmqyYz062/LZmjWXIzPT7/DstMw42PjqzVLZ9kZVeMYQGRazL3 yY5jQHjW5Z4fbK+9suUeGARmhOYO66+kUT5XIH7rTSrJFFAx9uCkOu0WJH+QS19E/7KB u57Q== 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=SzsLaCq48YVGo3C2hFiXzuSlD7UpLhvOTwZ2eRNags4=; b=LAl1Nynp6lV9AaT08Aghmr/1j6n1Tb12rxd79eurK2JrEXuiDR71Vf+kP29LxYHf3d lY4tMlP16sh36ijCJthux7emz6AdyNkPWbApHQHW2mEnGIPOg8k6tONnRxxFjUdBGmI0 ZJ2IKo0LlKvzBVeNPntgOzyodcIA49TqAcvfH9xDn8qY46TqrGh9Lqy+KZmAlGEvKfz2 ogh4yORb/Zrgxm6yJA1cudTRVMMIIADemIyI+2tQHR9bk9le2mFmlC+cPcRy3Vj6iZku Ku4I7SiKUcWRGR6w0z7FeA3EdrXoc7RCwQz0zm1pLxETS1PY23KWJN2Vj3+30y6k3yWI a0pw== X-Gm-Message-State: AHPjjUiV6j6AL6ZAovEvOzmkoIjJq6uB3YPyrPvDHrUGgdUz3zlueKTG 4pfyYTzC96Aotg== X-Google-Smtp-Source: AOwi7QAsOlErDqDewUBn8VIaejeIGtO407s2O3iys5QSAs2IjOdQHGWb4q3B+lj8F22+ANwYb8Ff6A== X-Received: by 10.28.15.202 with SMTP id 193mr7516545wmp.30.1505661652633; Sun, 17 Sep 2017 08:20:52 -0700 (PDT) Received: from localhost.localdomain ([151.66.56.134]) by smtp.gmail.com with ESMTPSA id c126sm5154966wmh.38.2017.09.17.08.20.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 17 Sep 2017 08:20:51 -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 2/3] iio: magnetometer: st_magn: add SPI-3wire support to LIS3MDL Date: Sun, 17 Sep 2017 17:20:46 +0200 Message-Id: <20170917152047.12631-3-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 LIS3MDL magn sensor Signed-off-by: Lorenzo Bianconi --- drivers/iio/magnetometer/st_magn_core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/iio/magnetometer/st_magn_core.c b/drivers/iio/magnetometer/st_magn_core.c index 8745686f233c..72f6d1335a04 100644 --- a/drivers/iio/magnetometer/st_magn_core.c +++ b/drivers/iio/magnetometer/st_magn_core.c @@ -322,6 +322,10 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = { .mask = 0x07, }, }, + .sim = { + .addr = 0x22, + .value = BIT(2), + }, .multi_read_bit = true, .bootime = 2, },