Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp69894pxb; Thu, 14 Apr 2022 16:17:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuzBcQTZ8B4Z+l+WQ2Z7pUJAOalWZrmrcb+OnEgRcp7c14xO8xjMYb0Ebse3RqLc+NfsnJ X-Received: by 2002:aa7:c6d7:0:b0:41d:8afe:4a6a with SMTP id b23-20020aa7c6d7000000b0041d8afe4a6amr5500147eds.281.1649978252408; Thu, 14 Apr 2022 16:17:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649978252; cv=none; d=google.com; s=arc-20160816; b=UE2Gf2EFdi+XzFyf1nxFTrVu0rNSjxzpcLkqv0Q3k2SF1oRppioJBdNN68RyL/U6BU 1NM4Bgl6ZveU5ov40J/rGC65huqYyZXtEXZLVTw3KX9juuhyE8L8CS9HQRJMqZn8Uy5z ISQx05IhN84HyfE0E96O+67eK4yLy3OaPW/CUKRts6v1idfPqTiAQSoqE4U4UIsGpRX+ yUGEaU2g96LZg5spPU3EkIDy+KqMGH0m2geWelteP46Ld/7dr6jUx+BoNo8sbGDTMW+Z nn2/V/o1ZdyT1IedGDLsYaW+dzBjOS3Msf6Xgia1Ph/UhcDtIshNVKibxwdnPVZ5fNrv j5fw== 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=Y2Vz/iR+WNnZ/15diZgBrP98pf/mRWi/cx3EZB4r+CQ=; b=NJz2w+fRXub4zuXJkWDT0O/sMuOtW5sRgfmCVBTz0K1jWa5Ai6Wnjlx/SRMVtD9MGQ jcecBZgBOo8YkzwJaQ4Pm0KPiyy427LoFO4GLdCBhWx/B7kBuuEIFBLXf8p1yauys0ax 75jcGBxs030Rfbl/kYdpLkUgBA0rmDv7ACmswzTruvAo7cNqMF9ltz1OtSSIgZJQsEFs 0JO8snOOuNu6u/nQLNpYD5m+a4PhOa7YBLy1eFOcBSXzg4BaruHK13VicRIjOk8lj+b3 Me1ci8axXhOshT8c46XD613PxHUxi405zCJUScAKj4qi8Pf/pNYcnDrJsLpimZcn363h 8pgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=m6Vywb62; 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 j7-20020a17090643c700b006e7eb9aa825si2903992ejn.416.2022.04.14.16.16.36; Thu, 14 Apr 2022 16:17:32 -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=m6Vywb62; 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 S238919AbiDNIBI (ORCPT + 99 others); Thu, 14 Apr 2022 04:01:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbiDNIBH (ORCPT ); Thu, 14 Apr 2022 04:01:07 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93C7B3B032; Thu, 14 Apr 2022 00:58:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1649923122; x=1681459122; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Y2Vz/iR+WNnZ/15diZgBrP98pf/mRWi/cx3EZB4r+CQ=; b=m6Vywb62Yq5d29GEsSe8X3T61tOEDfyciIqzuR884MrTCUsTWMLQemDk kvlb17XYeW8kFJLkayoN7bhRKohpS+ijO4vgZV8YTQHla3s9MOZxRmBV8 y/XXhf4TRSdZM2EKHprYRmPDMU69d3IDn6mYrZTMkljqlQWUgW+Zxi/V4 tUdGrWPsB54JUlA40ySR88rA+fVOMm/WNqSm8miZJCjfpqkx5J3slM4NZ iYpDHzJe4GkNGmHKKSwI8kQF2I6csos00nOgIn9Oc4GRhSi6OTFVDyCYa sfeGkMvDp+JnojXxMdLdTXfEIcT3cRGrVAN5H5OL1B6AYsny+qJ54jnZv A==; From: Camel Guo To: Guenter Roeck , Jean Delvare , "Rob Herring" , Krzysztof Kozlowski CC: Camel Guo , , , , Subject: [PATCH v4 0/2] hwmon/tmp401: add support of three advanced features Date: Thu, 14 Apr 2022 09:58:21 +0200 Message-ID: <20220414075824.2634839-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. v4: - just add reviewed-by, no change on code. v3: - dt-bindings: remove unused [address|size]_cells and ti,beta-compensation.items from ti,tmp401.yaml; - dt-bindings: change ti,n-factor range to [-128, 127]; - tmp401.c: instead of u32, use s32 for ti,n-factor. v2: - dt-bindings: fix format and describe hardware properties instead of programming models in ti,tmp401.yaml. 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 | 105 ++++++++++++++++++ MAINTAINERS | 1 + drivers/hwmon/tmp401.c | 44 +++++++- 3 files changed, 149 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/hwmon/ti,tmp401.yaml base-commit: ce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e -- 2.30.2