From patchwork Fri Nov 4 02:48:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 15294 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp128922wru; Thu, 3 Nov 2022 19:51:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5IV39ymLXcURdD5DDI0CJHf+gDTEGGD38/IZo+s0Uv6uMIpBdOpsGuygWtPk3+CWIGw7L3 X-Received: by 2002:a05:6a00:410e:b0:56b:c95f:34dd with SMTP id bu14-20020a056a00410e00b0056bc95f34ddmr240544pfb.74.1667530274115; Thu, 03 Nov 2022 19:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667530274; cv=none; d=google.com; s=arc-20160816; b=fMvterGmNZHo55RHk5diM+3ezT/WQ0lGtnilscVovD6DtftVEkUlmDIAHJxptDjobt Yj1nl9+zDCYB8lNGOtVTvYiKHTsscd4b+PFDq5CsBFUlJFWtBMMvRqEXhg1TjE6BMDAD ihMMUVplyR0DTTIROLJdtLEvQfy6QDr3Df7LcYDkvG/Es6zCpdPsuS5ZBe5lYyZN3HPf ovn43rIbqY/jYD4uRzyAQiSR2PLHM3KSxGR+XFZR9ufFG8O+3cTmJmZpURIxB6zEL87W KYi9bt9GJZbKjIeokY+M0eldx0OfD5bpwnZXS6Dzr38tJtx4gTEl3MOzE36kKPz9X9uy CZVw== 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=9MgmTm+FdEJJoaUpEG2vsV49t7QK2IorWTf7AyPjkdM=; b=FPBng5SI7g2GpVFzmQOzOesFZ43lqaAM8NPeq0pVecXSTs9Nh9kliJepsV3UvKkHti 7YAdJOUK9udt2xeLdsAFbD/+LmpScKrIMdrtVFGYmvozEfdXs2fQvaMqWlE7YjCE/Mmw 14rOPnD8YMV6SYM01o6iACeWA8edyi77DeyfXUtoSVHfYXHrygkrlyLXoUd1ImT/9TnJ 5+6u3zTU8wPEaZXcshvmGbmE0KyQ1isg19wICIFFBQ7Sv66rMIi1009Y0m1e9CekxH/H 6Pu2GiFRAG1WC7JZLGK9/8D9Ojhz3JzEPumQyV4BYEISmJLTEHoDEaLs3+voM/piG1b6 SJsw== 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 w185-20020a6382c2000000b0046feb2759d8si3363863pgd.36.2022.11.03.19.51.01; Thu, 03 Nov 2022 19:51:14 -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 S230306AbiKDCsw (ORCPT + 99 others); Thu, 3 Nov 2022 22:48:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbiKDCsu (ORCPT ); Thu, 3 Nov 2022 22:48:50 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B1AB31FF; Thu, 3 Nov 2022 19:48:48 -0700 (PDT) Received: from loongson.cn (unknown [10.180.13.64]) by gateway (Coremail) with SMTP id _____8Axz7ePfWRjjGYEAA--.10240S3; Fri, 04 Nov 2022 10:48:47 +0800 (CST) Received: from localhost.localdomain (unknown [10.180.13.64]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxJleIfWRjAikNAA--.18979S3; Fri, 04 Nov 2022 10:48:46 +0800 (CST) From: Yinbo Zhu To: Rob Herring , Krzysztof Kozlowski , Arnd Bergmann , Hector Martin , Lubomir Rintel , Conor Dooley , Linus Walleij , Hitomi Hasegawa , Heiko Stuebner , Brian Norris , Sven Peter , loongarch@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, soc@kernel.org, Yinbo Zhu Cc: Rob Herring Subject: [PATCH v6 2/2] dt-bindings: soc: add loongson-2 chipid Date: Fri, 4 Nov 2022 10:48:35 +0800 Message-Id: <20221104024835.3570-2-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221104024835.3570-1-zhuyinbo@loongson.cn> References: <20221104024835.3570-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8CxJleIfWRjAikNAA--.18979S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoWxXF47tF4kJw17CF4UtF4xZwb_yoW5Gw4rpa 17Cr95KF4Iq3W7uanxKa4Ik3WrZF93Aa9FgFy2yw13KrWqgw1Fqw13K3WDZanxur17JayU uFyfKrW5WF4UCr7anT9S1TB71UUUUbJqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bfkFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUAVWUZwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJw A2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr1j6F4UJwAaw2AFwI0_Jw0_GFyle2I262IYc4CY 6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrV C2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_WrylYx0Ex4A2jsIE14v26r4j6F4UMcvjeVCFs4IE 7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY1x0262kKe7AKxVWUtVW8ZwCF04k20xvY0x 0EwIxGrwCF04k20xvE74AGY7Cv6cx26rWl4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1l4IxYO2xF xVAFwI0_Jw0_GFylx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWw C2zVAF1VAY17CE14v26r4a6rW5MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Xr0_ Ar1lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJV WUCwCI42IY6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIY CTnIWIevJa73UjIFyTuYvjxUIbyCDUUUU 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?1748532224678981006?= X-GMAIL-MSGID: =?utf-8?q?1748532224678981006?= Add the Loongson-2 SoC chipid binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu Reviewed-by: Rob Herring --- Change in v6: 1. NO change, but other patch in this series of patches set has changes. Change in v5: 1. Add all history change log information. 2. Add reviewed-by information. Change in v4: 1. NO change, but other patch in this series of patches set has changes. Change in v3: 1. Drop "driver" and describe instead what is GUTS, including its acronym. 2. Add desciption about the SoC register. 3. Fixup dts node name. 4. Replace string loongson2/Loongson2 with loongson-2/Loongson-2 in binding file and commit message. Change in v2: 1. NO change, but other patch in this series of patches set has changes. .../bindings/hwinfo/loongson,ls2k-chipid.yaml | 38 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwinfo/loongson,ls2k-chipid.yaml diff --git a/Documentation/devicetree/bindings/hwinfo/loongson,ls2k-chipid.yaml b/Documentation/devicetree/bindings/hwinfo/loongson,ls2k-chipid.yaml new file mode 100644 index 000000000000..9d0c36ec1982 --- /dev/null +++ b/Documentation/devicetree/bindings/hwinfo/loongson,ls2k-chipid.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwinfo/loongson,ls2k-chipid.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Loongson-2 SoC ChipID + +maintainers: + - Yinbo Zhu + +description: | + Loongson-2 SoC contains many groups of global utilities register + blocks, of which the ChipID group registers record SoC version, + feature, vendor and id information. + +properties: + compatible: + const: loongson,ls2k-chipid + + reg: + maxItems: 1 + + little-endian: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + chipid: chipid@1fe00000 { + compatible = "loongson,ls2k-chipid"; + reg = <0x1fe00000 0x3ffc>; + little-endian; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 20ce056ae207..916b2d9cffc0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12045,6 +12045,7 @@ LOONGSON-2 SOC SERIES GUTS DRIVER M: Yinbo Zhu L: loongarch@lists.linux.dev S: Maintained +F: Documentation/devicetree/bindings/hwinfo/loongson,ls2k-chipid.yaml F: drivers/soc/loongson/loongson2_guts.c LSILOGIC MPT FUSION DRIVERS (FC/SAS/SPI)