Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4094835rwb; Tue, 6 Sep 2022 02:23:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR6bo+WqG/s4MVftolsBX/IqYVcFKICEeYWc6tbywh/lUxk9PRr88xqv8FVUlPXvK1adtIBp X-Received: by 2002:a17:907:3188:b0:741:4bf7:ec1a with SMTP id xe8-20020a170907318800b007414bf7ec1amr32771728ejb.448.1662456194593; Tue, 06 Sep 2022 02:23:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662456194; cv=none; d=google.com; s=arc-20160816; b=h3UZX1TtxUJmccYiP+obgE6OQC0mtHoFEsCgd6fQI69BAiSeIzv1KFjWNLi8iYv+IE fb6AHh7wTb/st+pvHwT/W3G9T/RGqYKJQPUfzyJurf5px3lJJjkzeSsuJSo5jVEG0/F6 qCwpNyTvs+Qpvys8lly6PeReZXJSh8xZuIowgYdiYNHlwtTHhcZ/vHKtfkxzMjWZm22v 6nwgBJmYfWqhW4C7/qHM4AebDYQ/XXL1ngO73U43jdPoqSx7iVJMEEhAtHw+sUFajN1t /Qexje9alLxq9ToznPo3Pc+J9c1aETUxEvM7Cj7MAcR5lTcs3rAJve7bHitZjbmzGb5u OQnw== 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=QaZnKD4Usd+c2bBOUsV8NlLFsu3kyiAwP75GhWqBpac=; b=eFAxvE5u7ANVlAKkku/xQnBCiDNphR5Wj+8Er7Hy7uLq3hqCFhkevtsATFSgc2wwZu DlRgnJ9dHSnur015qc/Hy2YRrw2ZYdpdUXwiMrvtyGadoqJOHJvP4+CFtuhOE52QTFe/ jQFJWzdjlK4Sli/ky6+v9q0Yp1YTqpxMHVaoweAGAA6ujxwyHZyV3n9Gh/i0D7Zx3CjJ FKByaZ4FgdKP38L9XmiqKMJdhcHvLdewBBf65tgi1z5HYBs6oYXeHxuv2K7faH9Ercdd TOPJeT/7C5xLEVudoTMlgwaYmjPwCY8DQ31+mxyjoIOMGdyugANU6/Pl5U84cJe2ZF4T 55bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=GCK9XOFf; 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 j11-20020a1709066dcb00b007414e53fb47si8967368ejt.180.2022.09.06.02.22.49; Tue, 06 Sep 2022 02:23:14 -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=GCK9XOFf; 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 S239411AbiIFIlF (ORCPT + 99 others); Tue, 6 Sep 2022 04:41:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239335AbiIFIj2 (ORCPT ); Tue, 6 Sep 2022 04:39:28 -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 9676E79A58; Tue, 6 Sep 2022 01:37:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1662453457; x=1693989457; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QaZnKD4Usd+c2bBOUsV8NlLFsu3kyiAwP75GhWqBpac=; b=GCK9XOFfigdnu8WM/ZjnBNXX6RSsgq6vunuL7c9fftndVVgNQJ9CwBNl e6hAOMWZwDP2PR46xxi/BEAcJNksvMXCYcwTp7HJgDc8l6SYM5IiuhXux wg+Y19EH5BLO+QOgwK95N+0oYlxEVSAoNpKO8rpwZ1utrl4qcrVIdVGcD k=; X-IronPort-AV: E=Sophos;i="5.93,293,1654560000"; d="scan'208";a="127144293" Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO email-inbound-relay-iad-1a-828bd003.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:43 +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 8889E803B1; Tue, 6 Sep 2022 08:34:39 +0000 (UTC) Received: from EX19D013UWA004.ant.amazon.com (10.13.138.207) 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 EX13MTAUEB002.ant.amazon.com (10.43.60.12) by EX19D013UWA004.ant.amazon.com (10.13.138.207) 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.60.234) 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 D4AC74D82; Tue, 6 Sep 2022 08:33:57 +0000 (UTC) From: Eliav Farber To: , , , , , , , CC: , , , Subject: [PATCH v4 14/21] dt-bindings: hwmon: (mr75203) add "moortec,vm-pre-scaler-x2" property Date: Tue, 6 Sep 2022 08:33:49 +0000 Message-ID: <20220906083356.21067-15-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 support for mr76006 pre-scaler which provides divide-by-2 scaling of the input voltage, so that it can be presented to the VM for measurement within its range (the VM input range is limited to -0.1V to 1V). The new "moortec,vm-pre-scaler-x2" property lists the channels that use the mr76006 pre-scaler. The driver will use this list to multiply the voltage result by 2, to present to the user with the actual voltage input source. Signed-off-by: Eliav Farber --- V4 -> V3: - Rename "moortec,vm-pre-scaler" to "moortec,vm-pre-scaler-x2". - Added mximum number if items in description. V3 -> V2: - Add "moortec" prefix to property name. - Change property format to be a single u8 array. - Fix typo: scalar --> scaler. .../devicetree/bindings/hwmon/moortec,mr75203.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml index 2aa4c3618596..de92a21d5552 100644 --- a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml +++ b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml @@ -79,6 +79,18 @@ properties: Minimum value of each item - 0 (which means entire VM sensor is nou used). $ref: /schemas/types.yaml#/definitions/uint8-array + moortec,vm-pre-scaler-x2: + description: + Defines the channels that use a mr76006 pre-scaler to divide the input + source by 2. + The pre-scaler is used for input sources that exceed the VM input range. + The driver uses this information to present to the user with the actual + value of the voltage source. + For channels that are not listed, no pre-scaler is assumed. + Maximum number of items - total number of channels in all VMs. + Each channel should not appear more than once. + $ref: /schemas/types.yaml#/definitions/uint8-array + required: - compatible - reg @@ -101,5 +113,6 @@ examples: clocks = <&osc0>; resets = <&rcu0 0x40 7>; moortec,vm-active-channels = /bits/ 8 <0x10 0x05>; + moortec,vm-pre-scaler-x2 = /bits/ 8 <5 6 20>; #thermal-sensor-cells = <1>; }; -- 2.37.1