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: 910029 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="El5A1//e"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40g7T61xS9z9s1w for ; Tue, 8 May 2018 15:34:02 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754070AbeEHFeA (ORCPT ); Tue, 8 May 2018 01:34:00 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:40461 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752854AbeEHFd7 (ORCPT ); Tue, 8 May 2018 01:33:59 -0400 Received: by mail-pg0-f68.google.com with SMTP id l2-v6so20658170pgc.7 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=W9xdm8EuemeFybyBandgGHMUEm/b3hlWHRPfOX4bZfRlmFZfsOhpjs42vti0+Cy1Vq s1FhqEAZvcvncwI520OPR/ztbr3cFd5TzMy5nGK0yS8CzyeaDY/mzCbc7MkRgooAIErL HclEe7i9H73ygWsOBa4EtyaZVKZndH90onNbdwN7EAnT4pjv4dNX8UBoUlq/rFC8ecOa eRpTFSoTY0VobsIP9F3jEFAFMv+XUwH/yO3lt7aaaFPEuhy9+8nkNGMKLHYUZhDwIwrV EDcYce8oWy7yWNNjc0GwKaKoW4ayMnWYneJMZJZpkn6IkQg5A4g8fWRY02OH/miL3WJB q7JA== X-Gm-Message-State: ALQs6tDIQDwm7BkUv8gTyHESRSH5+ebWC46UDH6CC11xf/NE+Is9kFxr 4+uf68n55g9W0IKE5Bd+/dPyFg== 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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);