197266c4dSRob Herring# SPDX-License-Identifier: GPL-2.0 297266c4dSRob Herring%YAML 1.2 397266c4dSRob Herring--- 497266c4dSRob Herring$id: http://devicetree.org/schemas/spi/spi-gpio.yaml# 597266c4dSRob Herring$schema: http://devicetree.org/meta-schemas/core.yaml# 697266c4dSRob Herring 7a612130cSKrzysztof Kozlowskititle: SPI-GPIO 897266c4dSRob Herring 997266c4dSRob Herringmaintainers: 1097266c4dSRob Herring - Rob Herring <robh@kernel.org> 1197266c4dSRob Herring 1297266c4dSRob Herringdescription: 1397266c4dSRob Herring This represents a group of 3-n GPIO lines used for bit-banged SPI on 1497266c4dSRob Herring dedicated GPIO lines. 1597266c4dSRob Herring 1697266c4dSRob HerringallOf: 17*99a7fa0eSKrzysztof Kozlowski - $ref: /schemas/spi/spi-controller.yaml# 1897266c4dSRob Herring 1997266c4dSRob Herringproperties: 2097266c4dSRob Herring compatible: 2197266c4dSRob Herring const: spi-gpio 2297266c4dSRob Herring 2397266c4dSRob Herring sck-gpios: 2497266c4dSRob Herring description: GPIO spec for the SCK line to use 2597266c4dSRob Herring maxItems: 1 2697266c4dSRob Herring 2797266c4dSRob Herring miso-gpios: 2897266c4dSRob Herring description: GPIO spec for the MISO line to use 2997266c4dSRob Herring maxItems: 1 3097266c4dSRob Herring 3197266c4dSRob Herring mosi-gpios: 3297266c4dSRob Herring description: GPIO spec for the MOSI line to use 3397266c4dSRob Herring maxItems: 1 3497266c4dSRob Herring 3597266c4dSRob Herring cs-gpios: 3697266c4dSRob Herring description: GPIOs to use for chipselect lines. 3797266c4dSRob Herring Not needed if num-chipselects = <0>. 3897266c4dSRob Herring minItems: 1 3997266c4dSRob Herring maxItems: 1024 4097266c4dSRob Herring 4197266c4dSRob Herring num-chipselects: 4297266c4dSRob Herring description: Number of chipselect lines. Should be <0> if a single device 4397266c4dSRob Herring with no chip select is connected. 44*99a7fa0eSKrzysztof Kozlowski $ref: /schemas/types.yaml#/definitions/uint32 4597266c4dSRob Herring 4697266c4dSRob Herring # Deprecated properties 4797266c4dSRob Herring gpio-sck: false 4897266c4dSRob Herring gpio-miso: false 4997266c4dSRob Herring gpio-mosi: false 5097266c4dSRob Herring 5197266c4dSRob Herringrequired: 5297266c4dSRob Herring - compatible 5397266c4dSRob Herring - num-chipselects 5497266c4dSRob Herring - sck-gpios 5597266c4dSRob Herring 566fdc6e23SRob HerringunevaluatedProperties: false 576fdc6e23SRob Herring 5897266c4dSRob Herringexamples: 5997266c4dSRob Herring - | 6097266c4dSRob Herring spi { 6197266c4dSRob Herring compatible = "spi-gpio"; 6297266c4dSRob Herring #address-cells = <0x1>; 6397266c4dSRob Herring #size-cells = <0x0>; 6497266c4dSRob Herring 6597266c4dSRob Herring sck-gpios = <&gpio 95 0>; 6697266c4dSRob Herring miso-gpios = <&gpio 98 0>; 6797266c4dSRob Herring mosi-gpios = <&gpio 97 0>; 6897266c4dSRob Herring cs-gpios = <&gpio 125 0>; 6997266c4dSRob Herring num-chipselects = <1>; 7097266c4dSRob Herring 7197266c4dSRob Herring /* clients */ 7297266c4dSRob Herring }; 7397266c4dSRob Herring 7497266c4dSRob Herring... 75