Nuvoton MA35D1 pin control and GPIO

Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/nuvoton,ma35d1-pinctrl.yaml#"

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

Maintainers (maintainers): "Shan-Chun Hung <schung@nuvoton.com>", "Jacky Huang <ychuang3@nuvoton.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pinctrl.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "nuvoton,ma35d1-pinctrl"

reg — required here #

Maximum number of items (maxItems): 1

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 1

nuvoton,sys — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

phandle of the system-management node.

ranges — not listed as required here #

true — No constraints added by this property rule.

Properties matching a name pattern (patternProperties) #

^gpio@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Properties and child nodes (properties) #

gpio-controller — required here

true — No constraints added by this property rule.

#gpio-cells — required here

Exact value (const): 2

reg — required here

Maximum number of items (maxItems): 1

clocks — required here

Maximum number of items (maxItems): 1

interrupt-controller — required here

true — No constraints added by this property rule.

#interrupt-cells — required here

Exact value (const): 2

interrupts — required here

The interrupt outputs to sysirq.

Maximum number of items (maxItems): 1

Required in this object (required): "gpio-controller", "#gpio-cells", "reg", "clocks", "interrupt-controller", "#interrupt-cells", "interrupts"

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

false

Not allowed by this rule.

-grp$ — name matches this regular expression #

Value type (type): "object"

Pinctrl node's client devices use subnodes for desired pin configuration. Client device subnodes use below standard properties.

Properties matching a name pattern (patternProperties) #

-pins$ — name matches this regular expression

Value type (type): "object"

A pinctrl node should contain at least one subnodes representing the pinctrl groups available on the machine. Each subnode will list the pins it needs, and how they should be configured, with regard to muxer configuration, pullups, drive strength, input enable/disable and input schmitt.

Shared schema rule ($ref): /schemas/pinctrl/pincfg-node.yaml

Properties and child nodes (properties)

nuvoton,pins — not listed as required here

Each entry consists of 4 parameters and represents the mux and config setting for one pin.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix

Minimum number of items (minItems): 1

Array item rules (items)

Array item rules (items)

Item 1

Minimum value (minimum): 0

Maximum value (maximum): 13

Pin bank.

Item 2

Minimum value (minimum): 0

Maximum value (maximum): 15

Pin bank index.

Item 3

Minimum value (minimum): 0

Maximum value (maximum): 15

Mux 0 means GPIO and mux 1 to 15 means the specific device function.

power-source — not listed as required here

Valid arguments are described as below: 0: power supply of 1.8V 1: power supply of 3.3V

Allowed values (enum): 0, 1

drive-strength-microamp — not listed as required here

Exactly one of these rules must match (oneOf)

Rule 1

Allowed values (enum): 2900, 4400, 5800, 7300, 8600, 10100, 11500, 13000

1.8V I/O driving strength

Rule 2

Allowed values (enum): 17100, 25600, 34100, 42800, 48000, 56000, 77000, 82000

3.3V I/O driving strength

bias-disable — 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.

input-schmitt-disable — not listed as required here

true — No constraints added by this property rule.

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

false

Not allowed by this rule.

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

false

Not allowed by this rule.

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/clock/nuvoton,ma35d1-clk.h>

pinctrl@40040000 {
    compatible = "nuvoton,ma35d1-pinctrl";
    reg = <0x40040000 0xc00>;
    #address-cells = <1>;
    #size-cells = <1>;
    nuvoton,sys = <&sys>;
    ranges = <0x0 0x40040000 0x400>;

    gpio@0 {
        reg = <0x0 0x40>;
        interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&clk GPA_GATE>;
        gpio-controller;
        #gpio-cells = <2>;
        interrupt-controller;
        #interrupt-cells = <2>;
    };

    uart-grp {
        uart11-pins {
            nuvoton,pins = <11 0 2>,
                           <11 1 2>,
                           <11 2 2>,
                           <11 3 2>;
            power-source = <1>;
            bias-disable;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page