Allwinner A523 Pin Controller
Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/allwinner,sun55i-a523-pinctrl.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andre Przywara <andre.przywara@arm.com>"
Properties and child nodes (properties) #
#gpio-cells — required here #
Exact value (const): 3
GPIO consumers must use three arguments, first the number of the bank, then the pin number inside that bank, and finally the GPIO flags.
#interrupt-cells — required here #
Exact value (const): 3
Interrupts consumers must use three arguments, first the number of the bank, then the pin number inside that bank, and finally the interrupts flags.
compatible — required here #
Allowed values (enum): "allwinner,sun55i-a523-pinctrl", "allwinner,sun55i-a523-r-pinctrl"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 10
One interrupt per external interrupt bank supported on the controller, sorted by bank number ascending order.
clocks — required here #
Array item rules (items) #
Item 1
Bus Clock
Item 2
High Frequency Oscillator
Item 3
Low Frequency Oscillator
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"apb"
Item 2
Exact value (
const):"hosc"
Item 3
Exact value (
const):"losc"
gpio-controller — required here #
true — No constraints added by this property rule.
interrupt-controller — required here #
true — No constraints added by this property rule.
gpio-line-names — not listed as required here #
true — No constraints added by this property rule.
input-debounce — not listed as required here #
Debouncing periods in microseconds, one period per interrupt bank found in the controller
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 10
Properties matching a name pattern (patternProperties) #
^([rs]-)?(([a-z0-9]{3,}|[a-oq-z][a-z0-9]*?)?-)+?(p[a-m][0-9]*?-)??pins?$ — name matches this regular expression #
Value type (type): "object"
Properties and child nodes (properties) #
pins — required here
true — No constraints added by this property rule.
function — required here
true — No constraints added by this property rule.
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.
drive-strength — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 10, 20, 30, 40
allwinner,pinmux — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Pinmux selector value, for each pin. Almost every time this value is the same for all pins, so any array shorter than the number of pins will repeat the last value, to allow just specifying a single cell, for all cells.
Required in this object (required): "pins", "allwinner,pinmux", "function"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
^vcc-p[a-m]-supply$ — name matches this regular expression #
Power supplies for pin banks.
Required in this object (required): "#gpio-cells", "compatible", "reg", "clocks", "clock-names", "gpio-controller", "#interrupt-cells", "interrupts", "interrupt-controller"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):pinctrl.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):10Maximum number of items (
maxItems):10
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
r_pio: pinctrl@7022000 {
compatible = "allwinner,sun55i-a523-r-pinctrl";
reg = <0x7022000 0x800>;
interrupts = <0 159 4>, <0 161 4>;
clocks = <&r_ccu 1>, <&osc24M>, <&osc32k>;
clock-names = "apb", "hosc", "losc";
gpio-controller;
#gpio-cells = <3>;
interrupt-controller;
#interrupt-cells = <3>;
r_i2c_pins: r-i2c-pins {
pins = "PL0", "PL1";
allwinner,pinmux = <2>;
function = "r_i2c0";
bias-pull-up;
};
r_spi_pins: r-spi-pins {
pins = "PL11" ,"PL12", "PL13";
allwinner,pinmux = <6>;
function = "r_spi";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 67: It's pretty scary, but the basic idea is that:
Line 68: - One node name can start with either s- or r- for PRCM nodes,
Line 69: - Then, the name itself can be any repetition of <string>- (to
Line 70: accommodate with nodes like uart4-rts-cts-pins), where each
Line 71: string can be either starting with 'p' but in a string longer
Line 72: than 3, or something that doesn't start with 'p',
Line 73: - Then, the bank name is optional and will be between pa and pm.
Line 74: Some pins groups that have several options will have the pin
Line 75: numbers then,
Line 76: - Finally, the name will end with either -pin or pins.