| 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 |
|
| 7 |
title: Allwinner A10 SPI Controller |
| 8 |
|
| 9 |
allOf: |
| 10 |
- $ref: spi-controller.yaml |
| 11 |
|
| 12 |
maintainers: |
| 13 |
- Chen-Yu Tsai <[email protected]> |
| 14 |
- Maxime Ripard <[email protected]> |
| 15 |
|
| 16 |
properties: |
| 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 |
|
| 46 |
patternProperties: |
| 47 |
"^.*@[0-9a-f]+": |
| 48 |
type: object |
| 49 |
additionalProperties: true |
| 50 |
|
| 51 |
properties: |
| 52 |
reg: |
| 53 |
items: |
| 54 |
minimum: 0 |
| 55 |
maximum: 4 |
| 56 |
|
| 57 |
spi-rx-bus-width: |
| 58 |
items: |
| 59 |
- const: 1 |
| 60 |
|
| 61 |
spi-tx-bus-width: |
| 62 |
items: |
| 63 |
- const: 1 |
| 64 |
|
| 65 |
required: |
| 66 |
- compatible |
| 67 |
- reg |
| 68 |
- interrupts |
| 69 |
- clocks |
| 70 |
- clock-names |
| 71 |
|
| 72 |
unevaluatedProperties: false |
| 73 |
|
| 74 |
examples: |
| 75 |
- | |
| 76 |
spi1: spi@1c06000 { |
| 77 |
compatible = "allwinner,sun4i-a10-spi"; |
| 78 |
reg = <0x01c06000 0x1000>; |
| 79 |
interrupts = <11>; |
| 80 |
clocks = <&ahb_gates 21>, <&spi1_clk>; |
| 81 |
clock-names = "ahb", "mod"; |
| 82 |
#address-cells = <1>; |
| 83 |
#size-cells = <0>; |
| 84 |
}; |
| 85 |
|
| 86 |
... |