Airoha EN7581 Pin Controller
Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/airoha,en7581-pinctrl.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lorenzo Bianconi <lorenzo@kernel.org>"
The Airoha's EN7581 Pin controller is used to control SoC pins.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "airoha,en7581-pinctrl"
interrupts — required here #
Maximum number of items (maxItems): 1
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
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):pinctrl.yaml#
Required in this object (required): "compatible", "interrupts", "gpio-controller", "#gpio-cells", "interrupt-controller", "#interrupt-cells"
Properties matching a name pattern (patternProperties) #
-pins$ — name matches this regular expression #
Value type (type): "object"
Properties matching a name pattern (patternProperties) #
^mux(-|$) — name matches this regular expression
Value type (type): "object"
pinmux configuration nodes.
Shared schema rule ($ref): /schemas/pinctrl/pinmux-node.yaml
Properties and child nodes (properties)
function — required here
A string containing the name of the function to mux to the group.
Allowed values (enum): "pon", "tod_1pps", "sipo", "mdio", "uart", "i2c", "jtag", "pcm", "spi", "pcm_spi", "i2s", "emmc", "pnand", "pcie_reset", "pwm", "phy1_led0", "phy2_led0", "phy3_led0", "phy4_led0", "phy1_led1", "phy2_led1", "phy3_led1", "phy4_led1"
groups — required here
An array of strings. Each string contains the name of a group.
Required in this object (required): "function", "groups"
All of these rules must match (allOf)
Rule 1
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"pon"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required here
Rule 2
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"tod_1pps"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required here
Rule 3
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"sipo"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required here
Rule 4
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"mdio"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required here
Rule 5
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"uart"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required hereArray item rules (
items)Allowed values (
enum):"uart2","uart2_cts_rts","hsuart","hsuart_cts_rts","uart4","uart5"Maximum number of items (
maxItems):2
Rule 6
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"i2c"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required here
Rule 7
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"jtag"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required here
Rule 8
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"pcm"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required here
Rule 9
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"spi"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required hereArray item rules (
items)Maximum number of items (
maxItems):2
Rule 10
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"pcm_spi"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required hereArray item rules (
items)Allowed values (
enum):"pcm_spi","pcm_spi_int","pcm_spi_rst","pcm_spi_cs1","pcm_spi_cs2_p156","pcm_spi_cs2_p128","pcm_spi_cs3","pcm_spi_cs4"Maximum number of items (
maxItems):7
Rule 11
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"i2c"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required here
Rule 12
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"emmc"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required here
Rule 13
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"pnand"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required here
Rule 14
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"pcie_reset"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required hereAllowed values (
enum):"pcie_reset0","pcie_reset1","pcie_reset2"
Rule 15
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"pwm"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required hereAllowed values (
enum):"gpio0","gpio1","gpio2","gpio3","gpio4","gpio5","gpio6","gpio7","gpio8","gpio9","gpio10","gpio11","gpio12","gpio13","gpio14","gpio15","gpio16","gpio17","gpio18","gpio19","gpio20","gpio21","gpio22","gpio23","gpio24","gpio25","gpio26","gpio27","gpio28","gpio29","gpio30","gpio31","gpio36","gpio37","gpio38","gpio39","gpio40","gpio41","gpio42","gpio43","gpio44","gpio45","gpio46","gpio47"
Rule 16
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"phy1_led0"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required hereAllowed values (
enum):"gpio33","gpio34","gpio35","gpio42"
Rule 17
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"phy2_led0"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required hereAllowed values (
enum):"gpio33","gpio34","gpio35","gpio42"
Rule 18
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"phy3_led0"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required hereAllowed values (
enum):"gpio33","gpio34","gpio35","gpio42"
Rule 19
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"phy4_led0"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required hereAllowed values (
enum):"gpio33","gpio34","gpio35","gpio42"
Rule 20
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"phy1_led1"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required hereAllowed values (
enum):"gpio43","gpio44","gpio45","gpio46"
Rule 21
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"phy2_led1"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required hereAllowed values (
enum):"gpio43","gpio44","gpio45","gpio46"
Rule 22
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"phy3_led1"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required hereAllowed values (
enum):"gpio43","gpio44","gpio45","gpio46"
Rule 23
Condition (
if)Properties and child nodes (
properties)
function— not listed as required hereExact value (
const):"phy4_led1"When the condition matches (
then)Properties and child nodes (
properties)
groups— not listed as required hereAllowed values (
enum):"gpio43","gpio44","gpio45","gpio46"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
^conf(-|$) — name matches this regular expression
Value type (type): "object"
pinconf configuration nodes.
Shared schema rule ($ref): /schemas/pinctrl/pincfg-node.yaml
Properties and child nodes (properties)
pins — required here
An array of strings. Each string contains the name of a pin.
Array item rules (items)
Allowed values (
enum):"uart1_txd","uart1_rxd","i2c_scl","i2c_sda","spi_cs0","spi_clk","spi_mosi","spi_miso","gpio0","gpio1","gpio2","gpio3","gpio4","gpio5","gpio6","gpio7","gpio8","gpio9","gpio10","gpio11","gpio12","gpio13","gpio14","gpio15","gpio16","gpio17","gpio18","gpio19","gpio20","gpio21","gpio22","gpio23","gpio24","gpio25","gpio26","gpio27","gpio28","gpio29","gpio30","gpio31","gpio32","gpio33","gpio34","gpio35","gpio36","gpio37","gpio38","gpio39","gpio40","gpio41","gpio42","gpio43","gpio44","gpio45","gpio46","pcie_reset0","pcie_reset1","pcie_reset2"
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 58
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-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.
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.
drive-open-drain — not listed as required here
true — No constraints added by this property rule.
drive-strength — not listed as required here
Selects the drive strength for MIO pins, in mA.
Allowed values (enum): 2, 4, 6, 8
Required in this object (required): "pins"
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.
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>
pinctrl {
compatible = "airoha,en7581-pinctrl";
interrupt-parent = <&gic>;
interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
pcie1-rst-pins {
conf {
pins = "pcie_reset1";
drive-open-drain = <1>;
};
};
pwm-pins {
mux {
function = "pwm";
groups = "gpio18";
};
};
spi-pins {
mux {
function = "spi";
groups = "spi_quad", "spi_cs1";
};
};
uart2-pins {
mux {
function = "uart";
groups = "uart2", "uart2_cts_rts";
};
};
uar5-pins {
mux {
function = "uart";
groups = "uart5";
};
};
mmc-pins {
mux {
function = "emmc";
groups = "emmc";
};
};
mdio-pins {
mux {
function = "mdio";
groups = "mdio";
};
conf {
pins = "gpio2";
output-enable;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)