Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp666150pxu; Tue, 6 Oct 2020 16:23:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzDDqCHCISCbHEkMYCMZyaYaUZ8MaIFJgM1UFjGJNQLLgJ8Q8Z+HeLVo3rxoFpClRNBCrC X-Received: by 2002:a17:906:4a98:: with SMTP id x24mr390392eju.319.1602026593447; Tue, 06 Oct 2020 16:23:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602026593; cv=none; d=google.com; s=arc-20160816; b=yrQ59U922YSwlhZZZF+jQCFnG4eBYEH2t9Mr47R2WeLFxUTF9JQG4kUv8i1mlmPdbH AZfmHMO9lbAyF/WphiGjbtaHgkwtJbv1vZfQI6ZWGacKiqJnKyN2/d0DAwR90tGi5i+2 aS44kezV+b0X8Kl/O5h6tFHibcQNHNL7cm1IqMkue203ZZl5qLXYgk/nBmHwgZhcEOHy 00o5K7nUPLD6PtGqCacTzxy3b+b5doJ5/I2JVvtYImxbD7FIzLosWxZuEjQ1UszvKfVU hbfLxO72YKLaxcRy7x7t9ik+utbdhAErkbMQDhzpN8tZkSE8/K+BYrXRSQ0HAP+UU6qK ofHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :dkim-signature; bh=5L+gLeTbCB4MFIuoEXCXhV99qSHj08vZ9RH6pYhyr8M=; b=mrLNe3wNokozOcgq7IimVD5XAw2v+sE7td8uzPQ1Wh3NlTaOXCm8cJni/w113IZQ/X PfvHvRP1HJePcjGlI0dTg6CH5HWKXtjLrM/cV3xB9MvKI+M1VAxiPOqkrjWxBIDGr0fL ivTE0xSqdiEqVa+UpcnU+L7qSe0LAbonH4Wq0QBuvX4EEwNfdKWg/OoJi1DYxrIJnM2L uyTVzawGBW8dHM49CvX5qyeXiEtcBejSBPFKPi7yWm/cpl9uq4XCjxwyG+cbkkLLs0O3 QX3uinBcQv0HQBTpxH9TCLtTpeRYSBnzB+ac8Zc+gD4KOLgmBhZhlz0sSFUfskIewOYU U5Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HBjMjiII; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o1si68072edv.320.2020.10.06.16.22.50; Tue, 06 Oct 2020 16:23:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HBjMjiII; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727457AbgJFVvr (ORCPT + 99 others); Tue, 6 Oct 2020 17:51:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726730AbgJFVvq (ORCPT ); Tue, 6 Oct 2020 17:51:46 -0400 Received: from mail-ot1-x343.google.com (mail-ot1-x343.google.com [IPv6:2607:f8b0:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD2D6C061755; Tue, 6 Oct 2020 14:51:46 -0700 (PDT) Received: by mail-ot1-x343.google.com with SMTP id f37so258577otf.12; Tue, 06 Oct 2020 14:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5L+gLeTbCB4MFIuoEXCXhV99qSHj08vZ9RH6pYhyr8M=; b=HBjMjiII9lPdYlDVdBNEud8p77zdAFiv/3lSAMvGsKHH8RxZ851bVT+7zmPkYmMS2l fewmYccfP2ZhoOxwaVG7lLDyI2z6KM/03zhWgyjJ3Pu/pyV6HOFvWh9WYup8JaARohio CpHyXet1TwUUzG7YNO5tTRfaitnkfSAyN/wPQlJEzSKaFjHfocAr2BfSvUamkOvV1xKb FNFfyRoIDe5NC8hT4MA+Q7T/KLM/Im4XRS1ZG/Jh12fmPKWBaKtZRvhnMA4eDVVrFkIg CiTtEqyxM2p8nndiHiWCyqVjJPXrU7TFW+7rMWnXxzfY0QEU5zMAlPxKTFAHz4ig6NHd +JUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=5L+gLeTbCB4MFIuoEXCXhV99qSHj08vZ9RH6pYhyr8M=; b=GsqtiaQ7Cnb2Ydn7GKwcKdlVobvxv5qdgNvcdT63jZ+mOec+fMie7BE8AH3fbLtFvu Y2XTipZV2RHOybI6UpjNTl+xrghCIfu06/k5UAd0YTxfr/ELJ1H+OSkqVj+c7fYwzdLJ LA23Fil8l8XR68hNDppauhKwoZhFprryF1LUWKZft1D3wa3juxv2TzyB3blniZXeE9bE Np+wYHOvHZvcoFglwmkUhoZqXeM4VK94D+G77dmWG9Yc8ZMswajmmdpX4LgbulCVP+nH cb8Nf7QD5DQPQviW5K5u1smXzJ77J3uABcW4b07x5VNyCOPWJjCcf1hPFX+CYfInq1qd ofJQ== X-Gm-Message-State: AOAM5325j3MdfeyD64F+HswWOIdMrOk72nOuF9gIFI1L1RrjCbzPEBAn GEsVln64vCc4ZGfuJk8lpe0= X-Received: by 2002:a9d:241:: with SMTP id 59mr1589otb.151.1602021105475; Tue, 06 Oct 2020 14:51:45 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id g26sm6554otn.77.2020.10.06.14.51.44 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Oct 2020 14:51:45 -0700 (PDT) Sender: Guenter Roeck Date: Tue, 6 Oct 2020 14:51:44 -0700 From: Guenter Roeck To: Rahul Tanwar Cc: jdelvare@suse.com, p.zabel@pengutronix.de, linux-hwmon@vger.kernel.org, robh+dt@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, andriy.shevchenko@intel.com, songjun.Wu@intel.com, cheol.yong.kim@intel.com, qi-ming.wu@intel.com, rtanwar@maxlinear.com Subject: Re: [PATCH v5 1/2] Add DT bindings schema for PVT controller Message-ID: <20201006215144.GA96365@roeck-us.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 05, 2020 at 05:27:45PM +0800, Rahul Tanwar wrote: > PVT controller (MR75203) is used to configure & control > Moortec embedded analog IP which contains temprature sensor(TS), > voltage monitor(VM) & process detector(PD) modules. > > Add DT bindings schema for PVT controller. > > Signed-off-by: Rahul Tanwar > Reviewed-by: Rob Herring Applied to hwmon-next. Thanks, Guenter > --- > .../devicetree/bindings/hwmon/moortec,mr75203.yaml | 71 ++++++++++++++++++++++ > 1 file changed, 71 insertions(+) > create mode 100644 Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml > > diff --git a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml > new file mode 100644 > index 000000000000..6f3e3c01f717 > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml > @@ -0,0 +1,71 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/hwmon/moortec,mr75203.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Moortec Semiconductor MR75203 PVT Controller bindings > + > +maintainers: > + - Rahul Tanwar > + > +properties: > + compatible: > + const: moortec,mr75203 > + > + reg: > + items: > + - description: PVT common registers > + - description: PVT temprature sensor registers > + - description: PVT process detector registers > + - description: PVT voltage monitor registers > + > + reg-names: > + items: > + - const: common > + - const: ts > + - const: pd > + - const: vm > + > + intel,vm-map: > + description: > + PVT controller has 5 VM (voltage monitor) sensors. > + vm-map defines CPU core to VM instance mapping. A > + value of 0xff means that VM sensor is unused. > + $ref: /schemas/types.yaml#definitions/uint8-array > + maxItems: 5 > + > + clocks: > + maxItems: 1 > + > + resets: > + maxItems: 1 > + > + "#thermal-sensor-cells": > + const: 1 > + > +required: > + - compatible > + - reg > + - reg-names > + - intel,vm-map > + - clocks > + - resets > + - "#thermal-sensor-cells" > + > +additionalProperties: false > + > +examples: > + - | > + pvt: pvt@e0680000 { > + compatible = "moortec,mr75203"; > + reg = <0xe0680000 0x80>, > + <0xe0680080 0x180>, > + <0xe0680200 0x200>, > + <0xe0680400 0xc00>; > + reg-names = "common", "ts", "pd", "vm"; > + intel,vm-map = [03 01 04 ff ff]; > + clocks = <&osc0>; > + resets = <&rcu0 0x40 7>; > + #thermal-sensor-cells = <1>; > + };