From: Rob Herring <robh@kernel•org>
To: Frank Lee <frank@allwinnertech•com>
Cc: megous@megous•com, liyong@allwinnertech•com,
tiny.windzz@gmail•com, linus.walleij@linaro•org,
srinivas.kandagatla@linaro•org, linux-i2c@vger•kernel.org,
lee.jones@linaro•org, linux-clk@vger•kernel.org,
amit.kucheria@verdurent•com, stefan@olimex•com, maz@kernel•org,
gregory.clement@bootlin•com, daniel.lezcano@linaro•org,
anarsoul@gmail•com, wens@csie•org,
huangshuosheng@allwinnertech•com, clabbe@baylibre•com,
rui.zhang@intel•com, mturquette@baylibre•com, icenowy@aosc•io,
devicetree@vger•kernel.org, jason@lakedaemon•net,
bage@linutronix•de, linux-pm@vger•kernel.org, mripard@kernel•org,
linux-gpio@vger•kernel.org, tglx@linutronix•de,
linux-arm-kernel@lists•infradead.org, sboyd@kernel•org,
linux-kernel@vger•kernel.org, p.zabel@pengutronix•de
Subject: Re: [PATCH v3 03/16] dt-bindings: pinctrl: sunxi: Add A100 pinctrl bindings
Date: Mon, 13 Jul 2020 17:01:29 -0600 [thread overview]
Message-ID: <20200713230129.GA875173@bogus> (raw)
In-Reply-To: <20200708071942.22595-4-frank@allwinnertech.com>
On Wed, Jul 08, 2020 at 03:19:29PM +0800, Frank Lee wrote:
> Add device tree binding Documentation details for A100 pinctrl driver,
> whic has an r pin controller and a pin controller with more irq lines.
s/whic/which/
'an r pin controller'?
>
> Signed-off-by: Frank Lee <frank@allwinnertech•com>
> ---
> .../pinctrl/allwinner,sun4i-a10-pinctrl.yaml | 74 +++++++++++++---------
> 1 file changed, 44 insertions(+), 30 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinctrl.yaml
> index bfefd09..226aba0 100644
> --- a/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinctrl.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinctrl.yaml
> @@ -48,6 +48,8 @@ properties:
> - allwinner,sun9i-a80-r-pinctrl
> - allwinner,sun50i-a64-pinctrl
> - allwinner,sun50i-a64-r-pinctrl
> + - allwinner,sun50i-a100-pinctrl
> + - allwinner,sun50i-a100-r-pinctrl
> - allwinner,sun50i-h5-pinctrl
> - allwinner,sun50i-h6-pinctrl
> - allwinner,sun50i-h6-r-pinctrl
> @@ -59,7 +61,7 @@ properties:
>
> interrupts:
> minItems: 1
> - maxItems: 5
> + maxItems: 7
> description:
> One interrupt per external interrupt bank supported on the
> controller, sorted by bank number ascending order.
> @@ -144,75 +146,87 @@ allOf:
> # FIXME: We should have the pin bank supplies here, but not a lot of
> # boards are defining it at the moment so it would generate a lot of
> # warnings.
> -
> - if:
> properties:
> compatible:
> enum:
> - - allwinner,sun9i-a80-pinctrl
> + - allwinner,sun50i-a100-pinctrl
>
> then:
> properties:
> interrupts:
> - minItems: 5
> - maxItems: 5
> + minItems: 7
> + maxItems: 7
>
> else:
> if:
This diff is hard to follow. Rather than a continual nesting of 'else'
clauses, just make each 'if' a new entry under 'allOf' and get rid of
the else. Perhaps do that in a separate patch first, then this change
will be easier to review.
> properties:
> compatible:
> enum:
> - - allwinner,sun6i-a31-pinctrl
> - - allwinner,sun6i-a31s-pinctrl
> - - allwinner,sun50i-h6-pinctrl
> + - allwinner,sun9i-a80-pinctrl
>
> then:
> properties:
> interrupts:
> - minItems: 4
> - maxItems: 4
> + minItems: 5
> + maxItems: 5
>
> else:
> if:
> properties:
> compatible:
> enum:
> - - allwinner,sun8i-a23-pinctrl
> - - allwinner,sun8i-a83t-pinctrl
> - - allwinner,sun50i-a64-pinctrl
> - - allwinner,sun50i-h5-pinctrl
> - - allwinner,suniv-f1c100s-pinctrl
> + - allwinner,sun6i-a31-pinctrl
> + - allwinner,sun6i-a31s-pinctrl
> + - allwinner,sun50i-h6-pinctrl
>
> then:
> properties:
> interrupts:
> - minItems: 3
> - maxItems: 3
> + minItems: 4
> + maxItems: 4
>
> else:
> if:
> properties:
> compatible:
> enum:
> - - allwinner,sun6i-a31-r-pinctrl
> - - allwinner,sun8i-a33-pinctrl
> - - allwinner,sun8i-h3-pinctrl
> - - allwinner,sun8i-v3-pinctrl
> - - allwinner,sun8i-v3s-pinctrl
> - - allwinner,sun9i-a80-r-pinctrl
> - - allwinner,sun50i-h6-r-pinctrl
> + - allwinner,sun8i-a23-pinctrl
> + - allwinner,sun8i-a83t-pinctrl
> + - allwinner,sun50i-a64-pinctrl
> + - allwinner,sun50i-h5-pinctrl
> + - allwinner,suniv-f1c100s-pinctrl
>
> then:
> properties:
> interrupts:
> - minItems: 2
> - maxItems: 2
> + minItems: 3
> + maxItems: 3
>
> else:
> - properties:
> - interrupts:
> - minItems: 1
> - maxItems: 1
> + if:
> + properties:
> + compatible:
> + enum:
> + - allwinner,sun6i-a31-r-pinctrl
> + - allwinner,sun8i-a33-pinctrl
> + - allwinner,sun8i-h3-pinctrl
> + - allwinner,sun8i-v3-pinctrl
> + - allwinner,sun8i-v3s-pinctrl
> + - allwinner,sun9i-a80-r-pinctrl
> + - allwinner,sun50i-h6-r-pinctrl
> +
> + then:
> + properties:
> + interrupts:
> + minItems: 2
> + maxItems: 2
> +
> + else:
> + properties:
> + interrupts:
> + minItems: 1
> + maxItems: 1
>
> additionalProperties: false
>
> --
> 1.9.1
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-07-13 23:03 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-08 7:19 [PATCH v3 00/16] Allwinner A100 Initial support Frank Lee
2020-07-08 7:19 ` [PATCH v3 01/16] dt-bindings: clk: sunxi-ccu: add compatible string for A100 CCU and R-CCU Frank Lee
2020-07-13 22:54 ` Rob Herring
2020-07-13 23:33 ` Rob Herring
2020-07-08 7:19 ` [PATCH v3 02/16] clk: sunxi-ng: add support for the Allwinner A100 CCU Frank Lee
2020-07-08 7:19 ` [PATCH v3 03/16] dt-bindings: pinctrl: sunxi: Add A100 pinctrl bindings Frank Lee
2020-07-13 23:01 ` Rob Herring [this message]
2020-07-08 7:19 ` [PATCH v3 04/16] dt-bindings: pinctrl: sunxi: make gpio banks supplies required Frank Lee
2020-07-09 16:52 ` Rob Herring
2020-07-09 16:54 ` Rob Herring
2020-07-09 17:17 ` Ondřej Jirman
2020-07-10 12:37 ` Maxime Ripard
2020-07-08 7:19 ` [PATCH v3 05/16] pinctrl: sunxi: add support for the Allwinner A100 pin controller Frank Lee
2020-07-08 7:19 ` [PATCH v3 06/16] dt-bindings: nvmem: SID: add binding for A100's SID controller Frank Lee
2020-07-09 16:54 ` Rob Herring
2020-07-08 7:19 ` [PATCH v3 07/16] dt-bindings: thermal: sun8i: Add binding for A100's THS controller Frank Lee
2020-07-13 23:02 ` Rob Herring
2020-07-08 7:19 ` [PATCH v3 09/16] thermal: sun8i: Add A100's THS controller support Frank Lee
2020-07-08 7:19 ` [PATCH v3 10/16] mfd: axp20x: Allow the AXP803 to be probed by I2C Frank Lee
2020-07-16 15:10 ` Lee Jones
2020-07-08 7:45 ` [PATCH v3 00/16] Allwinner A100 Initial support Corentin Labbe
2020-07-10 14:28 ` Maxime Ripard
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=20200713230129.GA875173@bogus \
--to=robh@kernel$(echo .)org \
--cc=amit.kucheria@verdurent$(echo .)com \
--cc=anarsoul@gmail$(echo .)com \
--cc=bage@linutronix$(echo .)de \
--cc=clabbe@baylibre$(echo .)com \
--cc=daniel.lezcano@linaro$(echo .)org \
--cc=devicetree@vger$(echo .)kernel.org \
--cc=frank@allwinnertech$(echo .)com \
--cc=gregory.clement@bootlin$(echo .)com \
--cc=huangshuosheng@allwinnertech$(echo .)com \
--cc=icenowy@aosc$(echo .)io \
--cc=jason@lakedaemon$(echo .)net \
--cc=lee.jones@linaro$(echo .)org \
--cc=linus.walleij@linaro$(echo .)org \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=linux-clk@vger$(echo .)kernel.org \
--cc=linux-gpio@vger$(echo .)kernel.org \
--cc=linux-i2c@vger$(echo .)kernel.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-pm@vger$(echo .)kernel.org \
--cc=liyong@allwinnertech$(echo .)com \
--cc=maz@kernel$(echo .)org \
--cc=megous@megous$(echo .)com \
--cc=mripard@kernel$(echo .)org \
--cc=mturquette@baylibre$(echo .)com \
--cc=p.zabel@pengutronix$(echo .)de \
--cc=rui.zhang@intel$(echo .)com \
--cc=sboyd@kernel$(echo .)org \
--cc=srinivas.kandagatla@linaro$(echo .)org \
--cc=stefan@olimex$(echo .)com \
--cc=tglx@linutronix$(echo .)de \
--cc=tiny.windzz@gmail$(echo .)com \
--cc=wens@csie$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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