1description: EOS S3 GPIO node
2
3compatible: "quicklogic,eos-s3-gpio"
4
5include: [gpio-controller.yaml, base.yaml]
6
7properties:
8  interrupts:
9    required: true
10
11  "#gpio-cells":
12    const: 2
13
14  pin-secondary-config:
15    type: int
16    required: true
17    description: |
18        This property is used to preconfigure the GPIOs and connect them to
19        a primary(0) or a secondary(1) pin. EOS S3 supports up to 8 GPIOs
20        which can be configured as follows
21        "GPIO_NUM : primary_pin_num / secondary_pin_num"
22        "0 : 6 / 24"
23        "1 : 9 / 26"
24        "2 : 11 / 28"
25        "3 : 14 / 30"
26        "4 : 18 / 31"
27        "5 : 21 / 36"
28        "6 : 22 / 38"
29        "7 : 23 / 45"
30        E.g. configuring GPIO 2 as secondary results in controlling pin 28,
31        to do so set the bit on the 2nd index of this property
32        "pin-secondary-config = <0x04>;"
33
34gpio-cells:
35  - pin
36  - flags
37