From patchwork Tue Feb 21 09:53:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 59842 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1776379wrn; Tue, 21 Feb 2023 02:00:48 -0800 (PST) X-Google-Smtp-Source: AK7set88dJdN1HKI2NTFpouHpG+OmFai116Sr2+3uEHi/GunkpQRFBzTCXJkZaAne0OIkDV6MqYu X-Received: by 2002:a17:907:6743:b0:87b:d402:95ac with SMTP id qm3-20020a170907674300b0087bd40295acmr17441958ejc.27.1676973648272; Tue, 21 Feb 2023 02:00:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676973648; cv=none; d=google.com; s=arc-20160816; b=PQInGAg92Q6+mCVpMicIFKlpPp8z8EYVwIsuKWCfFIfjCUNJl/yHf9OlZA+JP8u1fd gWxwzZ8pV3nOaVPF484HjuuBLTioX6OnSDEpvN1MA8++X9S2u9RUxCVbMNE6OUJnrQc0 zAde9odJZsHsTZedLTu2l5crZ/v+uj+mEjwmRiyZ59f1rZTmcoZv76GvHbtnTKFrE9X9 841E7POEvgP9PflgIncIK4rrmnG1wWyiVddqow0bED8YasWzQPEiJtvbL0DxDrw6cTmZ UqImapOT5EJrQlJy44L3hnXSd89swRuC2mVRqXfqmesCThQMynzrrUrfjPpO3nSzw27X S+RA== 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=gIGDhv5jGT/RtqFdm2HdG1A0DCdaxW+KPE2RPAcT4pk=; b=twpDeR9CVa1EgcxMBHoc52mJCTM3bqiTjZpVlAcwpuUJYyrALkmq10MfW2ZCBFcF/Y KRWc7uvb6IVkpdQ5Z8bP63c2QA9h73V5ZZ98Yo+O4hyGtcVRhbHleO48RVRxgdG2Ho4a orqn+fqrNAbt3WzFwat9UKiF8Aytw3Op6cSO7vFmvFNALv/6+YTd7h6BhK6oyVbgR2S7 ILDIP7JA58/A2dndNCLONgej1rHY16t6tkx/YKLAen6L9b8+kXrrW4MUwIDk3pAFT5KT 9DptGzqpkSpE+cOMHz0dsrG6Ye/DfgXyMq7JgDtj/0RkZCEO+FnpC/PfVEgT3YKhYQz/ gSTw== 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 n25-20020aa7c699000000b004ace5e81f9csi19145683edq.571.2023.02.21.02.00.25; Tue, 21 Feb 2023 02:00:48 -0800 (PST) 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 S234092AbjBUJ5G (ORCPT + 99 others); Tue, 21 Feb 2023 04:57:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234058AbjBUJ5E (ORCPT ); Tue, 21 Feb 2023 04:57:04 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3C0BF1BF4; Tue, 21 Feb 2023 01:57:02 -0800 (PST) Received: from loongson.cn (unknown [10.20.42.35]) by gateway (Coremail) with SMTP id _____8Bxedm9lPRj4BwDAA--.914S3; Tue, 21 Feb 2023 17:54:05 +0800 (CST) Received: from user-pc.202.106.0.20 (unknown [10.20.42.35]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxX+SzlPRj96g3AA--.1894S3; Tue, 21 Feb 2023 17:54:03 +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: Jianmin Lv , Liu Peibao , wanghongliang@loongson.cn, zhanghongchen , Yinbo Zhu , Krzysztof Kozlowski Subject: [PATCH v13 2/2] dt-bindings: thermal: add loongson-2 thermal Date: Tue, 21 Feb 2023 17:53:55 +0800 Message-Id: <20230221095355.9799-2-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230221095355.9799-1-zhuyinbo@loongson.cn> References: <20230221095355.9799-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8AxX+SzlPRj96g3AA--.1894S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoWxXF47tF4DGrW5XF45Kw18uFg_yoW5Zry5pF 47Cas5GrWvv3W7uanIkFyIyrsYvFnayFZrXr4xKw15tr98W34aqrW7K3WDu393Gr4jgFWU uFySkr4UCF1DArJanT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bfxFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUXVWUAwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJw A2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Cr1j6rxdM2kKe7AKxVWUXVWUAwAS0I0E0xvYzxvE 52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I 80ewAv7VC0I7IYx2IY67AKxVWUAVWUtwAv7VC2z280aVAFwI0_Gr0_Cr1lOx8S6xCaFVCj c4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxkF7I0En4kS14v26r126r1DMxAIw28IcxkI7V AKI48JMxAIw28IcVCjz48v1sIEY20_WwCFx2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km07C2 67AKxVWUXVWUAwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI 8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUCVW8 JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r 1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBI daVFxhVjvjDU0xZFpf9x07joKZXUUUUU= 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?1758434319982564619?= X-GMAIL-MSGID: =?utf-8?q?1758434319982564619?= Add the Loongson-2 thermal binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu Reviewed-by: Krzysztof Kozlowski --- Change in v13: 1. Drop the sensor id. Change in v12: 1. NO change, but other patch in this series of patches set has changes. Change in v11: 1. NO change, but other patch in this series of patches set has changes. 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 | 38 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 39 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..258046383179 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/loongson,ls2k-thermal.yaml @@ -0,0 +1,38 @@ +# 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 + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + thermal: thermal-sensor@1fe01500 { + compatible = "loongson,ls2k-thermal"; + reg = <0x1fe01500 0x30>; + interrupt-parent = <&liointc0>; + interrupts = <7 IRQ_TYPE_LEVEL_LOW>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 54e63f51ae6d..91ce05110f04 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12091,6 +12091,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)