mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
38ab18caa0
This patch adds DT bindings to the spi-gpio driver and some documentation about how to use it. Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
30 lines
626 B
Plaintext
30 lines
626 B
Plaintext
SPI-GPIO devicetree bindings
|
|
|
|
Required properties:
|
|
|
|
- compatible: should be set to "spi-gpio"
|
|
- #address-cells: should be set to <0x1>
|
|
- ranges
|
|
- gpio-sck: GPIO spec for the SCK line to use
|
|
- gpio-miso: GPIO spec for the MISO line to use
|
|
- gpio-mosi: GPIO spec for the MOSI line to use
|
|
- cs-gpios: GPIOs to use for chipselect lines
|
|
- num-chipselects: number of chipselect lines
|
|
|
|
Example:
|
|
|
|
spi {
|
|
compatible = "spi-gpio";
|
|
#address-cells = <0x1>;
|
|
ranges;
|
|
|
|
gpio-sck = <&gpio 95 0>;
|
|
gpio-miso = <&gpio 98 0>;
|
|
gpio-mosi = <&gpio 97 0>;
|
|
cs-gpios = <&gpio 125 0>;
|
|
num-chipselects = <1>;
|
|
|
|
/* clients */
|
|
};
|
|
|