xref: /linux/Documentation/devicetree/bindings/gpio/st,stmpe-gpio.yaml (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
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  gpio-line-names:
32    minItems: 1
33    maxItems: 24
34
35  interrupt-controller: true
36
37  st,norequest-mask:
38    description:
39      A bitmask of GPIO lines that cannot be requested because for
40      for example not being connected to anything on the system
41    $ref: /schemas/types.yaml#/definitions/uint32
42
43patternProperties:
44  "^.+-hog(-[0-9]+)?$":
45    type: object
46
47    required:
48      - gpio-hog
49
50additionalProperties: false
51
52required:
53  - compatible
54  - "#gpio-cells"
55  - "#interrupt-cells"
56  - gpio-controller
57  - interrupt-controller
58