Maxime Ripard | a7ff477 | 2012-09-10 22:35:40 +0200 | [diff] [blame] | 1 | * Generic 8-bits shift register GPIO driver |
| 2 | |
| 3 | Required properties: |
Nicolas Saenz Julienne | 80018bd | 2016-03-14 23:32:10 +0000 | [diff] [blame] | 4 | - compatible: Should contain one of the following: |
| 5 | "fairchild,74hc595" |
| 6 | "nxp,74lvc594" |
Maxime Ripard | a7ff477 | 2012-09-10 22:35:40 +0200 | [diff] [blame] | 7 | - reg : chip select number |
| 8 | - gpio-controller : Marks the device node as a gpio controller. |
| 9 | - #gpio-cells : Should be two. The first cell is the pin number and |
| 10 | the second cell is used to specify the gpio polarity: |
| 11 | 0 = active high |
| 12 | 1 = active low |
| 13 | - registers-number: Number of daisy-chained shift registers |
| 14 | |
| 15 | Example: |
| 16 | |
| 17 | gpio5: gpio5@0 { |
| 18 | compatible = "fairchild,74hc595"; |
| 19 | reg = <0>; |
| 20 | gpio-controller; |
| 21 | #gpio-cells = <2>; |
| 22 | registers-number = <4>; |
| 23 | spi-max-frequency = <100000>; |
| 24 | }; |