Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: spi: Document Ingenic SPI controller bindings

Add a documentation file to describe the Device Tree bindings for the
SPI controller found in Ingenic SoCs.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210830230139.21476-2-contact@artur-rojek.eu
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Paul Cercueil and committed by
Mark Brown
ff4daa7d becbca18

+72
+72
Documentation/devicetree/bindings/spi/ingenic,spi.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/spi/ingenic,spi.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Ingenic SoCs SPI controller devicetree bindings 8 + 9 + maintainers: 10 + - Artur Rojek <contact@artur-rojek.eu> 11 + - Paul Cercueil <paul@crapouillou.net> 12 + 13 + allOf: 14 + - $ref: /schemas/spi/spi-controller.yaml# 15 + 16 + properties: 17 + compatible: 18 + oneOf: 19 + - enum: 20 + - ingenic,jz4750-spi 21 + - ingenic,jz4780-spi 22 + - items: 23 + - enum: 24 + - ingenic,jz4760-spi 25 + - ingenic,jz4770-spi 26 + - const: ingenic,jz4750-spi 27 + 28 + reg: 29 + maxItems: 1 30 + 31 + interrupts: 32 + maxItems: 1 33 + 34 + clocks: 35 + maxItems: 1 36 + 37 + dmas: 38 + maxItems: 2 39 + minItems: 2 40 + 41 + dma-names: 42 + items: 43 + - const: rx 44 + - const: tx 45 + 46 + required: 47 + - compatible 48 + - reg 49 + - interrupts 50 + - clocks 51 + - dmas 52 + - dma-names 53 + 54 + unevaluatedProperties: false 55 + 56 + examples: 57 + - | 58 + #include <dt-bindings/clock/jz4770-cgu.h> 59 + spi@10043000 { 60 + compatible = "ingenic,jz4770-spi", "ingenic,jz4750-spi"; 61 + reg = <0x10043000 0x1c>; 62 + #address-cells = <1>; 63 + #size-cells = <0>; 64 + 65 + interrupt-parent = <&intc>; 66 + interrupts = <8>; 67 + 68 + clocks = <&cgu JZ4770_CLK_SSI0>; 69 + 70 + dmas = <&dmac1 23 0xffffffff>, <&dmac1 22 0xffffffff>; 71 + dma-names = "rx", "tx"; 72 + };