Ingenic SoCs pin controller
Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/ingenic,pinctrl.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Please refer to pinctrl-bindings.txt in this directory for details of the common pinctrl bindings used by client devices, including the meaning of the phrase "pin configuration node". For the Ingenic SoCs, pin control is tightly bound with GPIO ports. All pins may be used as GPIOs, multiplexed device functions are configured within the GPIO port configuration registers and it is typical to refer to pins using the naming scheme "PxN" where x is a character identifying the GPIO port with which the pin is associated and N is an integer from 0 to 31 identifying the pin within that GPIO port. For example PA0 is the first pin in GPIO port A, and PB31 is the last pin in GPIO port B. The JZ4730, the JZ4740, the JZ4725B, the X1000 and the X1830 contains 4 GPIO ports, PA to PD, for a total of 128 pins. The X2000 and the X2100 contains 5 GPIO ports, PA to PE, for a total of 160 pins. The JZ4750, the JZ4755 the JZ4760, the JZ4770 and the JZ4780 contains 6 GPIO ports, PA to PF, for a total of 192 pins. The JZ4775 contains 7 GPIO ports, PA to PG, for a total of 224 pins.
Maintainers (maintainers): "Paul Cercueil <paul@crapouillou.net>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"ingenic,jz4730-pinctrl","ingenic,jz4740-pinctrl","ingenic,jz4725b-pinctrl","ingenic,jz4750-pinctrl","ingenic,jz4755-pinctrl","ingenic,jz4760-pinctrl","ingenic,jz4770-pinctrl","ingenic,jz4775-pinctrl","ingenic,jz4780-pinctrl","ingenic,x1000-pinctrl","ingenic,x1500-pinctrl","ingenic,x1600-pinctrl","ingenic,x1830-pinctrl","ingenic,x2000-pinctrl","ingenic,x2100-pinctrl"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"ingenic,jz4760b-pinctrl"Item 2
Exact value (
const):"ingenic,jz4760-pinctrl"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"ingenic,x1000e-pinctrl"Item 2
Exact value (
const):"ingenic,x1000-pinctrl"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"ingenic,x2000e-pinctrl"Item 2
Exact value (
const):"ingenic,x2000-pinctrl"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^gpio@[0-9]$ — name matches this regular expression #
Value type (type): "object"
Properties and child nodes (properties) #
compatible — required here
Allowed values (enum): "ingenic,jz4730-gpio", "ingenic,jz4740-gpio", "ingenic,jz4725b-gpio", "ingenic,jz4750-gpio", "ingenic,jz4755-gpio", "ingenic,jz4760-gpio", "ingenic,jz4770-gpio", "ingenic,jz4775-gpio", "ingenic,jz4780-gpio", "ingenic,x1000-gpio", "ingenic,x1500-gpio", "ingenic,x1600-gpio", "ingenic,x1830-gpio", "ingenic,x2000-gpio", "ingenic,x2100-gpio"
reg — required here
Array item rules (items)
Item 1
The GPIO bank number
gpio-controller — required here
true — No constraints added by this property rule.
#gpio-cells — required here
Exact value (const): 2
gpio-ranges — not listed as 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
Refer to ../interrupt-controller/interrupts.txt for more details.
interrupts — required here
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "interrupts", "interrupt-controller", "#interrupt-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):pinctrl.yaml#
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
At least one of these rules must match (
anyOf) #Rule 1 #
Value type (
type):"object"All of these rules must match (
allOf)Rule 1
Shared schema rule (
$ref):pincfg-node.yaml#Rule 2
Shared schema rule (
$ref):pinmux-node.yaml#Properties and child nodes (
properties)
function— not listed as required here
true— No constraints added by this property rule.
groups— not listed as required here
true— No constraints added by this property rule.
pins— not listed as 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.
output-low— not listed as required here
true— No constraints added by this property rule.
output-high— not listed as required here
true— No constraints added by this property rule.Properties not matched by properties or patternProperties in this schema (
additionalProperties)
falseNot allowed by this rule.
Rule 2 #
Value type (
type):"object"Properties not matched by properties or patternProperties in this schema (
additionalProperties)Value type (
type):"object"All of these rules must match (
allOf)Rule 1
Shared schema rule (
$ref):pincfg-node.yaml#Rule 2
Shared schema rule (
$ref):pinmux-node.yaml#Properties and child nodes (
properties)
function— not listed as required here
true— No constraints added by this property rule.
groups— not listed as required here
true— No constraints added by this property rule.
pins— not listed as 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.
output-low— not listed as required here
true— No constraints added by this property rule.
output-high— not listed as required here
true— No constraints added by this property rule.Properties not matched by properties or patternProperties in this schema (
additionalProperties)
falseNot allowed by this rule.
Examples (examples) #
pinctrl@10010000 {
compatible = "ingenic,jz4770-pinctrl";
reg = <0x10010000 0x600>;
#address-cells = <1>;
#size-cells = <0>;
gpio@0 {
compatible = "ingenic,jz4770-gpio";
reg = <0>;
gpio-controller;
gpio-ranges = <&pinctrl 0 0 32>;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
interrupt-parent = <&intc>;
interrupts = <17>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)