From patchwork Tue Jun 13 07:58:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 107175 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp379820vqr; Tue, 13 Jun 2023 01:14:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4dbwwzHD6l2j1V1Qv4mfnAL6l4U8PzynUeQ8HSy9OwbMxtciZPKimlstQ/m31MqRdPT5gj X-Received: by 2002:a05:6a20:7485:b0:116:df6e:c857 with SMTP id p5-20020a056a20748500b00116df6ec857mr14447006pzd.16.1686644048696; Tue, 13 Jun 2023 01:14:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686644048; cv=none; d=google.com; s=arc-20160816; b=0bkBQ8pfwOBXrm6MX71Jpn/rfFfC4lSzKNqMOwiLZmW/xUT8a3KRJQej1u2gz98qwv FjtQ4MrcfMnOyRO45UqzEopUWBFqvEIOiJzIxOZ+2ED5NQ13qfVjYEm5JxaS/w3OrbkL y2D/rXH620YAjUOv1KS8d7yPG2Dxj8iKLTarW2BjyUSrHih0Dj0qbOb/TtOH4ss2x39D hKhqQfabl+TvD814OFUn6fZ9G3MhODEc1FsiwspxGA3e5sYkhL1gDQ2qym4ZwC17Lp79 YBAS03kL4xmI3gEfgxFLh+8Gf68UOM6JFcq8KIMQ4U9TpFV8MErruFExIYrLs9GS6dqP z0IA== 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=vT7sqNyd00IpkwCRJVy41rO6ukobXwXgNfQMScftx0o=; b=a2KhvehUxQp+h3WQHBSLeqR2HXjG+x6iM9i9j2+xDlfUVJWLqsxpabVZo+VYgRAId4 MONtmgv983RS5zEjG2uTm9mzM+64FXZGglU5ulgLZEZBf7DUnZUSCIyN4Y0Te8OUpqCF IX/0xT0jodQL/jx7wvE539CzfV9Wt3XvlhzaYdQX/ICc5AFrWa3c6VrG/N+SMRUbt/5F CG9W6Pira57buRXvgORTkqfo2q3el5hbTNC0OWrV8HPK4+vmcMbxEItxDAhkdiNk2jxH bOvM+YZvCbNX9ScRCbY+LEbT01CBpJ9xbokZVmTSAMRAJ+XZV7edoq6Z1gnM0xFOdWug KExg== 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 z12-20020aa7948c000000b0063b5f25dd95si8113143pfk.391.2023.06.13.01.13.53; Tue, 13 Jun 2023 01:14:08 -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 S240804AbjFMIAi (ORCPT + 99 others); Tue, 13 Jun 2023 04:00:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241298AbjFMIAJ (ORCPT ); Tue, 13 Jun 2023 04:00:09 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 86E4B212C; Tue, 13 Jun 2023 00:59:05 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.35]) by gateway (Coremail) with SMTP id _____8CxNum0IYhkYIMEAA--.7571S3; Tue, 13 Jun 2023 15:58:44 +0800 (CST) Received: from user-pc.202.106.0.20 (unknown [10.20.42.35]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxluSsIYhkdKsYAA--.5184S3; Tue, 13 Jun 2023 15:58:42 +0800 (CST) From: Yinbo Zhu To: Mark Brown , Rob Herring , Krzysztof Kozlowski , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jianmin Lv , wanghongliang@loongson.cn, Liu Peibao , loongson-kernel@lists.loongnix.cn, Yinbo Zhu , Krzysztof Kozlowski Subject: [PATCH v13 1/2] spi: dt-bindings: add loongson spi Date: Tue, 13 Jun 2023 15:58:33 +0800 Message-Id: <20230613075834.5219-2-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230613075834.5219-1-zhuyinbo@loongson.cn> References: <20230613075834.5219-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8DxluSsIYhkdKsYAA--.5184S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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?1768574469923810193?= X-GMAIL-MSGID: =?utf-8?q?1768574469923810193?= Add the Loongson platform spi binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu Reviewed-by: Krzysztof Kozlowski --- .../bindings/spi/loongson,ls2k-spi.yaml | 46 +++++++++++++++++++ MAINTAINERS | 6 +++ 2 files changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/loongson,ls2k-spi.yaml diff --git a/Documentation/devicetree/bindings/spi/loongson,ls2k-spi.yaml b/Documentation/devicetree/bindings/spi/loongson,ls2k-spi.yaml new file mode 100644 index 000000000000..de9d32feadf5 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/loongson,ls2k-spi.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/loongson,ls2k-spi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Loongson SPI controller + +maintainers: + - Yinbo Zhu + +allOf: + - $ref: /schemas/spi/spi-controller.yaml# + +properties: + compatible: + oneOf: + - enum: + - loongson,ls2k1000-spi + - items: + - enum: + - loongson,ls2k0500-spi + - const: loongson,ls2k1000-spi + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - clocks + +unevaluatedProperties: false + +examples: + - | + spi0: spi@1fff0220{ + compatible = "loongson,ls2k1000-spi"; + reg = <0x1fff0220 0x10>; + clocks = <&clk 17>; + #address-cells = <1>; + #size-cells = <0>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index bc201627c2e0..5e604dddd87b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12186,6 +12186,12 @@ F: Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml F: drivers/clk/clk-loongson2.c F: include/dt-bindings/clock/loongson,ls2k-clk.h +LOONGSON SPI DRIVER +M: Yinbo Zhu +L: linux-spi@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/spi/loongson,ls2k-spi.yaml + LOONGSON-2 SOC SERIES GUTS DRIVER M: Yinbo Zhu L: loongarch@lists.linux.dev