Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2602899pxb; Sat, 6 Feb 2021 01:55:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzTRStzI8BLH2lg3yq9eSiRDmZanbgdz/LTGsDBX8fLiNh3bSDVUHBEvpv4PqTAUIkkZUmu X-Received: by 2002:a17:906:447:: with SMTP id e7mr8205893eja.172.1612605334880; Sat, 06 Feb 2021 01:55:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612605334; cv=none; d=google.com; s=arc-20160816; b=acUQumo9jOtItciXdS7dcA5R08yzKN9WB9Cr7ikACc/W8DBPMX6ZBeQOtQQaLQJ+nz RKUfT1Lz5OmSdtVdsCvIIsMjoOZRvpnLEtAeT27uVxJ4bH7yH515DfT+XEYx/6B567fd 6lxUQHzcrOrgzO5Z+N42bxmgECjvzknNcu+WM38R33sa+3mq5DDDOsLb/BDe4QrVqyAR E8ppzaswTy1dSW0Rb1xedzS+E2JhRYZg0CVxwYC7/O+sBijRFybTxW734Zjvubod2FZa jzRhlKnBDE21fbV/Em/ou5O8wYd0TwMpCKvwU6sGoH1L0g6XHGYlM+hULb2VL1Znizbr b8Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=kJBp7XR9LkA42EnmoDStIOqhMp4+39NJbgGUVlLh3eA=; b=cdj55kGWXj7q3bgu0kJ0W7qegLghJg9As+ZCMQlaer86V042YAo9DL5kRJdSNIBrDb GCoFedofK108ToXoTIXEzpp301flNpeXDXfE0+263AVsp6h5g/wShBQE0g2SLMelq3Fw eOmiYffgGSAZt9xeOWbwfMHJD/j57rfW8ywzgHda5QEaCZ7lBZ6lI9jbPNCo7doykUxx ZK2+DZasa8ANk95Ynkp9UBnm1J0FgdprcAv6J+g4MwR9GyhDx7w8+5MnIPuak+k3Dt6t 7qdDEQJ/q9X1vAwNir8jalyQstlh5hu8cFmBor7UGoRuHKpHQhUW+GTtuT97hGJKsJhK eEVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=msu.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m25si7762620eda.322.2021.02.06.01.55.11; Sat, 06 Feb 2021 01:55:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=msu.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229636AbhBFJxI (ORCPT + 99 others); Sat, 6 Feb 2021 04:53:08 -0500 Received: from lnfm1.sai.msu.ru ([93.180.26.255]:39746 "EHLO lnfm1.sai.msu.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbhBFJxA (ORCPT ); Sat, 6 Feb 2021 04:53:00 -0500 Received: from dragon.sai.msu.ru (dragon.sai.msu.ru [93.180.26.172]) by lnfm1.sai.msu.ru (8.14.1/8.12.8) with ESMTP id 1169pfA7029779; Sat, 6 Feb 2021 12:51:46 +0300 Received: from oak.local (unknown [83.167.113.121]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by dragon.sai.msu.ru (Postfix) with ESMTPSA id 9527A2CCA0; Sat, 6 Feb 2021 12:51:42 +0300 (MSK) From: "Matwey V. Kornilov" To: Jean Delvare , Guenter Roeck , Rob Herring , linux-hwmon@vger.kernel.org (open list:HARDWARE MONITORING), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, "Matwey V. Kornilov" , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Subject: [PATCH v4 2/4] hwmon: lm75: Add nxp,lm75a to of_match list Date: Sat, 6 Feb 2021 12:51:19 +0300 Message-Id: <20210206095121.20625-3-matwey@sai.msu.ru> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210206095121.20625-1-matwey@sai.msu.ru> References: <2588ea5c-630e-6509-689d-4c8fea358e9b@roeck-us.net> <20210206095121.20625-1-matwey@sai.msu.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org NXP LM75A is compatible with original LM75A while it has improved 11-bit precision. https://www.nxp.com/docs/en/data-sheet/LM75A.pdf Signed-off-by: Matwey V. Kornilov --- Documentation/devicetree/bindings/hwmon/lm75.yaml | 1 + drivers/hwmon/lm75.c | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/lm75.yaml b/Documentation/devicetree/bindings/hwmon/lm75.yaml index aec8edd1e0c6..8c3848f4c277 100644 --- a/Documentation/devicetree/bindings/hwmon/lm75.yaml +++ b/Documentation/devicetree/bindings/hwmon/lm75.yaml @@ -22,6 +22,7 @@ properties: - national,lm75 - national,lm75a - national,lm75b + - nxp,lm75a - maxim,max6625 - maxim,max6626 - maxim,max31725 diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c index 08cde1c446db..9c54c7d86771 100644 --- a/drivers/hwmon/lm75.c +++ b/drivers/hwmon/lm75.c @@ -33,6 +33,7 @@ enum lm75_type { /* keep sorted in alphabetical order */ lm75, lm75a, lm75b, + nxp_lm75, max6625, max6626, max31725, @@ -182,6 +183,11 @@ static const struct lm75_params device_params[] = { .default_resolution = 11, .default_sample_time = MSEC_PER_SEC / 10, }, + [nxp_lm75] = { + .default_resolution = 11, + .default_sample_time = MSEC_PER_SEC / 10, + .resolution_limits = 9, + }, [max6625] = { .default_resolution = 9, .default_sample_time = MSEC_PER_SEC / 7, @@ -644,6 +650,7 @@ static const struct i2c_device_id lm75_ids[] = { { "lm75", lm75, }, { "lm75a", lm75a, }, { "lm75b", lm75b, }, + { "nxp_lm75a", nxp_lm75, }, { "max6625", max6625, }, { "max6626", max6626, }, { "max31725", max31725, }, @@ -703,6 +710,10 @@ static const struct of_device_id __maybe_unused lm75_of_match[] = { .compatible = "national,lm75b", .data = (void *)lm75b }, + { + .compatible = "nxp,lm75a", + .data = (void *)nxp_lm75 + }, { .compatible = "maxim,max6625", .data = (void *)max6625 -- 2.26.2