1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/gpio/st,stmpe-gpio.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: STMicroelectonics Port Expander (STMPE) GPIO Block
8
9description:
10  STMicroelectronics Port Expander (STMPE) is a series of slow
11  bus controllers for various expanded peripherals such as GPIO, keypad,
12  touchscreen, ADC, PWM or rotator. It can contain one or several different
13  peripherals connected to SPI or I2C. These bindings pertain to the
14  GPIO portions of these expanders.
15
16maintainers:
17  - Linus Walleij <linus.walleij@linaro.org>
18
19properties:
20  compatible:
21    const: st,stmpe-gpio
22
23  "#gpio-cells":
24    const: 2
25
26  "#interrupt-cells":
27    const: 2
28
29  gpio-controller: true
30
31  interrupt-controller: true
32
33  st,norequest-mask:
34    description:
35      A bitmask of GPIO lines that cannot be requested because for
36      for example not being connected to anything on the system
37    $ref: /schemas/types.yaml#/definitions/uint32
38
39patternProperties:
40  "^.+-hog(-[0-9]+)?$":
41    type: object
42
43    required:
44      - gpio-hog
45
46additionalProperties: false
47
48required:
49  - compatible
50  - "#gpio-cells"
51  - "#interrupt-cells"
52  - gpio-controller
53  - interrupt-controller
54