2012-09-10 20:35:40 +00:00
|
|
|
* Generic 8-bits shift register GPIO driver
|
|
|
|
|
|
|
|
Required properties:
|
2016-03-14 23:32:10 +00:00
|
|
|
- compatible: Should contain one of the following:
|
|
|
|
"fairchild,74hc595"
|
|
|
|
"nxp,74lvc594"
|
2012-09-10 20:35:40 +00:00
|
|
|
- reg : chip select number
|
|
|
|
- gpio-controller : Marks the device node as a gpio controller.
|
|
|
|
- #gpio-cells : Should be two. The first cell is the pin number and
|
|
|
|
the second cell is used to specify the gpio polarity:
|
|
|
|
0 = active high
|
|
|
|
1 = active low
|
|
|
|
- registers-number: Number of daisy-chained shift registers
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
gpio5: gpio5@0 {
|
|
|
|
compatible = "fairchild,74hc595";
|
|
|
|
reg = <0>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
registers-number = <4>;
|
|
|
|
spi-max-frequency = <100000>;
|
|
|
|
};
|