From patchwork Fri Apr 27 02:15:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 10367331 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 C2FFF6016C for ; Fri, 27 Apr 2018 02:15:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF3542931A for ; Fri, 27 Apr 2018 02:15:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F1F52931E; Fri, 27 Apr 2018 02:15:07 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, 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 30B3C2931A for ; Fri, 27 Apr 2018 02:15:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753312AbeD0CPF (ORCPT ); Thu, 26 Apr 2018 22:15:05 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:39984 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752358AbeD0CPE (ORCPT ); Thu, 26 Apr 2018 22:15:04 -0400 Received: by mail-pg0-f67.google.com with SMTP id l2-v6so328688pgc.7 for ; Thu, 26 Apr 2018 19:15:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:cc:subject:date:message-id; bh=y510yFNXcDIdXiyJAJDkIXJyWu7W7clsBq/wFSn3iLA=; b=LCcW7q/1ebYfWzzz5nMEuT6e2NvKthOrs6MfImO7/9VZGP6khmNCgQUUjm3F11vMFa 87sOWrnFzI4MiEJXpXTPMPtRgCvEJwshsDiISBHdo3mv1dtlV80HaYaoA+dDhMetEzvP D5nQmcdt6g3O0B4DF7lWGxOdn8FlUFpVdPNnQ= 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=y510yFNXcDIdXiyJAJDkIXJyWu7W7clsBq/wFSn3iLA=; b=CaE1S4+MCo+UCnGVAU+foph+mNHkBMXQmr5+yTBRPncH82/VRcGs9kMFVFYTPO2ZL4 UjRFbTlzekz9o5VgrXcV1XCzH7dMOHVUoFU+y9YpL7YxHaPssN4GO1nSuFTeuKK7DPzt dfqtwJou59s7q/UiAWu0LZVo6E/KX7OhN5cVUkWzRUpSUZHup1CIZdJcNiPpkgLjebnC F6MCkx4dLZO357KOtexfWoOYS7TaybyXoBebtNDBq6U9G6LY1nJqVi/MjqI2QxcGTXhs Db1v/Q5kPPdn/bDZsqA7BEOO0sJb/rEFMhR1NC59XmMD2F5FuPSBHjVNqqcDy6puOkMJ TexA== X-Gm-Message-State: ALQs6tD3Yuy2rGLIKpcIuIJRKuXxx/ceX1p+A0iX1UPDsqLDxJYkBQNs 8h/7x+2wJ6EGcU5Y8NFmch1Tgg== X-Google-Smtp-Source: AB8JxZrCUHIBDYh0dVC/FQlLRf+O5+PjORxgNy8EhIjxaeQKvxVfHg1N2QtEaMUh3Ep445WYV6b2Tg== X-Received: by 2002:a17:902:2bc5:: with SMTP id l63-v6mr449043plb.299.1524795304421; Thu, 26 Apr 2018 19:15:04 -0700 (PDT) Received: from niteshade.hsd1.or.comcast.net ([2601:1c2:5000:8d45::3f0e]) by smtp.gmail.com with ESMTPSA id g16-v6sm243659pgn.51.2018.04.26.19.15.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Apr 2018 19:15:03 -0700 (PDT) From: Matt Ranostay To: jic23@kernel.org Cc: linux-iio@vger.kernel.org, Matt Ranostay , device-tree@vger.kernel.org Subject: [PATCH] iio: potentiostat: lmp91000: add LMP91002 support Date: Thu, 26 Apr 2018 19:15:05 -0700 Message-Id: <20180427021505.29526-1-matt.ranostay@konsulko.com> X-Mailer: git-send-email 2.14.1 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 LMP91002 is register compatible so add devicetree and i2c client ids Cc: device-tree@vger.kernel.org Signed-off-by: Matt Ranostay --- Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt | 7 ++++--- drivers/iio/potentiostat/lmp91000.c | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt b/Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt index b9b621e94cd7..d51639f0ebbf 100644 --- a/Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt +++ b/Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt @@ -1,10 +1,11 @@ -* Texas Instruments LMP91000 potentiostat +* Texas Instruments LMP91000 series of potentiostats -http://www.ti.com/lit/ds/symlink/lmp91000.pdf +LMP91000: http://www.ti.com/lit/ds/symlink/lmp91000.pdf +LMP91002: http://www.ti.com/lit/ds/symlink/lmp91002.pdf Required properties: - - compatible: should be "ti,lmp91000" + - compatible: should be "ti,lmp91000" or "ti,lmp91002" - reg: the I2C address of the device - io-channels: the phandle of the iio provider diff --git a/drivers/iio/potentiostat/lmp91000.c b/drivers/iio/potentiostat/lmp91000.c index 85714055cc74..90e895adf997 100644 --- a/drivers/iio/potentiostat/lmp91000.c +++ b/drivers/iio/potentiostat/lmp91000.c @@ -411,12 +411,14 @@ static int lmp91000_remove(struct i2c_client *client) static const struct of_device_id lmp91000_of_match[] = { { .compatible = "ti,lmp91000", }, + { .compatible = "ti,lmp91002", }, { }, }; MODULE_DEVICE_TABLE(of, lmp91000_of_match); static const struct i2c_device_id lmp91000_id[] = { { "lmp91000", 0 }, + { "lmp91002", 0 }, {} }; MODULE_DEVICE_TABLE(i2c, lmp91000_id);