From patchwork Thu Nov 3 08:34:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 14759 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp394241wru; Thu, 3 Nov 2022 01:36:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM64I3yqTVJDDVe+DG5gCFg7UprQkjkqtmnEleMjxWxhadZyXypT81t0x39YOT59T2rKTIY0 X-Received: by 2002:a17:90a:6c21:b0:212:f53b:fe22 with SMTP id x30-20020a17090a6c2100b00212f53bfe22mr47392522pjj.27.1667464591686; Thu, 03 Nov 2022 01:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667464591; cv=none; d=google.com; s=arc-20160816; b=GmoLVzuscIj07h77kScKxG/tDMWd+QZ6NCQUhMFquxyIOt0Kp0V06+Zgo5KA2BWcd/ iYau0LSmo5QL5O9Oe8cTs2tr5Q3DMI0a9CzHP4QCKEQ4AQ44aByAgM1LFd6UmdkZ5tXg QusrrrKP2Q8NE3eyoWXdx8QUoFizGafb8bYgcoRmXvDA17Jsk6IWEukwQN5/h3FzrQJH aK3YxotI+AcV4gLy67XBk0iO52DbW2iHLr41Ef/LrgAWYJzISGg9M3g8JgCjIf6EKLHq 6nZuTF1Y8AGSkb58b94WMnkdqtuuZ/lyu8xxwroOSeaFwo1J90f9sXtj9PszmbPA53FK mINg== 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=p8JCIu40VnB5yCrzRHjSd/jfO8sKzjR3boBp2H+iY4A=; b=yp2tqyeBcwKAWZfvoNqAxgGiRTaWS9S2M1//dL3yloUUT9NUO6Omeb7OvWopVlxo2W mW5evZBZKBHEfW2JtKY05k7hqSqRKZMAEeTbL8J+SHFay5GcvxsW9F9UFBuhBn3dAJK1 QjVofuULUKplfPYzRJHync8qKH1tNhs/aLtLJHlHD1mqNCQM7EmVqivKs/xGzC/Wd22a oI9K2ukkPbRiYj/5rV9bozzY87mjfnlKZNFEWURt+eYPydaFXH6dNWyBJGyIL0qtqrvV pC288H0EScFoY64PV0Gus/jPiwDOonAM1gSRDsOLeNjW8xhyMTSrSofpbdHVbPop8Fbo ZX3Q== 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 il14-20020a17090b164e00b0021328e7e073si569618pjb.165.2022.11.03.01.36.18; Thu, 03 Nov 2022 01:36:31 -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 S230500AbiKCIeX (ORCPT + 99 others); Thu, 3 Nov 2022 04:34:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230383AbiKCIeP (ORCPT ); Thu, 3 Nov 2022 04:34:15 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 063AF2705; Thu, 3 Nov 2022 01:34:13 -0700 (PDT) Received: from loongson.cn (unknown [10.180.13.64]) by gateway (Coremail) with SMTP id _____8BxXbcFfWNjzy8EAA--.5317S3; Thu, 03 Nov 2022 16:34:13 +0800 (CST) Received: from localhost.localdomain (unknown [10.180.13.64]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxV1cAfWNjsYcLAA--.15570S3; Thu, 03 Nov 2022 16:34:12 +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 v10 2/2] dt-bindings: thermal: add loongson-2 thermal Date: Thu, 3 Nov 2022 16:34:07 +0800 Message-Id: <20221103083407.4039-2-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221103083407.4039-1-zhuyinbo@loongson.cn> References: <20221103083407.4039-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8BxV1cAfWNjsYcLAA--.15570S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoWxXF47tF4rWr1DJr47trW5ZFb_yoW5CrW3pF 47C3WDJrWv9F17uanIkFyxArsYvFnYyFZrXrs7Kw15Kr98Xa4aq3y7K3WDu393Wr1jgFWU uFySkr4UCF1DArJanT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bSxFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUAVWUZwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r4j6ryUM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJw A2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr1j6F4UJwAaw2AFwI0_Jrv_JF1le2I262IYc4CY 6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrV C2j2WlYx0E2Ix0cI8IcVAFwI0_JF0_Jw1lYx0Ex4A2jsIE14v26F4j6r4UJwAm72CE4IkC 6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lc7CjxVAaw2AFwI0_JF0_Jw1l42xK82IYc2 Ij64vIr41l42xK82IY6x8ErcxFaVAv8VWrMxC20s026xCaFVCjc4AY6r1j6r4UMxCIbckI 1I0E14v26r1Y6r17MI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_Jr Wlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1I 6r4UMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr 0_JF4lIxAIcVC2z280aVAFwI0_Cr0_Gr1UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr1j6F4U JbIYCTnIWIevJa73UjIFyTuYvjxUzrcfUUUUU 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?1748463351823286347?= X-GMAIL-MSGID: =?utf-8?q?1748463351823286347?= Add the Loongson-2 thermal binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu Reviewed-by: Krzysztof Kozlowski --- Change in v10: 1. Add all history change log information. Change in v9: 1. NO change, but other patch in this series of patches set has changes. Change in v8: 1. Replace string Loongson2/loongson2 with Loongson-2/loongson-2. Change in v7: 1. Split the modification of patch 3 and merge it into this patch. Change in v6: 1. Fix the warning "reg: [[0, 534779136], [0, 48]] is too long" when compile the yaml. Change in v5: 1. Keep use same quotes "'" in all places. Change in v4: 1. Fixup the compatible. 2. Update the binding file name. 3. Include irq.h to fix compile issue. 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. Change in v2: 1. Add description and type about the "id". 2. Make the filename was based on compatible. .../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)