Generic Pin Controller with a Single Register for One or More Pins
Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/pinctrl-single.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tony Lindgren <tony@atomide.com>"
Some pin controller devices use a single register for one or more pins. The range of pin control registers can vary from one to many for each controller instance. Some SoCs from Altera, Broadcom, HiSilicon, Ralink, and TI have this kind of pin controller instances.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"ti,am437-padconf","ti,am62l-padconf","ti,am654-padconf","ti,dra7-padconf","ti,omap2420-padconf","ti,omap2430-padconf","ti,omap3-padconf","ti,omap4-padconf","ti,omap5-padconf","ti,j7200-padconf"Item 2
Exact value (
const):"pinctrl-single"
Rule 3
Array item rules (
items)Item 1
Item 2
Exact value (
const):"pinconf-single"
reg — required here #
Maximum number of items (maxItems): 1
interrupt-controller — not listed as required here #
true — No constraints added by this property rule.
#interrupt-cells — not listed as required here #
Exact value (const): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
#pinctrl-cells — not listed as required here #
Number of cells. Usually 2, consisting of register offset, pin configuration value, and pinmux mode. Some controllers may use 1 for just offset and value.
pinctrl-single,bit-per-mux — not listed as required here #
Optional flag to indicate register controls more than one pin
Value type (type): "boolean"
pinctrl-single,function-mask — not listed as required here #
Mask of the allowed register bits
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
pinctrl-single,function-off — not listed as required here #
Optional function off mode for disabled state
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
pinctrl-single,register-width — required here #
Width of pin specific bits in the register
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 8, 16, 32
pinctrl-single,gpio-range — not listed as required here #
Optional list of pin base, nr pins & gpio function
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Array item rules (
items)Item 1
phandle of a gpio-range node
Item 2
pin base
Item 3
number of pins
Item 4
gpio function
#gpio-range-cells — not listed as required here #
No longer needed, may exist in older files for gpio-ranges
Deprecated (deprecated): true
Exact value (const): 3
gpio-range — not listed as required here #
Optional node for gpio range cells
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#pinctrl-single,gpio-range-cells — not listed as required here
Number of gpio range cells
Exact value (const): 3
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Properties matching a name pattern (patternProperties) #
-pins(-[0-9]+)?$|-pin$ — name matches this regular expression #
Pin group node name using naming ending in -pins followed by an optional instance number
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
pinctrl-single,pins — not listed as required here
Array of pins as described in pinmux-node.yaml for pinctrl-pin-array
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
pinctrl-single,bits — not listed as required here
Register bit configuration for pinctrl-single,bit-per-mux
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items)
Item 1
register offset
Item 2
value
Item 3
pin bitmask in the register
pinctrl-single,bias-pullup — not listed as required here
Optional bias pull up configuration
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items)
Item 1
input
Item 2
enabled pull up bits
Item 3
disabled pull up bits
Item 4
bias pull up mask
pinctrl-single,bias-pulldown — not listed as required here
Optional bias pull down configuration
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items)
Item 1
input
Item 2
enabled pull down bits
Item 3
disabled pull down bits
Item 4
bias pull down mask
pinctrl-single,drive-strength — not listed as required here
Optional drive strength configuration
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items)
Item 1
drive strength current
Item 2
drive strength mask
pinctrl-single,input-schmitt — not listed as required here
Optional schmitt strength configuration
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items)
Item 1
schmitt strength current
Item 2
schmitt strength mask
pinctrl-single,input-schmitt-enable — not listed as required here
Optional input schmitt configuration
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items)
Item 1
input
Item 2
enable bits
Item 3
disable bits
Item 4
input schmitt mask
pinctrl-single,low-power-mode — not listed as required here
Optional low power mode configuration
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items)
Item 1
low power mode value
Item 2
low power mode mask
pinctrl-single,slew-rate — not listed as required here
Optional slew rate configuration
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items)
Item 1
slew rate
Item 2
slew rate mask
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):pinctrl.yaml#
Required in this object (required): "compatible", "reg", "pinctrl-single,register-width"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
soc {
#address-cells = <1>;
#size-cells = <1>;
pinmux@4a100040 {
compatible = "pinctrl-single";
reg = <0x4a100040 0x0196>;
#address-cells = <1>;
#size-cells = <0>;
#pinctrl-cells = <2>;
#interrupt-cells = <1>;
interrupt-controller;
pinctrl-single,register-width = <16>;
pinctrl-single,function-mask = <0xffff>;
pinctrl-single,gpio-range = <&range 0 3 0>;
range: gpio-range {
#pinctrl-single,gpio-range-cells = <3>;
};
uart2-pins {
pinctrl-single,pins =
<0xd8 0x118>,
<0xda 0>,
<0xdc 0x118>,
<0xde 0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)