From: Rob Herring <robh@kernel.org>
To: Chester Lin <clin@suse.com>
Cc: "Linus Walleij" <linus.walleij@linaro.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
s32@nxp.com, linux-gpio@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
"Larisa Grigore" <larisa.grigore@nxp.com>,
"Ghennadi Procopciuc" <Ghennadi.Procopciuc@nxp.com>,
"Andreas Färber" <afaerber@suse.de>,
"Matthias Brugger" <mbrugger@suse.com>
Subject: Re: [PATCH 1/2] dt-bindings: pinctrl: add schema for NXP S32 SoCs
Date: Wed, 2 Nov 2022 10:49:03 -0500 [thread overview]
Message-ID: <20221102154903.GA3726664-robh@kernel.org> (raw)
In-Reply-To: <20221031100843.14579-2-clin@suse.com>
On Mon, Oct 31, 2022 at 06:08:42PM +0800, Chester Lin wrote:
> Add DT schema for the pinctrl driver of NXP S32 SoC family.
>
> Signed-off-by: Larisa Grigore <larisa.grigore@nxp.com>
> Signed-off-by: Ghennadi Procopciuc <Ghennadi.Procopciuc@nxp.com>
> Signed-off-by: Chester Lin <clin@suse.com>
> ---
> .../pinctrl/nxp,s32cc-siul2-pinctrl.yaml | 91 +++++++++++++++++++
> 1 file changed, 91 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/pinctrl/nxp,s32cc-siul2-pinctrl.yaml
>
> diff --git a/Documentation/devicetree/bindings/pinctrl/nxp,s32cc-siul2-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/nxp,s32cc-siul2-pinctrl.yaml
> new file mode 100644
> index 000000000000..eafb9091cbf7
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pinctrl/nxp,s32cc-siul2-pinctrl.yaml
> @@ -0,0 +1,91 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +# Copyright (c) 2022 NXP
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/pinctrl/nxp,s32cc-siul2-pinctrl.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: NXP S32 Common Chassis SIUL2 iomux controller
> +
> +maintainers:
> + - Ghennadi Procopciuc <Ghennadi.Procopciuc@nxp.com>
> + - Chester Lin <clin@suse.com>
> +
> +description: |
> + Core driver for the pin controller found on S32 Common Chassis SoC.
> +
> +properties:
> + compatible:
> + enum:
> + - nxp,s32g-siul2-pinctrl
> +
> + reg:
> + minItems: 5
> + maxItems: 6
> + description: A list of register regions to be reserved.
Need to be explicit about what each entry is.
> +
> + nxp,pins:
> + $ref: /schemas/types.yaml#/definitions/uint32-array
> + description:
> + A list of [start, end] pin ID boundaries that correspond to each of
> + the register regions reserved.
Looks like a matrix rather than an array.
> +
> +required:
> + - compatible
> + - reg
> + - nxp,pins
> +
> +patternProperties:
> + '_pins$':
s/_/-/
> + type: object
additionalProperties: false
(and a blank line after)
> + patternProperties:
> + '_grp[0-9]$':
s/_/-/
> + type: object
> + allOf:
> + - $ref: pinmux-node.yaml#
> + - $ref: pincfg-node.yaml#
unevaluatedProperties: false
> + description:
> + Pinctrl node's client devices specify pin muxes using subnodes,
> + which in turn use the standard properties below.
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> +
> + pinctrl: siul2-pinctrl@4009c240 {
pinctrl@...
> + compatible = "nxp,s32g-siul2-pinctrl";
> +
> + /* MSCR range */
> + reg = <0x4009c240 0x198>,
> + <0x44010400 0x2c>,
> + <0x44010480 0xbc>,
> + /* MSCR range */
> + <0x4009ca40 0x150>,
> + <0x44010c1c 0x45c>,
> + <0x440110f8 0x108>;
What is in these holes in the memory map? Is this part of some larger
block? If so, that block needs to be described.
> +
> + /* MSCR range */
> + nxp,pins = <0 101>,
> + <112 122>,
> + <144 190>,
> + /* IMCR range */
> + <512 595>,
> + <631 909>,
> + <942 1007>;
> +
> + llce_can0_pins {
> + llce_can0_grp0 {
> + pinmux = <0x2b0>;
> + input-enable;
> + slew-rate = <0x00>;
> + };
> +
> + llce_can0_grp1 {
> + pinmux = <0x2c2>;
> + output-enable;
> + slew-rate = <0x00>;
> + };
> + };
> + };
> +...
> --
> 2.37.3
>
>
next prev parent reply other threads:[~2022-11-02 15:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-31 10:08 [PATCH 0/2] Add pinctrl support for S32 SoC family Chester Lin
2022-10-31 10:08 ` [PATCH 1/2] dt-bindings: pinctrl: add schema for NXP S32 SoCs Chester Lin
2022-11-02 15:49 ` Rob Herring [this message]
2022-11-09 15:04 ` Chester Lin
2022-11-08 12:31 ` Linus Walleij
2022-11-09 16:45 ` Chester Lin
2022-11-10 10:00 ` Linus Walleij
2022-11-10 11:18 ` Andrei Stefanescu
2022-10-31 10:08 ` [PATCH 2/2] pinctrl: add NXP S32 SoC family support Chester Lin
2022-11-08 12:35 ` Linus Walleij
2022-11-08 14:54 ` Andrei Stefanescu
2022-11-08 16:51 ` Andreas Färber
2022-11-09 9:06 ` Andrei Stefanescu
2022-11-09 9:18 ` Chester Lin
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=20221102154903.GA3726664-robh@kernel.org \
--to=robh@kernel.org \
--cc=Ghennadi.Procopciuc@nxp.com \
--cc=afaerber@suse.de \
--cc=clin@suse.com \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=larisa.grigore@nxp.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=mbrugger@suse.com \
--cc=s32@nxp.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;
as well as URLs for NNTP newsgroup(s).