From patchwork Mon Feb 4 20:19:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Gebben X-Patchwork-Id: 10796579 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 0920D6C2 for ; Mon, 4 Feb 2019 20:22:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EEAE52B649 for ; Mon, 4 Feb 2019 20:22:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED2322C1FA; Mon, 4 Feb 2019 20:22:28 +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 CD2602C249 for ; Mon, 4 Feb 2019 20:22:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727571AbfBDUWV (ORCPT ); Mon, 4 Feb 2019 15:22:21 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:37334 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727928AbfBDUTc (ORCPT ); Mon, 4 Feb 2019 15:19:32 -0500 Received: by mail-it1-f194.google.com with SMTP id b5so2955485iti.2 for ; Mon, 04 Feb 2019 12:19:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sweptlaser-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=nXElogSJfxXDiCsM3B30I0wm02vakS82aG0ktAJScis=; b=QLypJWLMLOhLnYVSx5E2XKPhzmj6DdRBkMXwxZk5EX/GFtGOhjZO0Wky9kSglICgLQ taC7D5RwM8lvwm4XLLhQ3fs+A9QZNP8DnSCq6TOp6cRAkVdiDNlqxph4YAFp/RKivApn fORyq3QYUnO/iI9hGUYkFLe7VodPSX69dSR6OOSagwO2j3D9AkMnOfuw7be1fvEdKpHg oO2/vLR8Oq9ufgWla9HGA6Dzvhvpsr5lFrDYiqnsOlozexIgQhrWTFCcPa4OKYqXvOFo 9rU/NJSX84H+w2eB+YZm0eORLY5Si3DkN1Ki+0SBwp9QKFVAjsf7TMtGOTI0h3W4AAXH FJVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=nXElogSJfxXDiCsM3B30I0wm02vakS82aG0ktAJScis=; b=awc7RLLyd272oCe5EG75zT5obQKMeCPX2jW9vw+0Ormbsfcvo5nsAKEidntNoRCOCt AVG4PgdkqY8041CnHMq5s0XpgGGUApwr6Lh6esUcSP8vhPbbRkN6vFlLnZ21+CrEQPO7 nnyNItgOCyTpE8xF0THyTTweMI/P1Yy8XkWuvivLZnV4BdxYTQs9wDgKGFachKgkVDZS 0ls97YdPjyjaGfc9eMte6AiTfMaw1EL8I+7weXzTstY5llsDbwo2BohxDqFWtS32Sez5 Gbl/CE1NsW7IP/t/2C2L8aMIfT9tuCqAy2Gt12Ag8iRyLYiUfZ4+avUkykhPNwEhc08G Gaxg== X-Gm-Message-State: AHQUAuYuj/YiUNer6B8Hh1Fm7Ya8u1I+SXLrmujle9kT/OdnXRk9Y5AM t1oLR+JbBhXssOABV7gUb4ZZQAUUdGU= X-Google-Smtp-Source: AHgI3IYBkfdUvhxV7oZPlkWqRxDaTqgCl+ocNyekIIsdwGqHgnCOpesWCPWMMEvr9+CfnCSvQ0f8og== X-Received: by 2002:a6b:c9c8:: with SMTP id z191mr768514iof.13.1549311571680; Mon, 04 Feb 2019 12:19:31 -0800 (PST) Received: from yngvi.hq.sweptlaser.com ([63.147.146.226]) by smtp.googlemail.com with ESMTPSA id x79sm470003ita.34.2019.02.04.12.19.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Feb 2019 12:19:31 -0800 (PST) From: Jeremy Gebben To: Jean Delvare , Guenter Roeck , Jonathan Corbet , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/4] hwmon: (lm85) support the LM96000 Date: Mon, 4 Feb 2019 13:19:05 -0700 Message-Id: <20190204201906.8859-4-jgebben@sweptlaser.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190204201906.8859-1-jgebben@sweptlaser.com> References: <20190204201906.8859-1-jgebben@sweptlaser.com> Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It has been supported as a generic lm85 for quite some time. Signed-off-by: Jeremy Gebben --- Documentation/hwmon/lm85 | 6 +++++- drivers/hwmon/lm85.c | 9 +++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Documentation/hwmon/lm85 b/Documentation/hwmon/lm85 index 7c49feaa79d2..4f531f4acc3f 100644 --- a/Documentation/hwmon/lm85 +++ b/Documentation/hwmon/lm85 @@ -3,9 +3,13 @@ Kernel driver lm85 Supported chips: * National Semiconductor LM85 (B and C versions) - Prefix: 'lm85' + Prefix: 'lm85b' or 'lm85c' Addresses scanned: I2C 0x2c, 0x2d, 0x2e Datasheet: http://www.national.com/pf/LM/LM85.html + * Texas Instruments LM96000 + Prefix: 'lm9600' + Addresses scanned: I2C 0x2c, 0x2d, 0x2e + Datasheet: http://www.ti.com/lit/ds/symlink/lm96000.pdf * Analog Devices ADM1027 Prefix: 'adm1027' Addresses scanned: I2C 0x2c, 0x2d, 0x2e diff --git a/drivers/hwmon/lm85.c b/drivers/hwmon/lm85.c index 4b15193d195c..b23cf8e4c54b 100644 --- a/drivers/hwmon/lm85.c +++ b/drivers/hwmon/lm85.c @@ -41,7 +41,7 @@ static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, I2C_CLIENT_END }; enum chips { - lm85, + lm85, lm96000, adm1027, adt7463, adt7468, emc6d100, emc6d102, emc6d103, emc6d103s }; @@ -1499,7 +1499,7 @@ static int lm85_detect(struct i2c_client *client, struct i2c_board_info *info) "Found Winbond WPCD377I, ignoring\n"); return -ENODEV; } - type_name = "lm85"; + type_name = "lm96000"; break; } } else if (company == LM85_COMPANY_ANALOG_DEV) { @@ -1623,6 +1623,7 @@ static const struct i2c_device_id lm85_id[] = { { "lm85", lm85 }, { "lm85b", lm85 }, { "lm85c", lm85 }, + { "lm96000", lm96000 }, { "emc6d100", emc6d100 }, { "emc6d101", emc6d100 }, { "emc6d102", emc6d102 }, @@ -1657,6 +1658,10 @@ static const struct of_device_id lm85_of_match[] = { .compatible = "national,lm85c", .data = (void *)lm85 }, + { + .compatible = "ti,lm96000", + .data = (void *)lm96000 + }, { .compatible = "smsc,emc6d100", .data = (void *)emc6d100