From patchwork Mon Nov 14 02:47:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 19525 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1931434wru; Sun, 13 Nov 2022 18:54:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf7R6edHI12lJq9lY1RsvpWFUMelQ+Nf6T2VoIR56s2UQSaUWAKa0DS+b6zxiCYaTng2xlOT X-Received: by 2002:aa7:d7c7:0:b0:462:3340:757b with SMTP id e7-20020aa7d7c7000000b004623340757bmr9514356eds.308.1668394493759; Sun, 13 Nov 2022 18:54:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668394493; cv=none; d=google.com; s=arc-20160816; b=u7rj8RKi84IwMalDC61AicTVKkexJjpkbMbfUmsZB8Up5aJSP5rw8T5Jcyvg5GOao0 wzD9pPhzYXdF289t8shRlb/uU2ZtNV5Uf9W8N8etUulgiuBmZAFUN2XARECfhGRHi9/b c2KI0nlzbeynpxjBFDng2DUpr170qDNA5OUVGxm7oJax59IQxCAbCgcs1bbLg8UtX5cA DbmoOpb8NPx/e0f9Hfcp1tsrB8Dw18MyuVU5e6HT1gZa/z5wgp8OmVoaUXjExvii6hee Lv/y17d+gUfysaSjvXVICtnF0ybmertTzgllPnMl+UxDQ93j0PkLwZCRgf6gT/lWJGof DDyw== 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=bnjcJLfaRHEBaeNVvIGxklgtslSsX1igkWnyhbsn0Y0=; b=z5dTzuDzpe8xB256Bvk36G/hV8qkq/6KMetH45XOsTkgnSaOKMKOg69d01RKRFZSAL iLkgVeSSs5CV+0qqGPfsRKbiJnU6L1t/JjEeC9CRK/40foTILZ8lWGX4IoKR8Q8OnyzI hpg05v54dO9Sb3iRBaC389t2eqmp6pDQir6XooDvdHhw/VBsJunIuk6EAp6x5sbNUxb2 d34mHAXWHoiZ1NdHUhpwXg6En/yRxLfeOSH84xjTKWXjNAqqkT1GKnNRW4USE9g6rSCB fS8rp9hYwG9tH0DNrGO88VntTWj1oYqAJiu5bxheFY9wyKVO+csvIrmxWCxhJALkWj8K wM1A== 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 cb13-20020a0564020b6d00b00460ff7dc801si7425302edb.445.2022.11.13.18.54.29; Sun, 13 Nov 2022 18:54:53 -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 S235687AbiKNCr1 (ORCPT + 99 others); Sun, 13 Nov 2022 21:47:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235602AbiKNCrX (ORCPT ); Sun, 13 Nov 2022 21:47:23 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BF60711C16; Sun, 13 Nov 2022 18:47:21 -0800 (PST) Received: from loongson.cn (unknown [10.180.13.64]) by gateway (Coremail) with SMTP id _____8Axbdo4rHFj+McGAA--.20561S3; Mon, 14 Nov 2022 10:47:20 +0800 (CST) Received: from localhost.localdomain (unknown [10.180.13.64]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dxr+AvrHFjMDkSAA--.49472S3; Mon, 14 Nov 2022 10:47:19 +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 v12 2/2] dt-bindings: thermal: add loongson-2 thermal Date: Mon, 14 Nov 2022 10:47:09 +0800 Message-Id: <20221114024709.7975-2-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221114024709.7975-1-zhuyinbo@loongson.cn> References: <20221114024709.7975-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Dxr+AvrHFjMDkSAA--.49472S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoWxXF47tF4rWr1DJr47trW5ZFb_yoW5ZFWDpF 47C3Z8Jrs2vF17uanIkFyIyrsYvFnYyFZrXr4xKw15tr98X343X3y7K3WDu393Gr1jgFWU uFySkr4UCF1DArJanT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bfkFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUXVWUAwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r4j6ryUM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJw A2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr1j6F4UJwAaw2AFwI0_Jrv_JF1le2I262IYc4CY 6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrV C2j2WlYx0E2Ix0cI8IcVAFwI0_JF0_Jw1lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE 7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY1x0262kKe7AKxVWUAVWUtwCF04k20xvY0x 0EwIxGrwCF04k20xvE74AGY7Cv6cx26rWl4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1l4IxYO2xF xVAFwI0_Jrv_JF1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWw C2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_JFI_ Gr1lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJV WUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIY CTnIWIevJa73UjIFyTuYvjxU2knYUUUUU 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?1749438424760981243?= X-GMAIL-MSGID: =?utf-8?q?1749438424760981243?= Add the Loongson-2 thermal binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu Reviewed-by: Krzysztof Kozlowski --- 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 | 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 0d867573fe4c..182129c73ed5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12018,6 +12018,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)