Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4070226rwb; Tue, 6 Sep 2022 01:55:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR61YasQAZ5VE0OzzbkdtE7uddqeD3TPx5YUu4Kx69f0KIhbpLLB15JGBTH5jv0LdIpC68Qe X-Received: by 2002:a05:6402:270d:b0:43a:67b9:6eea with SMTP id y13-20020a056402270d00b0043a67b96eeamr46193769edd.94.1662454519023; Tue, 06 Sep 2022 01:55:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662454519; cv=none; d=google.com; s=arc-20160816; b=rlSp0TvOgPuozVj6kCkDTohPVWaceXl3ZtXPfxN7NDX5sMS1eXU/cxvewhQQTfpYMQ 72td1321P84rhdaCZNFpFNIflbXETMHSEAP4KpJCucitDuy1G9EY4d41N9hYhgRgSVtB +CPgWzYeYgYqyzcrlvm/0aiito/ZUvSLGBbKT7Qq4DHNhXtamRMSz0W27DH2k0or21vx SAezw0f/8Bo++2SnojNaBOEju8abas/EMNocwgkn0C/ovWefQnYlZ/G2GbYlJJXosuvC 6f5J6vArQ1dkpIqQgZ8ajiwhnyBkG9zExweN/upMKRw0B+xeiRW9cQM43GlynJ5Cl4z4 kZkA== 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=WYAxidW5DMSg6wyDs6NW6VjRmOI1Fc+ZAedvRJD+oFc=; b=SNigDo55lmc9aJBrdOjId6plVC8Iv9phvzk/ZosR3fYmOBZRnhgg6iS3cP6lbjHXSP ee4/E/eR3FHAlKK46JYq2iOXKU/QX1UgTBq2oRZMSNobYG/AXngyAFrr4u7/iGe+2A3Y TpnDx+ADAohNbMxvxumQfgMrYdazYRUmrYsDZn2DRq0QciiZFP4jGR3e4JcN8zIG7rGu SDww3jVZtf9Ju5CzlZehW0cakYRKwF73n0WpJDDkostU+jcQfptLiWLcLju7mFE1BBf8 1ZrGDLlpYU2/Ppp28Xqy20pZ4YQtzRj3Op8rTg0ivUvTS7lAnt3/YCSiqhAWI3TjbBpL lTzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=r2WipW66; 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 n4-20020a170906118400b0073d4da4039asi8745749eja.468.2022.09.06.01.54.46; Tue, 06 Sep 2022 01:55:19 -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=r2WipW66; 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 S239458AbiIFIk0 (ORCPT + 99 others); Tue, 6 Sep 2022 04:40:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239655AbiIFIjT (ORCPT ); Tue, 6 Sep 2022 04:39:19 -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 149E279EEB; Tue, 6 Sep 2022 01:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1662453448; x=1693989448; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WYAxidW5DMSg6wyDs6NW6VjRmOI1Fc+ZAedvRJD+oFc=; b=r2WipW66Td4xumifGRd3SR/1+uDriVwMfSjmog9RxD3La26++tN3+nxs 5eO+N5LSIpEWdrR/oAFIHAmgqBjPk/nCIfgw5vQ5kLfx7CwX5CDvz7A59 EiIwQjir2g6rarM8WRalDQ9lNbcReiq0SIRtmqHjIqfhMQPeubrp0jZis c=; X-IronPort-AV: E=Sophos;i="5.93,293,1654560000"; d="scan'208";a="127144287" Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO email-inbound-relay-iad-1d-1c3c2014.us-east-1.amazon.com) ([10.25.36.214]) by smtp-border-fw-80007.pdx80.corp.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2022 08:34:42 +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-1d-1c3c2014.us-east-1.amazon.com (Postfix) with ESMTPS id AE2893C005D; Tue, 6 Sep 2022 08:34:38 +0000 (UTC) Received: from EX19D013UWB002.ant.amazon.com (10.13.138.21) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1497.38; Tue, 6 Sep 2022 08:34:00 +0000 Received: from EX13MTAUEA001.ant.amazon.com (10.43.61.82) by EX19D013UWB002.ant.amazon.com (10.13.138.21) 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:34:00 +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:59 +0000 Received: by dev-dsk-farbere-1a-46ecabed.eu-west-1.amazon.com (Postfix, from userid 14301484) id CBB7A4D80; Tue, 6 Sep 2022 08:33:57 +0000 (UTC) From: Eliav Farber To: , , , , , , , CC: , , , Subject: [PATCH v4 17/21] dt-bindings: hwmon: (mr75203) add "moortec,ts-series" property Date: Tue, 6 Sep 2022 08:33:52 +0000 Message-ID: <20220906083356.21067-18-farbere@amazon.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220906083356.21067-1-farbere@amazon.com> References: <20220906083356.21067-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 "moortec,ts-series" property to define the temperature equation and coefficients that shall be used to convert the digital output to value in milli-Celsius. Supported series: 5 (default) and 6. Series 5: T = G + H * (n / cal5 - 0.5) + J * F Where: G = 60, H = 200, cal5 = 4094, J = -0.1, F = frequency clock in MHz Series 6: T = G + H * (n / cal5 - 0.5) Where: G = 57.4, H = 249.4, cal5 = 4096 Signed-off-by: Eliav Farber --- V4 -> V3: - Remove constraints in free-form text descriptions. V3 -> V2: - New patch to introduce "moortec,ts-series" property. .../devicetree/bindings/hwmon/moortec,mr75203.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml index de92a21d5552..28656e9d9059 100644 --- a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml +++ b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml @@ -91,6 +91,15 @@ properties: Each channel should not appear more than once. $ref: /schemas/types.yaml#/definitions/uint8-array + moortec,ts-series: + description: + Definition of the temperature equation and coefficients that shall be + used to convert the digital output to value in milli-Celsius. + minimum: 5 + maximum: 6 + default: 5 + $ref: /schemas/types.yaml#/definitions/uint32 + required: - compatible - reg -- 2.37.1