NXP S32G2 pin controller

Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/nxp,s32g2-siul2-pinctrl.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Ghennadi Procopciuc <Ghennadi.Procopciuc@oss.nxp.com>", "Chester Lin <chester62515@gmail.com>"

S32G2 pinmux is implemented in SIUL2 (System Integration Unit Lite2),
whose memory map is split into two regions:
  SIUL2_0 @ 0x4009c000
  SIUL2_1 @ 0x44010000

Every SIUL2 region has multiple register types, and here only MSCR and IMCR registers need to be revealed for kernel to configure pinmux.

Please note that some register indexes are reserved in S32G2, such as MSCR102-MSCR111, MSCR123-MSCR143, IMCR84-IMCR118 and IMCR398-IMCR429.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "nxp,s32g2-siul2-pinctrl"

reg — required here #

A list of MSCR/IMCR register regions to be reserved.
- MSCR (Multiplexed Signal Configuration Register)
  An MSCR register can configure the associated pin as either a GPIO pin
  or a function output pin depends on the selected signal source.
- IMCR (Input Multiplexed Signal Configuration Register)
  An IMCR register can configure the associated pin as function input
  pin depends on the selected signal source.

Array item rules (items) #

Item 1

MSCR registers group 0 in SIUL2_0

Item 2

MSCR registers group 1 in SIUL2_1

Item 3

MSCR registers group 2 in SIUL2_1

Item 4

IMCR registers group 0 in SIUL2_0

Item 5

IMCR registers group 1 in SIUL2_1

Item 6

IMCR registers group 2 in SIUL2_1

Properties matching a name pattern (patternProperties) #

-pins$ — name matches this regular expression #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties matching a name pattern (patternProperties) #

-grp[0-9]$ — name matches this regular expression

Value type (type): "object"

All of these rules must match (allOf)

Rule 1

Shared schema rule ($ref): pinmux-node.yaml#

Rule 2

Shared schema rule ($ref): pincfg-node.yaml#

Pinctrl node's client devices specify pin muxes using subnodes, which in turn use the standard properties below.

Properties and child nodes (properties)

bias-disable — not listed as required here

true — No constraints added by this property rule.

bias-high-impedance — not listed as required here

true — No constraints added by this property rule.

bias-pull-up — not listed as required here

true — No constraints added by this property rule.

bias-pull-down — not listed as required here

true — No constraints added by this property rule.

drive-open-drain — not listed as required here

true — No constraints added by this property rule.

input-enable — not listed as required here

true — No constraints added by this property rule.

output-enable — not listed as required here

true — No constraints added by this property rule.

pinmux — not listed as required here

An integer array for representing pinmux configurations of a device. Each integer consists of a PIN_ID and a 4-bit selected signal source(SSS) as IOMUX setting, which is calculated as: pinmux = (PIN_ID << 4 | SSS)

slew-rate — not listed as required here

Supported slew rate based on Fmax values (MHz)

Allowed values (enum): 83, 133, 150, 166, 208

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

pinctrl@4009c240 {
    compatible = "nxp,s32g2-siul2-pinctrl";

          /* MSCR0-MSCR101 registers on siul2_0 */
    reg = <0x4009c240 0x198>,
          /* MSCR112-MSCR122 registers on siul2_1 */
          <0x44010400 0x2c>,
          /* MSCR144-MSCR190 registers on siul2_1 */
          <0x44010480 0xbc>,
          /* IMCR0-IMCR83 registers on siul2_0 */
          <0x4009ca40 0x150>,
          /* IMCR119-IMCR397 registers on siul2_1 */
          <0x44010c1c 0x45c>,
          /* IMCR430-IMCR495 registers on siul2_1 */
          <0x440110f8 0x108>;

    llce-can0-pins {
        llce-can0-grp0 {
            pinmux = <0x2b0>;
            input-enable;
            slew-rate = <208>;
        };

        llce-can0-grp1 {
            pinmux = <0x2c2>;
            output-enable;
            slew-rate = <208>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 2: Copyright 2022 NXP

Edit this page