From patchwork Wed Nov 2 03:55:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 14019 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp3385082wru; Tue, 1 Nov 2022 21:15:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM72TAsDAHggpQ1UCGOYc7fJ1SJU75NrTs1zX9iAj3ufiZz/rgPxyFMBs94rYa2rpeu+F/Uc X-Received: by 2002:a17:90b:3011:b0:213:deb7:d47f with SMTP id hg17-20020a17090b301100b00213deb7d47fmr14446334pjb.136.1667362515613; Tue, 01 Nov 2022 21:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667362515; cv=none; d=google.com; s=arc-20160816; b=XCBlpiUh3e8f5Zn+vUrLW3ww2Pwanur7nHQd9VTv0zXPzsPdOikUlvIoHXS99eX42n Po2Crj3PeMRH4/daThEeGVAWv/HV2rZviug0ef+H08Gw6yAr0VtCiOmfpkrWewk/O6/V TnSLoo1LfuieWHAYLn0d2nc2+BNITNrzjKNfEq0VPcumCTLHchP/+54jgkJ+FcUkILZa huB2H/zJnhE4KPcpIqMGbNWDkS82R/KiQRXlMS9sFEevwrU6bxVegpYDA6R5rLfA2Roe 9MdXmlaQVuUmPUzL5ZM6JEprXKK7SV+q4TVh7uq9CvLLFXJBx/QjcD/GXNHHsJmHlJg5 rQNw== 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:to:from; bh=LwHrJv1/QO1Zza/DsGJJbuuYs+y0g3J5F9yENVqYGCU=; b=t8AI7kSFOyoLjQS2hcDR8r8j+e1vxr6MDZZTtyTEQ+/9f2cWUDexeHBJrA4Xcj1C+u RcTqR1ybw+uwJ+EkFO9MrLVJYzfjfi87mIqjIV3uWs0wRh23Xr4t2PQXh/zFlq9nBKkp B1K3iojmF7U/mysxmfmCb66dFN02I+6P26VEVY+pup9Jf+XvNoNkTBU2ofNGJV+zgBoB ClqIGzajnbjVytGreAQajCtMvA2GRgZ9rLJECbCuU8f5lVVLKwEKgMbqe6dGYzD5MEgv MqcoR8zIH9hRBiLaYqEW4egD5Nxcx3Y2rQcky9FOt4lGsGNEg1H+rKn21DNnVQngckQB 69ww== 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 w2-20020a634742000000b0043417e65cb7si15028557pgk.347.2022.11.01.21.15.03; Tue, 01 Nov 2022 21:15:15 -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 S229770AbiKBDz3 (ORCPT + 99 others); Tue, 1 Nov 2022 23:55:29 -0400 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 S229516AbiKBDz1 (ORCPT ); Tue, 1 Nov 2022 23:55:27 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 43B3E23E93; Tue, 1 Nov 2022 20:55:25 -0700 (PDT) Received: from loongson.cn (unknown [10.180.13.64]) by gateway (Coremail) with SMTP id _____8BxHdks6mFjgu4DAA--.13866S3; Wed, 02 Nov 2022 11:55:24 +0800 (CST) Received: from localhost.localdomain (unknown [10.180.13.64]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dxd1cl6mFjHqgJAA--.11222S3; Wed, 02 Nov 2022 11:55:23 +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, Yinbo Zhu Subject: [PATCH v4 2/2] dt-bindings: soc: add loongson-2 chipid Date: Wed, 2 Nov 2022 11:55:11 +0800 Message-Id: <20221102035511.19972-2-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221102035511.19972-1-zhuyinbo@loongson.cn> References: <20221102035511.19972-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Dxd1cl6mFjHqgJAA--.11222S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7uF15Xw48ZF17Kr4ktF1DKFg_yoW8ZF45pa 17Cr95KF4xK3W7uws3Ga4Ik3WrZrykAanFgF9Fvw17KrWDW3WFvw13K3WDZa17ur1UJayU uFWfKrWYgF48Cr7anT9S1TB71UUUUbJqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bSkFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUAVWUZwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26F1j6w1UM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr 1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4UJVWxJr1ln4kS14v26r1q6r43M2AIxVAIcxkE cVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F4 0Ex7xfMcIj6xIIjxv20xvE14v26rWY6Fy7McIj6I8E87Iv67AKxVWxJVW8Jr1lOx8S6xCa FVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxkF7I0En4kS14v26r1q6r43MxAIw28Icx kI7VAKI48JMxAIw28IcVCjz48v1sIEY20_WwCFx2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km 07C267AKxVWUtVW8ZwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r 1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVW7 JVWDJwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Cr0_Gr1UMIIF0xvE42xK8VAvwI8IcIk0rV WUJVWUCwCI42IY6I8E87Iv67AKxVWxJVW8Jr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8 JrUvcSsGvfC2KfnxnUUI43ZEXa7IU0v38UUUUUU== 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?1748356317039794607?= X-GMAIL-MSGID: =?utf-8?q?1748356317039794607?= Add the Loongson-2 SoC chipid binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu Reviewed-by: Rob Herring --- .../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)