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)
32 lines
765 B
Plaintext
32 lines
765 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.
|
|
Not needed if num-chipselects = <0>.
|
|
- num-chipselects: Number of chipselect lines. Should be <0> if a single device
|
|
with no chip select is connected.
|
|
|
|
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 */
|
|
};
|
|
|