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