blob: 87b703bb69f21824e9edf31d70297e890cf9610b [file] [log] [blame]
Hannes Schmelzerd3254ce2021-10-01 13:37:57 +02001* MAX7320 I/O expanders
2
3The original maxim 7320 i/o expander offers 8 bit push/pull outputs.
4There exists some clones which offers 16 bit.
5
6Required Properties:
7
8 - compatible: should be one of the following.
9 - "maxim,max7320"
10
11 - reg: I2C slave address.
12
13 - gpio-controller: Marks the device node as a gpio controller.
14 - #gpio-cells: Should be 2. The first cell is the GPIO number and the second
15 cell specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>. Only the
16 GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW flags are supported.
17
18Optional Properties:
19
20 - ngpios: tell the driver how many gpios the device offers.
21 if the property is omitted, 8bit (original maxim) is assumed.
22
23Please refer to gpio.txt in this directory for details of the common GPIO
24bindings used by client devices.
25
26Example: MAX7320 I/O expander node
27
28 ledgpio: max7320@5d {
29 status = "okay";
30 compatible = "maxim,max7320";
31 reg = <0x5d>;
32 #gpio-cells = <2>;
33 gpio-controller;
34 ngpios = <16>;
35 };
36