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