Loongson-2 SoC Pinctrl Controller
Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/loongson,ls2k-pinctrl.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "zhanghongchen <zhanghongchen@loongson.cn>", "Yinbo Zhu <zhuyinbo@loongson.cn>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):pinctrl.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "loongson,ls2k-pinctrl"
reg — required here #
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
-pins$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
pinmux$ — name matches this regular expression
Value type (type): "object"
node for pinctrl.
Shared schema rule ($ref): pinmux-node.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
groups — required here
One or more groups of pins to mux to a certain function
Array item rules (items)
Allowed values (
enum):"gpio","sdio","can1","can0","pwm3","pwm2","pwm1","pwm0","i2c1","i2c0","nand","sata_led","i2s","hda"
function — required here
The function that a group of pins is muxed to
Allowed values (enum): "gpio", "sdio", "can1", "can0", "pwm3", "pwm2", "pwm1", "pwm0", "i2c1", "i2c0", "nand", "sata_led", "i2s", "hda"
Required in this object (required): "groups", "function"
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
pctrl: pinctrl@1fe00420 {
compatible = "loongson,ls2k-pinctrl";
reg = <0x1fe00420 0x18>;
sdio_pins_default: sdio-pins {
sdio-pinmux {
groups = "sdio";
function = "sdio";
};
sdio-det-pinmux {
groups = "pwm2";
function = "gpio";
};
};
pwm1_pins_default: pwm1-pins {
pinmux {
groups = "pwm1";
function = "pwm1";
};
};
pwm0_pins_default: pwm0-pins {
pinmux {
groups = "pwm0";
function = "pwm0";
};
};
i2c1_pins_default: i2c1-pins {
pinmux {
groups = "i2c1";
function = "i2c1";
};
};
i2c0_pins_default: i2c0-pins {
pinmux {
groups = "i2c0";
function = "i2c0";
};
};
nand_pins_default: nand-pins {
pinmux {
groups = "nand";
function = "nand";
};
};
hda_pins_default: hda-pins {
grp0-pinmux {
groups = "hda";
function = "hda";
};
grp1-pinmux {
groups = "i2s";
function = "gpio";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)