Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4442692rwb; Tue, 16 Aug 2022 23:10:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR5pzH5F1vvfj3tKSWSnAsiCR42+bmcCqhTJz9Jccz8tljdtBwe6u7/OM/c54X49bQlKTp2B X-Received: by 2002:a05:6a00:2185:b0:520:7276:6570 with SMTP id h5-20020a056a00218500b0052072766570mr24413376pfi.84.1660716611823; Tue, 16 Aug 2022 23:10:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660716611; cv=none; d=google.com; s=arc-20160816; b=T5ByFMfPWqdyTDa0g1d5dTv9+zMedSGDmCtHRuLERzLpoligFXlJo77JFM2SVRhRjs 8/kiaPJreCXml+LRbqDNn9iKu8FoYMyRe2wtwCKkdfGSNRcEIlJSncyMRIY9yCsuRTeC Ds+8PLPv9mz8xgej2ND82w1H6cKbKAzqTVknVdt3yrAb/rAZOtMbpxonK+ozso7Lnf5g 3niosEOqNa6g+/YQOZnlI3YCwtIPj4T2vpY6NF9vIeyoLjpdnjxhh9R9ZUfFQrYRD8d6 dZaemxfD6g1H5euztpWnBlfhD6QFxyQVe+89g3mRmlwwWarXqNOrwm7mPczis5meaopF pu3Q== 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=FN2vKtXhMFNIYEWQJf87YooipK/RsdnXxEsFL4rmOYcC4RE9cZzIj2zOrWAH00g9Nm gw+/uMVSak9/O2P3I1H/M+R9HQLLg8rDdgPmADy+qzhlap2xn3WH5N1FZijKIOl45YH1 IdJGoWrZf/LAc+7H5DyODPwXZTvg24ROTrdtZ7TXSpw1XAFJMnJ7JbSCeJMPUtBcNLDU oJZZzwnsKR2PVm+g2z3uzN7DXsWlBRhtsNJeu65yt5il0Nc6WVl0rWvdJ/eMbKjbfJBC csT71jUUcrJfQtkxIRASlztyBhb3SIdKzg82UexEUa/pX9Eva1d6lJ8fF1IE5IF8bpU5 HqZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=VmJoJFgd; 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 b2-20020a17090a5a0200b001f4fc831538si953604pjd.64.2022.08.16.23.09.59; Tue, 16 Aug 2022 23:10:11 -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=VmJoJFgd; 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 S238802AbiHQFo6 (ORCPT + 99 others); Wed, 17 Aug 2022 01:44:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238635AbiHQFoR (ORCPT ); Wed, 17 Aug 2022 01:44:17 -0400 Received: from smtp-fw-80007.amazon.com (smtp-fw-80007.amazon.com [99.78.197.218]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C18D7CB6E; Tue, 16 Aug 2022 22:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1660715041; x=1692251041; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FNHPX12Pit1WxIpHyPTouV10hppwOlS2zHdFi1vLKSQ=; b=VmJoJFgdIwLTO0zuOSjjU/SchKcGjg5HpTrReGeAvLxcdsg8xF3Voxbu u9cIxem2AwCpr71rj62GIfNliIXV+htc0ASZFYlJVDQwRFba7rAZe97qY PKMb5Sk+KAol/T0/F2qV3vBUgsbjMsHAAErprWsTFgzyvSUT6TRsk1phR s=; X-IronPort-AV: E=Sophos;i="5.93,242,1654560000"; d="scan'208";a="120136327" Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO email-inbound-relay-pdx-2a-5feb294a.us-west-2.amazon.com) ([10.25.36.214]) by smtp-border-fw-80007.pdx80.corp.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2022 05:43:39 +0000 Received: from EX13MTAUEE002.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-pdx-2a-5feb294a.us-west-2.amazon.com (Postfix) with ESMTPS id 73EAE835D8; Wed, 17 Aug 2022 05:43:38 +0000 (UTC) Received: from EX13D08UEE002.ant.amazon.com (10.43.62.92) by EX13MTAUEE002.ant.amazon.com (10.43.62.24) with Microsoft SMTP Server (TLS) id 15.0.1497.38; Wed, 17 Aug 2022 05:43:22 +0000 Received: from EX13MTAUEE002.ant.amazon.com (10.43.62.24) by EX13D08UEE002.ant.amazon.com (10.43.62.92) with Microsoft SMTP Server (TLS) id 15.0.1497.38; Wed, 17 Aug 2022 05:43:22 +0000 Received: from dev-dsk-farbere-1a-46ecabed.eu-west-1.amazon.com (172.19.116.181) by mail-relay.amazon.com (10.43.62.224) with Microsoft SMTP Server id 15.0.1497.38 via Frontend Transport; Wed, 17 Aug 2022 05:43:22 +0000 Received: by dev-dsk-farbere-1a-46ecabed.eu-west-1.amazon.com (Postfix, from userid 14301484) id 948004C90; Wed, 17 Aug 2022 05:43:21 +0000 (UTC) From: Eliav Farber To: , , , , , , CC: , , , , , , , , , , , , Subject: [PATCH v2 13/16] hwmon: (mr75203) add thermal coefficient properties for Moortec PVT controller Date: Wed, 17 Aug 2022 05:43:18 +0000 Message-ID: <20220817054321.6519-14-farbere@amazon.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220817054321.6519-1-farbere@amazon.com> References: <20220817054321.6519-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, 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