From patchwork Fri Mar 31 03:29:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 77519 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp294158vqo; Thu, 30 Mar 2023 20:34:17 -0700 (PDT) X-Google-Smtp-Source: AKy350bJWc0O6WzT4iSnbxUf51RcjRumjqzwgSjXEd58vOxwQSEfMTq11G4/nu86hF4ayROZPm7R X-Received: by 2002:a17:907:8c83:b0:8b1:7ae9:647 with SMTP id td3-20020a1709078c8300b008b17ae90647mr26687088ejc.76.1680233656962; Thu, 30 Mar 2023 20:34:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680233656; cv=none; d=google.com; s=arc-20160816; b=mkKCVBTvab/a3TJc7wXECptqumjTH8oJZqpRCdyvii8Cv2v9XP5JU8TLRhad3zB+Ga hl+OeOrREck3rteKGGZs2CEKF98sVudeVIyziPWBsuJh6N2/J0ME4s8ygKGFlUl1dic4 W9TOBlVzen/h5t28xB1pNQCoNbJ69M3kKwX+KEJt94uMtzGL906KRh/+dQPnrPFER7qt W+Ge6diIQoQgVhlUClqk/h3h8ZSM5V6gOb+RpeEzgcg7s2HTwbPe7pzPFhL2ChLaCJbS PF43Z1K3d7mMdpJHR7Zww34DSehAjneYO9KhFJ/WhPt2lEvX5ZsIOG7B0/JHuc3x2bmg UXlw== 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=wYcNSeU8F9CVoEdBC9j/Z+vIOKKIc/cMSOvEBT48lV0=; b=PpLuZGtKvELxU+xy0kKbB+bJvunSSCM2nGDK1acUfabaps5DNKGFrDZl8bG8E3w/j8 LwtYiyHXBnA8nWobD1ehZlGh43L8lVuNpndCMMdl/z/MalfJBuggek8X4h9YxoY7rspu W97ra8bqqbFcvx51Vbi8bL4bYzJCGMWtBK2lzGTH65FtuAkhDmv4RWbQZx6aoibaK0qf GL0Cl4E26R+PA+Bw2ajNj+KyKMmDAseeyC17odOxnKOqQEJx4uMuf+hmwJgELzQoX/EZ 4WUkCos/7lzoqojN/7Raz3He/4fxVsd1ZdlAoZmJie86v7x94DxO014wk0FklkjCSxxb WTpg== 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 h18-20020a17090619d200b009448c3fc906si1103251ejd.689.2023.03.30.20.33.52; Thu, 30 Mar 2023 20:34:16 -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 S229744AbjCaD3X (ORCPT + 99 others); Thu, 30 Mar 2023 23:29:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229647AbjCaD3V (ORCPT ); Thu, 30 Mar 2023 23:29:21 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BCB7ACA18; Thu, 30 Mar 2023 20:29:19 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.35]) by gateway (Coremail) with SMTP id _____8AxrtqOUyZkpc0UAA--.20412S3; Fri, 31 Mar 2023 11:29:18 +0800 (CST) Received: from user-pc.202.106.0.20 (unknown [10.20.42.35]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxB72GUyZkkL4RAA--.12816S3; Fri, 31 Mar 2023 11:29:16 +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 Subject: [PATCH v5 1/2] dt-bindings: spi: add loongson spi Date: Fri, 31 Mar 2023 11:29:08 +0800 Message-Id: <20230331032909.7720-2-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230331032909.7720-1-zhuyinbo@loongson.cn> References: <20230331032909.7720-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8DxB72GUyZkkL4RAA--.12816S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7Cr43Aw47ur17Zry7CFWUtwb_yoW8uF4xpF nrCrs3GF4IqF17A393Ka48Cw4rZr95CFnFgFW2yw12kF98K3Z8Za13Kr1UZanrCF48XFW7 ZF92kr45K3W8GF7anT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU b38Fc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUXVWUAwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r4j6ryUM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJw A2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr1j6F4UJwAaw2AFwI0_Jrv_JF1le2I262IYc4CY 6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrV C2j2WlYx0E2Ix0cI8IcVAFwI0_JF0_Jw1lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE 7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxGrwCF04k20xvE74AGY7 Cv6cx26rWl4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1l4IxYO2xFxVAFwI0_Jrv_JF1lx2IqxVAq x4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r 43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_JFI_Gr1lIxAIcVC0I7IYx2IY6xkF 7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxV WUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjxU 7K9aDUUUU X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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?1761852687318982602?= X-GMAIL-MSGID: =?utf-8?q?1761852687318982602?= Add the Loongson platform spi binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu --- .../bindings/spi/loongson,ls-spi.yaml | 43 +++++++++++++++++++ MAINTAINERS | 6 +++ 2 files changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/loongson,ls-spi.yaml diff --git a/Documentation/devicetree/bindings/spi/loongson,ls-spi.yaml b/Documentation/devicetree/bindings/spi/loongson,ls-spi.yaml new file mode 100644 index 000000000000..6d62945330ab --- /dev/null +++ b/Documentation/devicetree/bindings/spi/loongson,ls-spi.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/loongson,ls-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: + enum: + - loongson,ls2k-spi + - loongson,ls7a-spi + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - clocks + +unevaluatedProperties: false + +examples: + - | + #include + spi0: spi@1fff0220{ + compatible = "loongson,ls2k-spi"; + reg = <0x1fff0220 0x10>; + clocks = <&clk 17>; + #address-cells = <1>; + #size-cells = <0>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 25a0981c74b6..9bc2158c735d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12157,6 +12157,12 @@ S: Maintained F: Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml 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,ls-spi.yaml + LSILOGIC MPT FUSION DRIVERS (FC/SAS/SPI) M: Sathya Prakash M: Sreekanth Reddy