mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-21 06:50:25 +00:00

Cleanup by removing unneeded quotes from refs and redundant blank lines. No functional impact except adjusting to preferred coding style. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> # aspeed Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> # meson Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com> # st Reviewed-by: Heiko Stuebner <heiko@sntech.de> # rockchip Reviewed-by: Serge Semin <fancer.lancer@gmail.com> # synopsys Acked-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20230124083342.34869-1-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
74 lines
1.5 KiB
YAML
74 lines
1.5 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/spi/spi-gpio.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: SPI-GPIO
|
|
|
|
maintainers:
|
|
- Rob Herring <robh@kernel.org>
|
|
|
|
description:
|
|
This represents a group of 3-n GPIO lines used for bit-banged SPI on
|
|
dedicated GPIO lines.
|
|
|
|
allOf:
|
|
- $ref: /schemas/spi/spi-controller.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
const: spi-gpio
|
|
|
|
sck-gpios:
|
|
description: GPIO spec for the SCK line to use
|
|
maxItems: 1
|
|
|
|
miso-gpios:
|
|
description: GPIO spec for the MISO line to use
|
|
maxItems: 1
|
|
|
|
mosi-gpios:
|
|
description: GPIO spec for the MOSI line to use
|
|
maxItems: 1
|
|
|
|
cs-gpios:
|
|
description: GPIOs to use for chipselect lines.
|
|
Not needed if num-chipselects = <0>.
|
|
minItems: 1
|
|
maxItems: 1024
|
|
|
|
num-chipselects:
|
|
description: Number of chipselect lines. Should be <0> if a single device
|
|
with no chip select is connected.
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
|
|
# Deprecated properties
|
|
gpio-sck: false
|
|
gpio-miso: false
|
|
gpio-mosi: false
|
|
|
|
required:
|
|
- compatible
|
|
- num-chipselects
|
|
- sck-gpios
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
spi {
|
|
compatible = "spi-gpio";
|
|
#address-cells = <0x1>;
|
|
#size-cells = <0x0>;
|
|
|
|
sck-gpios = <&gpio 95 0>;
|
|
miso-gpios = <&gpio 98 0>;
|
|
mosi-gpios = <&gpio 97 0>;
|
|
cs-gpios = <&gpio 125 0>;
|
|
num-chipselects = <1>;
|
|
|
|
/* clients */
|
|
};
|
|
|
|
...
|