Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4055904rwb; Tue, 6 Sep 2022 01:36:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR6EJSRwzCLe5KiZNH8eMiYPh7PoU9aG4BT+XzC2vc8JHLZCtsdEgNkwxTJQ086pS56O1PDH X-Received: by 2002:a05:6a00:1695:b0:53b:2f0c:4d33 with SMTP id k21-20020a056a00169500b0053b2f0c4d33mr22877407pfc.7.1662453399563; Tue, 06 Sep 2022 01:36:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662453399; cv=none; d=google.com; s=arc-20160816; b=NWz5YaNOzv8yvSrCUDAE7g6GEO5ne2wnRfDyemWC7UPaanmHPNH+5lNDdfLMEN1fXR SD4If6JQvsqHRhzT6FP1e/J5QGhHTvOwf2x2RUmOdrPMYgYcqpXh+6/ru8k6Sbve4AgK kAQgv2XKcVUmWvNGzdtlI+6A9iOn/UhFqFhA1Vp+BrI3GCUZ85TwlEWIbcX1xD4JyoEr Alt6JhpbdprZvN/jk6GGlSxp3SnPLjCDQy2B4GrZPxLZDpe1KOD3adOFDJSzcdLij0O7 tR/f6ZDnawPQ7Lq9Qfpn6aqDi5/KRHBkiDPw5N1I9l4UfTLOdTJKuKivj4nvBE0GJI6r +BJA== 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=3//tdfVNFU6XbabXXpbZNLh74O6SviUmuZml9vQSrNo=; b=DN8j4AjbNBbG/J2EHqiNVdD62h1+ADevBzymYNLpvqoRiupNBrfGWOBamAuefLVgVg YpuNvA+eGUEr3UpT7ULkF86cKQqLsRI1y71BYAniiSRVaLT5vIwaVpq23J+eoBOFKNHK 6s5t/7h9VCI9GBagCtfs+d7aCLmCFuNcURcdZ0Mc3ZE+8i956ik21BViwxAIfQUga+OG 8KJeX162C6qmLu6RK06ri11FyHfYxkuJwcgaYZZF9Wi4PJSVHgZGBj1upKT84L3JbiHB UHlkNR6uzynUS0lRLY2By8/i4yrbeVSqe5Cz+7d9TwnfAZdriKRO0dO+sqEe+sFw2Bi2 v8Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=hVGxshil; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oc17-20020a17090b1c1100b001fac1b39462si9732662pjb.35.2022.09.06.01.36.28; Tue, 06 Sep 2022 01:36:39 -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 header.i=@amazon.com header.s=amazon201209 header.b=hVGxshil; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239098AbiIFIe7 (ORCPT + 99 others); Tue, 6 Sep 2022 04:34:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238870AbiIFIer (ORCPT ); Tue, 6 Sep 2022 04:34:47 -0400 Received: from smtp-fw-6002.amazon.com (smtp-fw-6002.amazon.com [52.95.49.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6759E19C22; Tue, 6 Sep 2022 01:34:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1662453286; x=1693989286; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=3//tdfVNFU6XbabXXpbZNLh74O6SviUmuZml9vQSrNo=; b=hVGxshil0yXYUvP8dp5ZfmFn6eC6tRV1qWch9Ip37TsjdDEJV40L9lXB UorPcpGE7CEYgG1iXHXBMBi5AKGdJ55AEA3pYIGI7UQTN8wOfsXYL/7QB QzoZ2O+u9QDgzAHZOYQekCkLGYyq7oH0DRdH7O35rmkzy5qs2jUyquKkf E=; X-IronPort-AV: E=Sophos;i="5.93,293,1654560000"; d="scan'208";a="241387496" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-iad-1a-4ba5c7da.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-6002.iad6.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2022 08:34:37 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan2.iad.amazon.com [10.40.163.34]) by email-inbound-relay-iad-1a-4ba5c7da.us-east-1.amazon.com (Postfix) with ESMTPS id 574D3E05AF; Tue, 6 Sep 2022 08:34:35 +0000 (UTC) Received: from EX19D013UWA002.ant.amazon.com (10.13.138.210) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1497.38; Tue, 6 Sep 2022 08:33:59 +0000 Received: from EX13MTAUEA001.ant.amazon.com (10.43.61.82) by EX19D013UWA002.ant.amazon.com (10.13.138.210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1118.12; Tue, 6 Sep 2022 08:33:58 +0000 Received: from dev-dsk-farbere-1a-46ecabed.eu-west-1.amazon.com (172.19.116.181) by mail-relay.amazon.com (10.43.61.243) with Microsoft SMTP Server id 15.0.1497.38 via Frontend Transport; Tue, 6 Sep 2022 08:33:57 +0000 Received: by dev-dsk-farbere-1a-46ecabed.eu-west-1.amazon.com (Postfix, from userid 14301484) id C3F5D4D8E; Tue, 6 Sep 2022 08:33:56 +0000 (UTC) From: Eliav Farber To: , , , , , , , CC: , , , Subject: [PATCH v4 00/21] Variety of fixes and new features for mr75203 driver Date: Tue, 6 Sep 2022 08:33:35 +0000 Message-ID: <20220906083356.21067-1-farbere@amazon.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_SPF_WL 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 List of fixes: - Fix "intel,vm-map" property to be optional. - Fix VM sensor allocation when "intel,vm-map" not defined. - Fix multi-channel voltage reading. - Fix voltage equation for negative source input. - Modify the temperature equation according to series 5 datasheet. - Fix coding style issue. List of new features: - Modify "reset" property to be optional. - Add optional "moortec,vm-active-channels" property to define the number of active channels per VM. - Add support for mr76006 pre-scaler to multiply the voltage result by 2. - Add support for series 6 temperature equation. - Add coefficient properties to fine tune the temperature equation. - Add debugfs to read and write temperature coefficients --------- Changes between v3 and v4: *) Provide a Fixes tag for all fixes in the series. *) Start series with fixes. *) New patch to add description in moortec,mr75203.yaml. *) New patch to add moortec to vendor-prefixes. *) Fix moortec,mr75203.yaml checker errors. *) Remove validation of device-tree parameters. *) Fix per patch specific comments (detailed in each patch). Changes between v2 and v3: *) Add "moortec" prefix to all new device-tree properties. *) Change order of patches. *) Add explanations to better understand the changes. *) Change "reset" property to be optional and remove the "reset-control-skip" property. *) Split the patch for "fix multi-channel voltage reading" to two patches. *) Change pre-scaler property format and fix typo (scalar --> scaler). *) Fix voltage equation to support negative values instead of limiting value to zero. *) Temperature equation - protect from overflow and add clamping. *) Add new "moortec,ts-series" property to select between temperature equation of series 5 or series 6. Changes between v1 and v2: *) Fix compilation error for patch 08/16: "warning: ISO C90 forbids variable length array" --------- Eliav Farber (21): hwmon: (mr75203) fix coding style space errors dt-bindings: hwmon: (mr75203) fix "intel,vm-map" property to be optional hwmon: (mr75203) fix VM sensor allocation when "intel,vm-map" not defined hwmon: (mr75203) update pvt->v_num and vm_num to the actual number of used sensors hwmon: (mr75203) fix voltage equation for negative source input hwmon: (mr75203) fix multi-channel voltage reading hwmon: (mr75203) enable polling for all VM channels dt-bindings: hwmon: (mr75203) add description for Moortec's PVT controller dt-bindings: hwmon: (mr75203) change "resets" property to be optional hwmon: (mr75203) skip reset-control deassert for SOCs that don't support it dt-bindings: vendor-prefixes: add vendor prefix for Moortec dt-bindings: hwmon: (mr75203) add "moortec,vm-active-channels" property hwmon: (mr75203) add VM active channel support dt-bindings: hwmon: (mr75203) add "moortec,vm-pre-scaler-x2" property hwmon: (mr75203) add VM pre-scaler x2 support hwmon: (mr75203) modify the temperature equation according to series 5 datasheet dt-bindings: hwmon: (mr75203) add "moortec,ts-series" property hwmon: (mr75203) add support for series 6 temperature equation dt-bindings: hwmon: (mr75203) add coefficient properties for the thermal equation hwmon: (mr75203) parse temperature coefficients from device-tree hwmon: (mr75203) add debugfs to read and write temperature coefficients .../bindings/hwmon/moortec,mr75203.yaml | 97 ++++- .../devicetree/bindings/vendor-prefixes.yaml | 2 + drivers/hwmon/mr75203.c | 387 +++++++++++++++--- 3 files changed, 421 insertions(+), 65 deletions(-) -- 2.37.1