From patchwork Tue Sep 27 01:39:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 12989648 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 8022BC07E9D for ; Tue, 27 Sep 2022 01:40:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229447AbiI0BkN (ORCPT ); Mon, 26 Sep 2022 21:40:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbiI0BkM (ORCPT ); Mon, 26 Sep 2022 21:40:12 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8BF58B2A; Mon, 26 Sep 2022 18:40:09 -0700 (PDT) Received: from localhost.localdomain (unknown [10.180.13.64]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxT+BqVDJjmYUiAA--.64486S3; Tue, 27 Sep 2022 09:40:00 +0800 (CST) From: Yinbo Zhu To: "Rafael J . Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Rob Herring , Krzysztof Kozlowski , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: zhanghongchen , Yinbo Zhu Subject: [PATCH v3 2/3] dt-bindings: thermal: add loongson2 thermal binding Date: Tue, 27 Sep 2022 09:39:50 +0800 Message-Id: <20220927013951.12833-2-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220927013951.12833-1-zhuyinbo@loongson.cn> References: <20220927013951.12833-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID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_JF4lIxAIcVC2z2 80aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI 43ZEXa7VUjeWlDUUUUU== X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add the loongson2 thermal binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu --- Change in v3: 1. Remove the sensor id. 2. Remove the interrupt-parent in thermal required property. 3. Update the thermal binding file name. 4. Fixup the commit log information. .../thermal/loongson,loongson2-thermal.yaml | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/loongson,loongson2-thermal.yaml diff --git a/Documentation/devicetree/bindings/thermal/loongson,loongson2-thermal.yaml b/Documentation/devicetree/bindings/thermal/loongson,loongson2-thermal.yaml new file mode 100644 index 000000000000..65a10a7390a7 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/loongson,loongson2-thermal.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/loongson2-thermal.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Thermal sensors on loongson2 SoCs + +maintainers: + - zhanghongchen + - Yinbo Zhu + +properties: + compatible: + const: loongson,loongson2-thermal + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + "#thermal-sensor-cells": + const: 1 + +required: + - compatible + - reg + - interrupts + - '#thermal-sensor-cells' + +additionalProperties: false + +examples: + - | + thermal: thermal-sensor@1fe01500 { + compatible = "loongson,loongson2-thermal"; + reg = <0 0x1fe01500 0 0x30>; + interrupt-parent = <&liointc0>; + interrupts = <7 IRQ_TYPE_LEVEL_LOW>; + #thermal-sensor-cells = <1>; + };