Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp815658rwn; Thu, 8 Sep 2022 09:08:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR5nfhiofUKhGmZxwxmxiV4MM00hrQPrL1ezqs953waBAQ+RSaojJ6NBuGT9j5Ep/D0i0kyb X-Received: by 2002:a63:cf04:0:b0:42c:5586:3c52 with SMTP id j4-20020a63cf04000000b0042c55863c52mr8335780pgg.490.1662653281373; Thu, 08 Sep 2022 09:08:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662653281; cv=none; d=google.com; s=arc-20160816; b=Wez9z8YcM+/VLl+ayQeZjAC/DywyqHlLXj016PXtiCwxROndnfqGxZQrSEYXiqNzv1 0s9BVcL8Kosxuouv9j56AXtqaBbtBB7MamzANgvn21PFCUBYtYvXW8/AQ6kgcJ+T1jqw 3+I64Xq/GIM/biM/ciao4rO5TFcNLNqq/aiR0yd7bSuZPAKhppx66lDgSiyFdf7m8sev cYfwAmBZHAl6nnptcOYkOh2SSuTTomk+jyJC79AZojUrjIpIR1ESx/GrYSLC/5EOMSOW j065XAlYeKC6jJ/koS70lZNPyNMq6p0L8ZyYU8J/4IxPcKXuXnnZyRgt0HXk7oodeoCG qPKA== 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=hDSb+XpejSXznSrruCvll2dsJubMtNUBJt/0MMJvvvw=; b=FcaYmyiTh2aJYoLUZM1PYs4kJpTm5FfVFitZQy6vupVcUT7yXyu2wtjzubaxAgFIVP eA8Xhnf248GY2yHroKWYcnLJzqWa4xOT/rhGA7oI0uBTpsnKSPi3ckHOxjUfuiorgBMI rErRuXOTEluu6zFpHHhue2+mKuFA9ifMQyE9BzrLcwOCXU7Qog4Yx5qZmHykxSuCHouf QC72xnzeDMn7DShS9oCWi41asflQujtIf3NGjQL9J9efTJDwGIU+SDfSqLz+E+ruugrE QXu0YmgbsdnQ+wN1KAgma/+OgdQ/shEtSgzM0O5q4FEdwvP5MPpUrA5QEu3+wa6Qjwy+ S7bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=E+NgY3MN; 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 s16-20020a170902ea1000b0016bf8021664si9740726plg.203.2022.09.08.09.07.49; Thu, 08 Sep 2022 09:08:01 -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=E+NgY3MN; 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 S231243AbiIHPZU (ORCPT + 99 others); Thu, 8 Sep 2022 11:25:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230241AbiIHPZN (ORCPT ); Thu, 8 Sep 2022 11:25:13 -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 5E7AD642E9; Thu, 8 Sep 2022 08:25:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1662650712; x=1694186712; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hDSb+XpejSXznSrruCvll2dsJubMtNUBJt/0MMJvvvw=; b=E+NgY3MNEjoOmdjQ+QCXPq/AWjAvSqrZm6n+hdb5aU+PRr+IYO2fZwCW mSbOV+BvOvXBNTO9wveC+/Cwdn16LSpt6pMb9B64oJOxOzU4wi6Jecj6j SpYHTrNRgNd4Okl34bHe1pWHp2rX/6mhPKeqtmB9LI8hBn8oe7ulbzbEL 0=; X-IronPort-AV: E=Sophos;i="5.93,300,1654560000"; d="scan'208";a="242452848" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-iad-1a-828bd003.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; 08 Sep 2022 15:25:12 +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-828bd003.us-east-1.amazon.com (Postfix) with ESMTPS id 01FEC80FC4; Thu, 8 Sep 2022 15:25:08 +0000 (UTC) Received: from EX19D013UWB004.ant.amazon.com (10.13.138.62) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1497.38; Thu, 8 Sep 2022 15:24:51 +0000 Received: from EX13MTAUEB002.ant.amazon.com (10.43.60.12) by EX19D013UWB004.ant.amazon.com (10.13.138.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1118.12; Thu, 8 Sep 2022 15:24:51 +0000 Received: from dev-dsk-farbere-1a-46ecabed.eu-west-1.amazon.com (172.19.116.181) by mail-relay.amazon.com (10.43.60.234) with Microsoft SMTP Server id 15.0.1497.38 via Frontend Transport; Thu, 8 Sep 2022 15:24:50 +0000 Received: by dev-dsk-farbere-1a-46ecabed.eu-west-1.amazon.com (Postfix, from userid 14301484) id 7A8A84D7B; Thu, 8 Sep 2022 15:24:49 +0000 (UTC) From: Eliav Farber To: , , , , , , , , CC: , , Subject: [PATCH v5 16/21] dt-bindings: hwmon: (mr75203) add "moortec,ts-series" property Date: Thu, 8 Sep 2022 15:24:44 +0000 Message-ID: <20220908152449.35457-17-farbere@amazon.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220908152449.35457-1-farbere@amazon.com> References: <20220908152449.35457-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 d6b03a6d7043..df849517464e 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