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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 76435C433EF for ; Thu, 12 May 2022 14:27:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=plXAtK9SNrrcCoqfszLT2pLcdg3G5OndP0sCCL7uYAI=; b=VTmuceTrQhY8lt y9bX9Psj4RIUXTyZFCmhhnQHGZLkwztlozLVyaUrz8SZGv+yVyD2HKGHdDGPy3GuvXHe8mAd8oErU vcC3CLurZ6sFj4otsJ9GCjMn9BizOHf0oXODUwPRr3NKb925VDnNnIMltQuh5q5+lbglODr72GPOG FBYQmT3JrfRl9T+vece8TIEbxtts5iWTppQlFFFsz+gM+asq6EDvkACyiYQHyAOxEl/7MXOLf/96m a49ahRugR7TXiUWuxWpClvzsnx2qNtSRKiefacDzp+f7eIiB/Fy9cAIvV7rnOzrXI9dMB4UyNBjTX mthjW8Dz+UORDT+qpCMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1np9lR-00CMex-WA; Thu, 12 May 2022 14:26:02 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1np9lN-00CMcg-OX for linux-arm-kernel@lists.infradead.org; Thu, 12 May 2022 14:25:59 +0000 Received: by mail-ej1-x62b.google.com with SMTP id kq17so10607809ejb.4 for ; Thu, 12 May 2022 07:25:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=e7wJLjfJ1iVilvpq3jQ/LuI1I5wd6zNBUq4hxK7yISQ=; b=r5ualuxQ0leFqfg+jbNOvJJk8d5rLmW6rQULOQ0IRnTzgGR9H/PIWd9zWwzi3fs9WC S1+FtRFMKsim/XCxLByVyAPekRdEM+FkcCbXi0+pkaqQrGQuMKAqH4LWlJgqhnW90b53 hUcHLI6ng/MAOx3Ixjn4Bte8v2Le82Buhh1GjWKoq0c0Q8nk9dyi3F42U34U10f6fyyO +hMWt5oUXdRHyqZvXq4fpzcyQ+u/x9RJ318MWMw/PSTuk7Wo0+iY86IzDn6FKEzxbT8x EG0pnu9SrvZgNIOARlKvfuwqyU1AOdJqhDncYUpZLB5LqJs2JwSHle88uuT735DJAPAC y0cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=e7wJLjfJ1iVilvpq3jQ/LuI1I5wd6zNBUq4hxK7yISQ=; b=ybd07PPGm2Y0jONq8kGQOOw6Kc3P2F/ZDI3jHm1wCq0MqB6/gYJu5pusFd0iZcqBYk pNq+9eu2tSn0hdto0bgQGgAZC8KvfbKfEHRMZNeuxj1uBOsPruVDo1a5xzdwzpQ4/d8d 5wAqxNiiJFvtNX9PUYpNt7MTXXhrdBSlXmHXZeB+aMgY/MDBT+SAIqs+wclk/USnI55I dS2OxloGVrI2KNI1VHWHbMEgcXeqoe+o7PnY6WncvZ0kZZYVWpek8PYY5HulorS6VHj/ LjRQQTs7mlLASZy5D9zbuGNRQlPy///2GltvzqPPJLJ9ax1ghPSe5WS/UGhNHgXvyWuP EtIA== X-Gm-Message-State: AOAM531Wni6uxRfaOVHDqwUhINR+1SZ4uhpkJ6L8Iv3TOcZ5dAl+ZdC9 2J6SmjJMjeCBYyEo8Q5ukMibRQ== X-Google-Smtp-Source: ABdhPJxfn8AF52a6nAcaWJI5jbWZNRWTIkVKS2zEyi9i2MQCsxmdkfWrb5DIJvkdV6aURcKf/+NZ2w== X-Received: by 2002:a17:907:6e88:b0:6fa:888d:74a7 with SMTP id sh8-20020a1709076e8800b006fa888d74a7mr141867ejc.335.1652365553928; Thu, 12 May 2022 07:25:53 -0700 (PDT) Received: from [192.168.0.161] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id n14-20020a170906700e00b006f3ef214e34sm2134511ejj.154.2022.05.12.07.25.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 May 2022 07:25:53 -0700 (PDT) Message-ID: <546ddbd4-927d-2e28-6e82-a67b4584a17f@linaro.org> Date: Thu, 12 May 2022 16:25:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v6 2/7] dt-bindings: thermal: Add binding document for mt6873 thermal controller Content-Language: en-US To: Alexandre Bailon , robh+dt@kernel.org, krzk+dt@kernel.org, matthias.bgg@gmail.com, p.zabel@pengutronix.de Cc: rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, michael.kao@mediatek.com, ben.tseng@mediatek.com, ethan.chang@mediatek.com, frank-w@public-files.de, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, khilman@baylibre.com References: <20220512122433.1399802-1-abailon@baylibre.com> <20220512122433.1399802-3-abailon@baylibre.com> From: Krzysztof Kozlowski In-Reply-To: <20220512122433.1399802-3-abailon@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220512_072557_833132_680EB732 X-CRM114-Status: GOOD ( 20.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 12/05/2022 14:24, Alexandre Bailon wrote: > From: Michael Kao > > This patch adds binding document for mt6873 thermal controller. Thank you for your patch. There is something to discuss/improve. > > Signed-off-by: Michael Kao > Signed-off-by: Ben Tseng > --- > .../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 filename: vendor,device so something like mediatek,mt6873-lvts.yaml or mediatek,mt6873-lvts-thermal.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 s/(DTS) binding// (unless DTS means something related to hardware) > + > +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 Skip "_clk" suffix, so just lvts. > + > + "#thermal-sensor-cells": > + const: 0 > + > +required: > + - "#thermal-sensor-cells" > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names You should reference in allOf therma-sensor.yaml unless this is not a thermal sensor? > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + dts: lvts@1100b000 { Generic node name, so 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 { > + }; Empty node? Is it used anyhow here? > + }; > + }; > +... Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel