Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4562700rwe; Tue, 30 Aug 2022 12:24:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR4TlzeVM4mDGAofOl4cQXQwNf/l/lJbB5tGLlZTM/cMvZPfJ/4+QqPRL8PPyQlVB7aKibhz X-Received: by 2002:a63:5fc8:0:b0:430:1131:d66d with SMTP id t191-20020a635fc8000000b004301131d66dmr1135318pgb.390.1661887471272; Tue, 30 Aug 2022 12:24:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661887471; cv=none; d=google.com; s=arc-20160816; b=X44VhDmjT7/bBn4NvxmyWWmAOWvlNekn7kWZBpHEJbPIkqCGllD04h3KFyBp2e9hQy sHywc+AKTqRG4S3o1Lw/JyEzNSj8zNdPNfCvTsdOddxeei8suUVQAfzGRkGWBCPfYnNK hN6bLlcuOXr+V77EHr87PL9xd+8Hsn22+zlUaUjNuSkV6WU8pS4dCsSyTcDi68zDdS4O uab0vqSXT8Te1ESXbFtxRYoNdDQpZbN94wi/iddaILDpoktHuIW3CdK2Fy8Qk83ZsUEz ufPwwItLaZ5SRjwjCQpWQAyQzym+wHbBe+w016tvA+zzmBInHUcefszTwrZzc2rQA7EX ok7A== 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=jpiHuxtmtOdbY+L9vFmRYPscv7SA5/m29+1SrabSDX0=; b=vKGHD7b5HAdtP2zVU57ZLZDk8mujCibDM2o0xXN8j7Fm8lgfnh4tuzCVA85dxBONt0 UzcBqqsXrH3s7naDDrES6LIkyV79hzvjwsfhCwPHc1slsEz7346/19xA8ye2YJ+9Hjnc tOxPOgHu3MJJihjBAHK9uAhlhtRcwc4WwvrX71RfO9oP16ryLLugq4fA4gq9fAatkwO1 met3Qnh9Nr123CMSFh8lIg39oenw3Ov3akTd48KPycbe4WCiHvpAbAzpjZFR77KdbklO pF7oWkqP663qe5cGRGk9Zq6BP/vjfahhQ0VRH1Kumhqo8NuAbYGWOtHmdi6J1vyUNsHi VHFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=hu03mqAs; 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 ay29-20020a056a00301d00b005381f0eb1c3si7929840pfb.305.2022.08.30.12.24.19; Tue, 30 Aug 2022 12:24:31 -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=hu03mqAs; 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 S231512AbiH3TWv (ORCPT + 99 others); Tue, 30 Aug 2022 15:22:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230330AbiH3TWe (ORCPT ); Tue, 30 Aug 2022 15:22:34 -0400 Received: from smtp-fw-2101.amazon.com (smtp-fw-2101.amazon.com [72.21.196.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3CBB79A41; Tue, 30 Aug 2022 12:22:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1661887354; x=1693423354; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jpiHuxtmtOdbY+L9vFmRYPscv7SA5/m29+1SrabSDX0=; b=hu03mqAsv9+9AZQHGMyZQ7TfdaFs34Fpo66hjJQRMLE85CVTstUtaaBv AdHRv2QA6edzuEAQj9l38dRkiQshbPnTkY0AzvwE8zO2YzVn7sXzrffSG hUtJqs3PJETwwLtcI88drexKxPMTBSXOFad0WQ4iB1l6393yY1xAGZV1+ M=; X-IronPort-AV: E=Sophos;i="5.93,275,1654560000"; d="scan'208";a="235792417" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-pdx-2b-1f9d5b26.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-2101.iad2.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2022 19:22:18 +0000 Received: from EX13D40EUB003.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-pdx-2b-1f9d5b26.us-west-2.amazon.com (Postfix) with ESMTPS id 01C7844DD0; Tue, 30 Aug 2022 19:22:17 +0000 (UTC) Received: from EX13MTAUEA001.ant.amazon.com (10.43.61.82) by EX13D40EUB003.ant.amazon.com (10.43.166.128) with Microsoft SMTP Server (TLS) id 15.0.1497.38; Tue, 30 Aug 2022 19:22:15 +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, 30 Aug 2022 19:22:14 +0000 Received: by dev-dsk-farbere-1a-46ecabed.eu-west-1.amazon.com (Postfix, from userid 14301484) id 682B14D42; Tue, 30 Aug 2022 19:22:12 +0000 (UTC) From: Eliav Farber To: , , , , , , , CC: , , , , , , , , , , , , , Subject: [PATCH v3 14/19] dt-bindings: hwmon: (mr75203) add "moortec,ts-series" property Date: Tue, 30 Aug 2022 19:22:07 +0000 Message-ID: <20220830192212.28570-15-farbere@amazon.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220830192212.28570-1-farbere@amazon.com> References: <20220830192212.28570-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_H3,RCVD_IN_MSPIKE_WL,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 --- V3 -> V2: - New patch to introduce "moortec,ts-series" property. .../devicetree/bindings/hwmon/moortec,mr75203.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml index 4c983d8f8fe7..ec2dbe7da9c2 100644 --- a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml +++ b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml @@ -64,6 +64,16 @@ properties: default: 1 $ref: /schemas/types.yaml#definitions/uint8-array + moortec,ts-series: + description: + moortec,ts-series defines the temperature equation and coefficients that + shall be used to convert the digital output to value in milli-Celsius. + Supported series are 5 and 6. + minimum: 5 + maximum: 6 + default: 5 + $ref: /schemas/types.yaml#definitions/uint32 + required: - compatible - reg -- 2.37.1