1# SPDX-License-Identifier: GPL-2.0 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/spi/allwinner,sun4i-a10-spi.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Allwinner A10 SPI Controller 8 9allOf: 10 - $ref: spi-controller.yaml 11 12maintainers: 13 - Chen-Yu Tsai <wens@csie.org> 14 - Maxime Ripard <mripard@kernel.org> 15 16properties: 17 compatible: 18 const: allwinner,sun4i-a10-spi 19 20 reg: 21 maxItems: 1 22 23 interrupts: 24 maxItems: 1 25 26 clocks: 27 items: 28 - description: Bus Clock 29 - description: Module Clock 30 31 clock-names: 32 items: 33 - const: ahb 34 - const: mod 35 36 dmas: 37 items: 38 - description: RX DMA Channel 39 - description: TX DMA Channel 40 41 dma-names: 42 items: 43 - const: rx 44 - const: tx 45 46patternProperties: 47 "^.*@[0-9a-f]+": 48 type: object 49 properties: 50 reg: 51 items: 52 minimum: 0 53 maximum: 4 54 55 spi-rx-bus-width: 56 const: 1 57 58 spi-tx-bus-width: 59 const: 1 60 61required: 62 - compatible 63 - reg 64 - interrupts 65 - clocks 66 - clock-names 67 68unevaluatedProperties: false 69 70examples: 71 - | 72 spi1: spi@1c06000 { 73 compatible = "allwinner,sun4i-a10-spi"; 74 reg = <0x01c06000 0x1000>; 75 interrupts = <11>; 76 clocks = <&ahb_gates 21>, <&spi1_clk>; 77 clock-names = "ahb", "mod"; 78 #address-cells = <1>; 79 #size-cells = <0>; 80 }; 81 82... 83