All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
To: jic23@kernel.org
Cc: linux-iio@vger.kernel.org, lorenzo.bianconi@st.com
Subject: [PATCH 3/3] iio: pressure: st_pressure: add SPI-3wire support to st_pressure framework
Date: Sun, 17 Sep 2017 17:20:47 +0200	[thread overview]
Message-ID: <20170917152047.12631-4-lorenzo.bianconi@st.com> (raw)
In-Reply-To: <20170917152047.12631-1-lorenzo.bianconi@st.com>

Add SPI Serial Interface Mode (SIM) register information
to STM pressure framework

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
---
 drivers/iio/pressure/st_pressure_core.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/drivers/iio/pressure/st_pressure_core.c b/drivers/iio/pressure/st_pressure_core.c
index b8890e37a2d2..15ad6054d9f6 100644
--- a/drivers/iio/pressure/st_pressure_core.c
+++ b/drivers/iio/pressure/st_pressure_core.c
@@ -297,6 +297,10 @@ static const struct st_sensor_settings st_press_sensors_settings[] = {
 				.mask = 0x03,
 			},
 		},
+		.sim = {
+			.addr = 0x20,
+			.value = BIT(0),
+		},
 		.multi_read_bit = true,
 		.bootime = 2,
 	},
@@ -343,6 +347,10 @@ static const struct st_sensor_settings st_press_sensors_settings[] = {
 			.addr = 0x20,
 			.mask = 0x04,
 		},
+		.sim = {
+			.addr = 0x20,
+			.value = BIT(0),
+		},
 		.multi_read_bit = true,
 		.bootime = 2,
 	},
@@ -406,6 +414,10 @@ static const struct st_sensor_settings st_press_sensors_settings[] = {
 				.mask = 0x03,
 			},
 		},
+		.sim = {
+			.addr = 0x20,
+			.value = BIT(0),
+		},
 		.multi_read_bit = true,
 		.bootime = 2,
 	},
@@ -471,6 +483,10 @@ static const struct st_sensor_settings st_press_sensors_settings[] = {
 				.mask = 0x03,
 			},
 		},
+		.sim = {
+			.addr = 0x10,
+			.value = BIT(0),
+		},
 		.multi_read_bit = false,
 		.bootime = 2,
 	},
-- 
2.14.1

  parent reply	other threads:[~2017-09-17 15:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-17 15:20 [PATCH 0/3] add SPI-3wire support to ST gyro/magn/pressure framework Lorenzo Bianconi
2017-09-17 15:20 ` [PATCH 1/3] iio: gyro: st_gyro: add SPI-3wire support to st_gyro framework Lorenzo Bianconi
2017-10-10 19:34   ` Jonathan Cameron
2017-09-17 15:20 ` [PATCH 2/3] iio: magnetometer: st_magn: add SPI-3wire support to LIS3MDL Lorenzo Bianconi
2017-10-10 19:43   ` Jonathan Cameron
2017-09-17 15:20 ` Lorenzo Bianconi [this message]
2017-10-10 19:38   ` [PATCH 3/3] iio: pressure: st_pressure: add SPI-3wire support to st_pressure framework Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170917152047.12631-4-lorenzo.bianconi@st.com \
    --to=lorenzo.bianconi83@gmail.com \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=lorenzo.bianconi@st.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.