From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4FCA9C49361 for ; Fri, 18 Jun 2021 19:10:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 340BE61261 for ; Fri, 18 Jun 2021 19:10:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235342AbhFRTMZ (ORCPT ); Fri, 18 Jun 2021 15:12:25 -0400 Received: from mail-oo1-f48.google.com ([209.85.161.48]:44604 "EHLO mail-oo1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235429AbhFRTMX (ORCPT ); Fri, 18 Jun 2021 15:12:23 -0400 Received: by mail-oo1-f48.google.com with SMTP id o5-20020a4a2c050000b0290245d6c7b555so2687766ooo.11; Fri, 18 Jun 2021 12:10:13 -0700 (PDT) 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=daEJxXx4kGgQjf5gbnT7Q2a5f94zl/Y1PbDu72pCGuA=; b=C3cZdbiyOaUGxJdTspHFL+eBZNDpznXVJQS9UT919UQIbgfaWmo7SDpS+QPsed84l4 KHciIjf42j4MFE9aHycHcidh8vwSE21EE0QjYDbKp0r60016t6cTAKpct8JHBTtt3bOe o+TGHKdHkZBsvH6sHy3sU/Gr22G3ZnwNbw4TFXnPrbQWe3TaSgRuNW15qsBhxlnBa0yj M4bb+l1sVJsmZJ5EIW1cKHBkRDz+N9otzJ9gTH+wLPwRKJ/pjHjIvDMAh5JDvmEuJZxJ YIQ8VZCznoc06nZi90WuKpL4VGFo3BcViFzgbN5mjHnkcqomGz8YMwU0/2MobN3r69IJ 36qA== X-Gm-Message-State: AOAM533DO3JeAsjy+8mQmujfZACra39pUv1y1Gc8z8RpwmYngZLkFfyj HAkzOncAa2h24l81PSQiUnYJwTHT+A== X-Google-Smtp-Source: ABdhPJzYycg7M/u2vTWyigX0DR29r/E95lU8Z7lGuBbGyiTV0doykatrXGVzFhx4S8iGthmRHLvppQ== X-Received: by 2002:a4a:d781:: with SMTP id c1mr10281257oou.23.1624043412611; Fri, 18 Jun 2021 12:10:12 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id v203sm1970825oie.52.2021.06.18.12.10.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Jun 2021 12:10:11 -0700 (PDT) Received: (nullmailer pid 2636260 invoked by uid 1000); Fri, 18 Jun 2021 19:10:07 -0000 Date: Fri, 18 Jun 2021 13:10:07 -0600 From: Rob Herring To: Ben Tseng Cc: Fan Chen , Zhang Rui , Daniel Lezcano , linux-pm@vger.kernel.org, srv_heupstream@mediatek.com, Eduardo Valentin , Mark Rutland , Matthias Brugger , hsinyi@chromium.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com, Michael Kao Subject: Re: [PATCH v5 3/3] dt-bindings: thermal: Add binding document for mt6873 thermal controller Message-ID: <20210618191007.GA2633228@robh.at.kernel.org> References: <20210617114707.10618-1-ben.tseng@mediatek.com> <20210617114707.10618-4-ben.tseng@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210617114707.10618-4-ben.tseng@mediatek.com> Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On Thu, Jun 17, 2021 at 07:47:07PM +0800, Ben Tseng wrote: > From: Michael Kao > > This patch adds binding document for mt6873 thermal controller. > > Signed-off-by: Michael Kao > Signed-off-by: Ben Tseng > --- > This patch depends on [1]. > > [1] https://patchwork.kernel.org/project/linux-mediatek/patch/20210524122053.17155-7-chun-jie.chen@mediatek.com/ > --- > Feature: Thermal Management > > Change-Id: Ibe06c699c6edc870aaee95170c3f182d1889472d > --- > .../thermal/mediatek-thermal-lvts.yaml | 81 +++++++++++++++++++ > 1 file changed, 81 insertions(+) > create mode 100644 Documentation/devicetree/bindings/thermal/mediatek-thermal-lvts.yaml > > diff --git a/Documentation/devicetree/bindings/thermal/mediatek-thermal-lvts.yaml b/Documentation/devicetree/bindings/thermal/mediatek-thermal-lvts.yaml > new file mode 100644 > index 000000000000..69ffe7b14c21 > --- /dev/null > +++ b/Documentation/devicetree/bindings/thermal/mediatek-thermal-lvts.yaml > @@ -0,0 +1,81 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/thermal/mediatek-thermal-lvts.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Mediatek SoC LVTS thermal controller (DTS) binding > + > +maintainers: > + - Yu-Chia Chang > + - Ben Tseng > + > +properties: > + compatible: > + const: mediatek,mt6873-lvts > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + items: > + - const: lvts_clk Not really a useful name. I'd just drop 'clock-names'. > + > + "#thermal-sensor-cells": > + const: 0 > + > +required: > + - "#thermal-sensor-cells" > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + dts: lvts@1100b000 { thermal-sensor@... > + compatible = "mediatek,mt6873-lvts"; > + reg = <0x1100b000 0x1000>; > + clocks = <&infracfg CLK_INFRA_THERM>; > + clock-names = "lvts_clk"; > + #thermal-sensor-cells = <0>; > + interrupts = ; > + }; > + > + thermal-zones { > + cpu_thermal: cpu-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + > + thermal-sensors = <&dts>; > + trips { > + cpu_alert1: cpu-alert1 { > + temperature = <85000>; > + hysteresis = <0>; > + type = "passive"; > + }; > + > + cpu_crit: cpu-crit { > + temperature = <120000>; > + hysteresis = <0>; > + type = "critical"; > + }; > + }; > + > + cooling-maps { > + }; > + }; > + }; > +... > -- > 2.18.0 > >