Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
28 lines
735 B
Plaintext
28 lines
735 B
Plaintext
* Generic 8-bits shift register GPIO driver
|
|
|
|
Required properties:
|
|
- compatible: Should contain one of the following:
|
|
"fairchild,74hc595"
|
|
"nxp,74lvc594"
|
|
- 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
|
|
|
|
Optional properties:
|
|
- enable-gpios: GPIO connected to the OE (Output Enable) pin.
|
|
|
|
Example:
|
|
|
|
gpio5: gpio5@0 {
|
|
compatible = "fairchild,74hc595";
|
|
reg = <0>;
|
|
gpio-controller;
|
|
#gpio-cells = <2>;
|
|
registers-number = <4>;
|
|
spi-max-frequency = <100000>;
|
|
};
|