From patchwork Fri Oct 26 02:38:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kelly X-Patchwork-Id: 10656893 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 6B1B113A4 for ; Fri, 26 Oct 2018 02:38:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B153F283C9 for ; Fri, 26 Oct 2018 02:38:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A0AD22845C; Fri, 26 Oct 2018 02:38:20 +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,DKIM_SIGNED, DKIM_VALID,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 4D7E5283C9 for ; Fri, 26 Oct 2018 02:38:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725914AbeJZLN1 (ORCPT ); Fri, 26 Oct 2018 07:13:27 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:45056 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725925AbeJZLN1 (ORCPT ); Fri, 26 Oct 2018 07:13:27 -0400 Received: by mail-pl1-f193.google.com with SMTP id o19-v6so4745279pll.12 for ; Thu, 25 Oct 2018 19:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martingkelly-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=pDaehYfBNO3FpGReW/unYMeCrtmdZgkraHs5iBsbtIQ=; b=PDVLWuT4H+vRkIvawAh/2ttc78+bEh4orMWIABLtOibhC+WwRS9SfwFeoOpQA1nAAM VJvs1cEGytekHn6maZDGdYNIri9XC3MkiQ9eKnwhvAr2oZgQxEsbvwpkZOpk8ACwEftb xXNXdSdH1Rg4HJx+uxAsfFvDPcZownGWQvmz9qE6nkOYOHSMmdhQ8Z6eaIp9MeJRsguc ZvllUhvLOs3XrsHSY7oKB3RKnZXrIDqRtT04MqAIxoOY1iQ6pKj9Uk4clNRdt2tD4t9p H+6SaTqrcJU8nXEliwUhuN5idSZbBDVXhckLyfCUqbPvH4CBBHrWjDSvIEiYadrJsEva h7Qg== 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; bh=pDaehYfBNO3FpGReW/unYMeCrtmdZgkraHs5iBsbtIQ=; b=r3AJsSXCT/V/s1kjcRsfRHcVZYIMESiy7cBP9IpumO1Wq1cOnljueTwpd6mpA0rp2o 0d96+sFIZukELgG2S6ZoxQzZ5emhC6K34iz0xAaAE8rK0eZOSKLMD3Mk8GGN8fnaT+ek 0kIo+j9lSImNpPPKk/K/5Y/7nAm6DfwSgnmpXB59Q0GWyUg2R5x3AAi8K3sQTjl2Y1eu piluukEwRc8LxpMAlKNEZeWbX6xQOQ7cdUp2zY7Ntt9ARNITnn+qs4MTZ5mTZ2rhmNeN CtUsxSoy793h1tMpFLG5pzWQah9LlW9sktvnM6iLI4978xS8wa+nRC9dXByQytwcNkvh avQg== X-Gm-Message-State: AGRZ1gIXw8agX8QTFdwYSBH+muzvZMRszeoj5VRStLYlNUuFP6ipLr7J wuQ6Z0q90EgJl91OCqUmILzXQXrYtqy6Mw== X-Google-Smtp-Source: AJdET5eQeKhxWz5tNvOqiouuaipEtc1C+1aAUwV2hHrm6AAUcBDw3tEPF46mLMLXYdlnk8QK45MKJw== X-Received: by 2002:a17:902:650f:: with SMTP id b15-v6mr1719064plk.2.1540521498383; Thu, 25 Oct 2018 19:38:18 -0700 (PDT) Received: from cascade.Home (71-212-17-184.tukw.qwest.net. [71.212.17.184]) by smtp.gmail.com with ESMTPSA id r184-v6sm17410120pfc.5.2018.10.25.19.38.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 19:38:17 -0700 (PDT) From: Martin Kelly X-Google-Original-From: Martin Kelly , Denis Ciocca , Jonathan Cameron , Rob Herring , Martin Kelly Subject: [PATCH v2 1/4] iio: magnetometer: add clarifying comment Date: Thu, 25 Oct 2018 19:38:09 -0700 Message-Id: <20181026023812.29720-1-martin@martingkelly.com> X-Mailer: git-send-email 2.11.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 From: Martin Kelly Add a comment clarifying better when to use vs -magn in compatibility strings. Signed-off-by: Martin Kelly Signed-off-by: Martin Kelly --- drivers/iio/magnetometer/st_magn_spi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iio/magnetometer/st_magn_spi.c b/drivers/iio/magnetometer/st_magn_spi.c index 7b7cd08fcc32..15bb09267098 100644 --- a/drivers/iio/magnetometer/st_magn_spi.c +++ b/drivers/iio/magnetometer/st_magn_spi.c @@ -23,6 +23,8 @@ * For new single-chip sensors use as compatible string. * For old single-chip devices keep -magn to maintain * compatibility + * For multi-chip devices, use -magn to distinguish which + * capability is being used */ static const struct of_device_id st_magn_of_match[] = { { From patchwork Fri Oct 26 02:38:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kelly X-Patchwork-Id: 10656895 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 F010213A4 for ; Fri, 26 Oct 2018 02:38:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E10332BF82 for ; Fri, 26 Oct 2018 02:38:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D3E182BFD0; Fri, 26 Oct 2018 02:38:23 +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,DKIM_SIGNED, DKIM_VALID,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 6DB512BF82 for ; Fri, 26 Oct 2018 02:38:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725925AbeJZLNa (ORCPT ); Fri, 26 Oct 2018 07:13:30 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:46958 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726075AbeJZLNa (ORCPT ); Fri, 26 Oct 2018 07:13:30 -0400 Received: by mail-pg1-f194.google.com with SMTP id a5-v6so4038537pgt.13 for ; Thu, 25 Oct 2018 19:38:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martingkelly-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=X1CSzHMVwwPZUiFrxRCm6BXCNsJbqTfNkleewgLZAHE=; b=igzFc07XdK9kyqVSAmT52rM6EQRCn1pPac3ieQNBjSwzFHZ9h69IlDqeRhWB9fRF/H YAzAAofJvSDTGE+RzwOthsb7Wenu4jNqaohdQcOAYS7793mrzDcewUA1BgN5unV9G5O1 wmdpjGyrW2CqP9PaAuFGjdAF5vgyW/zRkEYjevKXOPYsnsJhnLJh/R28X2txfI85B/dS GNylgBfi7Xe6Lr5tCztci6pDHGJNZcBCryAI0rRWRva/8bxJ2O4V6KHPXWV8+yHRx1s8 YQcl96eeW4/THu3NlVufwbGPrRDymlWbF5DbHs73e/kH7aHm07Cqjk0JxiWgtKgZf3y+ 7pmQ== 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=X1CSzHMVwwPZUiFrxRCm6BXCNsJbqTfNkleewgLZAHE=; b=LBUYaxJ3Tr6CFJfVFmDJOpXYUh4jQy78agT92GTeDBIZ5GoNgAza5xuaI1PkQJngdI x7fjJZGLgrILT/GqKKiC2xtWtywpveUpMx2MqbSemEzdXffDp8fMr04wVDFZamQ4T2K8 5rBqUeggOiLcKF+6K9c6uJTNfb9KEZK3PHKm600IEq7qbBqrRTOFXng8Q1B8zhtAII7d /OuMl3wgbgaOa9Q7uc8+MlPHNV3S7c4Y6C3nMj2WmkNXdhCNHAlfParZzGCOywkYW+E0 3bKAKvf2t/irIhJPkmPZaG+ywh98PiKIxN5/suC9q+xeLZnz78xmOhAvL0jqI2rX71ke zHpw== X-Gm-Message-State: AGRZ1gKE+TG5ftrEMoGoGd0MWfFBxSgtGTQAx+cmeIRxq2J9JudUMFm+ myqmpecenMjh0+VfkGIuGnXeLb4VKtSgHw== X-Google-Smtp-Source: AJdET5egdyDktvxh20tqlO7qzTGL+zxOxDwjtwxtVuJa2leCU0v+vqTzT/yWORwwZJtFOpa9OX6DFA== X-Received: by 2002:a63:b5b:: with SMTP id a27-v6mr1581017pgl.97.1540521501459; Thu, 25 Oct 2018 19:38:21 -0700 (PDT) Received: from cascade.Home (71-212-17-184.tukw.qwest.net. [71.212.17.184]) by smtp.gmail.com with ESMTPSA id r184-v6sm17410120pfc.5.2018.10.25.19.38.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 19:38:20 -0700 (PDT) From: Martin Kelly X-Google-Original-From: Martin Kelly , Denis Ciocca , Jonathan Cameron , Rob Herring , Martin Kelly Subject: [PATCH v2 2/4] iio:magnetometer: st_magn: add LSM9DS1 support Date: Thu, 25 Oct 2018 19:38:10 -0700 Message-Id: <20181026023812.29720-2-martin@martingkelly.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181026023812.29720-1-martin@martingkelly.com> References: <20181026023812.29720-1-martin@martingkelly.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 From: Martin Kelly Update the sensor settings to support the LSM9DS1 sensor. Although the LSM9DS1 accelerometer and gyroscope are coupled together to use the same FIFO, the magnetometer is separate and can be cleanly supported without refactoring the existing driver. Signed-off-by: Martin Kelly --- v2: - Rename lsm9ds1 --> lsm9ds1-magn and lsm9ds1_magn, as this is a multi-device chip. - Use the register layout of LIS3MDL, as the two chips match. - Add I2C compatibility strings. drivers/iio/magnetometer/st_magn.h | 1 + drivers/iio/magnetometer/st_magn_core.c | 1 + drivers/iio/magnetometer/st_magn_i2c.c | 5 +++++ drivers/iio/magnetometer/st_magn_spi.c | 5 +++++ 4 files changed, 12 insertions(+) -- 2.11.0 diff --git a/drivers/iio/magnetometer/st_magn.h b/drivers/iio/magnetometer/st_magn.h index 8fe51ce427bd..bc14ad4f1b26 100644 --- a/drivers/iio/magnetometer/st_magn.h +++ b/drivers/iio/magnetometer/st_magn.h @@ -20,6 +20,7 @@ #define LIS3MDL_MAGN_DEV_NAME "lis3mdl" #define LSM303AGR_MAGN_DEV_NAME "lsm303agr_magn" #define LIS2MDL_MAGN_DEV_NAME "lis2mdl" +#define LSM9DS1_MAGN_DEV_NAME "lsm9ds1_magn" int st_magn_common_probe(struct iio_dev *indio_dev); void st_magn_common_remove(struct iio_dev *indio_dev); diff --git a/drivers/iio/magnetometer/st_magn_core.c b/drivers/iio/magnetometer/st_magn_core.c index 72f6d1335a04..a186b844d664 100644 --- a/drivers/iio/magnetometer/st_magn_core.c +++ b/drivers/iio/magnetometer/st_magn_core.c @@ -267,6 +267,7 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = { .wai_addr = ST_SENSORS_DEFAULT_WAI_ADDRESS, .sensors_supported = { [0] = LIS3MDL_MAGN_DEV_NAME, + [1] = LSM9DS1_MAGN_DEV_NAME, }, .ch = (struct iio_chan_spec *)st_magn_2_16bit_channels, .odr = { diff --git a/drivers/iio/magnetometer/st_magn_i2c.c b/drivers/iio/magnetometer/st_magn_i2c.c index feaa28cf6a77..68650f5f5c19 100644 --- a/drivers/iio/magnetometer/st_magn_i2c.c +++ b/drivers/iio/magnetometer/st_magn_i2c.c @@ -44,6 +44,10 @@ static const struct of_device_id st_magn_of_match[] = { .compatible = "st,lis2mdl", .data = LIS2MDL_MAGN_DEV_NAME, }, + { + .compatible = "st,lsm9ds1-magn", + .data = LSM9DS1_MAGN_DEV_NAME, + }, {}, }; MODULE_DEVICE_TABLE(of, st_magn_of_match); @@ -90,6 +94,7 @@ static const struct i2c_device_id st_magn_id_table[] = { { LIS3MDL_MAGN_DEV_NAME }, { LSM303AGR_MAGN_DEV_NAME }, { LIS2MDL_MAGN_DEV_NAME }, + { LSM9DS1_MAGN_DEV_NAME }, {}, }; MODULE_DEVICE_TABLE(i2c, st_magn_id_table); diff --git a/drivers/iio/magnetometer/st_magn_spi.c b/drivers/iio/magnetometer/st_magn_spi.c index 15bb09267098..cb05fcd9ddfe 100644 --- a/drivers/iio/magnetometer/st_magn_spi.c +++ b/drivers/iio/magnetometer/st_magn_spi.c @@ -39,6 +39,10 @@ static const struct of_device_id st_magn_of_match[] = { .compatible = "st,lis2mdl", .data = LIS2MDL_MAGN_DEV_NAME, }, + { + .compatible = "st,lsm9ds1-magn", + .data = LSM9DS1_MAGN_DEV_NAME, + }, {} }; MODULE_DEVICE_TABLE(of, st_magn_of_match); @@ -81,6 +85,7 @@ static const struct spi_device_id st_magn_id_table[] = { { LIS3MDL_MAGN_DEV_NAME }, { LSM303AGR_MAGN_DEV_NAME }, { LIS2MDL_MAGN_DEV_NAME }, + { LSM9DS1_MAGN_DEV_NAME }, {}, }; MODULE_DEVICE_TABLE(spi, st_magn_id_table); From patchwork Fri Oct 26 02:38:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kelly X-Patchwork-Id: 10656897 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 272A313A4 for ; Fri, 26 Oct 2018 02:38:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 176AA2BF82 for ; Fri, 26 Oct 2018 02:38:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 08E762BFD0; Fri, 26 Oct 2018 02:38:25 +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,DKIM_SIGNED, DKIM_VALID,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 B38E52BF82 for ; Fri, 26 Oct 2018 02:38:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726075AbeJZLNc (ORCPT ); Fri, 26 Oct 2018 07:13:32 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46961 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726113AbeJZLNb (ORCPT ); Fri, 26 Oct 2018 07:13:31 -0400 Received: by mail-pg1-f196.google.com with SMTP id a5-v6so4038557pgt.13 for ; Thu, 25 Oct 2018 19:38:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martingkelly-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RKDFQvcoe7QpHbAUeFMuxU6Q34CyWX+TGTjQ0U3Xbik=; b=dogY3DxZEvBqNdsZvFc5Uy+vHDZSlyAaIwT52eG4EJVhv2K4bPMAzD7+Rg11pF7IgQ 1sBBpbfV16H+ZFb0SUFYQbfESMxO+J1tdYV6UIb7aVQVu5yaXsaXfrmlWaAPifxRw2jI YTXtc7WjD6+5yjVB8Kg7cNWwqPigMwUCg1ZJY9Zspqd71+ag6Vyq03YNocnaH3KRQwYr a0vK5JP4uFOCCs8nq0Z5qad+MzJBuxIcRmSwhYwHt6PuwPJCxfyPBpikZ8pQ/QZnwbUn lq/DrV+HxOz1JymsUDorLGlIKM+/RX11kFIdRfI1AXmYqx/s8+5OT//PkBBHPGTjI1Nm 3nIg== 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=RKDFQvcoe7QpHbAUeFMuxU6Q34CyWX+TGTjQ0U3Xbik=; b=BJR/J19OuTGtkjcLSq1v9ib89nWqFJXtL89k7wYX2HPYr3Asuy+29vN0UJsge2MfJZ NyiehS4iFrpMQKEth6kY3Xh3Sfx1oMvxGzEzMwQhJfAoZZ6Avm6OzH0LEBCz0mM4ci9q QuH1qXS+WCSKwuE5Ila7O6hs5qes8BUbnipAZll/uL0ncY4vVZL4ZWWaVg2JqGDGji9a KbdR5rvHfFhCWN8Uil+sk9n6bC8evMyLHpeypH9YMFZRSKgf6Zj6sDSYqeA3ydzZxuxq bzd9jd5EIr72/LOlK7QH+Kn7Tyt0kV/EucYJ6vRvHN68VCrs9/ttFwUdzD3i9iziS/QS xqvQ== X-Gm-Message-State: AGRZ1gI5vLDeMsFcPXSkxMUMlxTczUS0IcV3auO3AARVlWLO14GqQ1Xs mjM1zzpudzcV2UgKkVnRTHgWjs0X2jbDEA== X-Google-Smtp-Source: AJdET5e6OtaPtztYn/q1EG2Ys2PBHsi/9v6c2j5uIaHkEchEBj7t3PGvZ+0q6EflxsOV/5DkPZaOAg== X-Received: by 2002:a63:3287:: with SMTP id y129mr1688699pgy.337.1540521502961; Thu, 25 Oct 2018 19:38:22 -0700 (PDT) Received: from cascade.Home (71-212-17-184.tukw.qwest.net. [71.212.17.184]) by smtp.gmail.com with ESMTPSA id r184-v6sm17410120pfc.5.2018.10.25.19.38.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 19:38:22 -0700 (PDT) From: Martin Kelly X-Google-Original-From: Martin Kelly , Denis Ciocca , Jonathan Cameron , Rob Herring , Martin Kelly Subject: [PATCH v2 3/4] iio:magnetometer: st_magn: add BDU settings Date: Thu, 25 Oct 2018 19:38:11 -0700 Message-Id: <20181026023812.29720-3-martin@martingkelly.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181026023812.29720-1-martin@martingkelly.com> References: <20181026023812.29720-1-martin@martingkelly.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 From: Martin Kelly LIS3MDL and LSM9DS1 are missing BDU settings in their register maps, so add them. I don't have a LIS3MDL sensor to test, but this works correctly on the LSM9DS1, which has the same register map. Signed-off-by: Martin Kelly --- 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 a186b844d664..370b93db528d 100644 --- a/drivers/iio/magnetometer/st_magn_core.c +++ b/drivers/iio/magnetometer/st_magn_core.c @@ -316,6 +316,10 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = { }, }, }, + .bdu = { + .addr = 0x24, + .mask = 0x40, + }, .drdy_irq = { /* drdy line is routed drdy pin */ .stat_drdy = { From patchwork Fri Oct 26 02:38:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kelly X-Patchwork-Id: 10656899 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 80FCC13A4 for ; Fri, 26 Oct 2018 02:38:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 733AA2BF82 for ; Fri, 26 Oct 2018 02:38:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 679C12BFD0; Fri, 26 Oct 2018 02:38:26 +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,DKIM_SIGNED, DKIM_VALID,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 1B0A12BF82 for ; Fri, 26 Oct 2018 02:38:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726113AbeJZLNd (ORCPT ); Fri, 26 Oct 2018 07:13:33 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36410 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726195AbeJZLNd (ORCPT ); Fri, 26 Oct 2018 07:13:33 -0400 Received: by mail-pf1-f195.google.com with SMTP id l81-v6so5164043pfg.3 for ; Thu, 25 Oct 2018 19:38:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martingkelly-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VTynoDnFRwbFifALT2BMZ531xKk4yBsBzSrrQJjjqXA=; b=Ba0/RUajnARH81i1JlWc4eEhvMHOQwTBGmZ2M2CfF60QH5iJ3px0sUjQgnULvs5Rwg WbFzgCvkEoK6cP0zNGNQIXfhFK/diKv/PxI6skevBR5XGmW/RcUdcaft515AeiLGr9o0 vOYdH4sxBI4nmUwLUN6UL359R/7AEczeUSBn2Z8YXWQPc/pyxFgvFKN9QK2fPPGR/rfn jNYUbKCeWGbqom82LR4WQalw7qmmb+kSU6/Yu5oR4vbzNicJRK+rWU2Hjtpf8ukPIUhF nWl9kIldam2sCkI27Rnp3NHxrX0smu5d2P20pYLSUa3fX9WVkrnQ44dV6qPqeW+SB8Y9 /t3w== 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=VTynoDnFRwbFifALT2BMZ531xKk4yBsBzSrrQJjjqXA=; b=aANvegqDjNXe2YazUZlyzylS/I1XFYHVAAdQg7KXloTlPcWFezoMH+V8tFTJSC423J vUOMwKv7fPYkN6yRXnT94Vo/lVbtC6luj83kLY2BBeYQqtZJccGopLECGwuBSTFSD9C/ HlhtcfUpZhaVqe6xAMw/TpNbMUed926vmTOlJVQpDjl23kXhbyl5ys/U+9QLnQwlB4h6 grEMHjkqoIrRSQ3C+9edY3t1L76NrgXbD28g0LAZ8Z87LG+yflEnA/I1sMq5XqNgYocV A8BAHrKvdhSlDgwx/9CRzh/Wn0XnfqbiYoMJOsJyQg2kN6kdIxiT0DNviLqcm2StvnAM B6cA== X-Gm-Message-State: AGRZ1gL1vC35vqY+0LO/pBcn+V7EiuPczMwv4UttaWhY4zd3xKdPjEl/ weKD+76u0aBEx9c4OBaPq1Mbk0ve8WPuxA== X-Google-Smtp-Source: AJdET5e5DfjMMQPUCu7v1LjkS5vSFHrMJNeG9tp5LjhAgDjPeL3XZNh9h4a6fDjkkZXSGxXN9shiJA== X-Received: by 2002:a62:85cb:: with SMTP id m72-v6mr1770842pfk.173.1540521504300; Thu, 25 Oct 2018 19:38:24 -0700 (PDT) Received: from cascade.Home (71-212-17-184.tukw.qwest.net. [71.212.17.184]) by smtp.gmail.com with ESMTPSA id r184-v6sm17410120pfc.5.2018.10.25.19.38.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 19:38:23 -0700 (PDT) From: Martin Kelly X-Google-Original-From: Martin Kelly , Denis Ciocca , Jonathan Cameron , Rob Herring , Martin Kelly Subject: [PATCH v2 4/4] dt-bindings: iio: magn: add LSM9DS1 bindings Date: Thu, 25 Oct 2018 19:38:12 -0700 Message-Id: <20181026023812.29720-4-martin@martingkelly.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181026023812.29720-1-martin@martingkelly.com> References: <20181026023812.29720-1-martin@martingkelly.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 From: Martin Kelly Add DT binding documentation for the LSM9DS1 magnetometer driver. Signed-off-by: Martin Kelly Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/iio/st-sensors.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/st-sensors.txt b/Documentation/devicetree/bindings/iio/st-sensors.txt index 6f626f73417e..07f1767c7ee6 100644 --- a/Documentation/devicetree/bindings/iio/st-sensors.txt +++ b/Documentation/devicetree/bindings/iio/st-sensors.txt @@ -67,6 +67,7 @@ Magnetometers: - st,lsm303dlm-magn - st,lis3mdl-magn - st,lis2mdl +- st,lsm9ds1-magn Pressure sensors: - st,lps001wp-press