Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4090272rwb; Tue, 6 Sep 2022 02:17:35 -0700 (PDT) X-Google-Smtp-Source: AA6agR6BGGEq1gusfKNU1djEsGpxTu32lQFCJPIPQdV7wbtsA0vUuhFGOThVd1leE5FozqdlGU4f X-Received: by 2002:a17:907:7f91:b0:741:a071:cdb3 with SMTP id qk17-20020a1709077f9100b00741a071cdb3mr26135180ejc.522.1662455855414; Tue, 06 Sep 2022 02:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662455855; cv=none; d=google.com; s=arc-20160816; b=aQyftLHStJsPFkKkT4JzS8HBmFlBXFrxbzsRL7TAjeyWH1YeIpZj79XNln2S9geuex UH+gWdRpiev3Ch0fFUIQtQdXVV6iDKYj2FZaOnjYVDa0ZANPlyeXLrp45rZXPerwwsCy K+Ac1j5y3anlnNMgbZKP6UwFd1mcorehNKhZIjumAkA3FiLH+8zSE3K4bE/9V/TnkOz7 OSYlkdoV9HYviudZjxY05ieonrLeoY221cs9Gy9RN8WE8lsVDY1c68/hZfDg8jWTq1FI 5XXK92nAJmmELioEcF/p7cFekWfKarUmdnyzNGiQ1YPmYlMihc9pj2ngfaW0e+7cFSsG iUMQ== 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=s1EK0oUudRQ1hUnUB5MnNWs/t3MkWH0czu1v7nps9BY=; b=IAFala/NvATUUhPB40DftTdvN9qq1iH2RbWqW2yAzAilMqZuxzx7VHuU6qK+XRj+G9 uer5xrZpT3MWD69mewmlu4zIRCQEBSy1hVV1Vpqv+E7OwE7cvhaZFNidOLMFCdQeyXdw 7+ucSwwySpGc6r/ed+6lblC+ztHzhz1c4nFBN6dOw7IIwJDPCR3jqyPXz7COK/qDeFt9 9Rxmy/Ow05uV4RzrHPg05aCAMayhZ9JDHKHYTnTGmit+h8DYhayQEn5mWkpc2lsQutKn VLq+mx5B88aBJTSV+IrSH1ozpyrIvrZH1a6aCD/YmxAVYU7aAViv1Nn+iLco2Mj/POKy D1+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=oE3c8mOX; 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 dr17-20020a170907721100b0072ef52514f6si10330081ejc.629.2022.09.06.02.17.09; Tue, 06 Sep 2022 02:17:35 -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=oE3c8mOX; 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 S239265AbiIFIgK (ORCPT + 99 others); Tue, 6 Sep 2022 04:36:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239174AbiIFIfB (ORCPT ); Tue, 6 Sep 2022 04:35:01 -0400 Received: from smtp-fw-9102.amazon.com (smtp-fw-9102.amazon.com [207.171.184.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A647169F7E; Tue, 6 Sep 2022 01:34:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1662453299; x=1693989299; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=s1EK0oUudRQ1hUnUB5MnNWs/t3MkWH0czu1v7nps9BY=; b=oE3c8mOXvYoo37Sj9iK2J0nHSTe3lzCcKtRo7b9Z98CbLmnUEUr68tYk S6GU7ijyhFTTAt+iezQ15tXeaMulmO7XvuOYm8CmADtP6fc4y08DSZvfD qX+Kk2WA3wiH0ncFgoaIO5B4L2We6V4jDU5iDGv5ffCBuaj4MsVumzT/g w=; X-IronPort-AV: E=Sophos;i="5.93,293,1654560000"; d="scan'208";a="256505583" Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-iad-1e-0bfdb89e.us-east-1.amazon.com) ([10.25.36.210]) by smtp-border-fw-9102.sea19.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2022 08:34:39 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-iad-1e-0bfdb89e.us-east-1.amazon.com (Postfix) with ESMTPS id 5A8D9E0E6A; Tue, 6 Sep 2022 08:34:38 +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; Tue, 6 Sep 2022 08:34:00 +0000 Received: from EX13MTAUEA001.ant.amazon.com (10.43.61.82) 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; 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 CDD054D7B; Tue, 6 Sep 2022 08:33:57 +0000 (UTC) From: Eliav Farber To: , , , , , , , CC: , , , Subject: [PATCH v4 12/21] dt-bindings: hwmon: (mr75203) add "moortec,vm-active-channels" property Date: Tue, 6 Sep 2022 08:33:47 +0000 Message-ID: <20220906083356.21067-13-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=-14.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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,vm-active-channels" property to define the number of active channels per VM. This shall be useful to avoid exposing sysfs for reading inputs that are not connected to any voltage source. Signed-off-by: Eliav Farber --- V4 -> V3: - Fix DT checker errors. V3 -> V2: - Add "moortec" prefix to property name. - Add explanation why this change is needed. .../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 9454576ebb73..2aa4c3618596 100644 --- a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml +++ b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml @@ -70,6 +70,15 @@ properties: "#thermal-sensor-cells": const: 1 + moortec,vm-active-channels: + description: + Defines the number of channels per VM that are actually used and are + connected to some input source. + Maximum number of items - number of VMs. + Maximum value of each item - number of channels. + Minimum value of each item - 0 (which means entire VM sensor is nou used). + $ref: /schemas/types.yaml#/definitions/uint8-array + required: - compatible - reg @@ -91,5 +100,6 @@ examples: intel,vm-map = [03 01 04 ff ff]; clocks = <&osc0>; resets = <&rcu0 0x40 7>; + moortec,vm-active-channels = /bits/ 8 <0x10 0x05>; #thermal-sensor-cells = <1>; }; -- 2.37.1