From patchwork Mon Oct 24 10:58:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 8338 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp377829wru; Mon, 24 Oct 2022 04:01:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6nd2tmG4b46DaSeGl8t4Yv2gOszYQYDvXQw57I42z8OyCtFxw5i7q9ySzividApT7+AxfQ X-Received: by 2002:a05:6402:4303:b0:45c:cd3d:f5 with SMTP id m3-20020a056402430300b0045ccd3d00f5mr30019553edc.188.1666609318389; Mon, 24 Oct 2022 04:01:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666609318; cv=none; d=google.com; s=arc-20160816; b=wDKwDrZTBq9/2oyWhOtut4W1PUPUEeqh+bljCOR+QYvc2d+2H8ikY6g5kT4/O+CRp3 uL5Lwqidyz0R5MEa0KMwWDT7RxVsjWOhK2ZICIL6a0daAIajMU69CrILFRDqquBwHJIK soHVokJmOEC0QZHQATqNthq6H8ULuaXOkgvtqpFEx27xzHn7X+8Z5tBYk8V+iQ/JHGLs V+TmVafhAvNLuRvD7ZrLtJ08+uEhylaaq3t+UYi9Y4YhP2+MXuUFa7UPXyJLLvRzvE4e zDExq91gsj1jkiPoCA1G9kZx+QrkCuqUy0Ruueo9RoB3PUjUOhBX/OwL1cZyZ/+Zc7Om 32Vg== 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=SV3pR8PzPRnRDtOpnpn857o2M+wrJZ+oNSdv9WD8uI0=; b=dn1ysCQGI3EJz18p8BAw0Y+horNvwxWR1OgDkcmvlvBft4T99nWNFI+StTKD6EP3Y/ kNTs0xzTivbfh7k+yVNnysv3NQMSq51hpM9xiYuLgFTFgrrKr8d7IN35H4aveIbZ0vcV VBg+uHQSFxmsQMh2iQ1VKZ9mcKz5YJwF/ED0ongJcMj2TQeSPmGtPTgULn/U/AbrJ8Ku 66Sd4unmLFOo+JLMvQCGyGUztiG33+cW30G+Kd5bQJRc0gRgy/BoP+qwNsdrV51GuK9F Q7YAT5wP41zHXF/dvKwPSW4Bmr1QcRRS0fK1TNRRG2c4fizVipDk+dYCFVhAMvczMUDb Z1kQ== 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 sd19-20020a1709076e1300b00741688254f4si25542383ejc.163.2022.10.24.04.01.33; Mon, 24 Oct 2022 04:01:58 -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 S229861AbiJXLAF (ORCPT + 99 others); Mon, 24 Oct 2022 07:00:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230026AbiJXK7f (ORCPT ); Mon, 24 Oct 2022 06:59:35 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D6DCB6B17F; Mon, 24 Oct 2022 03:58:34 -0700 (PDT) Received: from loongson.cn (unknown [10.180.13.64]) by gateway (Coremail) with SMTP id _____8Dx_7fXb1Zj8BsCAA--.6479S3; Mon, 24 Oct 2022 18:58:31 +0800 (CST) Received: from localhost.localdomain (unknown [10.180.13.64]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxPuLRb1ZjIVIEAA--.16508S3; Mon, 24 Oct 2022 18:58:30 +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 v1 2/2] dt-bindings: soc: add loongson2 guts Date: Mon, 24 Oct 2022 18:58:22 +0800 Message-Id: <20221024105822.24514-2-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221024105822.24514-1-zhuyinbo@loongson.cn> References: <20221024105822.24514-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8DxPuLRb1ZjIVIEAA--.16508S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7uF15Xw4UCw17Xw1fKr4UArb_yoW8ZrWkpr nxC34rGrW0vr17Zrs3GFyIk3W5Cr93CasFgFZrJw1UKF9rA3W3Zw13KFyDZw43Ary8GFW2 9F97WrWUKF48CaUanT9S1TB71UUUUbJqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bf8Fc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUAVWUZwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Cr1j6rxdM2 8EF7xvwVC2z280aVCY1x0267AKxVWxJr0_GcWln4kS14v26r1q6r43M2AIxVAIcxkEcVAq 07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F40Ex7 xfMcIj6xIIjxv20xvE14v26r1q6rW5McIj6I8E87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Y z7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lc7CjxVAaw2AFwI0_Jw0_GFyl42xK82IYc2Ij64 vIr41l42xK82IY6x8ErcxFaVAv8VWrMxC20s026xCaFVCjc4AY6r1j6r4UMxCIbckI1I0E 14v26r1q6r43MI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4 CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26ryj6F1U MIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF 4lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsG vfC2KfnxnUUI43ZEXa7IU07PE3UUUUU== 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?1747566532344805752?= X-GMAIL-MSGID: =?utf-8?q?1747566532344805752?= Add the loongson2 soc guts driver binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu --- .../soc/loongson/loongson,ls2k-guts.yaml | 37 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-guts.yaml diff --git a/Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-guts.yaml b/Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-guts.yaml new file mode 100644 index 000000000000..2502f8aeb74d --- /dev/null +++ b/Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-guts.yaml @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/loongson/loongson,ls2k-guts.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Loongson2 GUTS driver. + +maintainers: + - Yinbo Zhu + +description: | + GUTS driver was to manage and access global utilities block. Initially + only reading SVR and registering soc device are supported. + +properties: + compatible: + const: loongson,ls2k-guts + + reg: + maxItems: 1 + + little-endian: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + guts: guts@1fe00000 { + compatible = "loongson,ls2k-guts"; + reg = <0x1fe00000 0x3ffc>; + little-endian; + }; diff --git a/MAINTAINERS b/MAINTAINERS index f032096d5251..d315237692ea 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11934,6 +11934,7 @@ LOONGSON2 SOC SERIES GUTS DRIVER M: Yinbo Zhu L: loongarch@lists.linux.dev S: Maintained +F: Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-guts.yaml F: drivers/soc/loongson/loongson2_guts.c F: include/linux/loongson/loongson2_guts.h