Cix Sky1 Soc Pin Controller
Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/cix,sky1-pinctrl.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Gary Yang <gary.yang@cixtech.com>"
The pin-controller is used to control Soc pins. There are two pin-controllers on Cix Sky1 platform. one is used under S0 state, the other one is used under S0 and S5 state.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "cix,sky1-pinctrl", "cix,sky1-pinctrl-s5"
reg — required here #
Array item rules (items) #
Item 1
gpio base
Properties matching a name pattern (patternProperties) #
-cfg$ — 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.
A pinctrl node should contain at least one subnode representing the pinctrl groups available on the machine.
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.
Each subnode will list the pins it needs, and how they should be configured, with regard to muxer configuration, bias pull, and drive strength.
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)
pinmux — required here
Values are constructed from pin number and mux setting, pin number is left shifted by 8 bits, then ORed with mux setting
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
typical current when output high level.
Allowed values (enum): 2, 3, 5, 6, 8, 9, 11, 12, 13, 14, 17, 18, 20, 21, 23, 24
Required in this object (required): "pinmux"
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) #
#define CIX_PAD_GPIO012_FUNC_GPIO012 (11 << 8 | 0x0)
pinctrl@4170000 {
compatible = "cix,sky1-pinctrl";
reg = <0x4170000 0x1000>;
wifi_vbat_gpio: wifi-vbat-gpio-cfg {
pins {
pinmux = <CIX_PAD_GPIO012_FUNC_GPIO012>;
bias-pull-up;
drive-strength = <8>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause