Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp855158rwb; Thu, 18 Aug 2022 13:34:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ANDRiK43k7abAZJZn0hqFcgnnXpCkSh6uVeKWb936VxcRMOaxfVYxCoensFDWjf987MZp X-Received: by 2002:a17:907:6890:b0:732:fcb8:909f with SMTP id qy16-20020a170907689000b00732fcb8909fmr2778130ejc.683.1660854899495; Thu, 18 Aug 2022 13:34:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660854899; cv=none; d=google.com; s=arc-20160816; b=M/7ANTgVKOCkfGjrcfOl89CyZmk7jVtGXNO7Fje9w6Zz/LbP4hk9B+RsKS4UyDwjPm AafomY5k6PZTi2OLs9+ebCgqe2y2XE0v51r2Srfl0caolkt1DPewsbxksBl+NIwDxatS dzSFmL7ckkmyisZ8HKMG2rNzZNSmmU85CElC053acElbOxXCwipV8LbpnXYMKx2WWX6+ /YH1ShJaCYATVZusMNL14ndQOeh2n52os9nZ2U29IA6dCcTVpVmhAewNYIoxn/BKFQqF hv1FIzDr+dZZI5NbvhIil7fL2oN9Xq0lRVaetILZ7XgWhdbjg7/HEeqQ+X6Ku72GtJcU WPkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=SHmhnKOWEnMPXTr1npqUAIqccKa9qmawwg5jERMog4k=; b=NDbvLwkyuVj/UW9aF8ymeoGXO2Jrubbgvn7v1vgHNfBkrUQz/zdwZBSp70ZeEeM8rx RMiehSp2m3iuZ16kX2wY7ulyBP1p37kKs1Ds7DIlSwvQK3ZVk0q/HciFK3afVH7vEssO /qTXPLsMwNoscSZ1XlSTSHtsE9xeKZJ7HofoMl6kUtGlj1/JJtGDPp5mjHN+/K0IjVpX XxxSHYFA7HbgfVeKXA8xQ/6A2W9jP5Ww0D0rPq/3t/kS3Ah61AyDHnC4cvzKeSxYn+2z y+ZsSH1yoP1RpxYrh+ZNoIvH0pmCGoCtc/F4nVmhbJb7A205+99OHgWdDAJ1rwK8VWPU SLNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dY+MC654; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds13-20020a170907724d00b0073bd9771c65si1755819ejc.389.2022.08.18.13.34.32; Thu, 18 Aug 2022 13:34:59 -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=@gmail.com header.s=20210112 header.b=dY+MC654; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345532AbiHRUMi (ORCPT + 99 others); Thu, 18 Aug 2022 16:12:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345490AbiHRUMP (ORCPT ); Thu, 18 Aug 2022 16:12:15 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 066DCD31F7; Thu, 18 Aug 2022 13:07:56 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id m2so2410289pls.4; Thu, 18 Aug 2022 13:07:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc; bh=SHmhnKOWEnMPXTr1npqUAIqccKa9qmawwg5jERMog4k=; b=dY+MC654YJKie0TQlbszc5HqEHdSZD4JcFCRHXXwd9QyR1bvRrP5uMIlIvrgCyhfTz 6K87i7oljTIb7BSYyX55/9upwqGa2NvJgp5dZgL3hq0+0ls9tUk2CpyhD0WZ84RTsDBF ZHCyQPkDrRHCh73W0YFPt9HFQ+a4awysQS4M+NAKX76YJd2nRkDd+yqQg2cMF26PzOxP PJd8zi5wPjRdwlE3/fOnD4tIaZgZAtErOoqCINemD17Pniw2rB7xXrhuC3s0yBbd/APb nF+ks9TrtiyOM8QlKYvXH+TpYJ8thVd5fLohK6NIkN9omcUBapu1rDt7rCV9bQE9YTkY zO1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc; bh=SHmhnKOWEnMPXTr1npqUAIqccKa9qmawwg5jERMog4k=; b=wE1aR1lW8xqeIszQGZ0nOwQvo7ifIXX1yNFUuJ7Vz+xxp8LZ1Q/0lMMXtLvXAY4aTt UflMJ2MCxYR8W28oEuDv6yeE7aYVvmjqm8lpAGU0F/sPIGljubWXYJWFoNhK8pS5y/tJ l/206O6U0PwA1miF71GIvGFmH6grdKFxkILJVSCqg4sNzJoggsbfXI7dfS35r6Sa7NBG 5pfGZaP7Hx8BIYamTEn9uahDEm3VAqFVaLuDYGqB9m2AUj6MP0QW5ch9Xj8hcRbu2out YEzLiAgYQJJA/MLLqhx8rT8YuS3d8olkS7ztaDLNFS9jXCMte5TCl/CHTVkfTjcNcxVc kuIw== X-Gm-Message-State: ACgBeo08ZrGly6qXGZP1PY6mFxPIUZIqVGMkC+s/DMHnv+4sbQ4c9ylp 7gqkr/RNc64ZXRqYfByioKM= X-Received: by 2002:a17:903:41cd:b0:16e:e0c0:96d1 with SMTP id u13-20020a17090341cd00b0016ee0c096d1mr4221306ple.169.1660853275519; Thu, 18 Aug 2022 13:07:55 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id c10-20020aa7952a000000b005281d926733sm2003202pfp.199.2022.08.18.13.07.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 13:07:54 -0700 (PDT) Sender: Guenter Roeck Date: Thu, 18 Aug 2022 13:07:53 -0700 From: Guenter Roeck To: Eliav Farber Cc: jdelvare@suse.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, talel@amazon.com, hhhawa@amazon.com, jonnyc@amazon.com, hanochu@amazon.com, ronenk@amazon.com, itamark@amazon.com, shellykz@amazon.com, shorer@amazon.com, amitlavi@amazon.com, almogbs@amazon.com, dwmw@amazon.co.uk, rtanwar@maxlinear.com Subject: Re: [PATCH v2 07/16] hwmon: (mr75203) add VM active channels property for Moortec PVT controller Message-ID: <20220818200753.GA3288506@roeck-us.net> References: <20220817054321.6519-1-farbere@amazon.com> <20220817054321.6519-8-farbere@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220817054321.6519-8-farbere@amazon.com> X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Wed, Aug 17, 2022 at 05:43:12AM +0000, Eliav Farber wrote: > Add optional "vm-active-channels" property to define the number of > active channels per VM. > > Signed-off-by: Eliav Farber > --- > .../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 da9c3cdcb6f0..6111b5069b3c 100644 > --- a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml > +++ b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml > @@ -49,6 +49,13 @@ properties: > reset-control-skip bool property defines if obtaining a > reference to a reset controller should be skipped. > > + vm-active-channels: > + description: > + vm-active-channels defines the number of channels per VM > + that are actually used and are connected to some source. > + A value of 0 means that the entire VM sensor is nou used. not ? > + $ref: /schemas/types.yaml#definitions/uint8-array > + > required: > - compatible > - reg > @@ -60,6 +67,7 @@ required: > additionalProperties: > - intel,vm-map > - reset-control-skip > + - vm-active-channels > > examples: > - | > @@ -73,5 +81,6 @@ examples: > intel,vm-map = [03 01 04 ff ff]; > clocks = <&osc0>; > resets = <&rcu0 0x40 7>; > + vm-active-channels = [08 10 02]; Is that how properties are defined nowadays ? I am left with no clues how this is supposed to be interpreted by a driver. What does "08 10 02" mean ? How does that refer to "the number of active channels per VM" ? Also, I am not a devicetree expert, but I am quite sure that all those chip specific properties would need a vendor prefix. Guenter > #thermal-sensor-cells = <1>; > };