public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: Serge Semin <fancer.lancer@gmail.com>
To: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Cc: devicetree@vger.kernel.org,
	Khuong Dinh <khuong@os.amperecomputing.com>,
	Dinh Nguyen <dinguyen@kernel.org>,
	Linus Walleij <linus.walleij@linaro.org>,
	linux-kernel@vger.kernel.org, Wei Xu <xuwei5@hisilicon.com>,
	Bartosz Golaszewski <bgolaszewski@baylibre.com>,
	Rob Herring <robh+dt@kernel.org>,
	linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org,
	Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
	Hoan Tran <hoan@os.amperecomputing.com>,
	Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Subject: Re: [PATCH 8/8] dt-bindings: gpio: dw-apb: remove never-used "snps,dw-apb-gpio-port"
Date: Thu, 15 Oct 2020 15:04:57 +0300	[thread overview]
Message-ID: <20201015120457.qaooft5y5dzl4z7s@mobilestation> (raw)
In-Reply-To: <20201015115903.2a782f78@xhacker.debian>

On Thu, Oct 15, 2020 at 11:59:03AM +0800, Jisheng Zhang wrote:
> The compatible string is never used.

Before sending v2 could you run "make dt_binding_check" for the DT schema
modified in this patch? Like this:

make -j8 ARCH=mips CROSS_COMPILE=mipsel-baikal-linux- dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml

> 
> Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
> ---
>  Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml b/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml
> index 1240f6289249..76e7b07d592f 100644
> --- a/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml
> +++ b/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml
> @@ -50,9 +50,6 @@ patternProperties:
>    "^gpio-(port|controller)@[0-9a-f]+$":
>      type: object
>      properties:

> -      compatible:
> -        const: snps,dw-apb-gpio-port
> -

Yep, you've removed the "compatible" property but forgot to do the same from the
"required:" property of the sub-nodes schema. That's why the suggested
make-command above would have failed during the DT schema examples validation if
you ran it. Please, fix it and resend the series.

>        reg:
>          maxItems: 1

Yeah. Here I've forgotten to add the "reg" property constraints. Since certainly
the controller won't have more than four sub-nodes by design, could you add one
in an additional patch of the series since you'll need to resend the patchset anyway?
Like this:
       reg:
-        maxItems: 1
+        minimum: 0
+        maximum: 3

-Sergey

>  
> @@ -111,7 +108,6 @@ examples:
>        #size-cells = <0>;
>  
>        porta: gpio-port@0 {
> -        compatible = "snps,dw-apb-gpio-port";
>          reg = <0>;
>          gpio-controller;
>          #gpio-cells = <2>;
> @@ -123,7 +119,6 @@ examples:
>        };
>  
>        portb: gpio-port@1 {
> -        compatible = "snps,dw-apb-gpio-port";
>          reg = <1>;
>          gpio-controller;
>          #gpio-cells = <2>;
> -- 
> 2.28.0
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2020-10-15 12:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-15  3:55 [PATCH 0/8] remove never-used "snps,dw-apb-gpio-port" Jisheng Zhang
2020-10-15  3:56 ` [PATCH 1/8] ARM: dts: berlin: Remove compatible string from dw apb gpio port Jisheng Zhang
2020-10-15  3:56 ` [PATCH 2/8] ARM: dts: socfpga: " Jisheng Zhang
2020-10-15  3:56 ` [PATCH 3/8] arm64: dts: apm: remove " Jisheng Zhang
2020-10-15  3:57 ` [PATCH 4/8] arm64: dts: bitmain: Remove " Jisheng Zhang
2020-10-15  3:57 ` [PATCH 5/8] arm64: dts: hip05: " Jisheng Zhang
2020-10-15  3:58 ` [PATCH 6/8] arm: dts: socfpga: " Jisheng Zhang
2020-10-15  3:58 ` [PATCH 7/8] arm64: dts: synaptics: " Jisheng Zhang
2020-10-15  3:59 ` [PATCH 8/8] dt-bindings: gpio: dw-apb: remove never-used "snps,dw-apb-gpio-port" Jisheng Zhang
2020-10-15 12:04   ` Serge Semin [this message]
2020-10-16 14:43     ` [PATCH 8/8] dt-bindings: gpio: dw-apb: remove never-used "snps, dw-apb-gpio-port" Andy Shevchenko
2020-10-16 16:24       ` [PATCH 8/8] dt-bindings: gpio: dw-apb: remove never-used "snps,dw-apb-gpio-port" Serge Semin
2020-10-15 11:40 ` [PATCH 0/8] " Serge Semin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201015120457.qaooft5y5dzl4z7s@mobilestation \
    --to=fancer.lancer@gmail.com \
    --cc=Jisheng.Zhang@synaptics.com \
    --cc=bgolaszewski@baylibre.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dinguyen@kernel.org \
    --cc=hoan@os.amperecomputing.com \
    --cc=khuong@os.amperecomputing.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manivannan.sadhasivam@linaro.org \
    --cc=robh+dt@kernel.org \
    --cc=sebastian.hesselbarth@gmail.com \
    --cc=xuwei5@hisilicon.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox