Message ID | 20230327211351.686831-2-mmkurbanov@sberdevices.ru |
---|---|
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 b10csp1802629vqo; Mon, 27 Mar 2023 14:35:30 -0700 (PDT) X-Google-Smtp-Source: AKy350aVSkXyZOTqzIoj+D1befLkgQt6Gmh56vd9sgRmcU3/2pj5i3Fg+mZgZT0VqlqleoBJLYbs X-Received: by 2002:aa7:c490:0:b0:4fa:315a:cb55 with SMTP id m16-20020aa7c490000000b004fa315acb55mr14608477edq.21.1679952929787; Mon, 27 Mar 2023 14:35:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679952929; cv=none; d=google.com; s=arc-20160816; b=JtDlf2m/eIUaQ6q+aoneOmHESY5ag/YLhR/iHdsIFw5J7ppGm+/+w+RHzaO2HbE3jz n7SFu20GNvYVACa7k9Y9LOA0X/qAjkezxOLBofONnZL1AxI3TKp/+KNSzBEYtoutLAo6 ZLBVbFoJO5QFNr+KuD6xXEjqgdWld4Ryi0bDVrXp/MDxBoY1rdPQfyOXo7fn0/9+LebC 2UA4C221t4fPWfQo3O0LmICFu4cH9DSG9vICKR/kkeYJgsY8px8w0/yvmjnayaNkhBTb mt+cSba2k0k2WazFDuysUIG+VmfSWMXWcK0KAbHyth/x3oFMrwAB1wmtp/CB5gbQ8VUg cTQg== 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 :dkim-signature; bh=9QXWZXXnPKyi89P2UFi4LA2NOPDGvd/gPBu3Hi86flo=; b=gJDEKA/MYgUnvqWuzu0q4dxWtP4F5vtH+CZenXysLzs5ax7mXoKI/FMEoXbC+xwe4K cECPDitnqCZCqoYsT+9I3+IhPJMQu6rzk0eC8qwkeVSgUW+KSHl4tg5BLc3wX7aFFA9M IJThwSy0L7PMFn7ZSIIdPfdZCa/2n0f+CvnedrrZ+V/XiTIzowO+hNEyfWMLKDu97Im/ PY2yYHe1Poh+wOsk8/3QCJhZbQ/CvhpO/GESCtDnC2X1y12ZiivyWVC9+PAJN7LMcpDI ikahEoV80AXsHQ3qraUTbBXslvLBAmaghIFWEMwpfj1fYMxpRXG8c+Y2jquQKwLP6pFW lCHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=a1W4v1rp; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d22-20020aa7d5d6000000b00501d9f51adcsi18386734eds.533.2023.03.27.14.35.05; Mon, 27 Mar 2023 14:35:29 -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; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=a1W4v1rp; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232186AbjC0VOr (ORCPT <rfc822;kartikey406@gmail.com> + 99 others); Mon, 27 Mar 2023 17:14:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbjC0VOm (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 27 Mar 2023 17:14:42 -0400 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B1F1170A; Mon, 27 Mar 2023 14:14:40 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id 2AD935FD0E; Tue, 28 Mar 2023 00:14:37 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1679951677; bh=9QXWZXXnPKyi89P2UFi4LA2NOPDGvd/gPBu3Hi86flo=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=a1W4v1rpgbR45hzPx1oeMVnatKjfjSk9OzA1GGK3oXN4wo4yZ7yowUpjhcEtaWSWR YPuZRxWbsI69Cu2punVFEb6ByUF5O1ilCFe+Ex0WCy236BqHDXTBVF2hlbRZy4f0im zpkJD0uSJdJQFOrREXGFPLbzRneER6mOJibJY9f6zTSQ0MAoZu+q1kQLWbY9f3X/pc Sqh/+7fBTP1iX8evPDMC0SDATt5tnkdehK7tjVPALJ28T/bZbPZqDvgrVuxwmOyN26 WcK7osoMnpNOP2X6lqXTjRVqyfnAkrdgwciP5yZSDZOirPn/any85yV5xCqAn+cgqR LbIKVb9LsEb6A== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Tue, 28 Mar 2023 00:14:37 +0300 (MSK) From: Martin Kurbanov <mmkurbanov@sberdevices.ru> To: Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Neil Armstrong <neil.armstrong@linaro.org>, Kevin Hilman <khilman@baylibre.com>, Jerome Brunet <jbrunet@baylibre.com>, Martin Blumenstingl <martin.blumenstingl@googlemail.com> CC: <linux-spi@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-amlogic@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <kernel@sberdevices.ru>, Martin Kurbanov <mmkurbanov@sberdevices.ru> Subject: [PATCH v2 1/2] dt-bindings: spi: add Amlogic Meson A1 SPI controller Date: Tue, 28 Mar 2023 00:13:50 +0300 Message-ID: <20230327211351.686831-2-mmkurbanov@sberdevices.ru> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230327211351.686831-1-mmkurbanov@sberdevices.ru> References: <20230327211351.686831-1-mmkurbanov@sberdevices.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.16.1.6] X-ClientProxiedBy: S-MS-EXCH02.sberdevices.ru (172.16.1.5) To S-MS-EXCH01.sberdevices.ru (172.16.1.4) X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2023/03/27 19:06:00 #21018749 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,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?1761558323031508204?= X-GMAIL-MSGID: =?utf-8?q?1761558323031508204?= |
Series |
add support for Meson A1 SPI Flash Controller
|
|
Commit Message
Martin Kurbanov
March 27, 2023, 9:13 p.m. UTC
Add YAML devicetree Amlogic Meson A113L (A1 family) SPIFC Driver.
This patch has dependencies on the A1 clock series which is still under
review - https://lore.kernel.org/all/20230321193014.26349-1-ddrokosov@sberdevices.ru/
Signed-off-by: Martin Kurbanov <mmkurbanov@sberdevices.ru>
---
.../bindings/spi/amlogic,meson-a1-spifc.yaml | 42 +++++++++++++++++++
1 file changed, 42 insertions(+)
create mode 100644 Documentation/devicetree/bindings/spi/amlogic,meson-a1-spifc.yaml
Comments
On Tue, 28 Mar 2023 00:13:50 +0300, Martin Kurbanov wrote: > Add YAML devicetree Amlogic Meson A113L (A1 family) SPIFC Driver. > > This patch has dependencies on the A1 clock series which is still under > review - https://lore.kernel.org/all/20230321193014.26349-1-ddrokosov@sberdevices.ru/ > > Signed-off-by: Martin Kurbanov <mmkurbanov@sberdevices.ru> > --- > .../bindings/spi/amlogic,meson-a1-spifc.yaml | 42 +++++++++++++++++++ > 1 file changed, 42 insertions(+) > create mode 100644 Documentation/devicetree/bindings/spi/amlogic,meson-a1-spifc.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: Documentation/devicetree/bindings/spi/amlogic,meson-a1-spifc.example.dts:18:18: fatal error: dt-bindings/clock/amlogic,a1-clkc.h: No such file or directory 18 | #include <dt-bindings/clock/amlogic,a1-clkc.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[1]: *** [scripts/Makefile.lib:419: Documentation/devicetree/bindings/spi/amlogic,meson-a1-spifc.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/20230327211351.686831-2-mmkurbanov@sberdevices.ru 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 27/03/2023 23:13, Martin Kurbanov wrote: > Add YAML devicetree Amlogic Meson A113L (A1 family) SPIFC Driver. Don't add drivers to DT bindings. > > This patch has dependencies on the A1 clock series which is still under > review - https://lore.kernel.org/all/20230321193014.26349-1-ddrokosov@sberdevices.ru/ This is not part of commit msg. > > Signed-off-by: Martin Kurbanov <mmkurbanov@sberdevices.ru> > --- > .../bindings/spi/amlogic,meson-a1-spifc.yaml | 42 +++++++++++++++++++ > 1 file changed, 42 insertions(+) > create mode 100644 Documentation/devicetree/bindings/spi/amlogic,meson-a1-spifc.yaml > Best regards, Krzysztof
Hi, On 27/03/2023 23:13, Martin Kurbanov wrote: > Add YAML devicetree Amlogic Meson A113L (A1 family) SPIFC Driver. > > This patch has dependencies on the A1 clock series which is still under > review - https://lore.kernel.org/all/20230321193014.26349-1-ddrokosov@sberdevices.ru/ > > Signed-off-by: Martin Kurbanov <mmkurbanov@sberdevices.ru> > --- > .../bindings/spi/amlogic,meson-a1-spifc.yaml | 42 +++++++++++++++++++ > 1 file changed, 42 insertions(+) > create mode 100644 Documentation/devicetree/bindings/spi/amlogic,meson-a1-spifc.yaml I think it's time to drop "Meson" from bindings, please drop Meson here and in all the file down to the compatible which should be "amlogic,a1-spifc" > > diff --git a/Documentation/devicetree/bindings/spi/amlogic,meson-a1-spifc.yaml b/Documentation/devicetree/bindings/spi/amlogic,meson-a1-spifc.yaml > new file mode 100644 > index 000000000000..d2b1c754a6e1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/spi/amlogic,meson-a1-spifc.yaml > @@ -0,0 +1,42 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/spi/amlogic,meson-a1-spifc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Amlogic Meson A1 SPI Flash Controller > + > +maintainers: > + - Martin Kurbanov <mmkurbanov@sberdevices.ru> > + > +allOf: > + - $ref: spi-controller.yaml# > + > +properties: > + compatible: > + enum: > + - amlogic,meson-a1-spifc > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - clocks > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include <dt-bindings/clock/amlogic,a1-clkc.h> > + spi@fd000400 { > + compatible = "amlogic,meson-a1-spifc"; > + reg = <0xfd000400 0x290>; > + clocks = <&clkc_periphs CLKID_SPIFC>; > + #address-cells = <1>; > + #size-cells = <0>; > + }; Drop the include and use fake label phandles instead. Thanks, Neil
diff --git a/Documentation/devicetree/bindings/spi/amlogic,meson-a1-spifc.yaml b/Documentation/devicetree/bindings/spi/amlogic,meson-a1-spifc.yaml new file mode 100644 index 000000000000..d2b1c754a6e1 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/amlogic,meson-a1-spifc.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/amlogic,meson-a1-spifc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic Meson A1 SPI Flash Controller + +maintainers: + - Martin Kurbanov <mmkurbanov@sberdevices.ru> + +allOf: + - $ref: spi-controller.yaml# + +properties: + compatible: + enum: + - amlogic,meson-a1-spifc + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - clocks + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/clock/amlogic,a1-clkc.h> + spi@fd000400 { + compatible = "amlogic,meson-a1-spifc"; + reg = <0xfd000400 0x290>; + clocks = <&clkc_periphs CLKID_SPIFC>; + #address-cells = <1>; + #size-cells = <0>; + };