Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3450929rwb; Tue, 16 Aug 2022 03:21:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR5gKec6k4xi2MDLT8bmbGhIyyZRBMft3uVnXcqgm1HNK46hMJFrGs2thyTAWkJGEpzfNErN X-Received: by 2002:a17:907:2c47:b0:730:8bbb:69a8 with SMTP id hf7-20020a1709072c4700b007308bbb69a8mr13420031ejc.38.1660645277956; Tue, 16 Aug 2022 03:21:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660645277; cv=none; d=google.com; s=arc-20160816; b=bcnhFwIXZc3VIBeO2t4nZazaBSJc0s7jcbldTLOHAIIBe9g/llMrvXgXVkEthp/SPD c2YnT7beEySlvACFAGlpv/lzFMxa+23oGvIPRAsNTGpL+GK/CBt059/vC+PGk9IAgt+e DEMs3qADPWE8yNPnSDZ8fRFiddvF646EttbD3PscUkAKV+36ccij1qGgGusMXQlajElo eG4vtMO4nu2G1r/Qnez9Ls3uRWynOz9M779g5VkiZYHs6NIT5PixWXuTeXOS4ZzOZCW0 Z7YlCx4hGuaT0OIriyXrS59m2FmzK76HO+da+i/M6/uU9+99lu5yeGYwdXswYZzwKDFL pZDg== 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 :dkim-signature; bh=FNHPX12Pit1WxIpHyPTouV10hppwOlS2zHdFi1vLKSQ=; b=vjIs9QXIp9khNVyFA/FdF38QCK3Sqk2z8cMjlrzo7mXr0k2tCG+BRm2O0I0QaQG06y /407HwIc2+g5ClyHWTqJ5JYCKibe5MdVrQBh0JqowDynANmOROWIPCYQYof82vhxZJmS 09Pfu7St1zEUvKfLFx3+cdOwbGqSywV5ZNXouGUChDgxCVtQzKzGraUjPe37cCZaTrL6 38Ln6lohUEI/B03wMUQ/XjOWlVfPbAzBdwtwt9r0zbBDehXZ2JDL0Vk/HiVAkEj2YmzF M9PXajq4I6KQ5UC20awpuAFvRhBxC8KRx2gQDkVJNPUa/lBBpT5KXUt/nfRMdoSefL6d QfYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=anChMr3p; 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 i11-20020a1709064fcb00b007314bba0e9bsi11218213ejw.353.2022.08.16.03.20.52; Tue, 16 Aug 2022 03:21:17 -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=anChMr3p; 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 S232955AbiHPKKx (ORCPT + 99 others); Tue, 16 Aug 2022 06:10:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234344AbiHPKJk (ORCPT ); Tue, 16 Aug 2022 06:09:40 -0400 Received: from smtp-fw-9103.amazon.com (smtp-fw-9103.amazon.com [207.171.188.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FDA112309F; Tue, 16 Aug 2022 01:28:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1660638504; x=1692174504; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FNHPX12Pit1WxIpHyPTouV10hppwOlS2zHdFi1vLKSQ=; b=anChMr3piLQwLFYGojdKtN7uUC+VQMcms+54NFx+LPI6TNxoxw+lYnsc rz+4LkSI+f46QlnTyIerS/UjDAbOS9d7NaHNDUh1rnjVUGDK+oQD+aDzD LnVv2IWrk75Ka09y8ETlYQc2HyfYQ6zlFmX/koDV+f1cqLp3XCC+OhOkL g=; X-IronPort-AV: E=Sophos;i="5.93,240,1654560000"; d="scan'208";a="1044708753" Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO email-inbound-relay-iad-1d-10222bbc.us-east-1.amazon.com) ([10.25.36.214]) by smtp-border-fw-9103.sea19.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2022 08:28:22 +0000 Received: from EX13MTAUWA001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-iad-1d-10222bbc.us-east-1.amazon.com (Postfix) with ESMTPS id 792FD1A17C2; Tue, 16 Aug 2022 08:28:20 +0000 (UTC) Received: from EX19D013UWA002.ant.amazon.com (10.13.138.210) by EX13MTAUWA001.ant.amazon.com (10.43.160.58) with Microsoft SMTP Server (TLS) id 15.0.1497.38; Tue, 16 Aug 2022 08:28:00 +0000 Received: from EX13MTAUWA001.ant.amazon.com (10.43.160.58) 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, 16 Aug 2022 08:27:59 +0000 Received: from dev-dsk-farbere-1a-46ecabed.eu-west-1.amazon.com (172.19.116.181) by mail-relay.amazon.com (10.43.160.118) with Microsoft SMTP Server id 15.0.1497.38 via Frontend Transport; Tue, 16 Aug 2022 08:27:59 +0000 Received: by dev-dsk-farbere-1a-46ecabed.eu-west-1.amazon.com (Postfix, from userid 14301484) id 5E7E84C1C; Tue, 16 Aug 2022 08:27:57 +0000 (UTC) From: Eliav Farber To: , , , , , , CC: , , , , , , , , , , , , Subject: [PATCH 13/16] hwmon: (mr75203) add thermal coefficient properties for Moortec PVT controller Date: Tue, 16 Aug 2022 08:27:54 +0000 Message-ID: <20220816082757.11990-14-farbere@amazon.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220816082757.11990-1-farbere@amazon.com> References: <20220816082757.11990-1-farbere@amazon.com> 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 Add optional "ts-coeff-g", "ts-coeff-h", "ts-coeff-cal5" and "ts-coeff-j" properties to be used instead of defaults for the thermal equasion. Signed-off-by: Eliav Farber --- .../bindings/hwmon/moortec,mr75203.yaml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml index e2a55001eefc..867664bd937f 100644 --- a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml +++ b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml @@ -62,6 +62,30 @@ properties: used to normalzie the voltage output results. $ref: /schemas/types.yaml#definitions/uint32 + ts-coeff-g: + description: + G coefficient for thermal equation. + maxItems: 1 + $ref: /schemas/types.yaml#definitions/uint32 + + ts-coeff-h: + description: + H coefficient for thermal equation. + maxItems: 1 + $ref: /schemas/types.yaml#definitions/uint32 + + ts-coeff-cal5: + description: + cal5 coefficient for thermal equation (can't be 0). + maxItems: 1 + $ref: /schemas/types.yaml#definitions/uint32 + + ts-coeff-j: + description: + J coefficient for thermal equation. + maxItems: 1 + $ref: /schemas/types.yaml#definitions/int32 + required: - compatible - reg @@ -75,6 +99,10 @@ additionalProperties: - reset-control-skip - vm-active-channels - vm-pre-scalar-ch# + - ts-coeff-g + - ts-coeff-h + - ts-coeff-cal5 + - ts-coeff-j examples: - | @@ -90,5 +118,10 @@ examples: resets = <&rcu0 0x40 7>; vm-active-channels = [08 10 02]; vm-pre-scalar-ch5 = <2>; + ts-coeff-g = <57400>; + ts-coeff-h = <249400>; + ts-coeff-cal5 = <4096>; + ts-coeff-j = <0>; + #thermal-sensor-cells = <1>; }; -- 2.37.1