Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1197898pxv; Fri, 9 Jul 2021 21:22:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9q/I2USK4yewDmsUL/HeN9x6WOr+4C8W/uas15AitAOu4KRLuhAdpN2F6SlrGVVmwcgrm X-Received: by 2002:a02:93a3:: with SMTP id z32mr3662568jah.33.1625890946918; Fri, 09 Jul 2021 21:22:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625890946; cv=none; d=google.com; s=arc-20160816; b=eC+tUoPyrE89KAgKXRoUl3Uw8lKaMaugHQOOTPryqgV3CEkklCZzDSRQ4tu2SmsKWv SWJOVG+4ceKVSzRhiFTTYUN+0QG7Xs2Jd5HNt7RGvGZtMWMa/KgJzVmolYcxp5vR4tvU 7wg9MC6maztEPjonboYT6MTHAT3Hb4FGApWm+bvIbI15UvMbm48BnKLZhHqrXIULe/mA H466A0MTQKRGKGNKkP2zbekxwuio5UqHSRFwGds8xLI47qRldAnBMhUsyIFrc2436Xl5 NWugeoXPybaE3xR8aOXK2QRy3snK+MAvjG3VqgiBtQOEoqXD7QQxkBAANZonzRGITaaN sZ/g== 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:dkim-signature; bh=XQEJ9AZMwo+oZd7F6ikzhcyBN0B+xoHKU7qZRGlNq+E=; b=oYitEpKkQiTdJcQzIwuHKlnZkmgTzsIFtqe0BWfZZNj4wZ2sgT98Gefr7vpeW2F52V R63VRDR8Z9oz/E0wMqpL36mOd6XWIzRYIJ9EGxyh4W5kE/uAJ8iMAfbnLZgVP6kqsoUR khvgqpG1BfyxwKqe3PmoIc33hN94MIij5/DP/SMnTaz2ExExJdpxd/iOh+F9+3BudWpU aJMNgxnSkQvOkSwsQad6SI/lwgGGq7HHvjgwcDVe86dVRHcxPoXU8L5UDNyxC+A2GcUP RltzRtSz+fLk9YBRwM6tOE+N/UBDjIxdlZv8SDQo8foqHjZpHYf/Nwhq1CbPPBUh9Vnx Z9iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="A7/Wm/WN"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h5si3760330iob.96.2021.07.09.21.22.14; Fri, 09 Jul 2021 21:22:26 -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=@linaro.org header.s=google header.b="A7/Wm/WN"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229803AbhGJEYR (ORCPT + 99 others); Sat, 10 Jul 2021 00:24:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbhGJEYQ (ORCPT ); Sat, 10 Jul 2021 00:24:16 -0400 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 491B9C0613DD for ; Fri, 9 Jul 2021 21:21:32 -0700 (PDT) Received: by mail-ot1-x32b.google.com with SMTP id i5-20020a9d68c50000b02904b41fa91c97so7265405oto.5 for ; Fri, 09 Jul 2021 21:21:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=XQEJ9AZMwo+oZd7F6ikzhcyBN0B+xoHKU7qZRGlNq+E=; b=A7/Wm/WNPcdvjhA6nhzwB8sCwll0eZFXv2R5MR35Ty7Z6ZF5BujG6h7WtB+8wg+CAB vIdBlutnIMNWqfglxRgwvJI5jPtHuJcvrxIjeaXVvQynKSoiHCXK7YvnpgLJSbxBPvFm 0MhT1LvwvbKh9dBJuf9/vZYyux8ODoEIjVmvJZJFQ9c2NiBB1ecsVTm9TfNDwDVXX73W i+l2aZUtdTR7kvwLs9Pm2NYhmoTDib1YXm9Xj3Lc3UR6zn/vHFgrJLTYDycEwHhFTjvU YZSQEdUV12/oi4TqBOr3zTNc+34M/v02yDVWaVks0eJ/hlmUmN0CACCU77RWFA/Fzcfd OhNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=XQEJ9AZMwo+oZd7F6ikzhcyBN0B+xoHKU7qZRGlNq+E=; b=OsFExs4de8CQrjbjlE3s6PmaTjwmicB3XTYIsxEweJC8FIfqrxBnNOyy5RDtrnZ5RX laKZ41dFPc7yahpr05XRIdaFKnHcSs4bkaz8qVqjTGYlItpKW5Na9fIfPjGJIgqJCxGU iQQavuOUrFwAxUIHOdqosWGVCC9EXw+ytXDv38i8kQN82t/Z7+k9giXcnYXJp2ERNoOj 1I/T+bjlDL2pZPRn/x6qmlKG+5KmTf49gSVmgTVwZAxtQQ87QFbQ1IkgYGc6fZSZX1Eo eOMnQ5F4SpvV3+qDc3YS98Z8agIedXhXA7qYPrcjlW9XI517p3ylawrGB20Z9zrBN8Ay 5zfw== X-Gm-Message-State: AOAM532+2zEou3y9/AykofexVKwcTSy5nxiASUyVB76Dh3eSWkBQnCEZ us0gBC0lCw+79PYK03duZQRDgw== X-Received: by 2002:a05:6830:119:: with SMTP id i25mr25287667otp.28.1625890891537; Fri, 09 Jul 2021 21:21:31 -0700 (PDT) Received: from yoga (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id m126sm1578664oib.55.2021.07.09.21.21.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jul 2021 21:21:31 -0700 (PDT) Date: Fri, 9 Jul 2021 23:21:29 -0500 From: Bjorn Andersson To: Thara Gopinath Cc: agross@kernel.org, rui.zhang@intel.com, daniel.lezcano@linaro.org, viresh.kumar@linaro.org, rjw@rjwysocki.net, robh+dt@kernel.org, tdas@codeaurora.org, mka@chromium.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [Patch v3 6/6] dt-bindings: thermal: Add dt binding for QCOM LMh Message-ID: References: <20210708120656.663851-1-thara.gopinath@linaro.org> <20210708120656.663851-7-thara.gopinath@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210708120656.663851-7-thara.gopinath@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 08 Jul 07:06 CDT 2021, Thara Gopinath wrote: > Add dt binding documentation to describe Qualcomm > Limits Management Hardware node. > > Signed-off-by: Thara Gopinath > --- > .../devicetree/bindings/thermal/qcom-lmh.yaml | 100 ++++++++++++++++++ > 1 file changed, 100 insertions(+) > create mode 100644 Documentation/devicetree/bindings/thermal/qcom-lmh.yaml > > diff --git a/Documentation/devicetree/bindings/thermal/qcom-lmh.yaml b/Documentation/devicetree/bindings/thermal/qcom-lmh.yaml > new file mode 100644 > index 000000000000..7f62bd3d543d > --- /dev/null > +++ b/Documentation/devicetree/bindings/thermal/qcom-lmh.yaml > @@ -0,0 +1,100 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +# Copyright 2021 Linaro Ltd. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/thermal/qcom-lmh.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm Limits Management Hardware(LMh) > + > +maintainers: > + - Thara Gopinath > + > +description: > + Limits Management Hardware(LMh) is a hardware infrastructure on some > + Qualcomm SoCs that can enforce temperature and current limits as > + programmed by software for certain IPs like CPU. > + > +properties: > + compatible: > + enum: > + - qcom,sdm845-lmh > + > + reg: > + items: > + - description: core registers > + > + interrupts: > + maxItems: 1 > + > + '#interrupt-cells': > + const: 1 > + > + interrupt-controller: true > + > + qcom,lmh-cpu-id: > + description: > + CPU id of the first cpu in the LMh cluster > + $ref: /schemas/types.yaml#/definitions/uint32 > + > + qcom,lmh-temperature-arm: > + description: > + An integer expressing temperature threshold in millicelsius at which > + the LMh thermal FSM is engaged. Do we know (by any public source) what "arm", "low" and "high" means beyond that they somehow pokes the state machine? > + $ref: /schemas/types.yaml#/definitions/int32 > + > + qcom,lmh-temperature-low: > + description: > + An integer expressing temperature threshold in millicelsius at which > + the LMh thermal FSM is engaged. > + $ref: /schemas/types.yaml#/definitions/int32 > + > + qcom,lmh-temperature-high: > + description: > + An integer expressing temperature threshold in millicelsius at which > + the LMh thermal FSM is engaged. > + $ref: /schemas/types.yaml#/definitions/int32 > + > +required: > + - compatible > + - reg > + - interrupts > + - #interrupt-cells > + - interrupt-controller > + - qcom,lmh-cpu-id > + - qcom,lmh-temperature-arm > + - qcom,lmh-temperature-low > + - qcom,lmh-temperature-high > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + #include I don't see why you need qcom,rpmh.h or the interconnect include in this example. > + > + lmh_cluster1: lmh@17d70800 { > + compatible = "qcom,sdm845-lmh"; > + reg = <0 0x17d70800 0 0x401>; #address- and #size-cells are 1 in the wrapper that validates the examples, so drop the two zeros. > + interrupts = ; > + qcom,lmh-cpu-id = <0x4>; > + qcom,lmh-temperature-arm = <65000>; > + qcom,lmh-temperature-low = <94500>; > + qcom,lmh-temperature-high = <95000>; > + interrupt-controller; > + #interrupt-cells = <1>; > + }; > + - | This is a different example from the one above, if you intended that, don't you need the #include of arm-gic.h here as well? Regards, Bjorn > + lmh_cluster0: lmh@17d78800 { > + compatible = "qcom,sdm845-lmh"; > + reg = <0 0x17d78800 0 0x401>; > + interrupts = ; > + qcom,lmh-cpu-id = <0x0>; > + qcom,lmh-temperature-arm = <65000>; > + qcom,lmh-temperature-low = <94500>; > + qcom,lmh-temperature-high = <95000>; > + interrupt-controller; > + #interrupt-cells = <1>; > + }; > + - | > -- > 2.25.1 >