1# Copyright 2024 NXP
2# SPDX-License-Identifier: Apache-2.0
3
4description: ADP5585 GPIO Controller
5
6compatible: "adi,adp5585-gpio"
7
8include: gpio-controller.yaml
9
10properties:
11  "#gpio-cells":
12    const: 2
13
14  ngpios:
15    const: 13
16    description: |
17      Number of GPIOs available on port expander.
18
19  gpio-reserved-ranges:
20    required: true
21    const: [5, 3]
22    description: |
23      Ranges of GPIOs reserved unavailable on port expander.
24      The ADP5585 has 10 GPIO lines divided in 2 groups. GPIO number
25      5, 6, 7 is reserved. That's to say, GPIO R0~R4 occupy line
26      number 0~4, GPIO C0~C4 occupy line number 8~12.
27
28gpio-cells:
29  - pin
30  - flags
31