Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp812113pxr; Mon, 11 Apr 2022 07:50:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDzD8PQf/mG6r88wuc6pL5n6MMzbJF9l7il69nHg3SM1V1Dj3Zy0dv4vFhTNjQTgS5C344 X-Received: by 2002:a17:903:2451:b0:158:7868:e93d with SMTP id l17-20020a170903245100b001587868e93dmr1843397pls.6.1649688623055; Mon, 11 Apr 2022 07:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649688623; cv=none; d=google.com; s=arc-20160816; b=GhUlqVyaW5/3OQ3mpw6G9x7Y8Z2d5lvK05ny/elfM0g8yhuIOO9z5KS9i6bM4NOIUi rdmywud8O58IxSoG4TBcqUiEWFIiXmn16u/uIuE4xVCTr1NtFl/nBRRMpWi4b+QUCS5i 5HU3qXR2GVlw2N4lAT41tB4xgOxPKbEHmgybYe8chxxni43o2iztrZTFZ+anWVIKMIZF o2hqqpc4BNmGxa+lkjG+d0FDhYiUbT5onZNwnJmF8CwVhbfFzP/uOcEVrD4pmYyQjPOj iKvnjdU0CTF3sQtmrpTw9ruloGLo4P3pEY3l7d5iS+iJufQsgvfBgga3j7QXxsrhFJoq 7JRA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=c+CrCB3jSesuxm+UkvkLWNLlRUO9xSMBS+b8dMwF3PA=; b=I7l8eKsw2FfWApRAKHBoeW7AREWwSTpJ33T+aJBpiMNxKseKQpb4T9gLxLDHw+9+bH Pae0qu0Lm2xuS1EjX0t2KIdrMfoX1j78aL9yKd4asCqGscbiszzLMfVpbAkcYrHLgkTp xT/xiSihPwcenIHtH5ucb6BNzV66+vkh/BWv7MxVrsQfZSvwgosjXSof06Xb9qyJnX5g 1Pe/nXTde+Cj0+061UnXZwhpjoVRdU3AJKKKbGjE7XJSsmLHYoXHcqwAVA9yCy19SvkK 2i/W5lGCMwORBDICexXezGku77O8wyvGILQb1Te9BHnlGWuKLAE5LrG7ICgKjf35Br8e tJpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=QyIe7OCR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e14-20020a65678e000000b0039d18afcd58si7580752pgr.441.2022.04.11.07.50.07; Mon, 11 Apr 2022 07:50:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=QyIe7OCR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344911AbiDKJ66 (ORCPT + 99 others); Mon, 11 Apr 2022 05:58:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235994AbiDKJ6x (ORCPT ); Mon, 11 Apr 2022 05:58:53 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28E1B4132F; Mon, 11 Apr 2022 02:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1649670999; x=1681206999; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=c+CrCB3jSesuxm+UkvkLWNLlRUO9xSMBS+b8dMwF3PA=; b=QyIe7OCRSMcAsqUbaa8O58WhCvigFyiSxb67W0PHbg9MReXk3MltTnMB oIyDZT0L2KITsd89dpLFqLsOW4oeE3gkEDdK8IP7yEmaTWxt8rUqyu93g wVYljRI3oJFIU7BEQ+vSoscnrPiBiIelb75ojvahPvQx5rMcMejDrkXtp q10aR7gHplbAykMo2PX9iJHI65QkCgK+rcuU7HkKJhzruYD3UNKu92pDi OHsT8mlJ55HNi1Og6yAjra2nsR91jdcvucDm1mOUNf17KlFIqetUIIqI6 XZqKDHNYTXxx8gpEtubVt2TP/5aoX5Q4cTfNPB1J6k/uML3cQLTPO8ct0 Q==; From: Camel Guo To: , , , CC: , Camel Guo , , , Subject: [PATCH 0/2] hwmon/tmp401: add support of three advanced features Date: Mon, 11 Apr 2022 11:56:32 +0200 Message-ID: <20220411095634.1782732-1-camel.guo@axis.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According the their datasheets: - TMP401, TMP411 and TMP43x support extended temperature range; - TMP411 and TMP43x support n-factor correction; - TMP43x support beta compensation. In order to make it possible for users to enable these features and set up them based on their needs, this patch series adds the following devicetree bindings: - ti,extended-range-enable; - ti,n-factor; - ti,beta-compensation. In the meanwhile, tmp401 driver reads them and configures the coressponding registers accordingly. Cc: linux-hwmon@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Camel Guo (2): dt-bindings: hwmon: Add TMP401, TMP411 and TMP43x hwmon: (tmp401) Add support of three advanced features .../devicetree/bindings/hwmon/ti,tmp401.yaml | 111 ++++++++++++++++++ MAINTAINERS | 1 + drivers/hwmon/tmp401.c | 43 ++++++- 3 files changed, 154 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/hwmon/ti,tmp401.yaml base-commit: ce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e -- 2.30.2