Hannes Schmelzer | d3254ce | 2021-10-01 13:37:57 +0200 | [diff] [blame] | 1 | * MAX7320 I/O expanders |
| 2 | |
| 3 | The original maxim 7320 i/o expander offers 8 bit push/pull outputs. |
| 4 | There exists some clones which offers 16 bit. |
| 5 | |
| 6 | Required 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 | |
| 18 | Optional 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 | |
| 23 | Please refer to gpio.txt in this directory for details of the common GPIO |
| 24 | bindings used by client devices. |
| 25 | |
| 26 | Example: 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 | |