[{"id":1762306,"web_url":"http://patchwork.ozlabs.org/comment/1762306/","msgid":"<20170903175513.7f177d2b@archlinux>","list_archive_url":null,"date":"2017-09-03T16:55:13","subject":"Re: [PATCH 1/2] iio: pressure: add support to LPS33HW and LPS35HW","submitter":{"id":10151,"url":"http://patchwork.ozlabs.org/api/people/10151/","name":"Jonathan Cameron","email":"jic23@kernel.org"},"content":"On Sat,  2 Sep 2017 19:39:14 +0200\nLorenzo Bianconi <lorenzo.bianconi83@gmail.com> wrote:\n\n> add support to STMicroelectronics LPS33HW and LPS35HW pressure sensors\n> to st_pressure framework\n> \n> http://www.st.com/resource/en/datasheet/lps33hw.pdf\n> http://www.st.com/resource/en/datasheet/lps35hw.pdf\n> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>\nApplied to the togreg branch of iio.git and pushed out as testing\nfor the autobuilders to play with it.\n\nThanks,\n\nJonathan\n> ---\n>  drivers/iio/pressure/st_pressure.h      |  4 ++++\n>  drivers/iio/pressure/st_pressure_core.c |  2 ++\n>  drivers/iio/pressure/st_pressure_i2c.c  | 10 ++++++++++\n>  drivers/iio/pressure/st_pressure_spi.c  | 10 ++++++++++\n>  4 files changed, 26 insertions(+)\n> \n> diff --git a/drivers/iio/pressure/st_pressure.h b/drivers/iio/pressure/st_pressure.h\n> index 7d995937adba..e67eb0d971bf 100644\n> --- a/drivers/iio/pressure/st_pressure.h\n> +++ b/drivers/iio/pressure/st_pressure.h\n> @@ -19,6 +19,8 @@ enum st_press_type {\n>  \tLPS25H,\n>  \tLPS331AP,\n>  \tLPS22HB,\n> +\tLPS33HW,\n> +\tLPS35HW,\n>  \tST_PRESS_MAX,\n>  };\n>  \n> @@ -26,6 +28,8 @@ enum st_press_type {\n>  #define LPS25H_PRESS_DEV_NAME\t\t\"lps25h\"\n>  #define LPS331AP_PRESS_DEV_NAME\t\t\"lps331ap\"\n>  #define LPS22HB_PRESS_DEV_NAME\t\t\"lps22hb\"\n> +#define LPS33HW_PRESS_DEV_NAME\t\t\"lps33hw\"\n> +#define LPS35HW_PRESS_DEV_NAME\t\t\"lps35hw\"\n>  \n>  /**\n>   * struct st_sensors_platform_data - default press platform data\n> diff --git a/drivers/iio/pressure/st_pressure_core.c b/drivers/iio/pressure/st_pressure_core.c\n> index 0c1c092cc157..b8890e37a2d2 100644\n> --- a/drivers/iio/pressure/st_pressure_core.c\n> +++ b/drivers/iio/pressure/st_pressure_core.c\n> @@ -419,6 +419,8 @@ static const struct st_sensor_settings st_press_sensors_settings[] = {\n>  \t\t.wai_addr = ST_SENSORS_DEFAULT_WAI_ADDRESS,\n>  \t\t.sensors_supported = {\n>  \t\t\t[0] = LPS22HB_PRESS_DEV_NAME,\n> +\t\t\t[1] = LPS33HW_PRESS_DEV_NAME,\n> +\t\t\t[2] = LPS35HW_PRESS_DEV_NAME,\n>  \t\t},\n>  \t\t.ch = (struct iio_chan_spec *)st_press_lps22hb_channels,\n>  \t\t.num_ch = ARRAY_SIZE(st_press_lps22hb_channels),\n> diff --git a/drivers/iio/pressure/st_pressure_i2c.c b/drivers/iio/pressure/st_pressure_i2c.c\n> index 7f15e927fa2b..fbb59059e942 100644\n> --- a/drivers/iio/pressure/st_pressure_i2c.c\n> +++ b/drivers/iio/pressure/st_pressure_i2c.c\n> @@ -37,6 +37,14 @@ static const struct of_device_id st_press_of_match[] = {\n>  \t\t.compatible = \"st,lps22hb-press\",\n>  \t\t.data = LPS22HB_PRESS_DEV_NAME,\n>  \t},\n> +\t{\n> +\t\t.compatible = \"st,lps33hw\",\n> +\t\t.data = LPS33HW_PRESS_DEV_NAME,\n> +\t},\n> +\t{\n> +\t\t.compatible = \"st,lps35hw\",\n> +\t\t.data = LPS35HW_PRESS_DEV_NAME,\n> +\t},\n>  \t{},\n>  };\n>  MODULE_DEVICE_TABLE(of, st_press_of_match);\n> @@ -59,6 +67,8 @@ static const struct i2c_device_id st_press_id_table[] = {\n>  \t{ LPS25H_PRESS_DEV_NAME,  LPS25H },\n>  \t{ LPS331AP_PRESS_DEV_NAME, LPS331AP },\n>  \t{ LPS22HB_PRESS_DEV_NAME, LPS22HB },\n> +\t{ LPS33HW_PRESS_DEV_NAME, LPS33HW },\n> +\t{ LPS35HW_PRESS_DEV_NAME, LPS35HW },\n>  \t{},\n>  };\n>  MODULE_DEVICE_TABLE(i2c, st_press_id_table);\n> diff --git a/drivers/iio/pressure/st_pressure_spi.c b/drivers/iio/pressure/st_pressure_spi.c\n> index f5ebd36bb4bf..9a3441b128e7 100644\n> --- a/drivers/iio/pressure/st_pressure_spi.c\n> +++ b/drivers/iio/pressure/st_pressure_spi.c\n> @@ -41,6 +41,14 @@ static const struct of_device_id st_press_of_match[] = {\n>  \t\t.compatible = \"st,lps22hb-press\",\n>  \t\t.data = LPS22HB_PRESS_DEV_NAME,\n>  \t},\n> +\t{\n> +\t\t.compatible = \"st,lps33hw\",\n> +\t\t.data = LPS33HW_PRESS_DEV_NAME,\n> +\t},\n> +\t{\n> +\t\t.compatible = \"st,lps35hw\",\n> +\t\t.data = LPS35HW_PRESS_DEV_NAME,\n> +\t},\n>  \t{},\n>  };\n>  MODULE_DEVICE_TABLE(of, st_press_of_match);\n> @@ -83,6 +91,8 @@ static const struct spi_device_id st_press_id_table[] = {\n>  \t{ LPS25H_PRESS_DEV_NAME },\n>  \t{ LPS331AP_PRESS_DEV_NAME },\n>  \t{ LPS22HB_PRESS_DEV_NAME },\n> +\t{ LPS33HW_PRESS_DEV_NAME },\n> +\t{ LPS35HW_PRESS_DEV_NAME },\n>  \t{},\n>  };\n>  MODULE_DEVICE_TABLE(spi, st_press_id_table);\n\n--\nTo unsubscribe from this list: send the line \"unsubscribe devicetree\" in\nthe body of a message to majordomo@vger.kernel.org\nMore majordomo info at  http://vger.kernel.org/majordomo-info.html","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","mail.kernel.org;\n\tdmarc=none (p=none dis=none) header.from=kernel.org","mail.kernel.org;\n\tspf=none smtp.mailfrom=jic23@kernel.org"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xlfHC2gZrz9t33\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tMon,  4 Sep 2017 02:55:19 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1753123AbdICQzR (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tSun, 3 Sep 2017 12:55:17 -0400","from mail.kernel.org ([198.145.29.99]:38758 \"EHLO mail.kernel.org\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1753099AbdICQzR (ORCPT <rfc822;devicetree@vger.kernel.org>);\n\tSun, 3 Sep 2017 12:55:17 -0400","from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net\n\t[81.96.234.148])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby mail.kernel.org (Postfix) with ESMTPSA id B7AB121B7E;\n\tSun,  3 Sep 2017 16:55:15 +0000 (UTC)"],"DMARC-Filter":"OpenDMARC Filter v1.3.2 mail.kernel.org B7AB121B7E","Date":"Sun, 3 Sep 2017 17:55:13 +0100","From":"Jonathan Cameron <jic23@kernel.org>","To":"Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>","Cc":"linux-iio@vger.kernel.org, lorenzo.bianconi@st.com,\n\tdevicetree@vger.kernel.org","Subject":"Re: [PATCH 1/2] iio: pressure: add support to LPS33HW and LPS35HW","Message-ID":"<20170903175513.7f177d2b@archlinux>","In-Reply-To":"<20170902173915.17341-2-lorenzo.bianconi@st.com>","References":"<20170902173915.17341-1-lorenzo.bianconi@st.com>\n\t<20170902173915.17341-2-lorenzo.bianconi@st.com>","X-Mailer":"Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu)","MIME-Version":"1.0","Content-Type":"text/plain; charset=US-ASCII","Content-Transfer-Encoding":"7bit","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}}]