18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 28cc087a1SEmmanuel Vadot%YAML 1.2 38cc087a1SEmmanuel Vadot--- 48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/spi/ingenic,spi.yaml# 58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68cc087a1SEmmanuel Vadot 7*8bab661aSEmmanuel Vadottitle: Ingenic SoCs SPI controller 88cc087a1SEmmanuel Vadot 98cc087a1SEmmanuel Vadotmaintainers: 108cc087a1SEmmanuel Vadot - Artur Rojek <contact@artur-rojek.eu> 118cc087a1SEmmanuel Vadot - Paul Cercueil <paul@crapouillou.net> 128cc087a1SEmmanuel Vadot 138cc087a1SEmmanuel VadotallOf: 148cc087a1SEmmanuel Vadot - $ref: /schemas/spi/spi-controller.yaml# 158cc087a1SEmmanuel Vadot 168cc087a1SEmmanuel Vadotproperties: 178cc087a1SEmmanuel Vadot compatible: 188cc087a1SEmmanuel Vadot oneOf: 198cc087a1SEmmanuel Vadot - enum: 208cc087a1SEmmanuel Vadot - ingenic,jz4750-spi 21d5b0e70fSEmmanuel Vadot - ingenic,jz4775-spi 228cc087a1SEmmanuel Vadot - ingenic,jz4780-spi 23d5b0e70fSEmmanuel Vadot - ingenic,x1000-spi 24d5b0e70fSEmmanuel Vadot - ingenic,x2000-spi 258cc087a1SEmmanuel Vadot - items: 268cc087a1SEmmanuel Vadot - enum: 278cc087a1SEmmanuel Vadot - ingenic,jz4760-spi 288cc087a1SEmmanuel Vadot - ingenic,jz4770-spi 298cc087a1SEmmanuel Vadot - const: ingenic,jz4750-spi 308cc087a1SEmmanuel Vadot 318cc087a1SEmmanuel Vadot reg: 328cc087a1SEmmanuel Vadot maxItems: 1 338cc087a1SEmmanuel Vadot 348cc087a1SEmmanuel Vadot interrupts: 358cc087a1SEmmanuel Vadot maxItems: 1 368cc087a1SEmmanuel Vadot 378cc087a1SEmmanuel Vadot clocks: 388cc087a1SEmmanuel Vadot maxItems: 1 398cc087a1SEmmanuel Vadot 408cc087a1SEmmanuel Vadot dmas: 418cc087a1SEmmanuel Vadot maxItems: 2 428cc087a1SEmmanuel Vadot minItems: 2 438cc087a1SEmmanuel Vadot 448cc087a1SEmmanuel Vadot dma-names: 458cc087a1SEmmanuel Vadot items: 468cc087a1SEmmanuel Vadot - const: rx 478cc087a1SEmmanuel Vadot - const: tx 488cc087a1SEmmanuel Vadot 498cc087a1SEmmanuel Vadotrequired: 508cc087a1SEmmanuel Vadot - compatible 518cc087a1SEmmanuel Vadot - reg 528cc087a1SEmmanuel Vadot - interrupts 538cc087a1SEmmanuel Vadot - clocks 548cc087a1SEmmanuel Vadot - dmas 558cc087a1SEmmanuel Vadot - dma-names 568cc087a1SEmmanuel Vadot 578cc087a1SEmmanuel VadotunevaluatedProperties: false 588cc087a1SEmmanuel Vadot 598cc087a1SEmmanuel Vadotexamples: 608cc087a1SEmmanuel Vadot - | 618cc087a1SEmmanuel Vadot #include <dt-bindings/clock/ingenic,jz4770-cgu.h> 628cc087a1SEmmanuel Vadot spi@10043000 { 638cc087a1SEmmanuel Vadot compatible = "ingenic,jz4770-spi", "ingenic,jz4750-spi"; 648cc087a1SEmmanuel Vadot reg = <0x10043000 0x1c>; 658cc087a1SEmmanuel Vadot #address-cells = <1>; 668cc087a1SEmmanuel Vadot #size-cells = <0>; 678cc087a1SEmmanuel Vadot 688cc087a1SEmmanuel Vadot interrupt-parent = <&intc>; 698cc087a1SEmmanuel Vadot interrupts = <8>; 708cc087a1SEmmanuel Vadot 718cc087a1SEmmanuel Vadot clocks = <&cgu JZ4770_CLK_SSI0>; 728cc087a1SEmmanuel Vadot 738cc087a1SEmmanuel Vadot dmas = <&dmac1 23 0xffffffff>, <&dmac1 22 0xffffffff>; 748cc087a1SEmmanuel Vadot dma-names = "rx", "tx"; 758cc087a1SEmmanuel Vadot }; 76