Lantiq SoC Serial To Parallel (STP) GPIO controller
Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-stp-xway.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Serial To Parallel (STP) is found on MIPS based Lantiq socs. It is a peripheral controller used to drive external shift register cascades. At most 3 groups of 8 bits can be driven. The hardware is able to allow the DSL modem and Ethernet PHYs to drive some bytes of the cascade automatically.
Maintainers (maintainers): "John Crispin <john@phrozen.org>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^gpio@[0-9a-f]+$"
compatible — required here #
Exact value (const): "lantiq,gpio-stp-xway"
reg — required here #
Maximum number of items (maxItems): 1
gpio-controller — required here #
true — No constraints added by this property rule.
#gpio-cells — required here #
The first cell is the pin number and the second cell is used to specify consumer flags.
Exact value (const): 2
lantiq,shadow — not listed as required here #
The default value that we shall assume as already set on the shift register cascade.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 16777215
lantiq,groups — not listed as required here #
Set the 3 bit mask to select which of the 3 groups are enabled in the shift register cascade.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 7
lantiq,dsl — not listed as required here #
The dsl core can control the 2 LSBs of the gpio cascade. This 2 bit property can enable this feature.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 3
lantiq,rising — not listed as required here #
Use rising instead of falling edge for the shift register.
Value type (type): "boolean"
Properties matching a name pattern (patternProperties) #
^lantiq,phy[1-4]$ — name matches this regular expression #
The gphy core can control 3 bits of the gpio cascade. In the xRX200 family phy[1-2] are available, in xRX330 phy[1-3] and in XRX330 phy[1-4].
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 7
Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
gpio@e100bb0 {
compatible = "lantiq,gpio-stp-xway";
reg = <0xE100BB0 0x40>;
#gpio-cells = <2>;
gpio-controller;
pinctrl-0 = <&stp_pins>;
pinctrl-names = "default";
lantiq,shadow = <0xffffff>;
lantiq,groups = <0x7>;
lantiq,dsl = <0x3>;
lantiq,phy1 = <0x7>;
lantiq,phy2 = <0x7>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)