Path: blob/master/Documentation/devicetree/bindings/gpio/gpio-stp-xway.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/gpio/gpio-stp-xway.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Lantiq SoC Serial To Parallel (STP) GPIO controller78description: |9The Serial To Parallel (STP) is found on MIPS based Lantiq socs. It is a10peripheral controller used to drive external shift register cascades. At most113 groups of 8 bits can be driven. The hardware is able to allow the DSL modem12and Ethernet PHYs to drive some bytes of the cascade automatically.1314maintainers:15- John Crispin <john@phrozen.org>1617properties:18$nodename:19pattern: "^gpio@[0-9a-f]+$"2021compatible:22const: lantiq,gpio-stp-xway2324reg:25maxItems: 12627gpio-controller: true2829"#gpio-cells":30description:31The first cell is the pin number and the second cell is used to specify32consumer flags.33const: 23435lantiq,shadow:36description:37The default value that we shall assume as already set on the38shift register cascade.39$ref: /schemas/types.yaml#/definitions/uint3240minimum: 0x00000041maximum: 0xffffff4243lantiq,groups:44description:45Set the 3 bit mask to select which of the 3 groups are enabled46in the shift register cascade.47$ref: /schemas/types.yaml#/definitions/uint3248minimum: 0x049maximum: 0x75051lantiq,dsl:52description:53The dsl core can control the 2 LSBs of the gpio cascade. This 2 bit54property can enable this feature.55$ref: /schemas/types.yaml#/definitions/uint3256minimum: 0x057maximum: 0x35859lantiq,rising:60description:61Use rising instead of falling edge for the shift register.62type: boolean6364patternProperties:65"^lantiq,phy[1-4]$":66description:67The gphy core can control 3 bits of the gpio cascade. In the xRX200 family68phy[1-2] are available, in xRX330 phy[1-3] and in XRX330 phy[1-4].69$ref: /schemas/types.yaml#/definitions/uint3270minimum: 0x071maximum: 0x77273required:74- compatible75- reg76- gpio-controller77- "#gpio-cells"7879additionalProperties: false8081examples:82- |83gpio@e100bb0 {84compatible = "lantiq,gpio-stp-xway";85reg = <0xE100BB0 0x40>;86#gpio-cells = <2>;87gpio-controller;8889pinctrl-0 = <&stp_pins>;90pinctrl-names = "default";9192lantiq,shadow = <0xffffff>;93lantiq,groups = <0x7>;94lantiq,dsl = <0x3>;95lantiq,phy1 = <0x7>;96lantiq,phy2 = <0x7>;97};98...99100101