Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp458064iob; Fri, 13 May 2022 05:34:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1TAERWujGFiZB2BXwkwE8KUH5zsSMUKKFYe7zHd1U/5yHIL/E0UjfMMVPHaQSnWtLA0Z4 X-Received: by 2002:a1c:6a03:0:b0:395:ce4d:aeb1 with SMTP id f3-20020a1c6a03000000b00395ce4daeb1mr3321731wmc.88.1652445276665; Fri, 13 May 2022 05:34:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652445276; cv=none; d=google.com; s=arc-20160816; b=UcYL3U+pkdl98KifmHeNnr8mT3KZud5ZWG1oQHVYp0dj4IUtxdkuE0KaA9PwjK65Jo g11mKGLAShcHWN+DmWA2L84G2LBGPfc7IJhI8Rq68B3yNnnSsls6t5HXf3zCXNNlr5po 8KzUbkg2VJ8/41mKl/a7Zy+UExvYoWwbn5cyODIcW+M3dN/xn2KDOt+x+ijIozaqxDnL XgYk6+C4JzvOtB+dEYCH//LM7eyx/Ein5BCVU+0DcmJWPcLPCi09sKx/zD+PsUKiDk94 2O/GK2t5Trw8ioT0HpVwaQuqPnMDknqdKtw71ApBEsEvnTPsPXGUQjRr2qUOUOf9vXKn NhkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CEL25fIAOxZ58SCupHBAbwosUkv+Gl8sueS42GQV8/0=; b=ZBPgp9zRvmMpO4r9hlbsvujhrdtN9qkohfATvn7ClDe5gt32ciI1uUfhPO4vqadPG9 6+2vYxFjFVig3qbSW6fpK9JIENKZN4VziZbHAPeXaPjXiMJ9Nyx+8l941xVZk0LfW0CG mQ64QGfox41wADvl7+ldBcPy3HUObOeMFqCMnJdDo+47pN8uIGI19oe8DQEFv4mgbMsx X3btWmBfZs27TONf+QG6TxT9lFgD0aZ/SxJq++yzcgc6pZmaEPvi0/Mrfm9mIkbpwBwd XvXaRuKQQmITtbngcPFaedMX2rr3kl3nqevgd3piYWdwS9Fs9AwjzzT8yzxTdmYz2s95 gYeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=hmJKYH3G; 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 i18-20020a05600c355200b00394497dad60si2901957wmq.115.2022.05.13.05.34.08; Fri, 13 May 2022 05:34:36 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=hmJKYH3G; 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 S1353698AbiELMYz (ORCPT + 99 others); Thu, 12 May 2022 08:24:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353664AbiELMYn (ORCPT ); Thu, 12 May 2022 08:24:43 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE61F248258 for ; Thu, 12 May 2022 05:24:40 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id m2-20020a1ca302000000b003943bc63f98so2886100wme.4 for ; Thu, 12 May 2022 05:24:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CEL25fIAOxZ58SCupHBAbwosUkv+Gl8sueS42GQV8/0=; b=hmJKYH3GoV5OPRognhaYZ9+ey9NKhNM6sjc6eiy81im7gczC0H9b8FiR7Ynz3TR2aO EtsHN4T+aZLesVCtqXMrOouFUZ0JeTeDAP3e227fx4J9gnYhikxOjKCKJYufyHjNO++H r7gu1qICR7hpGKy2Fx4ERghUJfTGx+zUO+RQQ12CRjki/XcuVH25CzD0uo8ilTc7N0QX S2j9NtLnAZJBji7+i54njL8ORu9Ph55VVxsVX8jHBGqIkBhETEEywKjaWD6j++UpZVaL SnSRYZY/dbyyAE1QccpUR5ph/44KCoclXmeaiIYnLjiEp86PKr8BtlvuhN6R2B5OxqIw 3wWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CEL25fIAOxZ58SCupHBAbwosUkv+Gl8sueS42GQV8/0=; b=CvGgdDozrz9mZMqX2DGahwsvxeWMUoHdLCrCbNaNZL/hotIkvCHhzSofDu76lzLJe7 AjlWRReB5JNbz+53siH/HPzNFdaY+58g/FvKSgT2y4QK3S/fEVMHIOgIOv44WSvRxPPO WRIB6kL5S72ZtWvLSjHW7hAh38bRaQukaYCq1qhPe4bsRJTzmnPmAQr60Xv5Pq3cYiUJ izKkuUXF9YiYQra9HdNq838rFr1Y90ATvNWHcRTz0/tot8el+NaKTQAaF4divRJxpQyk 6bhM2JZEL0xxNTRoY2ht9c8ifnfVOHLZ1hTK0H9h6AeWBYeOU2aPwfW0X9VfNfH/Si00 shPA== X-Gm-Message-State: AOAM530phkWY6EVwvNoaF+uzJDMzG+nFZk07BT/tNzp71DqlQJtaxxP7 ChQ7cgrkGQTGOO2GuLDLSBsK7w== X-Received: by 2002:a1c:7510:0:b0:394:1961:708 with SMTP id o16-20020a1c7510000000b0039419610708mr9895075wmc.201.1652358279313; Thu, 12 May 2022 05:24:39 -0700 (PDT) Received: from xps-9300.baylibre (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id z22-20020a7bc156000000b003942a244f30sm3047819wmi.9.2022.05.12.05.24.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 May 2022 05:24:39 -0700 (PDT) From: Alexandre Bailon To: 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 Subject: [PATCH v6 2/7] dt-bindings: thermal: Add binding document for mt6873 thermal controller Date: Thu, 12 May 2022 14:24:28 +0200 Message-Id: <20220512122433.1399802-3-abailon@baylibre.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220512122433.1399802-1-abailon@baylibre.com> References: <20220512122433.1399802-1-abailon@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Michael Kao This patch adds binding document for mt6873 thermal controller. 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 @@ -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 + + "#thermal-sensor-cells": + const: 0 + +required: + - "#thermal-sensor-cells" + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + #include + dts: lvts@1100b000 { + 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.35.1