From nobody Sun Sep 22 04:48:47 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 786CBC433F5 for ; Thu, 12 May 2022 12:24:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353699AbiELMY5 (ORCPT ); Thu, 12 May 2022 08:24:57 -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-Google-Smtp-Source: ABdhPJy2UcZEE5+c7sRO4tFxsA0JEIP0dOgsO3PQO1bZq+4Emf94ol1GlRDSyhrBYOiYdVC3cajVNA== 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: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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-ther= mal-lvts.yaml diff --git a/Documentation/devicetree/bindings/thermal/mediatek-thermal-lvt= s.yaml b/Documentation/devicetree/bindings/thermal/mediatek-thermal-lvts.ya= ml 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 =3D "mediatek,mt6873-lvts"; + reg =3D <0x1100b000 0x1000>; + clocks =3D <&infracfg CLK_INFRA_THERM>; + clock-names =3D "lvts_clk"; + #thermal-sensor-cells =3D <0>; + interrupts =3D ; + }; + + thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive =3D <0>; + polling-delay =3D <0>; + + thermal-sensors =3D <&dts>; + trips { + cpu_alert1: cpu-alert1 { + temperature =3D <85000>; + hysteresis =3D <0>; + type =3D "passive"; + }; + + cpu_crit: cpu-crit { + temperature =3D <120000>; + hysteresis =3D <0>; + type =3D "critical"; + }; + }; + + cooling-maps { + }; + }; + }; +... --=20 2.35.1