From patchwork Tue Nov 1 02:10:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 13497 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2676723wru; Mon, 31 Oct 2022 19:19:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6+GfJskKC421X5mjRjyVfcPkUIs6knbxkHr5qJf6cBy1/hA7jnvZX4nG6X/boY2ln+4pGh X-Received: by 2002:a17:903:230c:b0:187:24f3:3451 with SMTP id d12-20020a170903230c00b0018724f33451mr7041150plh.27.1667269197384; Mon, 31 Oct 2022 19:19:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667269197; cv=none; d=google.com; s=arc-20160816; b=gaRkJ9GtJMFCqf/PyQabs1+uh49eKRmTi57vVpTrhYBMCBBKMVcUwtic2irEFFUkfe OKNijJLZIPo890jNq1+gigEU5T0/K579CnasMOPTl1/u48mBn6Z+C6B8d733HZ32vIj/ yi+14VvWxDV4uugjf7ZDVpCkYAMAcFoJuOVLoMr5W3ZOsEH2haeIa1xJK2aF1F6oWJvt s+Rjc/SZ4qd70T2Ylj37RlZzGFwNxqvOY6FtYH2EQf6iqO/OHGfvwFh6Twt5fZKHcHTN cNcXd1RxqiKdlj/vKUgzdmgibK+CRKQ3LC05yoMfi0M4tWcsxKJsaNg6EzXh57+ZWw2Y MWtQ== 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; bh=fRQvPFAwVY9c5cHXnSX2yTU5Jp5n1660kd72fDTjPgY=; b=DjXuMmctWZzFUNN4v2fzJg/+D4pgIZ9Lmb/fY/5F7hLRimASaqp+n+Cn0s6R3TkVh+ h0bX/2XfnFohf6BInYJbN80/LnVgIPBk4n5fY8id73iG8wR9IOvyH1CPccPQvVtNZxDI OMOv/4H+rFy0DdIxoIqFfWSz/TvMcWxQdIQDU0nfrwt2TVpv1saEQzn7OpBnc1FePrmV lRC1LZIkjEtqTrmHNM/0ToYobSyt+EixccstzEq/Fjk5nFmy6unmulnTApP0AXE+RBtR WzxMN8mzr5Im9msHTpxlZ3Y9B1VznMse4CaZVgfLv6JnVijjIOd3ftu9c48HpXbsD6Na MRFQ== ARC-Authentication-Results: i=1; mx.google.com; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ja3-20020a170902efc300b001870feba7a1si8358215plb.135.2022.10.31.19.19.44; Mon, 31 Oct 2022 19:19:57 -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; 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 S229835AbiKACLM (ORCPT + 99 others); Mon, 31 Oct 2022 22:11:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229783AbiKACLJ (ORCPT ); Mon, 31 Oct 2022 22:11:09 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6BE8AE0CE; Mon, 31 Oct 2022 19:10:54 -0700 (PDT) Received: from loongson.cn (unknown [10.180.13.64]) by gateway (Coremail) with SMTP id _____8AxTbctgGBj0rQDAA--.1645S3; Tue, 01 Nov 2022 10:10:53 +0800 (CST) Received: from localhost.localdomain (unknown [10.180.13.64]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxbuAegGBjQk0JAA--.28365S3; Tue, 01 Nov 2022 10:10:49 +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 , Liu Peibao , Yinbo Zhu , Krzysztof Kozlowski Subject: [PATCH v9 2/2] dt-bindings: thermal: add loongson-2 thermal Date: Tue, 1 Nov 2022 10:10:36 +0800 Message-Id: <20221101021036.8982-2-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221101021036.8982-1-zhuyinbo@loongson.cn> References: <20221101021036.8982-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8DxbuAegGBjQk0JAA--.28365S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7uF15Xw1fXFyktF45urWrAFb_yoW8trWUpF 47CF1DCr4vkF17Aws5KFy0kws0qwnYyF9rZrs2kw15Kr98Ja4fXw43Kr1DZ3yfWF1jgFW7 uFyIkr4UC3WDJ3DanT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bfxFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUXVWUAwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r4j6ryUM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Cr0_Gr1UM2 8EF7xvwVC2z280aVCY1x0267AKxVW8Jr0_Cr1UM2kKe7AKxVWUXVWUAwAS0I0E0xvYzxvE 52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I 80ewAv7VC0I7IYx2IY67AKxVWUAVWUtwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCj c4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxkF7I0En4kS14v26r126r1DMxAIw28IcxkI7V AKI48JMxAIw28IcVCjz48v1sIEY20_WwCFx2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km07C2 67AKxVWUXVWUAwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI 8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUCVW8 JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r 1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBI daVFxhVjvjDU0xZFpf9x07jn73kUUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748258466219338594?= X-GMAIL-MSGID: =?utf-8?q?1748258466219338594?= Add the Loongson-2 thermal binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu Reviewed-by: Krzysztof Kozlowski --- .../thermal/loongson,ls2k-thermal.yaml | 43 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/loongson,ls2k-thermal.yaml diff --git a/Documentation/devicetree/bindings/thermal/loongson,ls2k-thermal.yaml b/Documentation/devicetree/bindings/thermal/loongson,ls2k-thermal.yaml new file mode 100644 index 000000000000..c0637e2d6d57 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/loongson,ls2k-thermal.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/loongson,ls2k-thermal.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Thermal sensors on Loongson-2 SoCs + +maintainers: + - zhanghongchen + - Yinbo Zhu + +properties: + compatible: + const: loongson,ls2k-thermal + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + '#thermal-sensor-cells': + const: 1 + +required: + - compatible + - reg + - interrupts + - '#thermal-sensor-cells' + +additionalProperties: false + +examples: + - | + #include + thermal: thermal-sensor@1fe01500 { + compatible = "loongson,ls2k-thermal"; + reg = <0x1fe01500 0x30>; + interrupt-parent = <&liointc0>; + interrupts = <7 IRQ_TYPE_LEVEL_LOW>; + #thermal-sensor-cells = <1>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 37ab451d9258..3aff8b8723b1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12015,6 +12015,7 @@ M: zhanghongchen M: Yinbo Zhu L: linux-pm@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/thermal/loongson,ls2k-thermal.yaml F: drivers/thermal/loongson2_thermal.c LSILOGIC MPT FUSION DRIVERS (FC/SAS/SPI)