75 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/spi/spi-gpio.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: SPI-GPIO8 9maintainers:10 - Rob Herring <robh@kernel.org>11 12description:13 This represents a group of 3-n GPIO lines used for bit-banged SPI on14 dedicated GPIO lines.15 16allOf:17 - $ref: /schemas/spi/spi-controller.yaml#18 19properties:20 compatible:21 const: spi-gpio22 23 sck-gpios:24 description: GPIO spec for the SCK line to use25 maxItems: 126 27 miso-gpios:28 description: GPIO spec for the MISO line to use29 maxItems: 130 31 mosi-gpios:32 description: GPIO spec for the MOSI line to use33 maxItems: 134 35 cs-gpios:36 description: GPIOs to use for chipselect lines.37 Not needed if num-chipselects = <0>.38 minItems: 139 maxItems: 102440 41 num-chipselects:42 description: Number of chipselect lines. Should be <0> if a single device43 with no chip select is connected.44 $ref: /schemas/types.yaml#/definitions/uint3245 46 # Deprecated properties47 gpio-sck: false48 gpio-miso: false49 gpio-mosi: false50 51required:52 - compatible53 - num-chipselects54 - sck-gpios55 56unevaluatedProperties: false57 58examples:59 - |60 spi {61 compatible = "spi-gpio";62 #address-cells = <0x1>;63 #size-cells = <0x0>;64 65 sck-gpios = <&gpio 95 0>;66 miso-gpios = <&gpio 98 0>;67 mosi-gpios = <&gpio 97 0>;68 cs-gpios = <&gpio 125 0>;69 num-chipselects = <1>;70 71 /* clients */72 };73 74...75