Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp951010pxf; Thu, 11 Mar 2021 20:45:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJykImnCUFMv9i4/A5XjcpUk9qETbrjHl40SN7eB27rO5nOq25KuZh53nqYmOjWWUWNnyJbA X-Received: by 2002:a17:906:b6cc:: with SMTP id ec12mr6428252ejb.520.1615524333268; Thu, 11 Mar 2021 20:45:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615524333; cv=none; d=google.com; s=arc-20160816; b=Dd0QFcgvWwLVI9mTgi44Q4Z7Adlo6asScceV5Dq2JMXjy1yBAnl959thGK4x/4jcKe SFv9G/PkvuImNc0J5nICFV6gtzDXr1Mjhh9YsqApRjmNgSd3hhkKuKAPsh6vZgSHIJIZ mZ796CMgqeyxBPZDh25Fp/1P0nBAaGdTOljcNCCivYCrAQyx5WPhpsTIHynSPzcmklnX 2s8MC62w7Vv0ObA+Kw5jZcGDDuWIGCbOJHREmv7U1Jmw2JbD7CtVR0LG/1NMRtZyq64Z v1kgeK3dpc2GqScrpXvDao9SYpUp8oBc5cf2fTtT5VCU8n6QWUgiLhU6xf2v7IzDV3cM 1tNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=qj9vc2X4mBDRDCl+I1BT/FS7b+Rz/O3FbfJDg5n6vsE=; b=IG9JKgl4TJxDHmb6cf7VU+HOs0U/uwMgJBhf93bRIRIZgRdVf720ul0opS3hSy6omf R1tokfjsDZxjCLhKGHt32/KydM6sgVJqT4p8eomnHsRQTtsfWM2S3gbKZgFR4W/tCKuI +xqGpqOvASUzoUWTQxhEUouGQIVqI1tO/z9EDiqkMCZtB82BwS7BTiUKs2NaIcQPOgno VmynBh3OC56VDFFjZH9v43Z4VUgYE0OAJPZCjb8sQi5dmyco0+usAKX+hCremfrJMUHH nJQCBisS7kVth01KC9NORe2wXtgjuS8Yd3A9uANQ0N262cauewkNnW6bj+dbieAR00fW yUWw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si3219119edq.382.2021.03.11.20.45.10; Thu, 11 Mar 2021 20:45:33 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231907AbhCLDlE (ORCPT + 99 others); Thu, 11 Mar 2021 22:41:04 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:46640 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231808AbhCLDkZ (ORCPT ); Thu, 11 Mar 2021 22:40:25 -0500 X-UUID: ed2d10196544445897a4527daea91894-20210312 X-UUID: ed2d10196544445897a4527daea91894-20210312 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2082810469; Fri, 12 Mar 2021 11:40:19 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 12 Mar 2021 11:40:18 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 12 Mar 2021 11:40:18 +0800 From: Michael Kao To: , Zhang Rui , Daniel Lezcano , , CC: Eduardo Valentin , Rob Herring , Mark Rutland , Matthias Brugger , , , , , Subject: [v3,3/3] dt-bindings: thermal: Add binding document for mt6873 thermal controller Date: Fri, 12 Mar 2021 11:40:18 +0800 Message-ID: <20210312034018.17437-4-michael.kao@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210312034018.17437-1-michael.kao@mediatek.com> References: <20210312034018.17437-1-michael.kao@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds binding document for mt6873 thermal controller. Signed-off-by: Michael Kao --- This patch depends on [1]. [1]https://patchwork.kernel.org/project/linux-mediatek/cover/1608642587-15634-1-git-send-email-weiyi.lu@mediatek.com/ --- .../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..0c6535abeb81 --- /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 + - Michael Kao + +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.18.0