Message ID | 20230322150458.783901-2-mmkurbanov@sberdevices.ru |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2396379wrt; Wed, 22 Mar 2023 08:15:16 -0700 (PDT) X-Google-Smtp-Source: AK7set/wrj+2kx0p6+2WR8LaYaukxi6mmzUywSM+Iagf/FK7QX48ukO7mWZybON1hF5OieI+D963 X-Received: by 2002:a17:902:d512:b0:1a1:b172:5428 with SMTP id b18-20020a170902d51200b001a1b1725428mr3296075plg.18.1679498116549; Wed, 22 Mar 2023 08:15:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679498116; cv=none; d=google.com; s=arc-20160816; b=CC+kzw1BF7uVn+itQMcIKSKCdcLII4dXtvH8jUWk3uJr5sjTrS9C1A9umxJy+t0pLg 0cF2zmq1yoN/FWktiSzPHX3b5OSr/WmuKg4D9n9knfyjNAWxs5G/JDcNRtgAzaqsVZOX r0O+D0eILokklA95hXjymVfVa9Rawi6Pj3hVsNRRV9oZJatIqmlmt3WNVLQMJuhGaSwB UttuTk3j9FbYTWrlfIwKcTwN1DyIo26nWh7BljbsAhEqn0G6MxF5psrWWG7T0z7IM0uc NpZXU8NhiAoesIoY3/1Zm+muXaj6V5Ilp0MOetCNnMHwKDFR7z3X43xjSzhcLUJfWWUH cfrA== 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=L/cZhXKdgtCamQglShAZ97PbA1w3JdiautYGqxltivc=; b=y5O0uJ8GJXXLkcfejd8X4Pbobs3w8zNbDwbV2k77JmFyXLxwvToZwb4KxmrVSh8wW6 1TvJtCSUwb5caVuJdF2OCa2Gcyeoc9NLq5M9YxQ81Fo+4xw6mBN7ZlH9/eo4C6eR5Ygi j1JvEtiM9Bnm7uKQTbH3tYz3MJjvzRNYbfBuw6Gn1kDqJT/VkYQVJkF2XXvLs90oSeBf MdY+ISdWVZAXNOW8VV38+lDvyuuf29Glb6Wg1RxwyjvwhzUEROuApMs2JheJZn3Ciirk hwWeb7Xy8YP9CuGButRRMzVFYVLJz0i6vM3wzlS64AFqJAAFWlv12PutgMkGtY8Abv/3 YUlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=kO4DuoLR; 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 t186-20020a6381c3000000b0050f8eaae7afsi6955150pgd.47.2023.03.22.08.15.02; Wed, 22 Mar 2023 08:15: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; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=kO4DuoLR; 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 S231162AbjCVPGH (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Wed, 22 Mar 2023 11:06:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230397AbjCVPGG (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 22 Mar 2023 11:06:06 -0400 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D9D8637D3; Wed, 22 Mar 2023 08:06:05 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id BA4355FD42; Wed, 22 Mar 2023 18:06:03 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1679497563; bh=L/cZhXKdgtCamQglShAZ97PbA1w3JdiautYGqxltivc=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=kO4DuoLRQa2nQjI/QpH5Rmx3n4zAO8rfTC2pfj2Ykor5jwZlV8hUgal1C0AwQbghG jUtLRIEF2iN9SYny7Ifsr71hC0wTUrhhAXYsJZEQGo3igrbM5KjLIDnmFQvP2LtpyE xlbgg2Mq9EjtFV/kQClAKCc/FsB/Tq+Ow7AQzZ4oxb+dRMOzRl5iSP0VHeCK9kpiG9 nEPiA3b3lgGTUAPhglsNGQf/n9Bwk9almp518koq81yS4P+3P78Tp3UtakCebiHZ42 Lai/0Uzcmn79OW/YeRf6+78YmmGFTPsxCyixsALvEenyB5wQmRNQ1Enm0kYa5CoDrh Y1vUB2o66TNPA== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Wed, 22 Mar 2023 18:06:03 +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 v1 1/2] dt-bindings: spi: add binding for meson-spifc-a1 Date: Wed, 22 Mar 2023 18:04:57 +0300 Message-ID: <20230322150458.783901-2-mmkurbanov@sberdevices.ru> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230322150458.783901-1-mmkurbanov@sberdevices.ru> References: <20230322150458.783901-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/22 10:34:00 #20990985 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,URIBL_BLOCKED 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?1761081416985761430?= X-GMAIL-MSGID: =?utf-8?q?1761081416985761430?= |
Series |
add support for Meson A1 SPI Flash Controller
|
|
Commit Message
Martin Kurbanov
March 22, 2023, 3:04 p.m. UTC
Add YAML devicetree binding for Amlogic Meson A113L (A1 family)
SPIFC Driver.
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
Hi, On 22/03/2023 16:04, Martin Kurbanov wrote: > Add YAML devicetree binding for Amlogic Meson A113L (A1 family) > SPIFC Driver. > > 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 > > 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..5f84063b01f8 > --- /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 A113L SPI Flash Controller I think it should be "A1 SPI Flash Controller" to be more coherent Neil > + > +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>; > + };
On 22/03/2023 16:04, Martin Kurbanov wrote: > Add YAML devicetree binding for Amlogic Meson A113L (A1 family) > SPIFC Driver. Subject: drop second/last, redundant "binding for". The "dt-bindings" prefix is already stating that these are bindings. > +examples: > + - | > + #include <dt-bindings/clock/amlogic,a1-clkc.h> > + spi@fd000400 { > + compatible = "amlogic,meson-a1-spifc"; Use 4 spaces for example indentation. Best regards, Krzysztof
On Wed, 22 Mar 2023 18:04:57 +0300, Martin Kurbanov wrote: > Add YAML devicetree binding for Amlogic Meson A113L (A1 family) > SPIFC Driver. > > 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/20230322150458.783901-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.
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..5f84063b01f8 --- /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 A113L 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>; + };