From patchwork Tue May 8 05:34:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 10385383 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 074D460159 for ; Tue, 8 May 2018 05:34:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB2B928CE3 for ; Tue, 8 May 2018 05:34:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DFE9828CE6; Tue, 8 May 2018 05:34:01 +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 5AE5F28CE3 for ; Tue, 8 May 2018 05:34:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752854AbeEHFeA (ORCPT ); Tue, 8 May 2018 01:34:00 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:39649 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754065AbeEHFd7 (ORCPT ); Tue, 8 May 2018 01:33:59 -0400 Received: by mail-pg0-f67.google.com with SMTP id e1-v6so9315324pga.6 for ; Mon, 07 May 2018 22:33:59 -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=Jwq19MN18GsZ+dNXfDG+PLssIRcnuCiHMZRAfDjiiew=; b=El5A1//enXBpmb/3a4WQW4gh+K3DsdSWuz0Olm2ILxrgkLoOhBfHnqZC+I6YpWRY6d 7qllfMcGKkSofOSpq9+G+0oPoCpgiXX98//HxxKiKEXdr1vMbHJVK2cySxDgPcqlh5xA D/S0HIxjlEg10vxQq3RyVbZniA6tvD9zGbb9g= 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=Jwq19MN18GsZ+dNXfDG+PLssIRcnuCiHMZRAfDjiiew=; b=W930z5hvudgFEfQhR0G2QXNsDuRiGktafdQG1pwTbGpKVVoBcpaqsmbmc3bPU6kJ6z zKoJs/Vug/I1L2I3IrtnwKTDZB4mnNTaJB9l4W0MCDHpHfr3VhO4wKylJDPGo7LJ7Unq 1Hvi0dH3AxOxYURnpX6W5+RJeXW4Ul4o7x5Vb2bQ8zj8MXbqMW3lAS5XT9WHgNfemzvt OCIRyYZZJrs73++GjkqbhNbpyWOgpPPwxNta01gZLwpOysbcoqmVaAmWmpaGQrzcU7Kq xU78y2uNtsTJWIxMTjv7ZvwX5+aOQ2o8TpUptt0pAN38VOqEjViukzOt34AhiozrGnAM PucQ== X-Gm-Message-State: ALQs6tC53VT/NJKP6CcLuS16UBzukQMZtKFt2a33OGu6ZG51NMps3nVv KDEcKvAhNQKlurFImxfAF9yiViHYiCA= X-Google-Smtp-Source: AB8JxZqPwTJ2Rp9Zbvr9kxF6Kvc76J7/TExn2Nv/MflA0ymZbixBAjXGLPXZnglMuPhVGpMdmDyuqw== X-Received: by 2002:a63:714d:: with SMTP id b13-v6mr24399163pgn.271.1525757639198; Mon, 07 May 2018 22:33:59 -0700 (PDT) Received: from niteshade.hsd1.or.comcast.net ([2601:1c2:5000:8d45::3f0e]) by smtp.gmail.com with ESMTPSA id p71sm53979646pfl.170.2018.05.07.22.33.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 May 2018 22:33:58 -0700 (PDT) From: Matt Ranostay To: linux-iio@vger.kernel.org Cc: jic23@kernel.org, Matt Ranostay , devicetree@vger.kernel.org Subject: [PATCH v2] iio: potentiostat: lmp91000: add LMP91002 support Date: Mon, 7 May 2018 22:34:01 -0700 Message-Id: <20180508053401.32485-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: devicetree@vger.kernel.org Signed-off-by: Matt Ranostay Reviewed-by: Rob Herring --- Changes from v1: * Split out compatible options in multiple lines for the lmp91000.txt documentation Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt | 9 ++++++--- drivers/iio/potentiostat/lmp91000.c | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt b/Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt index b9b621e94cd7..e6d0c2eb345c 100644 --- a/Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt +++ b/Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt @@ -1,10 +1,13 @@ -* 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 one of the following: + "ti,lmp91000" + "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);