Message ID | 20230328112210.23089-2-zhuyinbo@loongson.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2137081vqo; Tue, 28 Mar 2023 04:24:25 -0700 (PDT) X-Google-Smtp-Source: AK7set97zgy2rQQzGKCx3kyEg06ZJoQGmI2ksijcXblt3PffUmyNu5HlPG9t5114QJvvLvUgrq2H X-Received: by 2002:a05:6402:1c95:b0:4af:7bdc:188e with SMTP id cy21-20020a0564021c9500b004af7bdc188emr23500357edb.16.1680002664985; Tue, 28 Mar 2023 04:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680002664; cv=none; d=google.com; s=arc-20160816; b=C1tksI3fJsAW6mjJsAhGS3J/F3ZYJA0XEw8oo9ty2J+a4fSBko86ATpxYssgXpCwoe LCLkc/k+q+tT6grdjY/BJGc0OkJS4xAr8oX3F+H5RJV/DHTHX1FZOU9w1sIamTULS2r+ 2h740GeXFtPn7QlxDIMHAL53ZKrKsgCMSnLVobFcvqLtYnGG9Lz7FxFnwXmxkdwowHew nBY9TAzVSOTZse+U3mXG12Vvc5SdPywnugZxq8pqlXwGav4/nfqEcOLTxaLc3y8d9+10 uwiVadKbeQJZyOB6FvYOrjen6SFjtkGDPMf9VTJ0iI4kzMhLnK2T3mehVJRF57zzCK17 Dw2g== 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=jxDoZ4ySoAOH7KV5INEstX0S8DCQfN69GiQgx4LzWzU=; b=duHNfc3NiifTbzI2SB5y0t1aje1MPWZvFjrW6mhfwBs55JHnHR3VJ/gFTAIUs0z4VV f7RQK/JE6twzTRhfF9eucYL2wplmbaw7mRZGTA8Am87VZ3SpC+PKrW7RAmf49jIhPshI KufHT42/kXdMk3yhRGN9/u1RCEeTQOi07aoDz75HB5hO1OpFR6FBup3BI/XlbBDPdTs/ YOwlktWFdsV2cv+ns/KfDMrFAbMqnT7Gcu1BFZF+J6zbzncDFuabTjdM2kLW6hK3YWeN 1qWsqUzNkDOgrQVlZOBUipG5BEJ6hy7i88V4k32EQgTEvKSZYZUCBNG1IVXkBlec/aow x+EQ== 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 e9-20020a056402104900b004ad06322427si15104448edu.9.2023.03.28.04.24.01; Tue, 28 Mar 2023 04:24:24 -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 S230400AbjC1LWh (ORCPT <rfc822;kartikey406@gmail.com> + 99 others); Tue, 28 Mar 2023 07:22:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231126AbjC1LWf (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 28 Mar 2023 07:22:35 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7690110FA; Tue, 28 Mar 2023 04:22:23 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.35]) by gateway (Coremail) with SMTP id _____8DxE0zuzSJkOA8TAA--.29399S3; Tue, 28 Mar 2023 19:22:22 +0800 (CST) Received: from user-pc.202.106.0.20 (unknown [10.20.42.35]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxOL3kzSJkalgPAA--.9160S3; Tue, 28 Mar 2023 19:22:20 +0800 (CST) From: Yinbo Zhu <zhuyinbo@loongson.cn> To: Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jianmin Lv <lvjianmin@loongson.cn>, wanghongliang@loongson.cn, Liu Peibao <liupeibao@loongson.cn>, loongson-kernel@lists.loongnix.cn, Yinbo Zhu <zhuyinbo@loongson.cn> Subject: [PATCH v4 1/2] dt-bindings: spi: add loongson spi Date: Tue, 28 Mar 2023 19:22:09 +0800 Message-Id: <20230328112210.23089-2-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230328112210.23089-1-zhuyinbo@loongson.cn> References: <20230328112210.23089-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8CxOL3kzSJkalgPAA--.9160S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7Cr43Aw47ur17Zry7CFWUtwb_yoW8uFW8pF nrCrs7GFWIqF17Aws3Ka48Cw4rZr95C3ZrWFW2yw1jkas8K3Z8Za13Kr1UZanrAF18XFW7 ZF92kr4UK3WUXF7anT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bVAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUXVWUAwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJw A2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Cr1j6rxdM2kKe7AKxVWUXVWUAwAS0I0E0xvYzxvE 52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I 80ewAv7VC0I7IYx2IY67AKxVWUAVWUtwAv7VC2z280aVAFwI0_Gr0_Cr1lOx8S6xCaFVCj c4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxAIw28IcxkI7VAKI48JMxAIw28IcVCjz48v1s IEY20_WwCFx2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km07C267AKxVWUXVWUAwC20s026c02 F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GF ylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUCVW8JwCI42IY6xIIjxv20xvEc7Cj xVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r 4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jY zuAUUUUU= 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761610474773211608?= X-GMAIL-MSGID: =?utf-8?q?1761610474773211608?= |
Series |
spi: loongson: add bus driver for the loongson spi
|
|
Commit Message
Yinbo Zhu
March 28, 2023, 11:22 a.m. UTC
Add the Loongson platform spi binding with DT schema format using
json-schema.
Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn>
---
.../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
Comments
This patch need depend on https://lore.kernel.org/all/20230323025229.2971-1-zhuyinbo@loongson.cn/ then the spi yaml file will build successful, if no this clock patch that spi yaml will build fail, so please test it that base on above clock patch. 在 2023/3/28 下午7:22, Yinbo Zhu 写道: > Add the Loongson platform spi binding with DT schema format using > json-schema. > > Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> > --- > .../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..ee80049b1258 > --- /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 <zhuyinbo@loongson.cn> > + > +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 <dt-bindings/clock/loongson,ls2k-clk.h> > + spi0: spi@1fff0220{ > + compatible = "loongson,ls2k-spi"; > + reg = <0x1fff0220 0x10>; > + clocks = <&clk LOONGSON2_BOOT_CLK>; > + #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 <zhuyinbo@loongson.cn> > +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 <sathya.prakash@broadcom.com> > M: Sreekanth Reddy <sreekanth.reddy@broadcom.com> >
On Tue, 28 Mar 2023 19:22:09 +0800, Yinbo Zhu wrote: > Add the Loongson platform spi binding with DT schema format using > json-schema. > > Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> > --- > .../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 > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13): yamllint warnings/errors: dtschema/dtc warnings/errors: Error: Documentation/devicetree/bindings/spi/loongson,ls-spi.example.dts:22.28-29 syntax error FATAL ERROR: Unable to parse input tree make[1]: *** [scripts/Makefile.lib:419: Documentation/devicetree/bindings/spi/loongson,ls-spi.example.dtb] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:1512: dt_binding_check] Error 2 doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230328112210.23089-2-zhuyinbo@loongson.cn The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
This patch need depend on https://lore.kernel.org/all/20230323025229.2971-1-zhuyinbo@loongson.cn/ then the spi yaml file will build successful. That changelog had record it. 在 2023/3/28 下午8:57, Rob Herring 写道: > > On Tue, 28 Mar 2023 19:22:09 +0800, Yinbo Zhu wrote: >> Add the Loongson platform spi binding with DT schema format using >> json-schema. >> >> Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> >> --- >> .../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 >> > > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' > on your patch (DT_CHECKER_FLAGS is new in v5.13): > > yamllint warnings/errors: > > dtschema/dtc warnings/errors: > Error: Documentation/devicetree/bindings/spi/loongson,ls-spi.example.dts:22.28-29 syntax error > FATAL ERROR: Unable to parse input tree > make[1]: *** [scripts/Makefile.lib:419: Documentation/devicetree/bindings/spi/loongson,ls-spi.example.dtb] Error 1 > make[1]: *** Waiting for unfinished jobs.... > make: *** [Makefile:1512: dt_binding_check] Error 2 > > doc reference errors (make refcheckdocs): > > See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230328112210.23089-2-zhuyinbo@loongson.cn > > The base for the series is generally the latest rc1. A different dependency > should be noted in *this* patch. > > If you already ran 'make dt_binding_check' and didn't see the above > error(s), then make sure 'yamllint' is installed and dt-schema is up to > date: > > pip3 install dtschema --upgrade > > Please check and re-submit after running the above command yourself. Note > that DT_SCHEMA_FILES can be set to your schema file to speed up checking > your schema. However, it must be unset to test all examples with your schema. >
On 29/03/2023 03:12, zhuyinbo wrote: > This patch need depend on > https://lore.kernel.org/all/20230323025229.2971-1-zhuyinbo@loongson.cn/ > then the spi yaml file will build successful. That changelog had record it. Thus it cannot be merged now. Do not resend it till dependency hits mainline (since you decided not to go with Rob's advice). Best regards, Krzysztof
On 28/03/2023 13:22, Yinbo Zhu wrote: > Add the Loongson platform spi binding with DT schema format using > json-schema. > > Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> > --- > .../bindings/spi/loongson,ls-spi.yaml | 43 +++++++++++++++++++ > MAINTAINERS | 6 +++ You decided not to use Rob's advice, thus this patch cannot be applied now. Wait for the merge window to finish (so dependency is in mainline) and send the patch then. Not earlier. Best regards, Krzysztof
在 2023/3/29 下午4:06, Krzysztof Kozlowski 写道: > On 28/03/2023 13:22, Yinbo Zhu wrote: >> Add the Loongson platform spi binding with DT schema format using >> json-schema. >> >> Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> >> --- >> .../bindings/spi/loongson,ls-spi.yaml | 43 +++++++++++++++++++ >> MAINTAINERS | 6 +++ > > You decided not to use Rob's advice, thus this patch cannot be applied > now. Wait for the merge window to finish (so dependency is in mainline) > and send the patch then. Not earlier. > > Best regards, > Krzysztof > I'm sorry, I didn't understand Rob's suggestion in fact. I'll ask Rob what I should do later. If it did really no good solution, I will postpone my patch until the dependent patch is merged into the mainline. Thanks.
在 2023/3/29 下午4:05, Krzysztof Kozlowski 写道: > On 29/03/2023 03:12, zhuyinbo wrote: >> This patch need depend on >> https://lore.kernel.org/all/20230323025229.2971-1-zhuyinbo@loongson.cn/ >> then the spi yaml file will build successful. That changelog had record it. > > Thus it cannot be merged now. Do not resend it till dependency hits > mainline (since you decided not to go with Rob's advice). > > Best regards, > Krzysztof > okay, I got it. Thanks.
在 2023/3/28 下午8:57, Rob Herring 写道: > > On Tue, 28 Mar 2023 19:22:09 +0800, Yinbo Zhu wrote: >> Add the Loongson platform spi binding with DT schema format using >> json-schema. >> >> Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> >> --- >> .../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 >> > > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' > on your patch (DT_CHECKER_FLAGS is new in v5.13): > > yamllint warnings/errors: > > dtschema/dtc warnings/errors: > Error: Documentation/devicetree/bindings/spi/loongson,ls-spi.example.dts:22.28-29 syntax error > FATAL ERROR: Unable to parse input tree > make[1]: *** [scripts/Makefile.lib:419: Documentation/devicetree/bindings/spi/loongson,ls-spi.example.dtb] Error 1 > make[1]: *** Waiting for unfinished jobs.... > make: *** [Makefile:1512: dt_binding_check] Error 2 > > doc reference errors (make refcheckdocs): > > See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230328112210.23089-2-zhuyinbo@loongson.cn > > The base for the series is generally the latest rc1. A different dependency > should be noted in *this* patch. Hi Rob, I'm sorry, actually, I don't know what the specific operation I should do when I received the check warning from your bot. Does it means that I should add dependency note into this patch's changelog ? or something else, I really don't know. Actually, I'm always bothered by these things that how to resolve the dependency issue for two dependent patches that do not belong to the same series. Thanks. > > If you already ran 'make dt_binding_check' and didn't see the above > error(s), then make sure 'yamllint' is installed and dt-schema is up to > date: > > pip3 install dtschema --upgrade > > Please check and re-submit after running the above command yourself. Note > that DT_SCHEMA_FILES can be set to your schema file to speed up checking > your schema. However, it must be unset to test all examples with your schema. >
On 29/03/2023 12:39, zhuyinbo wrote: > > > 在 2023/3/28 下午8:57, Rob Herring 写道: >> >> On Tue, 28 Mar 2023 19:22:09 +0800, Yinbo Zhu wrote: >>> Add the Loongson platform spi binding with DT schema format using >>> json-schema. >>> >>> Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> >>> --- >>> .../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 >>> >> >> My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' >> on your patch (DT_CHECKER_FLAGS is new in v5.13): >> >> yamllint warnings/errors: >> >> dtschema/dtc warnings/errors: >> Error: Documentation/devicetree/bindings/spi/loongson,ls-spi.example.dts:22.28-29 syntax error >> FATAL ERROR: Unable to parse input tree >> make[1]: *** [scripts/Makefile.lib:419: Documentation/devicetree/bindings/spi/loongson,ls-spi.example.dtb] Error 1 >> make[1]: *** Waiting for unfinished jobs.... >> make: *** [Makefile:1512: dt_binding_check] Error 2 >> >> doc reference errors (make refcheckdocs): >> >> See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230328112210.23089-2-zhuyinbo@loongson.cn >> >> The base for the series is generally the latest rc1. A different dependency >> should be noted in *this* patch. > Hi Rob, > > I'm sorry, actually, I don't know what the specific operation I should > do when I received the check warning > from your bot. Does it means that I should add dependency note into this > patch's changelog ? Yes, this is explicitly mentioned in the sentence you quoted. > or something else, I really > don't know. Actually, I'm always bothered by these things that how to > resolve the dependency issue for two > dependent patches that do not belong to the same series. Another approach, as Rob suggested last time, would be to just get rid of the dependency and open-code the clock IDs... Best regards, Krzysztof
在 2023/3/29 下午7:37, Krzysztof Kozlowski 写道: > On 29/03/2023 12:39, zhuyinbo wrote: >> >> >> 在 2023/3/28 下午8:57, Rob Herring 写道: >>> >>> On Tue, 28 Mar 2023 19:22:09 +0800, Yinbo Zhu wrote: >>>> Add the Loongson platform spi binding with DT schema format using >>>> json-schema. >>>> >>>> Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> >>>> --- >>>> .../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 >>>> >>> >>> My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' >>> on your patch (DT_CHECKER_FLAGS is new in v5.13): >>> >>> yamllint warnings/errors: >>> >>> dtschema/dtc warnings/errors: >>> Error: Documentation/devicetree/bindings/spi/loongson,ls-spi.example.dts:22.28-29 syntax error >>> FATAL ERROR: Unable to parse input tree >>> make[1]: *** [scripts/Makefile.lib:419: Documentation/devicetree/bindings/spi/loongson,ls-spi.example.dtb] Error 1 >>> make[1]: *** Waiting for unfinished jobs.... >>> make: *** [Makefile:1512: dt_binding_check] Error 2 >>> >>> doc reference errors (make refcheckdocs): >>> >>> See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230328112210.23089-2-zhuyinbo@loongson.cn >>> >>> The base for the series is generally the latest rc1. A different dependency >>> should be noted in *this* patch. >> Hi Rob, >> >> I'm sorry, actually, I don't know what the specific operation I should >> do when I received the check warning >> from your bot. Does it means that I should add dependency note into this >> patch's changelog ? > > Yes, this is explicitly mentioned in the sentence you quoted. okay, I got it, thanks! > >> or something else, I really >> don't know. Actually, I'm always bothered by these things that how to >> resolve the dependency issue for two >> dependent patches that do not belong to the same series. > > Another approach, as Rob suggested last time, would be to just get rid > of the dependency and open-code the clock IDs... Thank you very much for your suggestion, I will open-code the clock IDs and fix that checkpatch issue then resend this series patch. > > Best regards, > Krzysztof >
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..ee80049b1258 --- /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 <zhuyinbo@loongson.cn> + +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 <dt-bindings/clock/loongson,ls2k-clk.h> + spi0: spi@1fff0220{ + compatible = "loongson,ls2k-spi"; + reg = <0x1fff0220 0x10>; + clocks = <&clk LOONGSON2_BOOT_CLK>; + #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 <zhuyinbo@loongson.cn> +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 <sathya.prakash@broadcom.com> M: Sreekanth Reddy <sreekanth.reddy@broadcom.com>